From 30c77521cad995f7d3e7402b0d8efa0ace873c77 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Mon, 28 Mar 2016 18:00:17 -0400 Subject: [PATCH] Remove RSA_FLAG_EXT_PKEY from android_engine.cpp. RSA_FLAG_EXT_PKEY, despite the name, is only about calling the RSA_METHOD's mod_exp hook while reusing the rest of the RSA_private_transform logic. This code doesn't provide mod_exp and instead overrides private_transform, so the flag is a no-op. --- keystore-engine/android_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystore-engine/android_engine.cpp b/keystore-engine/android_engine.cpp index d23f1693..d9c99fef 100644 --- a/keystore-engine/android_engine.cpp +++ b/keystore-engine/android_engine.cpp @@ -217,7 +217,7 @@ const struct rsa_meth_st keystore_rsa_method = { NULL /* mod_exp */, NULL /* bn_mod_exp */, - RSA_FLAG_CACHE_PUBLIC | RSA_FLAG_OPAQUE | RSA_FLAG_EXT_PKEY, + RSA_FLAG_CACHE_PUBLIC | RSA_FLAG_OPAQUE, NULL /* keygen */, NULL /* multi_prime_keygen */,