Module bdrck::crypto

source ·
Expand description

crypto contains some basic cryptographic primitives, built largely on top of NaCl, which are generally useful for any program which performs crypto ops.

Modules

  • digest defines an API for computing cryptographically secure digests of data.
  • key defines structures which represent cryptographic keys, and provides some generic code to implement basic operations like encryption and decryption.
  • keystore defines a structure for persisting a “master key” on disk, via key wrapping.
  • secret defines a structure for “safely” storing “secret” data in memory. Think things like keys, plaintext, etc.
  • util provides some trivial crypto-related utility functions.
  • wrap defines utilities for “wrapping” a key with another key. This is useful, for instance, to have a single “master key”, which is then encrypted with potentially many other keys. Then, any of the other keys can be used to “unwrap” the “real” master key.