Home
last modified time | relevance | path

Searched refs:primes (Results 1 – 12 of 12) sorted by relevance

/base/security/crypto_framework/test/unittest/src/
Dcrypto_rsa_asy_key_generator_by_spec_cov_test.cpp170 .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 …]
Dcrypto_rsa_asy_key_generator_test.cpp1260 .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 …]
Dcrypto_ecc_asy_key_generator_test.cpp2063 .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,
Dopenssl_adapter_mock.c859 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()
Dcrypto_sm2_asy_key_generator_test.cpp1470 .primes = HCF_OPENSSL_PRIMES_2,
1483 .primes = HCF_OPENSSL_PRIMES_2,
1498 .primes = HCF_OPENSSL_PRIMES_2,
1519 .primes = HCF_OPENSSL_PRIMES_2,
Dcrypto_dsa_exception_test.cpp378 .primes = HCF_OPENSSL_PRIMES_2
Dcrypto_ecc_asy_key_generator_by_spec_test.cpp7848 .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/
Drsa_asy_key_generator_openssl.c61 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/
Dparams_parser.h147 int32_t primes; // number of primes member
/base/security/crypto_framework/frameworks/key/
Dasy_key_generator.c354 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/
Dopenssl_adapter.c544 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/
Dopenssl_adapter.h152 int Openssl_RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,