ddn.crypto.signature.rsa

RSA-PSS Signature Implementation (PKCS#1 v2.1 / RFC 8017).

Types 5

aliasHashFactory = Hash delegate()

Delegate to create a new Hash instance

Fields
private RSAPrivateKey _key
private HashFactory _hashFactory
private Random _random
private size_t _sLen
private Hash _hash
Methods
void init(PrivateKey key)
void update(const(ubyte)[] input)
ubyte[] sign()
Constructors
this(HashFactory hashFactory, Random random, size_t sLen = size_t.max)
Fields
private RSAPublicKey _key
private HashFactory _hashFactory
private size_t _sLen
private Hash _hash
Methods
void init(PublicKey key)
void update(const(ubyte)[] input)
bool verify(const(ubyte)[] signature)
Constructors
this(HashFactory hashFactory, size_t sLen = size_t.max)

RSA PKCS#1 v1.5 Signature Implementation (RFC 8017).

Fields
private RSAPrivateKey _key
private HashFactory _hashFactory
private Hash _hash
Methods
void init(PrivateKey key)
void update(const(ubyte)[] input)
ubyte[] sign()
Constructors
this(HashFactory hashFactory)

RSA PKCS#1 v1.5 Verification Implementation (RFC 8017).

Fields
private RSAPublicKey _key
private HashFactory _hashFactory
private Hash _hash
Methods
void init(PublicKey key)
void update(const(ubyte)[] input)
bool verify(const(ubyte)[] signature)
Constructors
this(HashFactory hashFactory)

Functions 1

private fnubyte[] getPkcs1Prefix(size_t hashSize)