Lines Matching +full:16 +full:k
63 * sih(k, r) = e(k, r') mod 2^24 in bt_csip_sih()
88 * @param salt A 16-byte salt.
91 * @param out A 16-byte output buffer.
96 const uint8_t *p, size_t p_size, uint8_t out[16]) in k1() argument
101 uint8_t t[16]; in k1()
124 LOG_DBG("BE: out %s", bt_hex(out, 16)); in k1()
134 * @param out 16-byte output buffer.
140 uint8_t zero[16]; in s1()
153 LOG_DBG("BE: out %s", bt_hex(out, 16)); in s1()
158 int bt_csip_sef(const uint8_t k[BT_CSIP_CRYPTO_KEY_SIZE], const uint8_t sirk[BT_CSIP_SIRK_SIZE], in bt_csip_sef()
161 const uint8_t m[] = {'S', 'I', 'R', 'K', 'e', 'n', 'c'}; in bt_csip_sef()
169 * sef(K, SIRK) = k1(K, s1("SIRKenc"), "csis") ^ SIRK in bt_csip_sef()
178 sys_memcpy_swap(k1_tmp, k, sizeof(k1_tmp)); in bt_csip_sef()
180 (void)memcpy(k1_tmp, k, sizeof(k1_tmp)); in bt_csip_sef()
182 LOG_DBG("BE: k %s", bt_hex(k1_tmp, sizeof(k1_tmp))); in bt_csip_sef()
209 int bt_csip_sdf(const uint8_t k[BT_CSIP_CRYPTO_KEY_SIZE], const uint8_t enc_sirk[BT_CSIP_SIRK_SIZE], in bt_csip_sdf()
217 * sdf(K, EncSIRK) = k1(K, s1("SIRKenc"), "csis") ^ EncSIRK in bt_csip_sdf()
221 return bt_csip_sef(k, enc_sirk, out_sirk); in bt_csip_sdf()