Home
last modified time | relevance | path

Searched refs:key_size (Results 1 – 5 of 5) sorted by relevance

/system/keymaster/
Dasymmetric_key.cpp136 uint32_t key_size = RSA_DEFAULT_KEY_SIZE; in GenerateKey() local
137 if (!authorizations.GetTagValue(TAG_KEY_SIZE, &key_size)) in GenerateKey()
138 authorizations.push_back(Authorization(TAG_KEY_SIZE, key_size)); in GenerateKey()
149 !RSA_generate_key_ex(rsa_key.get(), key_size, exponent.get(), NULL /* callback */)) { in GenerateKey()
192 uint32_t key_size; in ImportKey() local
193 if (authorizations.GetTagValue(TAG_KEY_SIZE, &key_size)) { in ImportKey()
195 if (RSA_size(rsa_key.get()) != (int)key_size) { in ImportKey()
200 key_size = RSA_size(rsa_key.get()) * 8; in ImportKey()
201 authorizations.push_back(TAG_KEY_SIZE, key_size); in ImportKey()
286 uint32_t key_size = DSA_DEFAULT_KEY_SIZE; in GenerateKey() local
[all …]
Dgoogle_keymaster_test.cpp384 keymaster_padding_t padding, uint32_t key_size) { in GenerateKey() argument
389 Authorization(TAG_KEY_SIZE, key_size), in GenerateKey()
/system/vold/
Dcryptfs.c173 size_t key_size; in keymaster_create_key() local
175 &key, &key_size)) { in keymaster_create_key()
181 if (key_size > KEYMASTER_BLOB_SIZE) { in keymaster_create_key()
187 memcpy(ftr->keymaster_blob, key, key_size); in keymaster_create_key()
188 ftr->keymaster_blob_size = key_size; in keymaster_create_key()
1221 unsigned int key_size; local
1230 unsigned char* master_key = convert_hex_ascii_to_key(passwd, &key_size);
1236 rc = crypto_scrypt(master_key, key_size, salt, SALT_LEN,
1238 memset(master_key, 0, key_size);
/system/security/softkeymaster/
Dkeymaster_openssl.cpp242 if (dsa_params->key_size < 512) { in generate_dsa_keypair()
252 if (DSA_generate_parameters_ex(dsa.get(), dsa_params->key_size, NULL, 0, NULL, NULL, in generate_dsa_keypair()
/system/security/keystore/
Dkeystore.cpp1873 dsa_params.key_size = keySize; in generate()