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"))

Attributes inherited from Signature: algorithm, hashAlgorithm, padding
Properties inherited 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.

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