#include <sha256.h>
Public Member Functions | |
Sha256 & | Update (ConstByteSpan data) |
Status | Final (ByteSpan out_digest) |
Computes the SHA256 digest of potentially long, non-contiguous input messages.
Usage:
|
inline |
Finishes the hashing session and outputs the final digest in the first kDigestSizeBytes
of out_digest
. out_digest
must be at least kDigestSizeBytes
long.
Final()
locks down the Sha256
instance from any additional use.
Any error, including those occurring inside the constructor or Update()
will be reflected in the return value of Final()
.
|
inline |
Feeds data
to the running hasher. The feeding can involve zero or more Update()
calls and the order matters.