Home
last modified time | relevance | path

Searched refs:returnSecret (Results 1 - 10 of 10) sorted by relevance

/base/security/crypto_framework/frameworks/cj/src/
H A Dkey_agreement_impl.cpp38 HcfBlob returnSecret = { .data = nullptr, .len = 0 }; in GenerateSecret() local
41 return returnSecret; in GenerateSecret()
43 *errCode = this->keyAgreement_->generateSecret(keyAgreement_, priKey, pubKey, &returnSecret); in GenerateSecret()
44 return returnSecret; in GenerateSecret()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/key_agreement/src/
H A Dx25519_openssl.c52 HcfPubKey *pubKey, HcfBlob *returnSecret) in EngineGenerateSecret()
54 if ((self == NULL) || (priKey == NULL) || (pubKey == NULL) || (returnSecret == NULL)) { in EngineGenerateSecret()
75 HcfResult res = KeyDerive(priPKey, pubPKey, returnSecret); in EngineGenerateSecret()
51 EngineGenerateSecret(HcfKeyAgreementSpi *self, HcfPriKey *priKey, HcfPubKey *pubKey, HcfBlob *returnSecret) EngineGenerateSecret() argument
H A Ddh_openssl.c53 HcfPubKey *pubKey, HcfBlob *returnSecret) in EngineGenerateSecret()
55 if ((self == NULL) || (priKey == NULL) || (pubKey == NULL) || (returnSecret == NULL)) { in EngineGenerateSecret()
76 HcfResult res = KeyDerive(priPKey, pubPKey, returnSecret); in EngineGenerateSecret()
52 EngineGenerateSecret(HcfKeyAgreementSpi *self, HcfPriKey *priKey, HcfPubKey *pubKey, HcfBlob *returnSecret) EngineGenerateSecret() argument
H A Decdh_openssl.c91 HcfPubKey *pubKey, HcfBlob *returnSecret) in EngineGenerateSecret()
93 if ((self == NULL) || (priKey == NULL) || (pubKey == NULL) || (returnSecret == NULL)) { in EngineGenerateSecret()
115 HcfResult res = KeyDerive(priPKey, pubPKey, returnSecret); in EngineGenerateSecret()
90 EngineGenerateSecret(HcfKeyAgreementSpi *self, HcfPriKey *priKey, HcfPubKey *pubKey, HcfBlob *returnSecret) EngineGenerateSecret() argument
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_key_agreement.cpp47 HcfBlob returnSecret { .data = nullptr, .len = 0 };
83 if (ctx->returnSecret.data != nullptr) { in FreeKeyAgreementCtx()
84 HcfFree(ctx->returnSecret.data); in FreeKeyAgreementCtx()
85 ctx->returnSecret.data = nullptr; in FreeKeyAgreementCtx()
86 ctx->returnSecret.len = 0; in FreeKeyAgreementCtx()
198 ctx->priKey, ctx->pubKey, &ctx->returnSecret); in KeyAgreementAsyncWorkProcess()
211 dataBlob = ConvertBlobToNapiValue(env, &ctx->returnSecret); in KeyAgreementAsyncWorkReturn()
341 HcfBlob returnSecret = { .data = nullptr, .len = 0 }; in JsGenerateSecretSync() local
342 ret = keyAgreement->generateSecret(keyAgreement, priKey, pubKey, &returnSecret); in JsGenerateSecretSync()
350 ret = ConvertDataBlobToNapiValue(env, &returnSecret, in JsGenerateSecretSync()
[all...]
/base/security/crypto_framework/frameworks/spi/
H A Dkey_agreement_spi.h30 HcfPubKey *pubKey, HcfBlob *returnSecret);
/base/security/crypto_framework/interfaces/inner_api/crypto_operation/
H A Dkey_agreement.h30 HcfPubKey *pubKey, HcfBlob *returnSecret);
/base/security/crypto_framework/frameworks/crypto_operation/
H A Dkey_agreement.c168 HcfPubKey *pubKey, HcfBlob *returnSecret) in GenerateSecret()
179 ((HcfKeyAgreementImpl *)self)->spiObj, priKey, pubKey, returnSecret); in GenerateSecret()
167 GenerateSecret(HcfKeyAgreement *self, HcfPriKey *priKey, HcfPubKey *pubKey, HcfBlob *returnSecret) GenerateSecret() argument
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Dopenssl_common.h67 HcfResult KeyDerive(EVP_PKEY *priKey, EVP_PKEY *pubKey, HcfBlob *returnSecret);
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
H A Dopenssl_common.c486 HcfResult KeyDerive(EVP_PKEY *priKey, EVP_PKEY *pubKey, HcfBlob *returnSecret) in KeyDerive() argument
526 returnSecret->data = secretData; in KeyDerive()
527 returnSecret->len = maxLen; in KeyDerive()

Completed in 6 milliseconds