tor  master
Data Fields
crypto_digest_t Struct Reference
Collaboration diagram for crypto_digest_t:
Collaboration graph
[legend]

Data Fields

digest_algorithm_t algorithm
 
union {
   SHA_CTX   sha1
 
   SHA256_CTX   sha2
 
   SHA512_CTX   sha512
 
   keccak_state   sha3
 
d
 

Detailed Description

Intermediate information about the digest of a stream of data.

Field Documentation

◆ algorithm

digest_algorithm_t algorithm

Which algorithm is in use?

◆ d

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!

◆ sha1

SHA_CTX sha1

state for SHA1

◆ sha2

SHA256_CTX sha2

state for SHA256

◆ sha3

state for SHA3-[256,512]

◆ sha512

SHA512_CTX sha512

state for SHA512


The documentation for this struct was generated from the following file: