klyn.cryptography.Signature.getInstance
method
public static getInstance(algorithm as String) as Signature throws CryptoException:
DescriptionCompatibility factory for dynamic algorithm selection.
The preferred APIs are `RSAPSSSignature(SHA256())` and
`RSAPKCS1Signature(SHA256())`.
import klyn.cryptography
signature = Signature.getInstance("SHA256withRSA/PSS")
print(signature.algorithm)
ReturnsReady-to-use signature instance.