Searched refs:public_key (Results 1 – 8 of 8) sorted by relevance
/btstack/3rd-party/micro-ecc/ |
H A D | uECC.h | 111 int uECC_make_key(uint8_t public_key[uECC_BYTES*2], uint8_t private_key[uECC_BYTES]); 127 int uECC_shared_secret(const uint8_t public_key[uECC_BYTES*2], 236 int uECC_verify(const uint8_t public_key[uECC_BYTES*2], 249 void uECC_compress(const uint8_t public_key[uECC_BYTES*2], uint8_t compressed[uECC_BYTES+1]); 260 void uECC_decompress(const uint8_t compressed[uECC_BYTES+1], uint8_t public_key[uECC_BYTES*2]); 274 int uECC_valid_public_key(const uint8_t public_key[uECC_BYTES*2]); 288 uint8_t public_key[uECC_BYTES * 2]);
|
H A D | uECC.c | 2044 int uECC_make_key(uint8_t public_key[uECC_BYTES*2], uint8_t private_key[uECC_BYTES]) { in uECC_make_key() 2052 vli_nativeToBytes(public_key, public.x); in uECC_make_key() 2053 vli_nativeToBytes(public_key + uECC_BYTES, public.y); in uECC_make_key() 2060 int uECC_shared_secret(const uint8_t public_key[uECC_BYTES*2], in uECC_shared_secret() 2084 vli_bytesToNative(public.x, public_key); in uECC_shared_secret() 2085 vli_bytesToNative(public.y, public_key + uECC_BYTES); in uECC_shared_secret() 2104 void uECC_compress(const uint8_t public_key[uECC_BYTES*2], uint8_t compressed[uECC_BYTES+1]) { in uECC_compress() 2107 compressed[i+1] = public_key[i]; in uECC_compress() 2109 compressed[0] = 2 + (public_key[uECC_BYTES * 2 - 1] & 0x01); in uECC_compress() 2133 void uECC_decompress(const uint8_t compressed[uECC_BYTES+1], uint8_t public_key[uECC_BYTES*2]) { in uECC_decompress() [all …]
|
/btstack/src/ |
H A D | btstack_crypto.h | 100 uint8_t * public_key; member 205 void btstack_crypto_ecc_p256_generate_key(btstack_crypto_ecc_p256_t * request, uint8_t * public_key… 217 …6_calculate_dhkey(btstack_crypto_ecc_p256_t * request, const uint8_t * public_key, uint8_t * dhkey… 225 int btstack_crypto_ecc_p256_validate_public_key(const uint8_t * public_key); 294 void btstack_crypto_ecc_p256_set_key(const uint8_t * public_key, const uint8_t * private_key);
|
H A D | btstack_crypto.c | 570 …uECC_shared_secret(btstack_crypto_ec_p192->public_key, btstack_crypto_ecc_p256_d, btstack_crypto_e… in btstack_crypto_ecc_p256_calculate_dhkey_software() 573 …uECC_shared_secret(btstack_crypto_ec_p192->public_key, btstack_crypto_ecc_p256_d, btstack_crypto_e… in btstack_crypto_ecc_p256_calculate_dhkey_software() 586 mbedtls_mpi_read_binary(&Q.X, &btstack_crypto_ec_p192->public_key[0] , 32); in btstack_crypto_ecc_p256_calculate_dhkey_software() 587 mbedtls_mpi_read_binary(&Q.Y, &btstack_crypto_ec_p192->public_key[32], 32); in btstack_crypto_ecc_p256_calculate_dhkey_software() 941 (void)memcpy(btstack_crypto_ec_p192->public_key, in btstack_crypto_run() 979 …d(&hci_le_generate_dhkey, &btstack_crypto_ec_p192->public_key[0], &btstack_crypto_ec_p192->public_… in btstack_crypto_run() 1244 void btstack_crypto_ecc_p256_generate_key(btstack_crypto_ecc_p256_t * request, uint8_t * public_key… in btstack_crypto_ecc_p256_generate_key() argument 1252 request->public_key = public_key; in btstack_crypto_ecc_p256_generate_key() 1257 …6_calculate_dhkey(btstack_crypto_ecc_p256_t * request, const uint8_t * public_key, uint8_t * dhkey… in btstack_crypto_ecc_p256_calculate_dhkey() argument 1261 request->public_key = (uint8_t *) public_key; in btstack_crypto_ecc_p256_calculate_dhkey() [all …]
|
/btstack/src/mesh/ |
H A D | provisioning_device.h | 74 void provisioning_device_set_public_key_oob(const uint8_t * public_key, const uint8_t * private_key…
|
H A D | provisioning_provisioner.h | 89 … provisioning_provisioner_public_key_oob_received(uint16_t pb_adv_cid, const uint8_t * public_key);
|
H A D | provisioning_provisioner.c | 781 …visioning_provisioner_public_key_oob_received(uint16_t the_pb_adv_cid, const uint8_t * public_key){ in provisioning_provisioner_public_key_oob_received() argument 787 (void)memcpy(&prov_confirmation_inputs[81], public_key, 64); in provisioning_provisioner_public_key_oob_received() 790 (void)memcpy(remote_ec_q, public_key, sizeof(remote_ec_q)); in provisioning_provisioner_public_key_oob_received()
|
H A D | provisioning_device.c | 875 void provisioning_device_set_public_key_oob(const uint8_t * public_key, const uint8_t * private_key… in provisioning_device_set_public_key_oob() argument 876 prov_public_key_oob_q = public_key; in provisioning_device_set_public_key_oob()
|