From 618c87711ac00f4e8e5ed21e5893d8dabda86a3c Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 9 Feb 2021 14:12:22 +0700 Subject: Clear copy of decrypted data --- crypto/src/crypto/encodings/OaepEncoding.cs | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit 1.4.1