Home
last modified time | relevance | path

Searched refs:public_exponent (Results 1 – 15 of 15) sorted by relevance

/system/keymaster/
Drsa_key_factory.cpp61 uint64_t public_exponent; in GenerateKey() local
62 if (!authorizations.GetTagValue(TAG_RSA_PUBLIC_EXPONENT, &public_exponent)) { in GenerateKey()
83 if (!BN_set_word(exponent.get(), public_exponent) || in GenerateKey()
109 uint64_t public_exponent; in ImportKey() local
113 &authorizations, &public_exponent, &key_size); in ImportKey()
124 uint64_t* public_exponent, in UpdateImportKeyDescription() argument
126 if (!updated_description || !public_exponent || !key_size) in UpdateImportKeyDescription()
141 *public_exponent = BN_get_word(rsa_key->e); in UpdateImportKeyDescription()
142 if (*public_exponent == 0xffffffffL) in UpdateImportKeyDescription()
144 if (!updated_description->GetTagValue(TAG_RSA_PUBLIC_EXPONENT, public_exponent)) in UpdateImportKeyDescription()
[all …]
Drsa_keymaster0_key.cpp43 uint64_t public_exponent; in GenerateKey() local
44 if (!key_description.GetTagValue(TAG_RSA_PUBLIC_EXPONENT, &public_exponent)) { in GenerateKey()
56 if (!engine_->GenerateRsaKey(public_exponent, key_size, &key_material)) in GenerateKey()
62 hw_enforced->push_back(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in GenerateKey()
78 uint64_t public_exponent; in ImportKey() local
82 &authorizations, &public_exponent, &key_size); in ImportKey()
93 hw_enforced->push_back(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in ImportKey()
Dkeymaster0_engine.cpp97 bool Keymaster0Engine::GenerateRsaKey(uint64_t public_exponent, uint32_t public_modulus, in GenerateRsaKey() argument
101 params.public_exponent = public_exponent; in GenerateRsaKey()
Dkeymaster0_engine.h47 bool GenerateRsaKey(uint64_t public_exponent, uint32_t public_modulus,
Dsoft_keymaster_context.cpp929 uint64_t public_exponent = BN_get_word(rsa->e); in FakeKeyAuthorizations() local
930 if (public_exponent == 0xffffffffL) in FakeKeyAuthorizations()
932 hw_enforced->push_back(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in FakeKeyAuthorizations()
/system/keymaster/include/keymaster/
Dauthorization_set.h502 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
507 AuthorizationSetBuilder& RsaSigningKey(uint32_t key_size, uint64_t public_exponent);
508 AuthorizationSetBuilder& RsaEncryptionKey(uint32_t key_size, uint64_t public_exponent);
538 uint64_t public_exponent) { in RsaKey() argument
541 Authorization(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in RsaKey()
563 uint64_t public_exponent) { in RsaSigningKey() argument
564 RsaKey(key_size, public_exponent); in RsaSigningKey()
569 AuthorizationSetBuilder::RsaEncryptionKey(uint32_t key_size, uint64_t public_exponent) { in RsaEncryptionKey() argument
570 RsaKey(key_size, public_exponent); in RsaEncryptionKey()
Drsa_key_factory.h54 uint64_t* public_exponent,
/system/tpm/trunks/
Dtpm_utility.h181 uint32_t public_exponent,
204 uint32_t public_exponent,
Dtpm_utility_impl.h92 uint32_t public_exponent,
99 uint32_t public_exponent,
Dtrunks_factory_for_test.cc243 uint32_t public_exponent, in ImportRSAKey() argument
248 return target_->ImportRSAKey(key_type, modulus, public_exponent, in ImportRSAKey()
254 uint32_t public_exponent, in CreateRSAKeyPair() argument
262 return target_->CreateRSAKeyPair(key_type, modulus_bits, public_exponent, in CreateRSAKeyPair()
Dtpm_utility_test.cc1237 uint32_t public_exponent = 0x10001; in TEST_F() local
1253 public_exponent, in TEST_F()
1262 public_exponent); in TEST_F()
1302 uint32_t public_exponent = 0x10001; in TEST_F() local
1309 public_exponent, in TEST_F()
1317 uint32_t public_exponent = 0x10001; in TEST_F() local
1326 public_exponent, in TEST_F()
Dtpm_utility_impl.cc773 uint32_t public_exponent, in ImportRSAKey() argument
806 public_area.parameters.rsa_detail.exponent = public_exponent; in ImportRSAKey()
857 uint32_t public_exponent, in CreateRSAKeyPair() argument
900 public_area.parameters.rsa_detail.exponent = public_exponent; in CreateRSAKeyPair()
/system/tpm/attestation/server/
Dpkcs11_key_store.cc291 unsigned char public_exponent[] = {1, 0, 1}; in Register() local
304 {CKA_PUBLIC_EXPONENT, public_exponent, arraysize(public_exponent)}, in Register()
334 {CKA_PUBLIC_EXPONENT, public_exponent, arraysize(public_exponent)}, in Register()
/system/security/softkeymaster/
Dkeymaster_openssl.cpp338 if (BN_set_word(bn.get(), rsa_params->public_exponent) == 0) { in generate_rsa_keypair()
/system/vold/
Dcryptfs.c255 params.public_exponent = RSA_EXPONENT; in keymaster_create_key()