RSAPKCS1Signature
class in package klyn.cryptography

    public class RSAPKCS1Signature extends Signature:

Object
└ Signature
└ RSAPKCS1Signature

RSA PKCS#1 v1.5 signature implementation parameterized by a concrete digest.

    import klyn.cryptography

    keys = RSAKeyPairGenerator().generateKeyPair()
    signer = RSAPKCS1Signature(SHA256())
    signer.initSign(keys.privateKeyPem)
    token = signer.sign("hello")
    verifier = RSAPKCS1Signature(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 | RSAPKCS1Signature `RSAPKCS1Signature() throws CryptoException:` | Creates an RSA PKCS#1 v1.5 signature using `SHA256`.
public | RSAPKCS1Signature `RSAPKCS1Signature(hash as Object) throws CryptoException:` | Creates an RSA PKCS#1 v1.5 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