EVPKey (open)
EVP key (high-level cryptograpic key)
Syntax
LOADLIB "wh::crypto.whlib";
OBJECTTYPE EVPKey
Properties
- PROPERTY keylength
Get the key length in bits
- PROPERTY keytype
Get the key type, one of "RSA" or "EC"
- PROPERTY privatekey
Get the private key, empty for public-only keys
- PROPERTY publickey
Get the public key
- PROPERTY publiconly
If this key only has a public key (public keys can only be used for decryption and signature verification)
Functions
- STRING FUNCTION GenerateCSR(RECORD ARRAY nameparts, STRING altnames)
Generate a PEM-encoded certificate request
- STRING FUNCTION Sign(STRING data, STRING alg)
Sign data
- BOOLEAN FUNCTION Verify(STRING data, STRING signature, STRING alg)
Verify a signature