refactor(IRSACryptographer): Umbenennung in IAsymmetricKey
This commit is contained in:
parent
14485af448
commit
4f96d271f3
@ -3,7 +3,7 @@ using System.Security.Cryptography;
|
||||
|
||||
namespace DigitalData.Core.Abstractions.Security
|
||||
{
|
||||
public interface IRSACryptographer : IUniqueSecurityContext
|
||||
public interface IAsymmetricKey : IUniqueSecurityContext
|
||||
{
|
||||
public string Pem { get; init; }
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace DigitalData.Core.Abstractions.Security
|
||||
{
|
||||
public interface IRSADecryptor : IRSACryptographer
|
||||
public interface IRSADecryptor : IAsymmetricKey
|
||||
{
|
||||
public bool IsEncrypted { get; init; }
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
namespace DigitalData.Core.Abstractions.Security
|
||||
{
|
||||
public interface IRSAEncryptor : IRSACryptographer
|
||||
public interface IRSAEncryptor : IAsymmetricKey
|
||||
{
|
||||
public byte[] Encrypt(byte[] data);
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ using System.Security.Cryptography;
|
||||
namespace DigitalData.Core.Security.Cryptographer
|
||||
{
|
||||
//TODO: Abstract RSA for future updates (using ECC, El Gamal or Lattice-based Cryptography)
|
||||
public class RSACryptographer : IRSACryptographer
|
||||
public class RSACryptographer : IAsymmetricKey
|
||||
{
|
||||
public virtual string Pem { get; init; }
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ using System.Security.Cryptography;
|
||||
|
||||
namespace DigitalData.Core.Security.Cryptographer
|
||||
{
|
||||
public class RSADecryptor : RSACryptographer, IRSADecryptor, IRSACryptographer
|
||||
public class RSADecryptor : RSACryptographer, IRSADecryptor, IAsymmetricKey
|
||||
{
|
||||
private string? _pem;
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace DigitalData.Core.Security.Cryptographer
|
||||
{
|
||||
public class RSAEncryptor : RSACryptographer, IRSAEncryptor, IRSACryptographer
|
||||
public class RSAEncryptor : RSACryptographer, IRSAEncryptor, IAsymmetricKey
|
||||
{
|
||||
public override string Pem
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user