Home
last modified time | relevance | path

Searched refs:rsa_params (Results 1 – 2 of 2) sorted by relevance

/system/security/softkeymaster/
Dkeymaster_openssl.cpp331 static int generate_rsa_keypair(EVP_PKEY* pkey, const keymaster_rsa_keygen_params_t* rsa_params) { in generate_rsa_keypair() argument
338 if (BN_set_word(bn.get(), rsa_params->public_exponent) == 0) { in generate_rsa_keypair()
350 if (!RSA_generate_key_ex(rsa.get(), rsa_params->modulus_size, bn.get(), NULL) || in generate_rsa_keypair()
386 const keymaster_rsa_keygen_params_t* rsa_params = in openssl_generate_keypair() local
388 generate_rsa_keypair(pkey.get(), rsa_params); in openssl_generate_keypair()
/system/keymaster/
Dsoft_keymaster_device.cpp195 const keymaster_rsa_keygen_params_t* rsa_params = in generate_keypair() local
198 rsa_params->modulus_size, rsa_params->public_exponent); in generate_keypair()
199 req.key_description.push_back(TAG_KEY_SIZE, rsa_params->modulus_size); in generate_keypair()
200 req.key_description.push_back(TAG_RSA_PUBLIC_EXPONENT, rsa_params->public_exponent); in generate_keypair()