pubkey/algo-name pubkey/check-key pubkey/estimated-strength pubkey/export pubkey/fingerprint pubkey/get-ec-group pubkey/get-field pubkey/get-public-point pubkey/load pubkey/load-classic-mceliece pubkey/load-dh pubkey/load-dsa pubkey/load-ecdh pubkey/load-ecdh-sec1 pubkey/load-ecdsa pubkey/load-ecdsa-sec1 pubkey/load-ed25519 pubkey/load-ed448 pubkey/load-elgamal pubkey/load-frodokem pubkey/load-ml-dsa pubkey/load-ml-kem pubkey/load-rsa pubkey/load-slh-dsa pubkey/load-sm2 pubkey/load-sm2-sec1 pubkey/load-x25519 pubkey/load-x448 pubkey/oid pubkey/to-der pubkey/to-pem pubkey/to-raw
(pubkey/check-key pubkey rng &opt weak)Test the key for consistency. If `weak` is true 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 format)Exports the public key using the usual X.509 SPKI representation. `format` is :pem for a PEM encoded string or :der for a binary DER value, defaulting to :der.
(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-ec-group pubkey)Return the EC Group object of an EC public key. Fails if `pubkey` is not an EC key.
(pubkey/get-field pubkey field-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-classic-mceliece key mode)Load a Classic McEliece public key with the given `mode`.
(pubkey/load-dsa p q g y)`p`, `q`, `g`, `y` are MPI objects.Return a public DSA key.
(pubkey/load-ecdh curve x y)`x`, `y` are MPI objects.Return a public ECDH key.
(pubkey/load-ecdh-sec1 curve sec1)`sec1` is a byte string.Return a public ECDH key.
(pubkey/load-ecdsa curve x y)`x`, `y` are MPI objects.Return a public ECDSA key.
(pubkey/load-ecdsa-sec1 curve sec1)`sec1` is a byte string.Return a public ECDSA key.
(pubkey/load-elgamal p g y)`p`, `g`, `y` are MPI objects.Return a public ElGamal key.
(pubkey/load-frodokem key mode)Load a FrodoKEM public key with the given `mode`.
(pubkey/load-ml-dsa key mode)Load a ML-DSA public key with the given `mode`, e.g., "ML-DSA-65".
(pubkey/load-ml-kem key mode)Return a public ML-KEM key based on the given mode.
(pubkey/load-rsa n e)Load an RSA public key giving the modulus and public exponent as integers.
(pubkey/load-slh-dsa key mode)Load a SLH-DSA public key with the given `mode`.
(pubkey/load-sm2 curve x y)`x`, `y` are MPI objects.Return a public SM2 key.
(pubkey/load-sm2-sec1 curve sec1)`sec1` is a byte string.Return a public SM2 key.
(pubkey/to-raw pubkey)Return the unencrypted canonical raw encoding of the public key. This might not be defined for all key types.