refactor(IRSAEncryptor): umbenannt in IAsymmetricPublicKey

This commit is contained in:
Developer 02
2025-01-07 11:33:53 +01:00
parent 4ce738957d
commit 9aafc9e467
6 changed files with 11 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
namespace DigitalData.Core.Security.Cryptographer
{
public class RSAEncryptor : RSAKeyBase, IRSAEncryptor, IAsymmetricKey
public class RSAEncryptor : RSAKeyBase, IAsymmetricPublicKey, IAsymmetricKey
{
public override string Pem
{

View File

@@ -24,13 +24,13 @@ namespace DigitalData.Core.Security.Cryptographer
public bool IsEncrypted { get; init; }
private readonly Lazy<IRSAEncryptor> _lazyEncryptor;
private readonly Lazy<IAsymmetricPublicKey> _lazyPublicKey;
public IRSAEncryptor Encryptor => _lazyEncryptor.Value;
public IAsymmetricPublicKey PublicKey => _lazyPublicKey.Value;
public RSAPrivateKey()
{
_lazyEncryptor = new(() => new RSAEncryptor()
_lazyPublicKey = new(() => new RSAEncryptor()
{
Pem = RSA.ExportRSAPublicKeyPem(),
Padding = Padding