Skip to main content
Module traits Copy item path Source hazmat This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns. Zeroizing Zeroizing is a a wrapper for any Z: Zeroize type which implements a
Drop handler which zeroizes dropped values.AeadInPlace In-place stateless AEAD trait. DecodeDer Decoding trait. DecodePem PEM decoding trait. Digest Convenience wrapper trait covering functionality of cryptographic hash
functions with fixed output size. DigestSigner Sign the given prehashed message Digest using Self. DigestVerifier Verify the provided signature for the given prehashed message Digest
is authentic. EncodeDer Encoding trait. EncodePem PEM encoding trait. FromEncodedPoint Trait for deserializing a value from a SEC1 encoded curve point. KeyInit Types which can be initialized from key. Keypair Signing keypair with an associated verifying key. Mac Convenience wrapper trait covering functionality of Message Authentication algorithms. OutputSizeUser Types which return data with the given size. OwnedToRef A trait for borrowing data from an owned struct Pkcs1DecodeRsaPrivateKey Parse an RsaPrivateKey from a PKCS#1-encoded document. Pkcs1EncodeRsaPrivateKey Serialize a RsaPrivateKey to a PKCS#1 encoded document. Pkcs8DecodePrivateKey Parse a private key object from a PKCS#8 encoded document. Pkcs8EncodePrivateKey Serialize a private key object to a PKCS#8 encoded document. PublicKeyParts Components of an RSA public key. RandomizedSigner Sign the given message using the provided external randomness source. SignatureEncoding Support for decoding/encoding signatures as bytes. Signer Sign the provided message bytestring using Self (e.g. a cryptographic key
or connection to an HSM), returning a digital signature. SpkiDecodePublicKey Parse a public key object from an encoded SPKI document. SpkiEncodePublicKey Serialize a public key object to a SPKI-encoded document. ToEncodedPoint Trait for serializing a value to a SEC1 encoded curve point. Verifier Verify the provided message bytestring using Self (e.g. a public key)