Lines Matching refs:k1
185 static void cmac_prepare_last_block (BT_OCTET16 k1, BT_OCTET16 k2)
198 smp_xor_128(&cmac_cb.text[0], k1);
218 UINT8 k1[BT_OCTET16_LEN], k2[BT_OCTET16_LEN];
221 print128(pp, (const UINT8 *)"K1 before shift");
223 /* If MSB(L) = 0, then K1 = L << 1 */
226 /* Else K1 = ( L << 1 ) (+) Rb */
227 leftshift_onebit(pp, k1);
228 smp_xor_128(k1, const_Rb);
232 leftshift_onebit(pp, k1);
235 if ( (k1[BT_OCTET16_LEN - 1] & 0x80) != 0 )
237 /* K2 = (K1 << 1) (+) Rb */
238 leftshift_onebit(k1, k2);
243 /* If MSB(K1) = 0, then K2 = K1 << 1 */
244 leftshift_onebit(k1, k2);
247 print128(k1, (const UINT8 *)"K1");
250 cmac_prepare_last_block (k1, k2);