refactor(IRSACryptographer): Umbenennung in IAsymmetricKey

This commit is contained in:
Developer 02 2025-01-07 11:03:14 +01:00
parent 14485af448
commit 4f96d271f3
6 changed files with 6 additions and 6 deletions

View File

@ -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; }

View File

@ -2,7 +2,7 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface IRSADecryptor : IRSACryptographer
public interface IRSADecryptor : IAsymmetricKey
{
public bool IsEncrypted { get; init; }

View File

@ -1,6 +1,6 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface IRSAEncryptor : IRSACryptographer
public interface IRSAEncryptor : IAsymmetricKey
{
public byte[] Encrypt(byte[] data);

View File

@ -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; }

View File

@ -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;

View File

@ -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
{