summaryrefslogtreecommitdiff
path: root/legacy_support/rsa_keymaster1_operation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'legacy_support/rsa_keymaster1_operation.cpp')
-rw-r--r--legacy_support/rsa_keymaster1_operation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy_support/rsa_keymaster1_operation.cpp b/legacy_support/rsa_keymaster1_operation.cpp
index a32a8a6..7f4d59f 100644
--- a/legacy_support/rsa_keymaster1_operation.cpp
+++ b/legacy_support/rsa_keymaster1_operation.cpp
@@ -128,11 +128,11 @@ OperationPtr RsaKeymaster1OperationFactory::CreateOperation(Key&& key,
switch (purpose_) {
case KM_PURPOSE_SIGN:
- return OperationPtr(new RsaKeymaster1Operation<RsaSignOperation>(
+ return OperationPtr(new (std::nothrow) RsaKeymaster1Operation<RsaSignOperation>(
key.hw_enforced_move(), key.sw_enforced_move(), digest, padding, rsa.release(),
engine_));
case KM_PURPOSE_DECRYPT:
- return OperationPtr(new RsaKeymaster1Operation<RsaDecryptOperation>(
+ return OperationPtr(new (std::nothrow) RsaKeymaster1Operation<RsaDecryptOperation>(
key.hw_enforced_move(), key.sw_enforced_move(), digest, padding, rsa.release(),
engine_));
default: