tor  0.4.1.0-alpha-dev
Data Fields
crypto_digest_t Struct Reference

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.

Definition at line 287 of file crypto_digest.c.

Field Documentation

◆ algorithm

digest_algorithm_t crypto_digest_t::algorithm

◆ d

union { ... } crypto_digest_t::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!

Referenced by crypto_digest_assign(), crypto_digest_checkpoint(), crypto_digest_free_(), and crypto_digest_restore().

◆ sha1

SHA_CTX crypto_digest_t::sha1

state for SHA1

Definition at line 297 of file crypto_digest.c.

◆ sha2

SHA256_CTX crypto_digest_t::sha2

state for SHA256

Definition at line 298 of file crypto_digest.c.

◆ sha3

keccak_state crypto_digest_t::sha3

state for SHA3-[256,512]

Definition at line 304 of file crypto_digest.c.

◆ sha512

SHA512_CTX crypto_digest_t::sha512

state for SHA512

Definition at line 299 of file crypto_digest.c.


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