/base/security/crypto_framework/test/unittest/src/ |
D | crypto_rsa_asy_key_generator_by_spec_cov_test.cpp | 170 .primes = 0, 188 .primes = 0, 206 .primes = 0, 234 .primes = 0, 262 .primes = 0, 289 .primes = 0, 310 .primes = 0, 328 .primes = 0, 346 .primes = 0, 374 .primes = 0, [all …]
|
D | crypto_rsa_asy_key_generator_test.cpp | 1260 .primes = 0, 1274 .primes = 0, 1289 .primes = OPENSSL_RSA_PRIMES_ABNORMAL, 1304 .primes = OPENSSL_RSA_PRIMES_ABNORMAL, 1320 .primes = 0, 1340 .primes = 0, 1360 .primes = 0, 1378 .primes = 0, 1397 .primes = 0, 1417 .primes = 0, [all …]
|
D | crypto_ecc_asy_key_generator_test.cpp | 2063 .primes = HCF_OPENSSL_PRIMES_2, 2076 .primes = HCF_OPENSSL_PRIMES_2, 2091 .primes = HCF_OPENSSL_PRIMES_2, 2112 .primes = HCF_OPENSSL_PRIMES_2, 2133 .primes = HCF_OPENSSL_PRIMES_2, 2152 .primes = HCF_OPENSSL_PRIMES_2,
|
D | openssl_adapter_mock.c | 859 int Openssl_RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, in Openssl_RSA_generate_multi_prime_key() argument 862 return RSA_generate_multi_prime_key(rsa, bits, primes, e, cb); in Openssl_RSA_generate_multi_prime_key()
|
D | crypto_sm2_asy_key_generator_test.cpp | 1470 .primes = HCF_OPENSSL_PRIMES_2, 1483 .primes = HCF_OPENSSL_PRIMES_2, 1498 .primes = HCF_OPENSSL_PRIMES_2, 1519 .primes = HCF_OPENSSL_PRIMES_2,
|
D | crypto_dsa_exception_test.cpp | 378 .primes = HCF_OPENSSL_PRIMES_2
|
D | crypto_ecc_asy_key_generator_by_spec_test.cpp | 7848 .primes = HCF_OPENSSL_PRIMES_2, 7865 .primes = HCF_OPENSSL_PRIMES_2, 7880 .primes = HCF_OPENSSL_PRIMES_2, 7906 .primes = HCF_OPENSSL_PRIMES_2, 7932 .primes = HCF_OPENSSL_PRIMES_2, 7958 .primes = HCF_OPENSSL_PRIMES_2, 7984 .primes = HCF_OPENSSL_PRIMES_2, 8003 .primes = HCF_OPENSSL_PRIMES_2,
|
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
D | rsa_asy_key_generator_openssl.c | 61 int32_t primes; member 78 if (params->primes != OPENSSL_RSA_PRIMES_SIZE_2) { in CheckRsaKeyGenParams() 79 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams() 86 … if (params->primes > OPENSSL_RSA_PRIMES_SIZE_3 || params->primes < OPENSSL_RSA_PRIMES_SIZE_2) { in CheckRsaKeyGenParams() 87 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams() 92 … if (params->primes > OPENSSL_RSA_PRIMES_SIZE_4 || params->primes < OPENSSL_RSA_PRIMES_SIZE_2) { in CheckRsaKeyGenParams() 93 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams() 633 LOGD("keygen bits is %d, primes is %d", params->bits, GetRealPrimes(params->primes)); in GenerateKeyPair() 634 if (GetRealPrimes(params->primes) != OPENSSL_RSA_KEYGEN_DEFAULT_PRIMES) { in GenerateKeyPair() 635 …if (RSA_generate_multi_prime_key(rsa, params->bits, GetRealPrimes(params->primes), params->pubExp,… in GenerateKeyPair() [all …]
|
/base/security/crypto_framework/common/inc/ |
D | params_parser.h | 147 int32_t primes; // number of primes member
|
/base/security/crypto_framework/frameworks/key/ |
D | asy_key_generator.c | 354 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_2; in SetPrimes() 357 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_3; in SetPrimes() 360 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_4; in SetPrimes() 363 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_5; in SetPrimes() 366 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_2; // default primes is 2 in SetPrimes() 370 LOGD("Set primes:%d!", params->primes); in SetPrimes()
|
/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
D | openssl_adapter.c | 544 int Openssl_RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, in Openssl_RSA_generate_multi_prime_key() argument 547 return RSA_generate_multi_prime_key(rsa, bits, primes, e, cb); in Openssl_RSA_generate_multi_prime_key()
|
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/ |
D | openssl_adapter.h | 152 int Openssl_RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,
|