feat(RSAFactoryParams): Erstellt, um die Konfigurationen der RSA-Fabrik zu trennen

This commit is contained in:
Developer 02
2024-12-02 18:08:13 +01:00
parent f720ea9cd6
commit 5991444efd
4 changed files with 76 additions and 79 deletions

View File

@@ -2,22 +2,8 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface IRSAFactory
public interface IRSAFactory<TParams>
{
int KeySizeInBits { get; init; }
string PbePassword { init; }
PbeEncryptionAlgorithm PbeEncryptionAlgorithm { get; init; }
HashAlgorithmName PbeHashAlgorithmName { get; init; }
int PbeIterationCount { get; init; }
PbeParameters PbeParameters { get; }
string EncryptedPrivateKeyPemLabel { get; init; }
string CreateRSAPrivateKeyPem(int? keySizeInBits = null);
string CreateEncryptedPrivateKeyPem(