18 lines
No EOL
439 B
C#
18 lines
No EOL
439 B
C#
using IdentityShroud.Core.Contracts;
|
|
using IdentityShroud.Core.Security;
|
|
|
|
namespace IdentityShroud.TestUtils.Substitutes;
|
|
|
|
public class NullDekEncryptionService : IDekEncryptionService
|
|
{
|
|
public KekId KeyId { get; } = KekId.NewId();
|
|
public EncryptedDek Encrypt(ReadOnlySpan<byte> plain)
|
|
{
|
|
return new(KeyId, plain.ToArray());
|
|
}
|
|
|
|
public byte[] Decrypt(EncryptedDek input)
|
|
{
|
|
return input.Value;
|
|
}
|
|
} |