key
ModuleSigning keys: PEM keys read inline or from a file:// path, RSA key
pair generation, and signing on OpenSSL with constant-time private key
operations.
Contents
use utopia_auth::jwt::key::KeyPair;Rust
pub struct KeyPairA PEM-encoded RSA key pair, for an Asymmetric issuer.
use utopia_auth::jwt::key::Rsa;Rust
pub struct RsaThe raw parameters of an RSA key, as published in a JWK.
use utopia_auth::jwt::key::generate_key_pair;Rust
pub fn generate_key_pair(bits: i64) -> Result<KeyPair, Error>A fresh RSA key pair of bits bits.
Fails with Error::Exception below 512 bits or when generation fails.