Home
last modified time | relevance | path

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

/system/core/trusty/keymaster/
Dtrusty_keymaster_device.cpp149 const keymaster_rsa_keygen_params_t* rsa_params = in generate_keypair() local
152 rsa_params->modulus_size, rsa_params->public_exponent); in generate_keypair()
153 req.key_description.push_back(TAG_KEY_SIZE, rsa_params->modulus_size); in generate_keypair()
154 req.key_description.push_back(TAG_RSA_PUBLIC_EXPONENT, rsa_params->public_exponent); in generate_keypair()
493 const keymaster_rsa_sign_params_t* rsa_params = in StoreSigningParams() local
495 if (rsa_params->digest_type != DIGEST_NONE) in StoreSigningParams()
497 if (rsa_params->padding_type != PADDING_NONE) in StoreSigningParams()
Dtrusty_keymaster_device_test.cpp116 keymaster_rsa_keygen_params_t rsa_params; in build_rsa_params() local
117 rsa_params.public_exponent = 65537; in build_rsa_params()
118 rsa_params.modulus_size = 2048; in build_rsa_params()
119 return rsa_params; in build_rsa_params()
/system/security/softkeymaster/
Dkeymaster_openssl.cpp325 static int generate_rsa_keypair(EVP_PKEY* pkey, const keymaster_rsa_keygen_params_t* rsa_params) { in generate_rsa_keypair() argument
332 if (BN_set_word(bn.get(), rsa_params->public_exponent) == 0) { in generate_rsa_keypair()
344 if (!RSA_generate_key_ex(rsa.get(), rsa_params->modulus_size, bn.get(), NULL) || in generate_rsa_keypair()
380 const keymaster_rsa_keygen_params_t* rsa_params = in openssl_generate_keypair() local
382 generate_rsa_keypair(pkey.get(), rsa_params); in openssl_generate_keypair()