diff --git a/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/KeyMintSecurityLevelInterceptor.kt b/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/KeyMintSecurityLevelInterceptor.kt index c25c079..0c5b975 100644 --- a/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/KeyMintSecurityLevelInterceptor.kt +++ b/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/KeyMintSecurityLevelInterceptor.kt @@ -328,7 +328,8 @@ class KeyMintSecurityLevelInterceptor( (isAsymmetric && (requestedPurpose == KeyPurpose.VERIFY || requestedPurpose == KeyPurpose.ENCRYPT)) || - (requestedPurpose == KeyPurpose.AGREE_KEY && algorithm != Algorithm.EC) + (requestedPurpose == KeyPurpose.AGREE_KEY && algorithm != Algorithm.EC) || + (algorithm == Algorithm.EC && requestedPurpose == KeyPurpose.DECRYPT) if (unsupported) { return InterceptorUtils.createServiceSpecificErrorReply( KeystoreErrorCode.UNSUPPORTED_PURPOSE