ddn.crypto.signature.rsa

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

Types 4

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
private Random _random
Methods
void init(PrivateKey key)
void update(const(ubyte)[] input)
ubyte[] sign()
Constructors
this(HashFactory hashFactory, Random random = null)Constructs an RSAPKCS1Signer.

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

fnubyte[] pkcs1DigestInfoPrefix(Hash hash)Returns the DER DigestInfo prefix for a PKCS#1 v1.5 signature.