35 uint8_t *buf, uint8_t num_bytes);
38 const uint8_t plaintext[16], uint8_t encrypted[16]);
40 const uint8_t r[3], uint8_t hash[3]);
42 const uint8_t r[16],
const uint8_t pres[7],
43 const uint8_t preq[7], uint8_t iat,
44 const uint8_t ia[6], uint8_t rat,
45 const uint8_t ra[6], uint8_t res[16]);
47 const uint8_t r1[16],
const uint8_t r2[16],
50 uint8_t x[16], uint8_t z, uint8_t res[16]);
52 uint8_t n2[16], uint8_t a1[7], uint8_t a2[7],
53 uint8_t mackey[16], uint8_t ltk[16]);
55 uint8_t n2[16], uint8_t r[16], uint8_t io_cap[3],
56 uint8_t a1[7], uint8_t a2[7], uint8_t res[16]);
58 uint8_t x[16], uint8_t y[16], uint32_t *val);
60 const uint8_t *m, uint16_t m_len,
61 uint32_t sign_cnt, uint8_t signature[12]);
bool bt_crypto_ah(struct bt_crypto *crypto, const uint8_t k[16], const uint8_t r[3], uint8_t hash[3])
bool bt_crypto_c1(struct bt_crypto *crypto, const uint8_t k[16], const uint8_t r[16], const uint8_t pres[7], const uint8_t preq[7], uint8_t iat, const uint8_t ia[6], uint8_t rat, const uint8_t ra[6], uint8_t res[16])
struct bt_crypto * bt_crypto_new(void)
bool bt_crypto_e(struct bt_crypto *crypto, const uint8_t key[16], const uint8_t plaintext[16], uint8_t encrypted[16])
bool bt_crypto_f4(struct bt_crypto *crypto, uint8_t u[32], uint8_t v[32], uint8_t x[16], uint8_t z, uint8_t res[16])
bool bt_crypto_f6(struct bt_crypto *crypto, uint8_t w[16], uint8_t n1[16], uint8_t n2[16], uint8_t r[16], uint8_t io_cap[3], uint8_t a1[7], uint8_t a2[7], uint8_t res[16])
bool bt_crypto_s1(struct bt_crypto *crypto, const uint8_t k[16], const uint8_t r1[16], const uint8_t r2[16], uint8_t res[16])
bool bt_crypto_g2(struct bt_crypto *crypto, uint8_t u[32], uint8_t v[32], uint8_t x[16], uint8_t y[16], uint32_t *val)
void bt_crypto_unref(struct bt_crypto *crypto)
struct bt_crypto * bt_crypto_ref(struct bt_crypto *crypto)
bool bt_crypto_f5(struct bt_crypto *crypto, uint8_t w[32], uint8_t n1[16], uint8_t n2[16], uint8_t a1[7], uint8_t a2[7], uint8_t mackey[16], uint8_t ltk[16])
bool bt_crypto_random_bytes(struct bt_crypto *crypto, uint8_t *buf, uint8_t num_bytes)
bool bt_crypto_sign_att(struct bt_crypto *crypto, const uint8_t key[16], const uint8_t *m, uint16_t m_len, uint32_t sign_cnt, uint8_t signature[12])