Home
last modified time | relevance | path

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

/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
Drsa_asy_key_generator_openssl.c55 int32_t primes; member
70 if (params->primes != OPENSSL_RSA_PRIMES_SIZE_2) { in CheckRsaKeyGenParams()
71 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams()
78 … if (params->primes > OPENSSL_RSA_PRIMES_SIZE_3 || 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()
84 … if (params->primes > OPENSSL_RSA_PRIMES_SIZE_4 || params->primes < OPENSSL_RSA_PRIMES_SIZE_2) { in CheckRsaKeyGenParams()
85 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams()
490 LOGI("keygen bits is %d, primes is %d", params->bits, GetRealPrimes(params->primes)); in GenerateKeyPairByOpenssl()
491 if (GetRealPrimes(params->primes) != OPENSSL_RSA_KEYGEN_DEFAULT_PRIMES) { in GenerateKeyPairByOpenssl()
492 …if (RSA_generate_multi_prime_key(rsa, params->bits, GetRealPrimes(params->primes), params->pubExp,… in GenerateKeyPairByOpenssl()
[all …]
/base/security/crypto_framework/frameworks/key/
Dasy_key_generator.c69 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_2; in SetPrimes()
72 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_3; in SetPrimes()
75 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_4; in SetPrimes()
78 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_5; in SetPrimes()
81 params->primes = (int32_t)HCF_RSA_PRIMES_SIZE_2; // default primes is 2 in SetPrimes()
85 LOGD("Set primes:%d\n", params->primes); in SetPrimes()
/base/security/crypto_framework/common/inc/
Dparams_parser.h115 int32_t primes; // number of primes member