/system/keymaster/km_openssl/ |
D | ec_key_factory.cpp | 81 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()
|
D | rsa_key_factory.cpp | 59 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()
|
D | symmetric_key.cpp | 73 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()
|
D | ecies_kem.cpp | 25 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()
|
D | hmac_operation.cpp | 40 if (!key.authorizations().GetTagValue(TAG_MIN_MAC_LENGTH, &min_mac_length_bits)) { in CreateOperation() 61 if (!key.authorizations().GetTagValue(TAG_DIGEST, &digest)) { in CreateOperation()
|
D | block_cipher_operation.cpp | 92 } 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()
|
D | attestation_utils.cpp | 457 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/ |
D | operation.cpp | 103 !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()
|
D | android_keymaster.cpp | 275 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/ |
D | ec_keymaster0_key.cpp | 79 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()
|
D | rsa_keymaster0_key.cpp | 77 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/ |
D | key.h | 44 AuthProxy authorizations() const { return AuthProxy(hw_enforced_, sw_enforced_); } in authorizations() function
|
D | operation.h | 108 AuthProxy authorizations() const { return AuthProxy(hw_enforced_, sw_enforced_); } in authorizations() function
|
/system/keymaster/contexts/ |
D | keymaster1_passthrough_context.cpp | 236 if (!key.authorizations().GetTagValue(TAG_ALGORITHM, &key_algorithm)) { in GenerateAttestation()
|
D | soft_keymaster_context.cpp | 451 if (!key.authorizations().GetTagValue(TAG_ALGORITHM, &key_algorithm)) { in GenerateAttestation()
|
D | pure_soft_keymaster_context.cpp | 267 if (!key.authorizations().GetTagValue(TAG_ALGORITHM, &key_algorithm)) { in GenerateAttestation()
|