std :: crypto::sha1
Struct std::Sha1Ctx
struct Sha1Ctx {
unsigned int h[5];
unsigned char buf[SHA1_BLOCK_SIZE];
unsigned long total_bytes;
}Fields
current hash state
partial block buffer
total bytes processed
Methods
A fresh SHA-1 context.
Feed len bytes of data into the hash.
Finalise and write the 20-byte digest.
SHA1_DIGEST_SIZE / SHA1_BLOCK_SIZE (hash.h's BlockHash).