Lines Matching refs:n2
1165 * The function inputs are W, N1, N2, A1, A2.
1177 * N2, A1, A2 and the internal parameters counter, keyID,
1187 * AES-CMAC (Counter=0||keyID||N1||N2||A1||A2||Length=256)
1190 * AES-CMAC (Counter=1||keyID||N1||N2||A1||A2||Length=256)
1196 * N2 is 128 bits,
1216 bool smp_calculate_f5(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* a1,
1246 p_prnt = n2;
1247 smp_debug_print_nbyte_little_endian(p_prnt, "N2", BT_OCTET16_LEN);
1264 n2, a1, a2, length, mac_key)) {
1273 if (!smp_calculate_f5_mackey_or_long_term_key(t, counter_ltk, key_id, n1, n2,
1298 * mac = AES-CMAC (Counter||keyID||N1||N2||A1||A2||Length)
1306 * N2 is 128 bits;
1320 uint8_t* n2, uint8_t* a1,
1328 BT_OCTET16_LEN /* N2 size */ + 7 /* A1 size*/ +
1346 p_prnt = n2;
1347 smp_debug_print_nbyte_little_endian(p_prnt, "N2", BT_OCTET16_LEN);
1366 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN);
1537 * C = f6(W, N1, N2, R, IOcap, A1, A2) =
1538 * AES-CMAC (N1||N2||R||IOcap||A1||A2)
1543 * N2 is 128 bit,
1556 bool smp_calculate_f6(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* r,
1560 BT_OCTET16_LEN /* N2 size */ + BT_OCTET16_LEN /* R size */ +
1574 p_print = n2;
1575 smp_debug_print_nbyte_little_endian(p_print, "N2", BT_OCTET16_LEN);
1601 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN);