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
|
|
@ -11,6 +11,16 @@ public class NullDekEncryptionService : IDekEncryptionService
|
|||
return new(KeyId, plain.ToArray());
|
||||
}
|
||||
|
||||
public void Decrypt(EncryptedDek input, Span<byte> output)
|
||||
{
|
||||
input.Value.CopyTo(output);
|
||||
}
|
||||
|
||||
public int GetDecryptedSize(EncryptedDek input)
|
||||
{
|
||||
return input.Value.Length;
|
||||
}
|
||||
|
||||
public byte[] Decrypt(EncryptedDek input)
|
||||
{
|
||||
return input.Value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue