/system/keymaster/include/keymaster/ |
H A D | keymaster_tags.h | 42 * very useful example is the overloaded "Authorization" function defined below, which takes tag and 199 // Overloaded function "Authorization" to create keymaster_key_param_t objects for all of tags. 203 inline keymaster_key_param_t Authorization(TypedTag<KM_BOOL, Tag> tag) { function in namespace:keymaster 208 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT, Tag> tag, uint32_t value) { function in namespace:keymaster 213 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT_REP, Tag> tag, uint32_t value) { function in namespace:keymaster 218 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG, Tag> tag, uint64_t value) { function in namespace:keymaster 223 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG_REP, Tag> tag, uint64_t value) { function in namespace:keymaster 228 inline keymaster_key_param_t Authorization(TypedTag<KM_DATE, Tag> tag, uint64_t value) { function in namespace:keymaster 233 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag, const void* bytes, function in namespace:keymaster 239 inline keymaster_key_param_t Authorization(TypedTa function in namespace:keymaster 245 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes, function in namespace:keymaster 251 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag, function in namespace:keymaster 257 inline keymaster_key_param_t Authorization(TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, function in namespace:keymaster 263 inline keymaster_key_param_t Authorization(TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, function in namespace:keymaster [all...] |
H A D | authorization_set.h | 388 return push_back(Authorization(tag, val)); 395 return push_back(Authorization(tag)); 427 return push_back(Authorization(tag, val)); 432 return push_back(Authorization(tag, bytes, bytes_len)); 483 AuthorizationSetBuilder& Authorization(TagType tag, ValueType value) { function in class:keymaster::AuthorizationSetBuilder 489 AuthorizationSetBuilder& Authorization(TypedTag<KM_BOOL, Tag> tag) { function in class:keymaster::AuthorizationSetBuilder 495 AuthorizationSetBuilder& Authorization(TypedTag<KM_INVALID, Tag> tag) { function in class:keymaster::AuthorizationSetBuilder 503 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const uint8_t* data, function in class:keymaster::AuthorizationSetBuilder 510 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const char* data, function in class:keymaster::AuthorizationSetBuilder 512 return Authorization(ta [all...] |
/system/keymaster/ng/include/ |
H A D | authorization_set.h | 192 * In this case "val" is omitted. This condition is checked at compile time by Authorization() 196 push_back(Authorization(tag, std::forward<Value>(val)...)); 225 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { function in class:keymaster::ng::AuthorizationSetBuilder 231 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, function in class:keymaster::ng::AuthorizationSetBuilder 240 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, function in class:keymaster::ng::AuthorizationSetBuilder 242 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); 261 return Authorization(TAG_DIGEST, digest); 265 return Authorization(TAG_PADDING, padding); 271 Authorization(TAG_ALGORITHM, Algorithm::RSA); 272 Authorization(TAG_KEY_SIZ [all...] |
H A D | keymaster_tags.h | 46 * For convenience we also provide the constructor like function Authorization(). 47 * Authorization takes a typed tag and a value and checks at compile time whether the value given 56 * auto param = Authorization(TAG_ALGORITM, Algorithm::RSA); 272 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) { function in namespace:keymaster::ng 276 "Authorization other then TagType::BOOL take exactly one parameter.");
|