Lines Matching refs:shmac
2843 struct sctp_hmacalgo *shmac; local
2848 SCTP_CHECK_AND_CAST(shmac, optval, struct sctp_hmacalgo, *optsize);
2854 *optsize = sizeof(*shmac);
2859 size = sizeof(*shmac) + (hmaclist->num_algo *
2860 sizeof(shmac->shmac_idents[0]));
2868 shmac->shmac_number_of_idents = hmaclist->num_algo;
2870 shmac->shmac_idents[i] = hmaclist->hmac[i];
4392 struct sctp_hmacalgo *shmac; local
4397 SCTP_CHECK_AND_CAST(shmac, optval, struct sctp_hmacalgo, optsize);
4398 … if ((optsize < sizeof(struct sctp_hmacalgo) + shmac->shmac_number_of_idents * sizeof(uint16_t)) ||
4399 (shmac->shmac_number_of_idents > 0xffff)) {
4405 hmaclist = sctp_alloc_hmaclist((uint16_t)shmac->shmac_number_of_idents);
4411 for (i = 0; i < shmac->shmac_number_of_idents; i++) {
4412 hmacid = shmac->shmac_idents[i];