Reworked encryption to use less heap allocated buffers for secrets.
Also some work on plugin system.
This commit is contained in:
parent
8782ef39c6
commit
054754f553
42 changed files with 1452 additions and 242 deletions
|
|
@ -19,7 +19,8 @@ public class EncryptionTests
|
|||
byte[] keyValue = Convert.FromBase64String("IGd9yUMusjNW0ezv8ink3QWlAHKFH45d21LyrbJTokw=");
|
||||
|
||||
// act
|
||||
byte[] result = Encryption.Decrypt(cipher, keyValue);
|
||||
byte[] result = new byte[Encryption.GetDecryptedLength(cipher)];
|
||||
Encryption.Decrypt(cipher, keyValue, result);
|
||||
|
||||
// verify
|
||||
Assert.Equal("Hello, World!"u8, result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue