klyn.cryptography.Signature.initVerify
method

    public initVerify(publicKeyPem as String) as Void:

Description

Initializes the instance for verification with a public key.

Parameters

Parameter | Description
--- | ---
`publicKeyPem` | PEM-encoded RSA public key.

Example

    import klyn.cryptography

    keys = RSAKeyPairGenerator().generateKeyPair()
    signature = RSAPSSSignature(SHA256())
    signature.initVerify(keys.publicKeyPem)