Lines Matching full:key

9 /** Key size used in Bluetooth's ECC domain. */
11 /** Length of a Bluetooth ECC public key coordinate. */
13 /** Length of a Bluetooth ECC public key. */
15 /** Length of a Bluetooth ECC private key. */
17 /** Length of a Bluetooth Diffie-Hellman key. */
20 /* @brief Container for public key callback */
22 /** @brief Callback type for Public Key generation.
24 * Used to notify of the local public key or that the local key is not
28 * @param key The local public key, or NULL in case of no key.
30 void (*func)(const uint8_t key[BT_PUB_KEY_LEN]);
36 /* @brief Check if public key is equal to the debug public key.
38 * Compare the Public key to the Bluetooth specification defined debug public
39 * key.
41 * @param cmp_pub_key The public key to compare.
43 * @return True if the public key is the debug public key.
47 /* @brief Check if public key is valid.
49 * Verify that the public key is valid, e.g. that its coordinates lie on the eliptic curve.
51 * @param key The public key to validate.
53 * @return True if the public key is valid.
55 bool bt_pub_key_is_valid(const uint8_t key[BT_PUB_KEY_LEN]);
57 /* @brief Generate a new Public Key.
59 * Generate a new ECC Public Key. Provided cb must persists until callback
66 * @param cb Callback to notify the new key.
72 /* @brief Cleanup public key callbacks when HCI is disrupted.
78 /* @brief Get the current Public Key.
80 * Get the current ECC Public Key.
82 * @return Current key, or NULL if not available.
87 * @brief Callback type for DH Key calculation.
89 * Used to notify of the calculated DH Key.
91 * @param key The DH Key, or NULL in case of failure.
93 typedef void (*bt_dh_key_cb_t)(const uint8_t key[BT_DH_KEY_LEN]);
95 /* @brief Calculate a DH Key from a remote Public Key.
97 * Calculate a DH Key from the remote Public Key.
99 * @param remote_pk Remote Public Key.
100 * @param cb Callback to notify the calculated key.