18 lines
551 B
C#
18 lines
551 B
C#
using System.Security.Cryptography;
|
|
|
|
namespace DigitalData.Core.Abstractions.Security
|
|
{
|
|
public interface IRSAFactory
|
|
{
|
|
string CreateRSAPrivateKeyPem(int? keySizeInBits = null);
|
|
|
|
string CreateEncryptedPrivateKeyPem(
|
|
int? keySizeInBits = null,
|
|
string? password = null,
|
|
PbeEncryptionAlgorithm? pbeEncryptionAlgorithm = null,
|
|
HashAlgorithmName? hashAlgorithmName = null,
|
|
int? iterationCount = null);
|
|
}
|
|
|
|
public interface IRSAFactory<TParams> : IRSAFactory { }
|
|
} |