refactor(IAsymmetricKey): Umwandlung von RsaSecurityKey in SecurityKey zur besseren Abstraktion.

- RSAEncryptionPadding entfernen
 - Pem als Inhalt Content
This commit is contained in:
Developer 02
2025-01-07 16:53:05 +01:00
parent 34e14fd2f5
commit 608d266d1c
5 changed files with 14 additions and 16 deletions

View File

@@ -7,7 +7,7 @@ namespace DigitalData.Core.Security.RSAKey
{
public class RSAKeyBase : IAsymmetricKey
{
public virtual string Pem { get; init; }
public virtual string Content { get; init; }
public RSAEncryptionPadding Padding { get; init; } = RSAEncryptionPadding.OaepSHA256;
@@ -26,7 +26,7 @@ namespace DigitalData.Core.Security.RSAKey
private readonly Lazy<RsaSecurityKey> _lazyRsaSecurityKey;
public RsaSecurityKey RsaSecurityKey => _lazyRsaSecurityKey.Value;
public SecurityKey SecurityKey => _lazyRsaSecurityKey.Value;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
internal RSAKeyBase()