Stdlib family crypto

This family page is the encyclopedia entry for one stdlib area. It explains why the family exists, what responsibility belongs here, and which files make up the surface.

Overview

FieldValue
Familycrypto
Module count9
PurposeHashing, HMAC, randomness, key derivation, symmetric primitives, and asymmetric primitives.

Architecture role

Use `crypto` when integrity, secrecy, or key management is the feature. This family should never be presented as generic formatting or utility code.

Main responsibilities

  • Own cryptographic transformations and their vocabulary.
  • Keep randomness and hashing distinct from casual helper logic.
  • Document where security-sensitive flows begin and end.

Real usage story

  • A package manifest can be serialized first, then hashed, then optionally signed.
  • A token flow can derive a key in one boundary and use it in another without mixing concerns.

Module inventory