rektor(RSA): Umbenennung von dir in cryptographer und Verschiebung der zugehörigen Klassen

This commit is contained in:
Developer 02
2024-12-05 10:03:39 +01:00
parent 6e4942c885
commit c38f7dcf72
7 changed files with 15 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
using DigitalData.Core.Abstractions.Security;
using System.Security.Cryptography;
namespace DigitalData.Core.Security.Cryptographer
{
public class RSACryptographer : IRSACryptographer
{
public required virtual string Pem { get; init; }
public RSAEncryptionPadding Padding { get; init; } = RSAEncryptionPadding.OaepSHA256;
protected virtual RSA RSA { get; } = RSA.Create();
public string? Issuer { get; init; }
public string? Audience { get; init; }
internal RSACryptographer() { }
}
}