Searched refs:KMV1 (Results 1 – 7 of 7) sorted by relevance
/system/security/keystore2/src/km_compat/ |
D | km_compat_type_conversion.h | 25 namespace KMV1 = ::aidl::android::hardware::security::keymint; variable 27 static KMV1::ErrorCode convert(V4_0::ErrorCode error) { in convert() 30 return KMV1::ErrorCode::OK; in convert() 32 return KMV1::ErrorCode::ROOT_OF_TRUST_ALREADY_SET; in convert() 34 return KMV1::ErrorCode::UNSUPPORTED_PURPOSE; in convert() 36 return KMV1::ErrorCode::INCOMPATIBLE_PURPOSE; in convert() 38 return KMV1::ErrorCode::UNSUPPORTED_ALGORITHM; in convert() 40 return KMV1::ErrorCode::INCOMPATIBLE_ALGORITHM; in convert() 42 return KMV1::ErrorCode::UNSUPPORTED_KEY_SIZE; in convert() 44 return KMV1::ErrorCode::UNSUPPORTED_BLOCK_MODE; in convert() [all …]
|
D | certificate_test.cpp | 45 namespace KMV1 = ::aidl::android::hardware::security::keymint; 90 KMV1::makeKeyParameter(KMV1::TAG_ALGORITHM, Algorithm::RSA), in getRSAKeyParams() 91 KMV1::makeKeyParameter(KMV1::TAG_KEY_SIZE, 2048), in getRSAKeyParams() 92 KMV1::makeKeyParameter(KMV1::TAG_RSA_PUBLIC_EXPONENT, 65537), in getRSAKeyParams() 93 KMV1::makeKeyParameter(KMV1::TAG_CERTIFICATE_NOT_BEFORE, 0), in getRSAKeyParams() 94 KMV1::makeKeyParameter(KMV1::TAG_CERTIFICATE_NOT_AFTER, 253402300799000), in getRSAKeyParams() 102 KMV1::makeKeyParameter(KMV1::TAG_DIGEST, Digest::SHA_2_256), in TEST() 103 KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::RSA_PSS), in TEST() 104 KMV1::makeKeyParameter(KMV1::TAG_NO_AUTH_REQUIRED), in TEST() 105 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::SIGN), in TEST() [all …]
|
D | slot_test.cpp | 36 namespace KMV1 = ::aidl::android::hardware::security::keymint; 40 KMV1::makeKeyParameter(KMV1::TAG_ALGORITHM, Algorithm::AES), in generateAESKey() 41 KMV1::makeKeyParameter(KMV1::TAG_KEY_SIZE, 128), in generateAESKey() 42 KMV1::makeKeyParameter(KMV1::TAG_BLOCK_MODE, BlockMode::CBC), in generateAESKey() 43 KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::NONE), in generateAESKey() 44 KMV1::makeKeyParameter(KMV1::TAG_NO_AUTH_REQUIRED, true), in generateAESKey() 45 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::ENCRYPT), in generateAESKey() 46 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::DECRYPT), in generateAESKey() 61 kps.push_back(KMV1::makeKeyParameter(KMV1::TAG_BLOCK_MODE, BlockMode::CBC)); in begin() 62 kps.push_back(KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::NONE)); in begin() [all …]
|
D | km_compat.cpp | 57 namespace KMV1 = ::aidl::android::hardware::security::keymint; 65 bool isAttestationParameter(const KMV1::KeyParameter& param) { in isAttestationParameter() 92 bool isKeyCreationParameter(const KMV1::KeyParameter& param) { in isKeyCreationParameter() 231 bool isNewAndKeystoreEnforceable(const KMV1::KeyParameter& param) { in isNewAndKeystoreEnforceable() 233 case KMV1::Tag::MAX_BOOT_LEVEL: in isNewAndKeystoreEnforceable() 235 case KMV1::Tag::USAGE_COUNT_LIMIT: in isNewAndKeystoreEnforceable() 242 std::vector<KMV1::KeyParameter> 243 extractGenerationParams(const std::vector<KMV1::KeyParameter>& params) { in extractGenerationParams() 244 std::vector<KMV1::KeyParameter> result; in extractGenerationParams() 249 std::vector<KMV1::KeyParameter> [all …]
|
D | parameter_conversion_test.cpp | 22 ASSERT_EQ(KMV1::type::variant, convert(V4_0::type::variant)); \ 23 ASSERT_EQ(V4_0::type::variant, convert(KMV1::type::variant)) 69 ASSERT_EQ(KMV1::KeyOrigin::RESERVED, convert(V4_0::KeyOrigin::UNKNOWN)); in TEST() 70 ASSERT_EQ(V4_0::KeyOrigin::UNKNOWN, convert(KMV1::KeyOrigin::RESERVED)); in TEST() 75 auto kmv1_param = KMV1::makeKeyParameter( \ 76 KMV1::tag, KMV1::TypedTag2ValueType<decltype(KMV1::tag)>::type{}); \ 85 auto kmv1_param = KMV1::makeKeyParameter( \ 86 KMV1::tag, KMV1::TypedTag2ValueType<decltype(KMV1::tag)>::type{}); \ 155 ASSERT_EQ(KMV1::ErrorCode::variant, convert(V4_0::ErrorCode::variant)) 220 ASSERT_EQ(KMV1::ErrorCode::KEYMINT_NOT_CONFIGURED, in TEST()
|
/system/security/keystore-engine/ |
D | keystore2_engine.cpp | 46 namespace KMV1 = ::aidl::android::hardware::security::keymint; 195 KMV1::Algorithm algorithm) { in keystore2_sign() 199 std::vector<KMV1::KeyParameter> op_params(4); in keystore2_sign() 200 op_params[0] = KMV1::KeyParameter{ in keystore2_sign() 201 .tag = KMV1::Tag::PURPOSE, in keystore2_sign() 202 .value = KMV1::KeyParameterValue::make<KMV1::KeyParameterValue::keyPurpose>( in keystore2_sign() 203 KMV1::KeyPurpose::SIGN)}; in keystore2_sign() 204 op_params[1] = KMV1::KeyParameter{ in keystore2_sign() 205 .tag = KMV1::Tag::ALGORITHM, in keystore2_sign() 206 .value = KMV1::KeyParameterValue::make<KMV1::KeyParameterValue::algorithm>(algorithm)}; in keystore2_sign() [all …]
|
/system/hardware/interfaces/wifi/keystore/1.0/default/ |
D | keystore.cpp | 25 namespace KMV1 = ::aidl::android::hardware::security::keymint; 232 std::optional<KMV1::Algorithm> algorithm; in keyStore2Sign() 234 if (element.keyParameter.tag == KMV1::Tag::ALGORITHM) { in keyStore2Sign() 235 algorithm = element.keyParameter.value.get<KMV1::KeyParameterValue::algorithm>(); in keyStore2Sign() 246 std::vector<KMV1::KeyParameter> op_params(4); in keyStore2Sign() 247 op_params[0] = KMV1::KeyParameter{ in keyStore2Sign() 248 .tag = KMV1::Tag::PURPOSE, in keyStore2Sign() 249 .value = KMV1::KeyParameterValue::make<KMV1::KeyParameterValue::keyPurpose>( in keyStore2Sign() 250 KMV1::KeyPurpose::SIGN)}; in keyStore2Sign() 251 op_params[1] = KMV1::KeyParameter{ in keyStore2Sign() [all …]
|