Skip to content

Truly independent web browser

LibCrypto: Remove the AES-GCM decryption failure log

Shannon Booth52a1499f99fc
diff --git a/Libraries/LibCrypto/RustBindings.cpp b/Libraries/LibCrypto/RustBindings.cpp
index a2366202f09..da11d05e5ba 100644
--- a/Libraries/LibCrypto/RustBindings.cpp
+++ b/Libraries/LibCrypto/RustBindings.cpp
@@ -415,10 +415,8 @@ bool crypto_aes_gcm_decrypt(ReadonlyBytes key, ReadonlyBytes ciphertext, Readonl
{
::Crypto::Cipher::AESGCMCipher cipher(key);
auto result = cipher.decrypt(ciphertext, iv, additional_data, tag);
- if (result.is_error()) {
- dbgln("FAILED: {}", result.error());
+ if (result.is_error())
return false;
- }
receive(state, result.value());
return true;
}