/system/security/keystore2/src/km_compat/ |
D | km_compat_type_conversion.h | 446 case KMV1::Tag::INVALID: in convertKeyParameterToLegacy() 448 case KMV1::Tag::PURPOSE: in convertKeyParameterToLegacy() 456 case KMV1::Tag::ALGORITHM: in convertKeyParameterToLegacy() 461 case KMV1::Tag::KEY_SIZE: in convertKeyParameterToLegacy() 466 case KMV1::Tag::BLOCK_MODE: in convertKeyParameterToLegacy() 471 case KMV1::Tag::DIGEST: in convertKeyParameterToLegacy() 476 case KMV1::Tag::PADDING: in convertKeyParameterToLegacy() 481 case KMV1::Tag::CALLER_NONCE: in convertKeyParameterToLegacy() 486 case KMV1::Tag::MIN_MAC_LENGTH: in convertKeyParameterToLegacy() 491 case KMV1::Tag::EC_CURVE: in convertKeyParameterToLegacy() [all …]
|
D | lib.rs | 36 SecurityLevel::SecurityLevel, Tag::Tag, 88 tag: Tag::ALGORITHM, in generate_rsa_key() 91 KeyParameter { tag: Tag::KEY_SIZE, value: KeyParameterValue::Integer(2048) }, in generate_rsa_key() 93 tag: Tag::RSA_PUBLIC_EXPONENT, in generate_rsa_key() 96 KeyParameter { tag: Tag::DIGEST, value: KeyParameterValue::Digest(Digest::SHA_2_256) }, in generate_rsa_key() 98 tag: Tag::PADDING, in generate_rsa_key() 101 KeyParameter { tag: Tag::NO_AUTH_REQUIRED, value: KeyParameterValue::BoolValue(true) }, in generate_rsa_key() 103 tag: Tag::PURPOSE, in generate_rsa_key() 107 tag: Tag::CERTIFICATE_NOT_BEFORE, in generate_rsa_key() 111 tag: Tag::CERTIFICATE_NOT_AFTER, in generate_rsa_key() [all …]
|
D | km_compat.cpp | 44 using ::aidl::android::hardware::security::keymint::Tag; 67 case Tag::APPLICATION_ID: in isAttestationParameter() 68 case Tag::APPLICATION_DATA: in isAttestationParameter() 69 case Tag::ATTESTATION_CHALLENGE: in isAttestationParameter() 70 case Tag::ATTESTATION_APPLICATION_ID: in isAttestationParameter() 71 case Tag::ATTESTATION_ID_BRAND: in isAttestationParameter() 72 case Tag::ATTESTATION_ID_DEVICE: in isAttestationParameter() 73 case Tag::ATTESTATION_ID_PRODUCT: in isAttestationParameter() 74 case Tag::ATTESTATION_ID_SERIAL: in isAttestationParameter() 75 case Tag::ATTESTATION_ID_IMEI: in isAttestationParameter() [all …]
|
/system/keymaster/include/keymaster/ |
D | authorization_set.h | 239 template <keymaster_tag_t Tag, typename T> 240 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const { in Contains() argument 247 template <keymaster_tag_t Tag, typename T> 248 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const { in Contains() argument 255 template <keymaster_tag_t Tag> bool Contains(TypedTag<KM_UINT, Tag> tag, uint32_t val) const { in Contains() 273 template <keymaster_tag_t Tag> 274 bool GetTagValue(TypedTag<KM_UINT_REP, Tag> tag, size_t instance, uint32_t* val) const { in GetTagValue() 292 template <keymaster_tag_t Tag> 293 bool GetTagValue(TypedTag<KM_ULONG_REP, Tag> tag, size_t instance, uint64_t* val) const { in GetTagValue() 301 template <keymaster_tag_t Tag, typename T> [all …]
|
D | keymaster_tags.h | 221 template <keymaster_tag_t Tag> 222 inline keymaster_key_param_t Authorization(TypedTag<KM_BOOL, Tag> tag) { 226 template <keymaster_tag_t Tag> 227 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT, Tag> tag, uint32_t value) { 231 template <keymaster_tag_t Tag> 232 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT_REP, Tag> tag, uint32_t value) { 236 template <keymaster_tag_t Tag> 237 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG, Tag> tag, uint64_t value) { 241 template <keymaster_tag_t Tag> 242 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG_REP, Tag> tag, uint64_t value) { [all …]
|
/system/logging/logd/ |
D | LogTags.cpp | 219 unsigned long Tag = strtoul(cp, &cp, 10); in ReadFileEventLogTags() local 220 if (warn && (Tag > emptyTag)) { in ReadFileEventLogTags() 221 LOG(WARNING) << "tag too large " << Tag; in ReadFileEventLogTags() 242 if (Tag > emptyTag) { in ReadFileEventLogTags() 264 AddEventLogTags((uint32_t)Tag, uid, Name, Format, in ReadFileEventLogTags() 315 uint32_t Tag = get4LE(msg); in ReadPersistEventLogTags() local 316 if (Tag != TAG_DEF_LOG_TAG) continue; in ReadPersistEventLogTags() 334 Tag = elem.data.int32; in ReadPersistEventLogTags() 349 AddEventLogTags(Tag, uid, Name, Format); in ReadPersistEventLogTags() 455 uint32_t Tag = Hash; in nameToTag_locked() local [all …]
|
/system/security/ondevice-signing/ |
D | KeystoreHmacKey.cpp | 39 using android::hardware::security::keymint::Tag; 72 algo.tag = Tag::ALGORITHM; in createKey() 77 key_size.tag = Tag::KEY_SIZE; in createKey() 82 min_mac_length.tag = Tag::MIN_MAC_LENGTH; in createKey() 87 digest.tag = Tag::DIGEST; in createKey() 92 purposeSign.tag = Tag::PURPOSE; in createKey() 97 purposeVerify.tag = Tag::PURPOSE; in createKey() 103 auth.tag = Tag::NO_AUTH_REQUIRED; in createKey() 108 boot_level.tag = Tag::MAX_BOOT_LEVEL; in createKey() 135 if (auth.keyParameter.tag == Tag::MAX_BOOT_LEVEL) { in initialize() [all …]
|
D | KeystoreKey.cpp | 43 using android::hardware::security::keymint::Tag; 79 algo.tag = Tag::ALGORITHM; in createKey() 84 key_size.tag = Tag::KEY_SIZE; in createKey() 89 digest.tag = Tag::DIGEST; in createKey() 94 padding.tag = Tag::PADDING; in createKey() 100 exponent.tag = Tag::RSA_PUBLIC_EXPONENT; in createKey() 105 purpose.tag = Tag::PURPOSE; in createKey() 110 auth.tag = Tag::NO_AUTH_REQUIRED; in createKey() 115 boot_level.tag = Tag::MAX_BOOT_LEVEL; in createKey() 206 if (auth.keyParameter.tag == Tag::MAX_BOOT_LEVEL) { in verifyExistingKey() [all …]
|
/system/security/keystore2/src/ |
D | key_parameter.rs | 104 PaddingMode::PaddingMode, SecurityLevel::SecurityLevel, Tag::Tag, 274 tag: Tag, 279 $(Tag::$tag_name => $enum_name::$vname$(( 343 $enum_name::$vname(_) => Tag::$tag_name, 353 $enum_name::$vname => Tag::$tag_name, 358 pub fn get_tag(&self) -> Tag { 454 tag: Tag, 459 Tag::$tag_name => { 545 tag: Tag::$tag_name, 558 tag: Tag::$tag_name, [all …]
|
D | utils.rs | 22 KeyCharacteristics::KeyCharacteristics, Tag::Tag, 92 pub fn is_device_id_attestation_tag(tag: Tag) -> bool { in is_device_id_attestation_tag() 95 Tag::ATTESTATION_ID_IMEI in is_device_id_attestation_tag() 96 | Tag::ATTESTATION_ID_MEID in is_device_id_attestation_tag() 97 | Tag::ATTESTATION_ID_SERIAL in is_device_id_attestation_tag() 98 | Tag::DEVICE_UNIQUE_ATTESTATION in is_device_id_attestation_tag()
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/include/aidl/android/aidl/tests/ |
D | UnionWithFd.h | 32 enum Tag : int32_t { enum 55 template <Tag _tag, typename... _Tp> 60 template <Tag _tag, typename _Tp, typename... _Up> 65 Tag getTag() const { in getTag() 66 return static_cast<Tag>(_value.index()); in getTag() 69 template <Tag _tag> 75 template <Tag _tag> 81 template <Tag _tag, typename... _Tp>
|
D | Union.h | 33 enum Tag : int32_t { enum 61 template <Tag _tag, typename... _Tp> 66 template <Tag _tag, typename _Tp, typename... _Up> 71 Tag getTag() const { in getTag() 72 return static_cast<Tag>(_value.index()); in getTag() 75 template <Tag _tag> 81 template <Tag _tag> 87 template <Tag _tag, typename... _Tp>
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/include/aidl/android/aidl/tests/unions/ |
D | UnionInUnion.h | 34 enum Tag : int32_t { enum 57 template <Tag _tag, typename... _Tp> 62 template <Tag _tag, typename _Tp, typename... _Up> 67 Tag getTag() const { in getTag() 68 return static_cast<Tag>(_value.index()); in getTag() 71 template <Tag _tag> 77 template <Tag _tag> 83 template <Tag _tag, typename... _Tp>
|
D | EnumUnion.h | 35 enum Tag : int32_t { enum 58 template <Tag _tag, typename... _Tp> 63 template <Tag _tag, typename _Tp, typename... _Up> 68 Tag getTag() const { in getTag() 69 return static_cast<Tag>(_value.index()); in getTag() 72 template <Tag _tag> 78 template <Tag _tag> 84 template <Tag _tag, typename... _Tp>
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk-source/gen/include/aidl/android/aidl/loggable/ |
D | Union.h | 32 enum Tag : int32_t { enum 55 template <Tag _tag, typename... _Tp> 60 template <Tag _tag, typename _Tp, typename... _Up> 65 Tag getTag() const { in getTag() 66 return static_cast<Tag>(_value.index()); in getTag() 69 template <Tag _tag> 75 template <Tag _tag> 81 template <Tag _tag, typename... _Tp>
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ |
D | UnionWithFd.h | 45 enum Tag : int32_t { enum 68 template <Tag _tag, typename... _Tp> 73 template <Tag _tag, typename _Tp, typename... _Up> 78 Tag getTag() const { in getTag() 79 return static_cast<Tag>(_value.index()); in getTag() 82 template <Tag _tag> 88 template <Tag _tag> 94 template <Tag _tag, typename... _Tp>
|
D | Union.h | 48 enum Tag : int32_t { enum 76 template <Tag _tag, typename... _Tp> 81 template <Tag _tag, typename _Tp, typename... _Up> 86 Tag getTag() const { in getTag() 87 return static_cast<Tag>(_value.index()); in getTag() 90 template <Tag _tag> 96 template <Tag _tag> 102 template <Tag _tag, typename... _Tp>
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-cpp-source/gen/include/android/aidl/loggable/ |
D | Union.h | 45 enum Tag : int32_t { enum 68 template <Tag _tag, typename... _Tp> 73 template <Tag _tag, typename _Tp, typename... _Up> 78 Tag getTag() const { in getTag() 79 return static_cast<Tag>(_value.index()); in getTag() 82 template <Tag _tag> 88 template <Tag _tag> 94 template <Tag _tag, typename... _Tp>
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk_platform-source/gen/include/aidl/android/aidl/loggable/ |
D | Union.h | 32 enum Tag : int32_t { enum 55 template <Tag _tag, typename... _Tp> 60 template <Tag _tag, typename _Tp, typename... _Up> 65 Tag getTag() const { in getTag() 66 return static_cast<Tag>(_value.index()); in getTag() 69 template <Tag _tag> 75 template <Tag _tag> 81 template <Tag _tag, typename... _Tp>
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/unions/ |
D | EnumUnion.h | 47 enum Tag : int32_t { enum 70 template <Tag _tag, typename... _Tp> 75 template <Tag _tag, typename _Tp, typename... _Up> 80 Tag getTag() const { in getTag() 81 return static_cast<Tag>(_value.index()); in getTag() 84 template <Tag _tag> 90 template <Tag _tag> 96 template <Tag _tag, typename... _Tp>
|
D | UnionInUnion.h | 47 enum Tag : int32_t { enum 70 template <Tag _tag, typename... _Tp> 75 template <Tag _tag, typename _Tp, typename... _Up> 80 Tag getTag() const { in getTag() 81 return static_cast<Tag>(_value.index()); in getTag() 84 template <Tag _tag> 90 template <Tag _tag> 96 template <Tag _tag, typename... _Tp>
|
/system/keymaster/ng/ |
D | KeyMintUtils.cpp | 31 return KeyParameter{Tag::PURPOSE, KeyParameterValue::make<KeyParameterValue::keyPurpose>( in kmEnumParam2Aidl() 34 return KeyParameter{Tag::ALGORITHM, KeyParameterValue::make<KeyParameterValue::algorithm>( in kmEnumParam2Aidl() 37 return KeyParameter{Tag::BLOCK_MODE, KeyParameterValue::make<KeyParameterValue::blockMode>( in kmEnumParam2Aidl() 40 return KeyParameter{Tag::DIGEST, KeyParameterValue::make<KeyParameterValue::digest>( in kmEnumParam2Aidl() 43 return KeyParameter{Tag::PADDING, KeyParameterValue::make<KeyParameterValue::paddingMode>( in kmEnumParam2Aidl() 46 return KeyParameter{Tag::EC_CURVE, KeyParameterValue::make<KeyParameterValue::ecCurve>( in kmEnumParam2Aidl() 49 return KeyParameter{Tag::USER_AUTH_TYPE, in kmEnumParam2Aidl() 53 return KeyParameter{Tag::ORIGIN, KeyParameterValue::make<KeyParameterValue::origin>( in kmEnumParam2Aidl() 58 return KeyParameter{Tag::INVALID, false}; in kmEnumParam2Aidl() 64 template <KeyParameterValue::Tag aidl_tag> [all …]
|
/system/keymaster/ng/include/ |
D | keymaster_tags.h | 83 using ::android::hardware::keymaster::V3_0::Tag; 95 constexpr TagType typeFromTag(Tag tag) { in typeFromTag() 105 template <TagType tag_type, Tag tag> struct TypedTag { 113 operator Tag() const { return tag; } in Tag() function 116 template <Tag tag> struct Tag2TypedTag { typedef TypedTag<typeFromTag(tag), tag> type; }; 118 template <Tag tag> struct Tag2String; 124 typedef typename Tag2TypedTag<Tag::name>::type TAG_##name##_t; \ 126 template <> struct Tag2String<Tag::name> { \ 193 extern const char* stringifyTag(Tag tag); 198 template <Tag tag> struct TypedTag2ValueType<TypedTag<tag_type, tag>> { \ [all …]
|
/system/keymaster/tests/ |
D | android_keymaster_test_utils.h | 56 template <keymaster_tag_t Tag, typename KeymasterEnum> 57 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, in contains() argument 63 template <keymaster_tag_t Tag, typename KeymasterEnum> 64 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, in contains() argument 72 template <keymaster_tag_t Tag> 73 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT, Tag> tag, uint32_t val) { in contains() 78 template <keymaster_tag_t Tag> 79 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT_REP, Tag> tag, uint32_t val) { in contains() 86 template <keymaster_tag_t Tag> 87 bool contains(const AuthorizationSet& set, TypedTag<KM_ULONG, Tag> tag, uint64_t val) { in contains() [all …]
|
/system/extras/libjsonpb/parse/include/jsonpb/ |
D | error_or.h | 53 return ErrorOr<T>(message, Tag::kDummy); in MakeError() 57 enum class Tag { kDummy }; enum 60 ErrorOr(const std::string& msg, Tag) : data_(kIndex0, msg) {} in ErrorOr()
|