[−][src]Module jwt::algorithm::openssl
OpenSSL support through the openssl crate. Note that private keys can only be used for signing and that public keys can only be used for verification.
Examples
extern crate jwt; extern crate openssl; use jwt::PKeyWithDigest; use openssl::hash::MessageDigest; use openssl::pkey::PKey; let pem = include_bytes!("../../test/rs256-public.pem"); let rs256_public_key = PKeyWithDigest { digest: MessageDigest::sha256(), key: PKey::public_key_from_pem(pem).unwrap(), };
Structs
PKeyWithDigest | A wrapper class around PKey that associates the key with a MessageDigest. |