Skip to main content Module nixhash Copy item path Source algos ๐ ca_hash ๐ digester ๐ io ๐ asyncHelpers that calcutate the hash of the data written
and count the number of bytes written. serde serdesha256 ๐ NixHashDigester A digester that takes in bytes and ultimately produces a NixHash . Sha256 A SHA256 hash. Sha256Digester A digester that takes in bytes and ultimately produces a Sha256 . CAHash A Nix CAHash describes a content-addressed hash of a path. CAHashMode Representation for the supported hash modes. Error Errors related to NixHash construction. HashAlgo This are the hash algorithms supported by cppnix. NixHash NixHash represents hashes known by Nix (md5/sha1/sha256/sha512). copy_buf_hashed asyncAsynchronously copies the entire contents of a reader into a writer while hashing. copy_buf_sha256 asyncAsynchronously copies the entire contents of a reader into a writer while hashing. copy_hashed asyncAsynchronously copies the entire contents of a reader into a writer while hashing. copy_sha256 asyncAsynchronously copies the entire contents of a reader into a writer while hashing. decode_digest ๐ Decode a plain digest depending on the hash algo specified externally.
hexlower, nixbase32 and base64 encodings are supported - the encoding is
inferred from the input length.