Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 14 of 14) sorted by relevance

/system/security/keystore2/src/
Draw_device.rs110 key_type: KeyType, in create_and_store_key()
129 key_type, in create_and_store_key()
154 key_type: KeyType, in lookup_from_desc()
156 db.load_key_entry(key_desc, key_type, KeyEntryLoadBits::KM, AID_KEYSTORE, |_, _| Ok(())) in lookup_from_desc()
179 key_type: KeyType, in lookup_or_generate_key()
191 let lookup = Self::not_found_is_none(Self::lookup_from_desc(db, key_desc, key_type)) in lookup_or_generate_key()
233 self.create_and_store_key(db, key_desc, key_type, |km_dev| { in lookup_or_generate_key()
237 Self::lookup_from_desc(db, key_desc, key_type) in lookup_or_generate_key()
Ddatabase.rs1293 key_type: KeyType, in key_exists()
1300 let result = Self::load_key_entry_id(tx, &key_descriptor, key_type); in key_exists()
1317 key_type: &SuperKeyType, in store_super_key()
1335 key_type.alias, in store_super_key()
1364 key_type: &SuperKeyType, in load_super_key()
1373 alias: Some(key_type.alias.into()), in load_super_key()
1461 key_type: KeyType, in create_key_entry_internal()
1479 key_type, in create_key_entry_internal()
1629 key_type: KeyType, in rebind_alias()
1643 params![KeyLifeCycle::Unreferenced, alias, domain.0 as u32, namespace, key_type], in rebind_alias()
[all …]
Dsuper_key.rs747 key_type: &SuperKeyType, in create_super_key()
751 log::info!("Creating {} for user {}", key_type.name, user_id); in create_super_key()
752 let (super_key, public_key) = match key_type.algorithm { in create_super_key()
774 .store_super_key(user_id, key_type, &encrypted_super_key, &blob_metadata, &key_metadata) in create_super_key()
777 algorithm: key_type.algorithm, in create_super_key()
791 key_type: &SuperKeyType, in get_or_create_super_key()
795 let loaded_key = db.load_super_key(key_type, user_id)?; in get_or_create_super_key()
798 key_type.algorithm, in get_or_create_super_key()
804 self.create_super_key(db, user_id, key_type, password, reencrypt_with) in get_or_create_super_key()
/system/core/mini_keyctl/
Dmini_keyctl_utils.cpp66 std::string key_type = tokens[7]; in GetKeyringId() local
71 if (key_type != "keyring" || key_desc_prefix != key_desc_pattern) { in GetKeyringId()
/system/keymaster/android_keymaster/
Doperation.cpp64 KeyType key_type = registry_key(); in is_public_key_operation() local
66 if (!is_public_key_algorithm(key_type.algorithm)) return false; in is_public_key_operation()
68 switch (key_type.purpose) { in is_public_key_operation()
/system/update_engine/payload_consumer/
Dpayload_verifier.cc153 int key_type = EVP_PKEY_id(public_key.get()); in VerifyRawSignature() local
154 if (key_type == EVP_PKEY_RSA) { in VerifyRawSignature()
174 } else if (key_type == EVP_PKEY_EC) { in VerifyRawSignature()
186 LOG(ERROR) << "Unsupported key type " << key_type; in VerifyRawSignature()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/crypto/
Daes.h78 enum AesKeyType key_type);
Daes.c252 enum AesKeyType key_type) { in aesCtrInit() argument
256 if (AES_128_KEY_TYPE == key_type) { in aesCtrInit()
259 } else if (AES_256_KEY_TYPE == key_type) { in aesCtrInit()
/system/update_engine/payload_generator/
Dpayload_signer.cc294 int key_type = EVP_PKEY_id(private_key.get()); in SignHash() local
296 if (key_type == EVP_PKEY_RSA) { in SignHash()
316 } else if (key_type == EVP_PKEY_EC) { in SignHash()
339 LOG(ERROR) << "key_type " << key_type << " isn't supported for signing"; in SignHash()
/system/keymint/ta/src/
Ddevice.rs153 fn signing_key(&self, key_type: SigningKeyType) -> Result<KeyMaterial, Error>; in signing_key()
161 fn cert_chain(&self, key_type: SigningKeyType) -> Result<Vec<keymint::Certificate>, Error>; in cert_chain()
Dkeys.rs114 key_type: device::SigningKeyType, in get_signing_info()
121 let chain_info = match attestation_chain_info.entry(key_type) { in get_signing_info()
125 let chain = sign_info.cert_chain(key_type)?; in get_signing_info()
135 let signing_key = sign_info.signing_key(key_type)?; in get_signing_info()
/system/libvintf/include/vintf/
DMapValueIterator.h29 using K = typename Map::key_type;
/system/core/libutils/include/utils/
DKeyedVector.h39 typedef KEY key_type; typedef
/system/tools/aidl/
Daidl_language.cpp774 const string& key_type = GetTypeParameters()[0]->Signature(); in CheckValid() local
775 if (key_type != "String") { in CheckValid()
777 << "'" << key_type << "'"; in CheckValid()