public class RSAPSSSignature extends Signature:
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"))| Modifier and Type | Member | Description |
|---|---|---|
| public | RSAPSSSignatureRSAPSSSignature() throws CryptoException: |
Creates an RSA-PSS signature using `SHA256`. |
| public | RSAPSSSignatureRSAPSSSignature(hash as Object) throws CryptoException: |
Creates an RSA-PSS signature bound to the given digest algorithm. |