tor
master
|
Data Fields | |
digest_algorithm_t | algorithm |
union { | |
SHA_CTX sha1 | |
SHA256_CTX sha2 | |
SHA512_CTX sha512 | |
keccak_state sha3 | |
} | d |
Intermediate information about the digest of a stream of data.
digest_algorithm_t algorithm |
Which algorithm is in use?
union { ... } d |
State for the digest we're using. Only one member of the union is usable, depending on the value of algorithm. Note also that space for other members might not even be allocated!
SHA_CTX sha1 |
state for SHA1
SHA256_CTX sha2 |
state for SHA256
keccak_state sha3 |
state for SHA3-[256,512]
SHA512_CTX sha512 |
state for SHA512