Home
last modified time | relevance | path

Searched defs:rsa (Results 1 – 17 of 17) sorted by relevance

/base/update/sys_installer_lite/frameworks/source/verify/
Dapp_rsa.c22 void AppRsaInit(AppRsaContext *rsa) in AppRsaInit()
31 int32 AppRsaDecodePublicKey(AppRsaContext *rsa, const uint8 *publicKey, uint32 length) in AppRsaDecodePublicKey()
45 int32 AppVerifyData(AppRsaContext *rsa, const uint8 *plainBuf, uint32 plainBufLen, const uint8 *cip… in AppVerifyData()
71 void AppRsaFree(AppRsaContext *rsa) in AppRsaFree()
Dhota_verify.c105 AppRsaContext rsa; in HotaSignVerifyByHash() local
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Drsa_openssl_common.c20 HcfResult DuplicateRsa(RSA *rsa, bool needPrivate, RSA **dupRsa) in DuplicateRsa()
41 EVP_PKEY *NewEvpPkeyByRsa(RSA *rsa, bool withDuplicate) in NewEvpPkeyByRsa()
Dopenssl_adapter.c539 void Openssl_RSA_free(RSA *rsa) in Openssl_RSA_free()
544 int Openssl_RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, in Openssl_RSA_generate_multi_prime_key()
550 int Openssl_RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb) in Openssl_RSA_generate_key_ex()
555 int Openssl_RSA_bits(const RSA *rsa) in Openssl_RSA_bits()
590 RSA *Openssl_RSAPublicKey_dup(RSA *rsa) in Openssl_RSAPublicKey_dup()
595 RSA *Openssl_RSAPrivateKey_dup(RSA *rsa) in Openssl_RSAPrivateKey_dup()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_rsa_helper.c75 RSA *rsa = RSA_new(); in GenerateRsaKey() local
133 const RSA *rsa = EVP_PKEY_get0_RSA(pkey); in X509ToRsaPublicKey() local
192 RSA *rsa = RSA_new(); in InitRsa() local
239 RSA *rsa = InitRsa(key, false); in EncryptRsa() local
287 RSA *rsa = InitRsa(key, true); in DecryptRsa() local
342 RSA *rsa = InitRsa(key, true); in InitRsaCtx() local
425 RSA *rsa = InitRsa(key, true); in OpensslSignRsa() local
488 RSA *rsa = InitRsa(key, false); in OpensslVerifyRsa() local
/base/security/huks/frameworks/crypto_lite/cipher/src/
Dcipher_rsa.c131 mbedtls_rsa_context *rsa = NULL; in RsaLoadPrivateKey() local
179 mbedtls_rsa_context *rsa = NULL; in RsaLoadPublicKey() local
260 static int32_t RsaEncryptMultipleBlock(mbedtls_rsa_context *rsa, const char *plainText, in RsaEncryptMultipleBlock()
333 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(pk); in RsaEncrypt() local
383 static int32_t RsaPkcs1Decrypt(mbedtls_rsa_context *rsa, size_t rsaLen, RsaData *cipher, RsaData *p… in RsaPkcs1Decrypt()
456 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(pk); in RsaDecrypt() local
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
Drsa_asy_key_generator_openssl.c325 static HcfResult ConvertPubKeyFromX509(HcfBlob *x509Blob, RSA **rsa) in ConvertPubKeyFromX509()
337 static HcfResult ConvertPriKeyFromPKCS8(HcfBlob *pkcs8Blob, RSA **rsa) in ConvertPriKeyFromPKCS8()
358 static HcfResult EncodePubKeyToX509(RSA *rsa, HcfBlob *returnBlob) in EncodePubKeyToX509()
372 static HcfResult EncodePriKeyToPKCS8(RSA *rsa, HcfBlob *returnBlob) in EncodePriKeyToPKCS8()
554 static HcfResult DuplicatePkAndSkFromRSA(RSA *rsa, RSA **pubKey, RSA **priKey) in DuplicatePkAndSkFromRSA()
573 static HcfResult PackKeyPair(RSA *rsa, uint32_t realBits, HcfOpensslRsaKeyPair **retKeyPair) in PackKeyPair()
628 RSA *rsa = Openssl_RSA_new(); in GenerateKeyPair() local
835 RSA *rsa = NULL; in InitRsaStructByBin() local
867 RSA *rsa = InitRsaStructByBin(paramsSpec); in GenerateKeyPairBySpec() local
919 RSA *rsa = InitRsaStructByBin(paramsSpec); in GeneratePubKeyBySpec() local
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_rsa.c127 RSA *rsa = NULL; in InitRsaStruct() local
156 static int32_t RsaSaveKeyMaterial(const RSA *rsa, const uint32_t keySize, struct HksBlob *key) in RsaSaveKeyMaterial()
455 RSA *rsa = InitRsaStruct(key, signing); in InitRsaEvpKey() local
/base/update/sys_installer_lite/frameworks/test/unittest/common/src/
Dota_test.cpp415 AppRsaContext rsa; variable
432 AppRsaContext rsa; variable
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_sign.cpp54 RSA *rsa = PEM_read_bio_RSAPrivateKey(in, nullptr, nullptr, nullptr); in SignBuffer() local
Dpkg_algo_sign.h39 RSA *rsa; member
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_app_cert_process.c134 static int32_t SaveKeyMaterialRsa(const RSA *rsa, const uint32_t keySize, struct CmBlob *keyOut) in SaveKeyMaterialRsa()
233 const RSA *rsa = EVP_PKEY_get0_RSA((EVP_PKEY *)priKey); in ImportRsaKey() local
/base/security/crypto_framework/test/unittest/src/
Dopenssl_adapter_mock.c854 void Openssl_RSA_free(RSA *rsa) in Openssl_RSA_free()
859 int Openssl_RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, in Openssl_RSA_generate_multi_prime_key()
865 int Openssl_RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb) in Openssl_RSA_generate_key_ex()
870 int Openssl_RSA_bits(const RSA *rsa) in Openssl_RSA_bits()
905 RSA *Openssl_RSAPublicKey_dup(RSA *rsa) in Openssl_RSAPublicKey_dup()
910 RSA *Openssl_RSAPrivateKey_dup(RSA *rsa) in Openssl_RSAPrivateKey_dup()
Dcrypto_common_cov_test.cpp235 RSA *rsa = Openssl_RSA_new(); variable
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter.c82 RSA *rsa = NULL; in RsaToX509PublicKey() local
564 const RSA *rsa = EVP_PKEY_get0_RSA(pkey); in X509PublicKeyToRsa() local
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_rsa_openssl.c117 RSA *rsa = NULL; in InitEvpPkeyCtx() local
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/
Dsignature_rsa_openssl.c137 RSA *rsa = NULL; in InitRsaEvpKey() local