/base/security/crypto_framework/plugin/openssl_plugin/common/inc/ |
D | rsa_openssl_common.h | 30 HcfResult DuplicateRsa(RSA *rsa, bool needPrivate, RSA **dupRsa); 32 EVP_PKEY *NewEvpPkeyByRsa(RSA *rsa, bool withDuplicate);
|
D | openssl_adapter.h | 150 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 …]
|
D | openssl_class.h | 61 RSA *pk; 70 RSA *sk;
|
/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
D | rsa_openssl_common.c | 20 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()
|
D | openssl_adapter.c | 534 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/ |
D | certificate_openssl_class.h | 37 RSA *pk; 46 RSA *sk;
|
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
D | rsa_asy_key_generator_openssl.c | 325 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/ |
D | rsa_private_key2048.pem | 1 -----BEGIN RSA PRIVATE KEY----- 27 -----END RSA PRIVATE KEY-----
|
D | rsa_private_key384.pem | 1 -----BEGIN RSA PRIVATE KEY----- 39 -----END RSA PRIVATE KEY-----
|
/base/update/updater/test/fuzztest/fuzz_src_data/ |
D | rsa_private_key2048.pem | 1 -----BEGIN RSA PRIVATE KEY----- 27 -----END RSA PRIVATE KEY-----
|
/base/security/crypto_framework/test/unittest/src/ |
D | openssl_adapter_mock.c | 849 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 …]
|
D | crypto_common_cov_test.cpp | 235 RSA *rsa = Openssl_RSA_new();
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | openssl_rsa_helper.c | 75 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/ |
D | README_zh.md | 75 -sa {ECC,RSA}, --signing_algorithm {ECC,RSA} The signing algorithm supported by the to…
|
D | README.md | 63 -sa {ECC,RSA}, --signing_algorithm {ECC,RSA} Signing algorithms supported by the tool,…
|
D | update_package.py | 57 RSA = 1 variable in SignMethod 234 head_list.sign_method = SignMethod.RSA.value
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_rsa.c | 100 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/ |
D | pkg_algo_sign.h | 39 RSA *rsa;
|
D | pkg_algo_sign.cpp | 54 RSA *rsa = PEM_read_bio_RSAPrivateKey(in, nullptr, nullptr, nullptr); in SignBuffer()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
D | cipher_rsa_openssl.c | 66 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/ |
D | cert_manager_app_cert_process.c | 134 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/ |
D | x509crl_fuzzer.cpp | 111 RSA *rsaPrikey = (reinterpret_cast<HcfOpensslRsaPriKey *>(g_keyPair->priKey))->sk; in GetCrlStream()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/ |
D | signature_rsa_openssl.c | 137 RSA *rsa = NULL; in InitRsaEvpKey() 140 RSA *tmp = Openssl_RSA_new(); in InitRsaEvpKey()
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter.c | 82 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/ |
D | x509_crl_openssl.c | 164 RSA *rsaPubkey = ((HcfOpensslRsaPubKey *)key)->pk; in Verify()
|