Lines Matching refs:pk
1372 uint8_t pk[64]; in ble_sm_alg_gen_dhkey() local
1376 swap_buf(pk, peer_pub_key_x, 32); in ble_sm_alg_gen_dhkey()
1377 swap_buf(&pk[32], peer_pub_key_y, 32); in ble_sm_alg_gen_dhkey()
1389 memcpy(&pub[1], pk, 64); in ble_sm_alg_gen_dhkey()
1449 if (uECC_valid_public_key(pk, &curve_secp256r1) < 0) { in ble_sm_alg_gen_dhkey()
1453 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1521 uint8_t pk[64]; in ble_sm_alg_gen_key_pair()
1525 if (mbedtls_gen_keypair(pk, priv) != 0) { in ble_sm_alg_gen_key_pair()
1529 if (uECC_make_key(pk, priv, &curve_secp256r1) != TC_CRYPTO_SUCCESS) { in ble_sm_alg_gen_key_pair()
1536 swap_buf(pub, pk, 32); in ble_sm_alg_gen_key_pair()
1537 swap_buf(&pub[32], &pk[32], 32); in ble_sm_alg_gen_key_pair()