ddn.crypto.signature.rsa
RSA-PSS Signature Implementation (PKCS#1 v2.1 / RFC 8017).
Types 4
classRSAPSSSigner : Signer
Fields
private RSAPrivateKey _keyprivate HashFactory _hashFactoryprivate Random _randomprivate size_t _sLenprivate Hash _hashMethods
void initialize(PrivateKey key)void init(PrivateKey key)void update(const(ubyte)[] input)ubyte[] sign()Constructors
this(HashFactory hashFactory, Random random, size_t sLen = size_t.max)classRSAPSSVerifier : Verifier
Fields
private RSAPublicKey _keyprivate HashFactory _hashFactoryprivate size_t _sLenprivate Hash _hashMethods
void initialize(PublicKey key)void update(const(ubyte)[] input)bool verify(const(ubyte)[] signature)Constructors
this(HashFactory hashFactory, size_t sLen = size_t.max)classRSAPKCS1Signer : Signer
RSA PKCS#1 v1.5 Signature Implementation (RFC 8017).
Fields
private RSAPrivateKey _keyprivate HashFactory _hashFactoryprivate Hash _hashprivate Random _randomMethods
void initialize(PrivateKey key)void init(PrivateKey key)void update(const(ubyte)[] input)ubyte[] sign()Constructors
this(HashFactory hashFactory, Random random = null)Constructs an RSAPKCS1Signer.classRSAPKCS1Verifier : Verifier
RSA PKCS#1 v1.5 Verification Implementation (RFC 8017).
Methods
void initialize(PublicKey key)void update(const(ubyte)[] input)bool verify(const(ubyte)[] signature)Constructors
this(HashFactory hashFactory)Functions 1
fn
ubyte[] pkcs1DigestInfoPrefix(Hash hash)Returns the DER DigestInfo prefix for a PKCS#1 v1.5 signature.