Crate cryprot_core

Source
Expand description

Core utilites for cryptographic protocols.

This crate implements several core utilities for cryptographic protocols. The most important type is the 128-bit Block. As we generally use a security parameter of 128 bits, this type is a convenient way of storing security parameter many bits.

Re-exports§

pub use block::Block;

Modules§

aes_hash
Correlation robust AES hash.
aes_rng
RNG based on AES in CTR mode.
alloc
Allocation utilities for efficiently allocating zeroed memory.
block
A 128-bit Block type.
buf
Owned buffer abstraction trait for Vec and HugePageMemory.
rand_compat
Compatability wrapper between rand_core 0.9 and rand_core 0.6.
random_oracle
Aliases to Blake3 as a random oracle.
tokio_rayon
Tokio-Rayon integration to spawn compute tasks in async contexts.
transpose
Transpose bit-matrices fast.
utils
Small utility functions such as xor_inplace.

Constants§

AES_PAR_BLOCKS
Number of Blocks for which hardware accelerated AES can make use of ILP.