RSAPSSSignature
class in package klyn.cryptography

    public class RSAPSSSignature extends Signature:

Object
└ Signature
└ RSAPSSSignature

RSA-PSS signature implementation parameterized by a concrete digest.

    import klyn.cryptography

    keys = RSAKeyPairGenerator().generateKeyPair()
    signer = RSAPSSSignature(SHA256())
    signer.initSign(keys.privateKeyPem)
    token = signer.sign("hello")
    verifier = RSAPSSSignature(SHA256())
    verifier.initVerify(keys.publicKeyPem)
    print(verifier.verify(token, "hello"))

Inherited Attributes
attribute Inherited Attributes from Signature: algorithm, hashAlgorithm, padding
Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | RSAPSSSignature `RSAPSSSignature() throws CryptoException:` | Creates an RSA-PSS signature using `SHA256`.
public | RSAPSSSignature `RSAPSSSignature(hash as Object) throws CryptoException:` | Creates an RSA-PSS signature bound to the given digest algorithm.

Inherited Methods
method Inherited Methods from Signature: getInstance, initSign, initVerify, reset, sign, toString, update, verify
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml