refactor(Core.Security): Implementierung der entsprechenden Schnittstellen zu RSACryptographer, RSADecryptor und RSAEncryptor.
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
using DigitalData.Core.Security.Extensions;
|
||||
using DigitalData.Core.Abstractions.Security;
|
||||
using DigitalData.Core.Security.Extensions;
|
||||
|
||||
namespace DigitalData.Core.Security
|
||||
{
|
||||
public class RSADecryptor : RSACryptographer
|
||||
public class RSADecryptor : RSACryptographer, IRSADecryptor, IRSACryptographer
|
||||
{
|
||||
public required string PrivateKeyPem
|
||||
{
|
||||
init => _rsa.ImportFromPem(value);
|
||||
}
|
||||
|
||||
public RSAEncryptor Encryptor
|
||||
public IRSAEncryptor Encryptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return new ()
|
||||
return new RSAEncryptor()
|
||||
{
|
||||
PublicKeyPem = _rsa.ExportRSAPublicKeyPem(),
|
||||
Padding = Padding
|
||||
|
||||
Reference in New Issue
Block a user