/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/ |
H A D | sts_client.c | 117 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 D | huks_adapter.h | 124 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 D | huks_adapter_test.h | 128 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 D | huks_adapter_test.cpp | 530 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 D | sts_client.h | 35 struct stpk peer_public_key; member
|
H A D | sts_server.h | 78 struct stpk peer_public_key; member
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/unittest_mock/ |
H A D | huks_adapter_mock.c | 975 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 D | huks_adapter_mock_for_pake.c | 1046 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 D | hks_client.h | 235 const struct hks_blob *peer_public_key);
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/ |
H A D | huks_adapter.c | 1109 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()
|