Home | History | Annotate | Download | only in smp

Lines Matching defs:cmac

1227 **                  C = f4(U, V, X, Z) = AES-CMAC (U||V||Z)
1239 ** the AES-CMAC input/output stream.
1247 UINT8 cmac[BT_OCTET16_LEN];
1282 aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac);
1284 p_prnt = cmac;
1289 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
1339 ** g2(U, V, X, Y) = AES-CMAC (U||V||Y) mod 2**32 mod 10**6
1354 ** the AES-CMAC input/output stream.
1363 UINT8 cmac[BT_OCTET16_LEN];
1394 if(!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
1401 p_prnt = cmac;
1402 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1405 /* vres = cmac mod 2**32 mod 10**6 */
1406 p = &cmac[0];
1410 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"cmac mod 2**32", 4);
1417 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"cmac mod 2**32 mod 10**6", 4);
1428 ** Description The function provides two AES-CMAC that are supposed to be used as
1437 ** T = AES-CMAC (W)
1451 ** MacKey = AES-CMAC (Counter=0||keyID||N1||N2||A1||A2||Length=256)
1453 ** LTK = AES-CMAC (Counter=1||keyID||N1||N2||A1||A2||Length=256)
1476 ** the AES-CMAC input/output stream.
1482 BT_OCTET16 t; /* AES-CMAC output in smp_calculate_f5_key(...), key in */
1565 ** mac = AES-CMAC (Counter||keyID||N1||N2||A1||A2||Length)
1582 ** the AES-CMAC input/output stream.
1590 UINT8 cmac[BT_OCTET16_LEN];
1640 if (!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
1647 p_prnt = cmac;
1648 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1652 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
1662 ** T = AES-CMAC (W)
1672 ** the AES-CMAC input/output stream.
1712 BT_OCTET16 cmac;
1714 if (!aes_cipher_msg_auth_code(key, msg, BT_OCTET32_LEN, BT_OCTET16_LEN, cmac))
1721 p_prnt = cmac;
1722 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1726 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
1810 ** C = f6(W, N1, N2, R, IOcap, A1, A2) = AES-CMAC (N1||N2||R||IOcap||A1||A2)
1825 ** the AES-CMAC input/output stream.
1858 UINT8 cmac[BT_OCTET16_LEN];
1881 if(!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
1888 p_print = cmac;
1889 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1893 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
2079 ** C = h6(W, KeyID) = AES-CMAC (KeyID)
2089 ** the AES-CMAC input/output stream.
2129 UINT8 cmac[BT_OCTET16_LEN];
2130 if (!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
2137 p_print = cmac;
2138 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
2142 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);