summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-02-09 14:12:22 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-02-09 14:12:22 +0700
commit618c87711ac00f4e8e5ed21e5893d8dabda86a3c (patch)
tree948c750bc974af272d756a31ac6d1956ca7b0e42
parentEquals/GetHashCode for SignatureSubpacket (diff)
downloadBouncyCastle.NET-ed25519-618c87711ac00f4e8e5ed21e5893d8dabda86a3c.tar.xz
Clear copy of decrypted data
-rw-r--r--crypto/src/crypto/encodings/OaepEncoding.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/src/crypto/encodings/OaepEncoding.cs b/crypto/src/crypto/encodings/OaepEncoding.cs
index 92001589c..690be116d 100644
--- a/crypto/src/crypto/encodings/OaepEncoding.cs
+++ b/crypto/src/crypto/encodings/OaepEncoding.cs
@@ -288,6 +288,7 @@ namespace Org.BouncyCastle.Crypto.Encodings
             byte[] output = new byte[block.Length - start];
 
             Array.Copy(block, start, output, 0, output.Length);
+            Array.Clear(block, 0, block.Length);
 
             return output;
         }