• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sctp/

Lines Matching +defs:diff +defs:id

46 		/* id 0 is reserved.  as all 0 */
55 /* id 2 is reserved as well */
100 /* Create a new shared key container with a give key id */
161 int diff;
165 diff = vector1->len - vector2->len;
166 if (diff) {
167 longer = (diff > 0) ? vector1->data : vector2->data;
173 for (i = 0; i < abs(diff); i++ ) {
175 return diff;
449 __u16 id;
467 for (id = 0; id < SCTP_AUTH_NUM_HMACS; id++) {
469 /* See is we support the id. Supported IDs have name and
474 if (!sctp_hmac_list[id].hmac_name)
478 if (ep->auth_hmacs[id])
482 tfm = crypto_alloc_hash(sctp_hmac_list[id].hmac_name, 0,
487 ep->auth_hmacs[id] = tfm;
527 __u16 id = 0;
535 * we support and return that. Do not cache that id.
543 id = ntohs(hmacs->hmac_ids[i]);
545 /* Check the id is in the supported range */
546 if (id > SCTP_AUTH_HMAC_ID_MAX) {
547 id = 0;
551 /* See is we support the id. Supported IDs have name and
556 if (!sctp_hmac_list[id].hmac_name) {
557 id = 0;
564 if (id == 0)
567 return &sctp_hmac_list[id];
602 /* Cache the default HMAC id. This to follow this text from SCTP-AUTH:
611 __u16 id;
615 /* if the default id is already set, use it */
623 id = ntohs(hmacs->hmac_ids[i]);
625 /* Check the id is in the supported range */
626 if (id > SCTP_AUTH_HMAC_ID_MAX)
629 /* If this TFM has been allocated, use this id */
630 if (ep->auth_hmacs[id]) {
631 asoc->default_hmac_id = id;
716 * - hmac id
717 * - key id
785 __u16 id;
788 /* Scan the list looking for unsupported id. Also make sure that
792 id = hmacs->shmac_idents[i];
794 if (id > SCTP_AUTH_HMAC_ID_MAX)
797 if (SCTP_AUTH_HMAC_ID_SHA1 == id)
800 if (!sctp_hmac_list[id].hmac_name)
827 /* Try to find the given key id to see if
842 /* If we are not replacing a key id, we need to allocate
860 * key id. If we are adding new key id, add it to the