refactor(IRSADecryptor): Umbenennung in IAsymmetricPrivateKey

This commit is contained in:
Developer 02
2025-01-07 11:16:12 +01:00
parent 4f96d271f3
commit 5e1bf16b6d
10 changed files with 19 additions and 20 deletions

View File

@@ -2,9 +2,9 @@
{
public interface IAsymCryptHandler : IRSAFactory
{
IEnumerable<IRSADecryptor> Decryptors { get; }
IEnumerable<IAsymmetricPrivateKey> PrivateKeys { get; }
IRSADecryptor Vault { get; }
IAsymmetricPrivateKey VaultPrivateKey { get; }
IEnumerable<IRSAEncryptor> Encryptors { get; }
}

View File

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

View File

@@ -18,6 +18,6 @@ namespace DigitalData.Core.Abstractions.Security
int? keySizeInBits = null,
string? password = null);
IRSADecryptor CreateDecryptor(string pem, string? issuer = null, string? audience = null, bool encrypt = false, RSAEncryptionPadding? padding = null);
IAsymmetricPrivateKey CreatePrivateKey(string pem, string? issuer = null, string? audience = null, bool encrypt = false, RSAEncryptionPadding? padding = null);
}
}