Expand description

Collection of utilities for cryptography related components.

Re-exports

pub use encryptor::CryptoAlgorithm;
pub use signer::SignatureAlgorithm;

Modules

Traits

Trait must be implemented for pluggable cryptography. Implemented by CryptoAlgorithm with raw-crypto feature.

Trait must be implemented for pluggable signatures. Implemented by SignatureAlgorithm with raw-crypto feature.

Type Definitions

Return FnOnce signature definition for asymmetric cryptography method. Arguments sequence: Nonce, Key, Message.

Return FnOnce signature definition for signature signing method. .0 == key: &[u8]; .1 == message;

Return FnOnce signature definition for symmetric cryptography method. Arguments sequence: Nonce, Key, Message.

Return FnOnce signature definition for signature validating method. .0 == key: &[u8]; .1 == message; .2 == signature;