klyn.cryptography.Signature.initSign
method

    public initSign(privateKeyPem as String) as Void:

Description

Initializes the instance for signing with a private key.

Parameters

Parameter | Description
--- | ---
`privateKeyPem` | PEM-encoded RSA private key.

Example

    import klyn.cryptography

    keys = RSAKeyPairGenerator().generateKeyPair()
    signature = RSAPSSSignature(SHA256())
    signature.initSign(keys.privateKeyPem)