Hash
[API]

Modules

 SHA

Enumerations

enum  C4eHashId { C4eHashIdSha1, C4eHashIdSha224, C4eHashIdSha256, C4eHashIdSize }

Functions

C4eArchUint c4e_hash_len (C4eHashId hid)
 Return length of a digest associated with a hash identifier.

Enumeration Type Documentation

enum C4eHashId

Hash algorithm identifier.

Enumerator:
C4eHashIdSha1 

SHA-1: OID { nistAlgorithms 2 }

C4eHashIdSha224 

SHA-224: OID { hashAlgs 4 }

C4eHashIdSha256 

SHA-256: OID { hashAlgs 1 }

C4eHashIdSize 

Number of enums (not a real hash ID)

Definition at line 44 of file c4e_hash.h.


Function Documentation

C4eArchUint c4e_hash_len ( C4eHashId  hid  ) 

Return length of a digest associated with a hash identifier.

Parameters:
[in] hid Hash algorithm identifier of type C4eHashId.
Returns:
Length of digest associated with hid, in bytes.
See also:
C4eHashId, c4e_sha.h