Lines Matching defs:MAC
1760 10 + /* for MAC */
2009 unsigned char MAC[16];
2049 text->Ki_send, HASHLEN, MAC);
2052 text->Ki_send, HASHLEN, MAC);
2055 /* create MAC */
2057 memcpy(MAC + 10, &tmpshort, MAC_OFFS); /* 2 bytes = version */
2060 memcpy(MAC + 12, &tmpnum, 4); /* 4 bytes = sequence number */
2069 /* the MAC */
2070 memcpy(text->encode_buf + 4 + inblob->curlen, MAC, 16);
2084 unsigned char MAC[16])
2106 MAC);
2110 MAC);
2113 /* create MAC */
2115 memcpy(MAC + 10, &tmpshort, 2); /* 2 bytes = version */
2118 memcpy(MAC + 12, &tmpnum, 4); /* 4 bytes = sequence number */
2128 unsigned char MAC[16];
2131 result = create_MAC(text, buf, bufsize - 16, text->rec_seqnum, MAC);
2135 /* make sure the MAC is right */
2136 if (strncmp((char *) MAC, buf + bufsize - 16, 16) != 0)
2140 "MAC doesn't match");
2143 text->utils->seterror(text->utils->conn, 0, "MAC doesn't match");
3421 /* MAC block (privacy) */
3430 /* MAC block (integrity) */
4153 /* MAC block (privacy) */
4160 /* MAC block (integrity) */