Crate bramble_crypto[−][src]
Expand description
The cryptographic primitives used in the Bramble protocols
Structs
The output of a hash function
An asymmetric cryptography key pair
A message-authentication code
A nonce
An asymmetric public key
An asymmetric secret key
A symmetric cryptography key
Enums
Constants
The length of the AEAD auth tags
The length of hashes
The length of keys
The length of MACs
The length of the AEAD nonces
The length of the PRF output
Functions
Decrypts an authenticated ciphertext.
Performs a Diffie-Hellman operation between the two given keys.
Encrypts a plaintext with an authenticated cipher
Computes a hash of the given messages with the given label as domain separator.
Derives a key from the given key and messages with the given label as domain separator.
Performs a key exchange from the given DH keys and the given messages with the given label as domain separator.
Derives a MAC from the given key and messages with the given label as domain separator.
A pseudo-random function.
Expands a key into a stream of pseudo-random bytes.
Type Definitions
Result type for Bramble errors.