Searched refs:agreeSharedSecret (Results 1 - 5 of 5) sorted by relevance
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
H A D | hks_core_service_key_generate.c | 410 uint32_t unwrapSuite, struct HksBlob *agreeSharedSecret, const struct HksParamSet *inParamSet) in AgreeSharedSecretWithPeerPublicKey() 437 agreeSharedSecret->size = sharedSecret.size; in AgreeSharedSecretWithPeerPublicKey() 438 agreeSharedSecret->data = sharedSecret.data; in AgreeSharedSecretWithPeerPublicKey() 464 const struct HksBlob *agreeSharedSecret, uint32_t *partOffset, struct HksBlob *outKekBlob) in DecryptKekWithAgreeSharedSecret() 497 ret = HksCryptoHalDecrypt(agreeSharedSecret, decKekUsageSpec, &kekEncDataPart, &kek); in DecryptKekWithAgreeSharedSecret() 601 static void ClearAndFreeKeyBlobsIfNeed(struct HksBlob *peerPublicKey, struct HksBlob *agreeSharedSecret, in ClearAndFreeKeyBlobsIfNeed() argument 614 if (agreeSharedSecret->data != NULL) { in ClearAndFreeKeyBlobsIfNeed() 615 (void)memset_s(agreeSharedSecret->data, agreeSharedSecret->size, 0, agreeSharedSecret in ClearAndFreeKeyBlobsIfNeed() 409 AgreeSharedSecretWithPeerPublicKey(const struct HksBlob *wrappingKey, const struct HksBlob *publicKey, uint32_t unwrapSuite, struct HksBlob *agreeSharedSecret, const struct HksParamSet *inParamSet) AgreeSharedSecretWithPeerPublicKey() argument 463 DecryptKekWithAgreeSharedSecret(const struct HksBlob *wrappedKeyData, const struct HksBlob *agreeSharedSecret, uint32_t *partOffset, struct HksBlob *outKekBlob) DecryptKekWithAgreeSharedSecret() argument 799 struct HksBlob agreeSharedSecret = { 0, NULL }; HksCoreImportWrappedKey() local [all...] |
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/ |
H A D | pake_protocol_ec_common.c | 101 res = params->loader->agreeSharedSecret(&eskSelfParams, &baseBuff, alg, ¶ms->epkSelf); in GenerateEcPakeParams() 133 res = params->loader->agreeSharedSecret(&eskSelfParams, &epkPeerBuff, alg, sharedSecret); in AgreeEcSharedSecret()
|
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
H A D | alg_defs.h | 168 AgreeSharedSecretFunc agreeSharedSecret; member
|
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/ |
H A D | ec_speke_protocol.c | 299 res = GetLoaderInstance()->agreeSharedSecret(&eskSelfParams, &baseBuff, algo, ¶ms->epkSelf); in EcSpekeCalEpkSelf() 330 int32_t res = GetLoaderInstance()->agreeSharedSecret(&eskSelfParams, &epkPeerBuff, algo, p); in CalP()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 2261 .agreeSharedSecret = AgreeSharedSecret,
|
Completed in 9 milliseconds