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

@@ -0,0 +1,17 @@
using Microsoft.IdentityModel.Tokens;
namespace DigitalData.Core.Abstractions.Security
{
public interface IAsymmetricPrivateKey : IAsymmetricKey
{
public bool IsEncrypted { get; init; }
IRSAEncryptor Encryptor { get; }
byte[] Decrypt(byte[] data);
string Decrypt(string data);
SigningCredentials CreateSigningCredentials(string algorithm = SecurityAlgorithms.RsaSha256, string? digest = null);
}
}