Skip to main content

Module key

Module key 

Source

Structs§

KeyPair
An RSA key pair, used for signing.
KeyPairComponents
RSA key pair components.
PublicKey
A serialized RSA public key.
PublicKeyComponents
Low-level API for RSA public keys.

Enums§

KeySize
RSA key-size.

Functions§

generate_rsa_key 🔒
is_rsa_key 🔒
parse_rsa_public_key 🔒
public_component_to_bn 🔒
Converts one of the public components (n or e) of a PublicKeyComponents into a BIGNUM, enforcing the documented “without leading zeros” encoding.
validate_rsa_key 🔒