Home
last modified time | relevance | path

Searched refs:RSA (Results 1 – 25 of 25) sorted by relevance

/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
Drsa_openssl_common.h30 HcfResult DuplicateRsa(RSA *rsa, bool needPrivate, RSA **dupRsa);
32 EVP_PKEY *NewEvpPkeyByRsa(RSA *rsa, bool withDuplicate);
Dopenssl_adapter.h150 RSA *Openssl_RSA_new(void);
151 void Openssl_RSA_free(RSA *rsa);
152 int Openssl_RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,
154 int Openssl_RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
155 int Openssl_RSA_bits(const RSA *rsa);
156 int Openssl_RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
157 void Openssl_RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);
158 const BIGNUM *Openssl_RSA_get0_n(const RSA *d);
159 const BIGNUM *Openssl_RSA_get0_e(const RSA *d);
160 const BIGNUM *Openssl_RSA_get0_d(const RSA *d);
[all …]
Dopenssl_class.h61 RSA *pk;
70 RSA *sk;
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Drsa_openssl_common.c20 HcfResult DuplicateRsa(RSA *rsa, bool needPrivate, RSA **dupRsa) in DuplicateRsa()
22 RSA *retRSA = NULL; in DuplicateRsa()
41 EVP_PKEY *NewEvpPkeyByRsa(RSA *rsa, bool withDuplicate) in NewEvpPkeyByRsa()
Dopenssl_adapter.c534 RSA *Openssl_RSA_new(void) in Openssl_RSA_new()
539 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()
560 int Openssl_RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) in Openssl_RSA_set0_key()
565 void Openssl_RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) in Openssl_RSA_get0_key()
570 const BIGNUM *Openssl_RSA_get0_n(const RSA *d) in Openssl_RSA_get0_n()
575 const BIGNUM *Openssl_RSA_get0_e(const RSA *d) in Openssl_RSA_get0_e()
580 const BIGNUM *Openssl_RSA_get0_d(const RSA *d) in Openssl_RSA_get0_d()
[all …]
/base/security/certificate_framework/frameworks/adapter/v1.0/inc/
Dcertificate_openssl_class.h37 RSA *pk;
46 RSA *sk;
/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()
328 RSA *tempRsa = Openssl_d2i_RSA_PUBKEY(NULL, (const unsigned char **)&temp, x509Blob->len); in ConvertPubKeyFromX509()
337 static HcfResult ConvertPriKeyFromPKCS8(HcfBlob *pkcs8Blob, RSA **rsa) in ConvertPriKeyFromPKCS8()
346 RSA *tmpRsa = Openssl_EVP_PKEY_get1_RSA(pKey); in ConvertPriKeyFromPKCS8()
358 static HcfResult EncodePubKeyToX509(RSA *rsa, HcfBlob *returnBlob) in EncodePubKeyToX509()
372 static HcfResult EncodePriKeyToPKCS8(RSA *rsa, HcfBlob *returnBlob) in EncodePriKeyToPKCS8()
504 static HcfResult PackPubKey(RSA *rsaPubKey, HcfOpensslRsaPubKey **retPubKey) in PackPubKey()
529 static HcfResult PackPriKey(RSA *rsaPriKey, HcfOpensslRsaPriKey **retPriKey) in PackPriKey()
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()
[all …]
/base/update/updater/test/unittest/test_data/src/
Drsa_private_key2048.pem1 -----BEGIN RSA PRIVATE KEY-----
27 -----END RSA PRIVATE KEY-----
Drsa_private_key384.pem1 -----BEGIN RSA PRIVATE KEY-----
39 -----END RSA PRIVATE KEY-----
/base/update/updater/test/fuzztest/fuzz_src_data/
Drsa_private_key2048.pem1 -----BEGIN RSA PRIVATE KEY-----
27 -----END RSA PRIVATE KEY-----
/base/security/crypto_framework/test/unittest/src/
Dopenssl_adapter_mock.c849 RSA *Openssl_RSA_new(void) in Openssl_RSA_new()
854 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()
875 int Openssl_RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) in Openssl_RSA_set0_key()
880 void Openssl_RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) in Openssl_RSA_get0_key()
885 const BIGNUM *Openssl_RSA_get0_n(const RSA *d) in Openssl_RSA_get0_n()
890 const BIGNUM *Openssl_RSA_get0_e(const RSA *d) in Openssl_RSA_get0_e()
895 const BIGNUM *Openssl_RSA_get0_d(const RSA *d) in Openssl_RSA_get0_d()
[all …]
Dcrypto_common_cov_test.cpp235 RSA *rsa = Openssl_RSA_new();
/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()
133 const RSA *rsa = EVP_PKEY_get0_RSA(pkey); in X509ToRsaPublicKey()
163 static RSA *InitRsa(struct HksBlob *key, const bool needPrivateExponent) in InitRsa()
192 RSA *rsa = RSA_new(); in InitRsa()
239 RSA *rsa = InitRsa(key, false); in EncryptRsa()
287 RSA *rsa = InitRsa(key, true); in DecryptRsa()
342 RSA *rsa = InitRsa(key, true); in InitRsaCtx()
425 RSA *rsa = InitRsa(key, true); in OpensslSignRsa()
488 RSA *rsa = InitRsa(key, false); in OpensslVerifyRsa()
/base/update/packaging_tools/
DREADME_zh.md75 -sa {ECC,RSA}, --signing_algorithm {ECC,RSA} The signing algorithm supported by the to…
DREADME.md63 -sa {ECC,RSA}, --signing_algorithm {ECC,RSA} Signing algorithms supported by the tool,…
Dupdate_package.py57 RSA = 1 variable in SignMethod
234 head_list.sign_method = SignMethod.RSA.value
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_rsa.c100 static RSA *InitRsaStruct(const struct HksBlob *key, const bool needPrivateExponent) in InitRsaStruct()
127 RSA *rsa = NULL; in InitRsaStruct()
156 static int32_t RsaSaveKeyMaterial(const RSA *rsa, const uint32_t keySize, struct HksBlob *key) in RsaSaveKeyMaterial()
207 RSA *rsa = RSA_new(); in HksOpensslRsaGenerateKey()
288 RSA *rsa = InitRsaStruct(key, !encrypt); in InitEvpPkeyCtx()
455 RSA *rsa = InitRsaStruct(key, signing); in InitRsaEvpKey()
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_sign.h39 RSA *rsa;
Dpkg_algo_sign.cpp54 RSA *rsa = PEM_read_bio_RSAPrivateKey(in, nullptr, nullptr, nullptr); in SignBuffer()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_rsa_openssl.c66 static HcfResult DuplicateRsaFromKey(HcfKey *key, enum HcfCryptoMode opMode, RSA **dupRsa) in DuplicateRsaFromKey()
79 RSA *tmp = Openssl_RSA_new(); in DuplicateRsaFromKey()
117 RSA *rsa = NULL; in InitEvpPkeyCtx()
/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()
/base/security/certificate_framework/test/fuzztest/v1.0/x509crl_fuzzer/
Dx509crl_fuzzer.cpp111 RSA *rsaPrikey = (reinterpret_cast<HcfOpensslRsaPriKey *>(g_keyPair->priKey))->sk; in GetCrlStream()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/
Dsignature_rsa_openssl.c137 RSA *rsa = NULL; in InitRsaEvpKey()
140 RSA *tmp = Openssl_RSA_new(); in InitRsaEvpKey()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter.c82 RSA *rsa = NULL; in RsaToX509PublicKey()
580 const RSA *rsa = EVP_PKEY_get0_RSA(pkey); in X509PublicKeyToRsa()
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
Dx509_crl_openssl.c164 RSA *rsaPubkey = ((HcfOpensslRsaPubKey *)key)->pk; in Verify()