Lines Matching refs:pk
1395 uint8_t pk[64]; in ble_sm_alg_gen_dhkey() local
1399 swap_buf(pk, peer_pub_key_x, 32); in ble_sm_alg_gen_dhkey()
1400 swap_buf(&pk[32], peer_pub_key_y, 32); in ble_sm_alg_gen_dhkey()
1412 memcpy(&pub[1], pk, 64); in ble_sm_alg_gen_dhkey()
1472 if (uECC_valid_public_key(pk, &curve_secp256r1) < 0) { in ble_sm_alg_gen_dhkey()
1476 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1544 uint8_t pk[64]; in ble_sm_alg_gen_key_pair()
1548 if (mbedtls_gen_keypair(pk, priv) != 0) { in ble_sm_alg_gen_key_pair()
1552 if (uECC_make_key(pk, priv, &curve_secp256r1) != TC_CRYPTO_SUCCESS) { in ble_sm_alg_gen_key_pair()
1559 swap_buf(pub, pk, 32); in ble_sm_alg_gen_key_pair()
1560 swap_buf(&pub[32], &pk[32], 32); in ble_sm_alg_gen_key_pair()