Home
last modified time | relevance | path

Searched refs:peerPubKey (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/base/security/huks/test/unittest/huks_common_test/include/
H A Dhks_test_aes_c.h51 void PlainPubKey(const struct HksBlob *baseKey, const struct HksBlob *peerPubKey,
54 void SetKeyAliasTrue(const struct HksBlob *baseKey, const struct HksBlob *peerPubKey,
57 void SetKeyAliasWrong(const struct HksBlob *baseKey, const struct HksBlob *peerPubKey,
61 const struct HksBlob *peerPubKey, bool isPlainPubKey, bool isSetKeyAliasTrue);
/ohos5.0/base/security/huks/test/unittest/huks_common_test/src/
H A Dhks_test_aes_func.cpp185 void PlainPubKey(const struct HksBlob *baseKey, const struct HksBlob *peerPubKey, in PlainPubKey() argument
191 .blob = *peerPubKey }, in PlainPubKey()
201 void SetKeyAliasTrue(const struct HksBlob *baseKey, const struct HksBlob *peerPubKey, in SetKeyAliasTrue() argument
209 .blob = *peerPubKey }, in SetKeyAliasTrue()
217 void SetKeyAliasWrong(const struct HksBlob *baseKey, const struct HksBlob *peerPubKey, in SetKeyAliasWrong() argument
223 .blob = *peerPubKey }, in SetKeyAliasWrong()
232 const struct HksBlob *peerPubKey, bool isPlainPubKey, bool isSetKeyAliasTrue) in GenerateAesAgreeKey() argument
239 PlainPubKey(baseKey, peerPubKey, paramSet); in GenerateAesAgreeKey()
242 SetKeyAliasTrue(baseKey, peerPubKey, paramSet); in GenerateAesAgreeKey()
244 SetKeyAliasWrong(baseKey, peerPubKey, paramSet); in GenerateAesAgreeKey()
/ohos5.0/foundation/communication/dsoftbus/core/adapter/huks/src/
H A Dsoftbus_rsa_encrypt.c288 RSA *peerPubKey = NULL; in SoftBusRsaEncrypt() local
289 if (DataToPublicKey(publicKey->key, publicKey->len, &peerPubKey) != SOFTBUS_OK) { in SoftBusRsaEncrypt()
297 RSA_free(peerPubKey); in SoftBusRsaEncrypt()
300 …if (EncryptByPublicKey(srcData, srcDataLen, peerPubKey, cipherText, cipherTextLen) != SOFTBUS_OK) { in SoftBusRsaEncrypt()
302 RSA_free(peerPubKey); in SoftBusRsaEncrypt()
311 RSA_free(peerPubKey); in SoftBusRsaEncrypt()
318 RSA_free(peerPubKey); in SoftBusRsaEncrypt()
324 RSA_free(peerPubKey); in SoftBusRsaEncrypt()
/ohos5.0/base/security/device_auth/services/mk_agree/src/mock/
H A Dkey_manager_mock.c25 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument
29 (void)peerPubKey; in GenerateMk()
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dverifier_func.c40 Buffer *peerPubKey; member
112 DestroyBuffer(g_verifierSchedule->peerPubKey); in DestroyVerifierSchedule()
147 g_verifierSchedule->peerPubKey = GetBufferFromAttribute( in GetAuthInfoFromSchedule()
149 if (g_verifierSchedule->peerPubKey == NULL) { in GetAuthInfoFromSchedule()
358 &dataIn, g_verifierSchedule->peerPubKey, verifierMsg->msgIn, verifierMsg->msgInSize); in DoHandleCollectorSync()
493 &dataIn, g_verifierSchedule->peerPubKey, verifierMsg->msgIn, verifierMsg->msgInSize); in DoHandleCollectorAck()
H A Dcollector_func.c37 Buffer *peerPubKey; member
110 DestroyBuffer(g_collectorSchedule->peerPubKey); in DestroyCollectorSchedule()
134 g_collectorSchedule->peerPubKey = GetBufferFromAttribute( in GetCollectInfoFromSchedule()
136 if (g_collectorSchedule->peerPubKey == NULL) { in GetCollectInfoFromSchedule()
274 …int32_t result = VerifyAndGetDataAttribute(scheduleId, &data, g_collectorSchedule->peerPubKey, msg… in DoSendMessageToCollector()
/ohos5.0/base/security/device_auth/services/mk_agree/src/
H A Dkey_manager.c194 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument
196 if (peerDeviceId == NULL || peerPubKey == NULL) { in GenerateMk()
215 KeyBuff peerKeyBuff = { peerPubKey->val, peerPubKey->length, false }; in GenerateMk()
/ohos5.0/base/security/device_auth/services/mk_agree/inc/
H A Dkey_manager.h31 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey);
/ohos5.0/docs/zh-cn/application-dev/security/UniversalKeystoreKit/
H A Dhuks-key-agreement-arkts.md464 peerPubKey: huks.HuksReturnResult): Promise<huks.HuksReturnResult> {
472 inData: peerPubKey.outData
489 async function HuksDhAgreeInHuks(keyAlias: string, peerPubKey: huks.HuksReturnResult,
518 inData: peerPubKey.outData
/ohos5.0/docs/en/application-dev/security/UniversalKeystoreKit/
H A Dhuks-key-agreement-arkts.md464 peerPubKey: huks.HuksReturnResult): Promise<huks.HuksReturnResult> {
472 inData: peerPubKey.outData
489 async function HuksDhAgreeInHuks(keyAlias: string, peerPubKey: huks.HuksReturnResult,
518 inData: peerPubKey.outData
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_import_agree_test.cpp1049 static int32_t TestAgree(const struct HksBlob *keyAlias, const struct HksBlob *peerPubKey, struct H… in TestAgree() argument
1068 ret = HksUpdateForDe(&handle, updateParamSet, peerPubKey, &tmpBlob); in TestAgree()