summaryrefslogtreecommitdiff
path: root/src/mongo/crypto
diff options
context:
space:
mode:
authorAdrian Gonzalez <adriangonzalezmontemayor@gmail.com>2021-06-08 18:28:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-11 16:48:30 +0000
commitf55971f4b3c3390caefe2238bd36ced05cca6971 (patch)
treee4a6b4e2488a6320b39e9ef55d3e3e901337991e /src/mongo/crypto
parentc18e2820f9b251b58241b14e4845889007f815fd (diff)
downloadmongo-f55971f4b3c3390caefe2238bd36ced05cca6971.tar.gz
SERVER-56243 Update aeadDecryptDataFrame() to pass through status rather than throwing
Diffstat (limited to 'src/mongo/crypto')
-rw-r--r--src/mongo/crypto/aead_encryption.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/crypto/aead_encryption.cpp b/src/mongo/crypto/aead_encryption.cpp
index 27d3c0e5d77..fd9fe3201a2 100644
--- a/src/mongo/crypto/aead_encryption.cpp
+++ b/src/mongo/crypto/aead_encryption.cpp
@@ -410,14 +410,14 @@ Status aeadDecryptDataFrame(FLEDecryptionFrame& dataframe) {
auto associatedData = dataframe.getAssociatedData();
auto& plaintext = dataframe.getPlaintextMutable();
size_t outLen = plaintext.size();
- uassertStatusOK(aeadDecrypt(*dataframe.getKey(),
+ Status status = aeadDecrypt(*dataframe.getKey(),
ciphertext,
associatedData.data<uint8_t>(),
associatedData.length(),
plaintext.data(),
- &outLen));
+ &outLen);
plaintext.resize(outLen);
- return Status::OK();
+ return status;
}
Status aeadDecryptLocalKMS(const SymmetricKey& key,