Implementation of the SHA-512/256 hashing function.  
More...
Implementation of the SHA-512/256 hashing function. 
 | 
| file   | sha512_256.h | 
|   | Header definitions for the SHA512/256 hash function. 
  | 
|   | 
◆ sha512_256()
      
        
          | void sha512_256  | 
          ( | 
          const void *  | 
          data,  | 
        
        
           | 
           | 
          size_t  | 
          len,  | 
        
        
           | 
           | 
          void *  | 
          digest  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
A wrapper function to simplify the generation of a hash. 
This is useful for generating sha512_256 for one single buffer in a single step.
- Parameters
 - 
  
    | [in] | data | pointer to the buffer to generate hash from  | 
    | [in] | len | length of the buffer  | 
    | [out] | digest | optional pointer to an array for the result, length must be at least SHA512_256_DIGEST_LENGTH  | 
  
   
 
 
◆ sha512_256_final()
SHA-512/256 finalization. 
Pads the input data, exports the hash value, and clears the context state.
- Parameters
 - 
  
     | ctx | sha512_256_context_t handle to use, must not be NULL  | 
    | [out] | digest | pointer to resulting digest, this is the hash of all the bytes. Length must be at least SHA512_256_DIGEST_LENGTH  | 
  
   
Definition at line 74 of file sha512_256.h.
 
 
◆ sha512_256_init()
SHA-512/256 initialization. 
Begins a SHA-512/256 operation.
- Parameters
 - 
  
    | ctx | sha512_256_context_t handle to init, must not be NULL  | 
  
   
 
 
◆ sha512_256_update()
Add bytes into the hash. 
- Parameters
 - 
  
     | ctx | sha512_256_context_t handle to use, must not be NULL  | 
    | [in] | data | Input data  | 
    | [in] | len | Length of data  | 
  
   
Definition at line 61 of file sha512_256.h.