Home
last modified time | relevance | path

Searched refs:peer_public_key (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/
H A Dsts_client.c117 sts_client->peer_public_key = receive->epk; in parse_start_response_data()
125 &sts_client->peer_public_key, &shared_secret); in parse_start_response_data()
149 uint32_t len = sts_client->peer_public_key.length + sts_client->peer_id.length + in generate_sign_message()
158 …(void)memcpy_s(info + pos, len - pos, sts_client->peer_public_key.stpk, sts_client->peer_public_ke… in generate_sign_message()
159 pos += sts_client->peer_public_key.length; in generate_sign_message()
217 sts_client->peer_public_key.length + sts_client->peer_id.length; in generate_sts_request_sign()
229 …(void)memcpy_s(info + pos, len - pos, sts_client->peer_public_key.stpk, sts_client->peer_public_ke… in generate_sts_request_sign()
230 pos += sts_client->peer_public_key.length; in generate_sts_request_sign()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/inc/huks_adapter/
H A Dhuks_adapter.h124 int32_t import_lt_public_key(struct hc_key_alias *key_alias, struct ltpk *peer_public_key,
172 struct stpk *peer_public_key, struct sts_shared_secret *out_shared_key);
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/
H A Dhuks_adapter_test.h128 int32_t import_lt_public_key(struct hc_key_alias *key_alias, struct ltpk *peer_public_key,
176 struct stpk *peer_public_key, struct sts_shared_secret *out_shared_key);
H A Dhuks_adapter_test.cpp530 struct stpk peer_public_key = {4, {"9A87"}}; variable
535 ret = compute_sts_shared_secret(&(key_pair.st_private_key), &peer_public_key, &shared_secret);
1186 int len = stsClient->peer_public_key.length + stsClient->peer_id.length + in GenerateSignMessage()
1195 …(void)memcpy_s(info + pos, len - pos, stsClient->peer_public_key.stpk, stsClient->peer_public_key.… in GenerateSignMessage()
1196 pos += stsClient->peer_public_key.length; in GenerateSignMessage()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/inc/key_agreement/
H A Dsts_client.h35 struct stpk peer_public_key; member
H A Dsts_server.h78 struct stpk peer_public_key; member
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/unittest_mock/
H A Dhuks_adapter_mock.c975 int32_t import_lt_public_key(struct hc_key_alias *key_alias, struct ltpk *peer_public_key, in import_lt_public_key() argument
985 check_ptr_return_val(peer_public_key, HC_INPUT_ERROR); in import_lt_public_key()
994 struct HksBlob ltpk_key_blob = convert_to_blob_from_ltpk(peer_public_key); in import_lt_public_key()
1474 int32_t compute_sts_shared_secret(struct stsk *self_private_key, struct stpk *peer_public_key, in compute_sts_shared_secret() argument
1479 check_ptr_return_val(peer_public_key, HC_INPUT_ERROR); in compute_sts_shared_secret()
1480 check_num_return_val(peer_public_key->length, HC_INPUT_ERROR); in compute_sts_shared_secret()
1491 struct HksBlob peer_public_key_blob = convert_to_blob_from_stpk(peer_public_key); in compute_sts_shared_secret()
H A Dhuks_adapter_mock_for_pake.c1046 int32_t import_lt_public_key(struct hc_key_alias *key_alias, struct ltpk *peer_public_key, in import_lt_public_key() argument
1056 check_ptr_return_val(peer_public_key, HC_INPUT_ERROR); in import_lt_public_key()
1065 struct HksBlob ltpk_key_blob = convert_to_blob_from_ltpk(peer_public_key); in import_lt_public_key()
1544 int32_t compute_sts_shared_secret(struct stsk *self_private_key, struct stpk *peer_public_key, in compute_sts_shared_secret() argument
1549 check_ptr_return_val(peer_public_key, HC_INPUT_ERROR); in compute_sts_shared_secret()
1550 check_num_return_val(peer_public_key->length, HC_INPUT_ERROR); in compute_sts_shared_secret()
1561 struct HksBlob peer_public_key_blob = convert_to_blob_from_stpk(peer_public_key); in compute_sts_shared_secret()
/ohos5.0/base/security/huks/interfaces/inner_api/huks_lite/
H A Dhks_client.h235 const struct hks_blob *peer_public_key);
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/
H A Dhuks_adapter.c1109 int32_t import_lt_public_key(struct hc_key_alias *key_alias, struct ltpk *peer_public_key, in import_lt_public_key() argument
1119 check_ptr_return_val(peer_public_key, HC_INPUT_ERROR); in import_lt_public_key()
1128 struct HksBlob ltpk_key_blob = convert_to_blob_from_ltpk(peer_public_key); in import_lt_public_key()
1716 int32_t compute_sts_shared_secret(struct stsk *self_private_key, struct stpk *peer_public_key, in compute_sts_shared_secret() argument
1721 check_ptr_return_val(peer_public_key, HC_INPUT_ERROR); in compute_sts_shared_secret()
1722 check_num_return_val(peer_public_key->length, HC_INPUT_ERROR); in compute_sts_shared_secret()
1733 struct HksBlob peer_public_key_blob = convert_to_blob_from_stpk(peer_public_key); in compute_sts_shared_secret()