refactor(RSAFactory): Methode CreateEncryptedPrivateKeyPem hinzugefügt, um mit direkt benutzerdefinierten pbeParametern zu erstellen.

- Umbenennung der Methode CreateRSAPrivateKeyPem in CreatePrivateKeyPem
This commit is contained in:
Developer 02
2024-12-13 15:45:09 +01:00
parent d013d3edfa
commit a9ebc406f3
3 changed files with 30 additions and 12 deletions

View File

@@ -4,14 +4,19 @@ namespace DigitalData.Core.Abstractions.Security
{
public interface IRSAFactory
{
string CreateRSAPrivateKeyPem(int? keySizeInBits = null);
string CreatePrivateKeyPem(int? keySizeInBits = null);
string CreateEncryptedPrivateKeyPem(
int? keySizeInBits = null,
string? password = null,
public string CreateEncryptedPrivateKeyPem(
PbeEncryptionAlgorithm? pbeEncryptionAlgorithm = null,
HashAlgorithmName? hashAlgorithmName = null,
int? iterationCount = null);
int? iterationCount = null,
int? keySizeInBits = null,
string? password = null);
public string CreateEncryptedPrivateKeyPem(
PbeParameters pbeParameters,
int? keySizeInBits = null,
string? password = null);
}
public interface IRSAFactory<TParams> : IRSAFactory { }