Home
last modified time | relevance | path

Searched refs:PaddingMode (Results 1 – 19 of 19) sorted by relevance

/system/security/keystore/
Dkeystore_utils.cpp114 params->push_back(TAG_PADDING, PaddingMode::NONE); in add_legacy_key_authorizations()
116 params->push_back(TAG_PADDING, PaddingMode::RSA_PKCS1_1_5_SIGN); in add_legacy_key_authorizations()
117 params->push_back(TAG_PADDING, PaddingMode::RSA_PKCS1_1_5_ENCRYPT); in add_legacy_key_authorizations()
118 params->push_back(TAG_PADDING, PaddingMode::RSA_PSS); in add_legacy_key_authorizations()
119 params->push_back(TAG_PADDING, PaddingMode::RSA_OAEP); in add_legacy_key_authorizations()
Dkeystore_cli_v2.cpp180 keymint::PaddingMode::PKCS7); in verifyEncryptionKeyAttributes()
249 .Padding(keymint::PaddingMode::PKCS7) in loadOrCreateAndVerifyEncryptionKey()
358 .Padding(keymint::PaddingMode::PKCS7) in encryptWithAuthentication()
510 .Padding(keymint::PaddingMode::PKCS7) in decryptWithAuthentication()
599 .Padding(keymint::PaddingMode::RSA_PKCS1_1_5_SIGN) in GetRSASignParameters()
600 .Padding(keymint::PaddingMode::RSA_PSS) in GetRSASignParameters()
613 .Padding(keymint::PaddingMode::RSA_PKCS1_1_5_ENCRYPT) in GetRSAEncryptParameters()
614 .Padding(keymint::PaddingMode::RSA_OAEP) in GetRSAEncryptParameters()
642 parameters.Padding(keymint::PaddingMode::NONE); in GetAESParameters()
756 .Padding(keymint::PaddingMode::RSA_PKCS1_1_5_SIGN) in GenerateKey()
[all …]
/system/security/keystore2/src/km_compat/
Dparameter_conversion_test.cpp51 TEST_ENUM_CONVERSION(PaddingMode, NONE); in TEST()
52 TEST_ENUM_CONVERSION(PaddingMode, RSA_OAEP); in TEST()
53 TEST_ENUM_CONVERSION(PaddingMode, RSA_PSS); in TEST()
54 TEST_ENUM_CONVERSION(PaddingMode, RSA_PKCS1_1_5_ENCRYPT); in TEST()
55 TEST_ENUM_CONVERSION(PaddingMode, RSA_PKCS1_1_5_SIGN); in TEST()
56 TEST_ENUM_CONVERSION(PaddingMode, PKCS7); in TEST()
Dlib.rs35 KeyParameterValue::KeyParameterValue, KeyPurpose::KeyPurpose, PaddingMode::PaddingMode,
99 value: KeyParameterValue::PaddingMode(PaddingMode::RSA_PSS), in generate_rsa_key()
227 value: KeyParameterValue::PaddingMode(PaddingMode::NONE), in generate_aes_key()
257 value: KeyParameterValue::PaddingMode(PaddingMode::NONE), in begin()
411 value: KeyParameterValue::PaddingMode(PaddingMode::RSA_PSS) in test_get_key_characteristics()
Dkm_compat_type_conversion.h333 static V4_0::PaddingMode convert(KMV1::PaddingMode p) { in convert()
335 case KMV1::PaddingMode::NONE: in convert()
336 return V4_0::PaddingMode::NONE; in convert()
337 case KMV1::PaddingMode::RSA_OAEP: in convert()
338 return V4_0::PaddingMode::RSA_OAEP; in convert()
339 case KMV1::PaddingMode::RSA_PSS: in convert()
340 return V4_0::PaddingMode::RSA_PSS; in convert()
341 case KMV1::PaddingMode::RSA_PKCS1_1_5_ENCRYPT: in convert()
342 return V4_0::PaddingMode::RSA_PKCS1_1_5_ENCRYPT; in convert()
343 case KMV1::PaddingMode::RSA_PKCS1_1_5_SIGN: in convert()
[all …]
Dcertificate_test.cpp40 using ::aidl::android::hardware::security::keymint::PaddingMode;
103 KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::RSA_PSS), in TEST()
119 KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::NONE), in TEST()
146 KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::RSA_PSS), in TEST()
161 KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::RSA_PSS), in TEST()
Dslot_test.cpp33 using ::aidl::android::hardware::security::keymint::PaddingMode;
43 KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::NONE), in generateAESKey()
62 kps.push_back(KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::NONE)); in begin()
Dkm_compat.cpp43 using ::aidl::android::hardware::security::keymint::PaddingMode;
1027 static std::variant<keystore::Padding, KMV1::ErrorCode> getKeystorePadding(PaddingMode padding) { in getKeystorePadding()
1029 case PaddingMode::RSA_PKCS1_1_5_SIGN: in getKeystorePadding()
1031 case PaddingMode::RSA_PSS: in getKeystorePadding()
1068 {PaddingMode::RSA_PSS, PaddingMode::RSA_PKCS1_1_5_SIGN}); in signCertificate()
/system/security/keystore2/src/
Dmetrics_store.rs28 KeyParameter::KeyParameter, KeyPurpose::KeyPurpose, PaddingMode::PaddingMode,
259 KsKeyParamValue::PaddingMode(p) => { in process_key_creation_event_stats()
388 KsKeyParamValue::PaddingMode(p) => { in process_key_operation_event_stats()
430 fn compute_padding_mode_bitmap(padding_mode_bitmap: &mut i32, padding_mode: PaddingMode) { in compute_padding_mode_bitmap() argument
432 PaddingMode::NONE => { in compute_padding_mode_bitmap()
435 PaddingMode::RSA_OAEP => { in compute_padding_mode_bitmap()
438 PaddingMode::RSA_PSS => { in compute_padding_mode_bitmap()
441 PaddingMode::RSA_PKCS1_1_5_ENCRYPT => { in compute_padding_mode_bitmap()
445 PaddingMode::RSA_PKCS1_1_5_SIGN => { in compute_padding_mode_bitmap()
448 PaddingMode::PKCS7 => { in compute_padding_mode_bitmap()
Dkey_parameter.rs104 PaddingMode::PaddingMode, SecurityLevel::SecurityLevel, Tag::Tag,
170 implement_associate_primitive_for_aidl_enum! {PaddingMode}
801 #[key_param(tag = PADDING, field = PaddingMode)]
802 PaddingMode(PaddingMode),
1046 Tag::PADDING => return KmKeyParameterValue::PaddingMode(Default::default()), in get_field_by_tag_type()
1081 | (&KmKeyParameterValue::PaddingMode(_), KmKeyParameterValue::PaddingMode(_)) in check_field_matches_tag_type()
Dsuper_key.rs38 KeyParameter::KeyParameter as KmKeyParameter, KeyPurpose::KeyPurpose, PaddingMode::PaddingMode,
208 KeyParameterValue::PaddingMode(PaddingMode::NONE), in decrypt()
945 KeyParameterValue::PaddingMode(PaddingMode::NONE), in lock_screen_lock_bound_key()
Ddatabase.rs3218 KeyParameterValue, KeyPurpose, PaddingMode, SecurityLevel,
5053 KeyParameterValue::PaddingMode(PaddingMode::NONE), in make_test_params()
5057 KeyParameterValue::PaddingMode(PaddingMode::RSA_OAEP), in make_test_params()
5061 KeyParameterValue::PaddingMode(PaddingMode::RSA_PSS), in make_test_params()
5065 KeyParameterValue::PaddingMode(PaddingMode::RSA_PKCS1_1_5_SIGN), in make_test_params()
/system/security/ondevice-signing/
DKeystoreKey.cpp41 using android::hardware::security::keymint::PaddingMode;
96 KeyParameterValue::make<KeyParameterValue::paddingMode>(PaddingMode::RSA_PKCS1_1_5_SIGN); in createKey()
283 KeyParameterValue::make<KeyParameterValue::paddingMode>(PaddingMode::RSA_PKCS1_1_5_SIGN); in getSignOpParameters()
/system/keymaster/ng/include/
Dauthorization_set.h251 AuthorizationSetBuilder& Padding(PaddingMode padding) { in Padding()
315 return Authorization(TAG_PADDING, PaddingMode::NONE); in NoDigestOrPadding()
Dkeymaster_tags.h82 using ::android::hardware::keymaster::V3_0::PaddingMode;
/system/security/keystore/include/keystore/
Dkeymaster_types.h62 using keymaster::PaddingMode;
/system/keymaster/ng/
DKeyMintUtils.cpp44 static_cast<PaddingMode>(param.enumerated))}; in kmEnumParam2Aidl()
/system/security/keystore-engine/
Dkeystore2_engine.cpp210 KMV1::PaddingMode::NONE)}; in keystore2_sign()
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp257 KMV1::PaddingMode::NONE)}; in keyStore2Sign()