/base/security/crypto_framework/frameworks/cj/src/ |
H A D | key_agreement_impl.cpp | 38 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 D | x25519_openssl.c | 52 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 D | dh_openssl.c | 53 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 D | ecdh_openssl.c | 91 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 D | napi_key_agreement.cpp | 47 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 D | key_agreement_spi.h | 30 HcfPubKey *pubKey, HcfBlob *returnSecret);
|
/base/security/crypto_framework/interfaces/inner_api/crypto_operation/ |
H A D | key_agreement.h | 30 HcfPubKey *pubKey, HcfBlob *returnSecret);
|
/base/security/crypto_framework/frameworks/crypto_operation/ |
H A D | key_agreement.c | 168 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 D | openssl_common.h | 67 HcfResult KeyDerive(EVP_PKEY *priKey, EVP_PKEY *pubKey, HcfBlob *returnSecret);
|
/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
H A D | openssl_common.c | 486 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()
|