pubkey/algo-name pubkey/check-key pubkey/estimated_strength pubkey/export pubkey/fingerprint pubkey/get-field pubkey/get-public-point pubkey/load pubkey/load-dh pubkey/load-dsa pubkey/load-ecdh pubkey/load-ecdsa pubkey/load-elgamal pubkey/load-kyber pubkey/load-rsa pubkey/load-sm2 pubkey/to-der pubkey/to-pem
(pubkey/check-key pubkey rng &opt weak)
Test the key for consistency. If weak is provided then less expensive tests are performed.
(pubkey/estimated_strength pubkey)
Returns the estimated strength of this key against known attacks (NFS, Pollard’s rho, etc)
(pubkey/export pubkey &opt pem)
Exports the public key using the usual X.509 SPKI representation. If `pem` is provided, the result is a PEM encoded string. Otherwise it is a binary DER value.
(pubkey/fingerprint pubkey &opt hash)
Returns a hash of the public key. "SHA-256" is used as a default hash, if `hash` is not provided.
(pubkey/get-field pubkey filed-name)
Return an integer field related to the public key. The valid field names vary depending on the algorithm. For example RSA public modulus can be extracted with (pubkey/get-field "n").
(pubkey/load-rsa n e)
Load an RSA public key giving the modulus and public exponent as integers.