Home
last modified time | relevance | path

Searched refs:authorizations (Results 1 – 16 of 16) sorted by relevance

/system/keymaster/km_openssl/
Dec_key_factory.cpp81 AuthorizationSet authorizations(key_description); in GenerateKey() local
85 keymaster_error_t error = GetCurveAndSize(authorizations, &ec_curve, &key_size); in GenerateKey()
88 } else if (!authorizations.Contains(TAG_KEY_SIZE, key_size)) { in GenerateKey()
89 authorizations.push_back(TAG_KEY_SIZE, key_size); in GenerateKey()
90 } else if (!authorizations.Contains(TAG_EC_CURVE, ec_curve)) { in GenerateKey()
91 authorizations.push_back(TAG_EC_CURVE, ec_curve); in GenerateKey()
123 return blob_maker_.CreateKeyBlob(authorizations, KM_ORIGIN_GENERATED, key_material, key_blob, in GenerateKey()
136 AuthorizationSet authorizations; in ImportKey() local
139 key_description, input_key_material_format, input_key_material, &authorizations, &key_size); in ImportKey()
143 return blob_maker_.CreateKeyBlob(authorizations, KM_ORIGIN_IMPORTED, input_key_material, in ImportKey()
Drsa_key_factory.cpp59 const AuthorizationSet& authorizations(key_description); in GenerateKey() local
62 if (!authorizations.GetTagValue(TAG_RSA_PUBLIC_EXPONENT, &public_exponent)) { in GenerateKey()
72 if (!authorizations.GetTagValue(TAG_KEY_SIZE, &key_size)) { in GenerateKey()
99 return blob_maker_.CreateKeyBlob(authorizations, KM_ORIGIN_GENERATED, key_material, key_blob, in GenerateKey()
112 AuthorizationSet authorizations; in ImportKey() local
117 &authorizations, &public_exponent, &key_size); in ImportKey()
120 return blob_maker_.CreateKeyBlob(authorizations, KM_ORIGIN_IMPORTED, input_key_material, in ImportKey()
Dsymmetric_key.cpp73 AuthorizationSet authorizations(key_description); in ImportKey() local
76 if (!authorizations.GetTagValue(TAG_KEY_SIZE, &key_bits)) { in ImportKey()
79 authorizations.push_back(TAG_KEY_SIZE, key_bits); in ImportKey()
93 return blob_maker_.CreateKeyBlob(authorizations, KM_ORIGIN_IMPORTED, input_key_material, in ImportKey()
Decies_kem.cpp25 const AuthorizationSet& authorizations(kem_description); in EciesKem() local
27 if (!authorizations.GetTagValue(TAG_EC_CURVE, &curve_)) { in EciesKem()
46 if (!authorizations.GetTagValue(TAG_KDF, &kdf)) { in EciesKem()
65 if (!authorizations.GetTagValue(TAG_KEY_SIZE, &key_bytes_to_generate_)) { in EciesKem()
71 single_hash_mode_ = authorizations.GetTagValue(TAG_ECIES_SINGLE_HASH_MODE); in EciesKem()
Dhmac_operation.cpp40 if (!key.authorizations().GetTagValue(TAG_MIN_MAC_LENGTH, &min_mac_length_bits)) { in CreateOperation()
61 if (!key.authorizations().GetTagValue(TAG_DIGEST, &digest)) { in CreateOperation()
Dblock_cipher_operation.cpp92 } else if (!key.authorizations().Contains(TAG_BLOCK_MODE, block_mode)) { in CreateOperation()
100 *error = GetAndValidateGcmTagLength(begin_params, key.authorizations(), &tag_length); in CreateOperation()
116 bool caller_nonce = key.authorizations().GetTagValue(TAG_CALLER_NONCE); in CreateOperation()
Dattestation_utils.cpp457 key.authorizations().GetTagValue(TAG_ACTIVE_DATETIME, &activeDateTime); in generate_attestation()
460 key.authorizations().GetTagValue(TAG_USAGE_EXPIRE_DATETIME, &usageExpireDateTime); in generate_attestation()
/system/keymaster/android_keymaster/
Doperation.cpp103 !key.authorizations().Contains(TAG_PADDING, *padding) && in GetAndValidatePadding()
104 !key.authorizations().Contains(TAG_PADDING_OLD, *padding)) { in GetAndValidatePadding()
128 if (key.authorizations().Contains(TAG_DIGEST, KM_DIGEST_NONE)) { in GetAndValidateDigest()
142 !key.authorizations().Contains(TAG_DIGEST, *digest) && in GetAndValidateDigest()
143 !key.authorizations().Contains(TAG_DIGEST_OLD, *digest)) { in GetAndValidateDigest()
Dandroid_keymaster.cpp275 if (!key->authorizations().GetTagValue(TAG_ALGORITHM, &key_algorithm)) in BeginOperation()
292 request.purpose, key_id, operation->authorizations(), request.additional_params, in BeginOperation()
318 operation->purpose(), operation->key_id(), operation->authorizations(), in UpdateOperation()
347 operation->purpose(), operation->key_id(), operation->authorizations(), in FinishOperation()
/system/keymaster/legacy_support/
Dec_keymaster0_key.cpp79 AuthorizationSet authorizations; in ImportKey() local
82 key_description, input_key_material_format, input_key_material, &authorizations, &key_size); in ImportKey()
96 return blob_maker_.CreateKeyBlob(authorizations, KM_ORIGIN_UNKNOWN, imported_hw_key, in ImportKey()
Drsa_keymaster0_key.cpp77 AuthorizationSet authorizations; in ImportKey() local
82 &authorizations, &public_exponent, &key_size); in ImportKey()
97 return blob_maker_.CreateKeyBlob(authorizations, KM_ORIGIN_UNKNOWN, imported_hw_key, in ImportKey()
/system/keymaster/include/keymaster/
Dkey.h44 AuthProxy authorizations() const { return AuthProxy(hw_enforced_, sw_enforced_); } in authorizations() function
Doperation.h108 AuthProxy authorizations() const { return AuthProxy(hw_enforced_, sw_enforced_); } in authorizations() function
/system/keymaster/contexts/
Dkeymaster1_passthrough_context.cpp236 if (!key.authorizations().GetTagValue(TAG_ALGORITHM, &key_algorithm)) { in GenerateAttestation()
Dsoft_keymaster_context.cpp451 if (!key.authorizations().GetTagValue(TAG_ALGORITHM, &key_algorithm)) { in GenerateAttestation()
Dpure_soft_keymaster_context.cpp267 if (!key.authorizations().GetTagValue(TAG_ALGORITHM, &key_algorithm)) { in GenerateAttestation()