Module btlib::crypto

source ·
Expand description

This module contains types providing the cryptographic primitives necessary to implement Blocktree.

The openssl create is used for all of these primitives, none of them are directly implemented in this module. Rather, the types here wrap the functionality provided by OpenSSL in a more convenient interface, and they serve as an abstraction layer, so that the underlying crypto library can be more easily replaced.

Re-exports

Modules

Structs

Enums

Traits

Functions

  • Returns an array of the given length filled with cryptographically strong random data.
  • Returns a vector of the given length with with cryptographically strong random data.

Type Definitions