diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-02-09 14:12:22 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-02-09 14:12:22 +0700 |
commit | 618c87711ac00f4e8e5ed21e5893d8dabda86a3c (patch) | |
tree | 948c750bc974af272d756a31ac6d1956ca7b0e42 | |
parent | Equals/GetHashCode for SignatureSubpacket (diff) | |
download | BouncyCastle.NET-ed25519-618c87711ac00f4e8e5ed21e5893d8dabda86a3c.tar.xz |
Clear copy of decrypted data
-rw-r--r-- | crypto/src/crypto/encodings/OaepEncoding.cs | 1 |
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; } |