Lines Matching refs:pk
1300 uint8_t pk[64]; in ble_sm_alg_gen_dhkey() local
1304 swap_buf(pk, peer_pub_key_x, 32); in ble_sm_alg_gen_dhkey()
1305 swap_buf(&pk[32], peer_pub_key_y, 32); in ble_sm_alg_gen_dhkey()
1317 memcpy(&pub[1], pk, 64); in ble_sm_alg_gen_dhkey()
1377 if (uECC_valid_public_key(pk, &curve_secp256r1) < 0) { in ble_sm_alg_gen_dhkey()
1381 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1449 uint8_t pk[64]; in ble_sm_alg_gen_key_pair()
1453 if (mbedtls_gen_keypair(pk, priv) != 0) { in ble_sm_alg_gen_key_pair()
1457 if (uECC_make_key(pk, priv, &curve_secp256r1) != TC_CRYPTO_SUCCESS) { in ble_sm_alg_gen_key_pair()
1464 swap_buf(pub, pk, 32); in ble_sm_alg_gen_key_pair()
1465 swap_buf(&pub[32], &pk[32], 32); in ble_sm_alg_gen_key_pair()