Libtropic API
SDK for the TROPIC01 secure element
Version: master (latest)
Loading...
Searching...
No Matches
lt_sha256.h File Reference

SHA256 functions declarations. More...

#include <stddef.h>
#include <stdint.h>
#include "libtropic_common.h"
Include dependency graph for lt_sha256.h:

Macros

#define LT_SHA256_DIGEST_LENGTH   32
 Length of SHA-256 digest.
 

Functions

lt_ret_t lt_sha256_init (void *ctx)
 Initializes SHA-256 context.
 
lt_ret_t lt_sha256_start (void *ctx)
 Starts SHA-256 calculation.
 
lt_ret_t lt_sha256_update (void *ctx, const uint8_t *input, const size_t input_len)
 Adds data to SHA-256 context.
 
lt_ret_t lt_sha256_finish (void *ctx, uint8_t *output)
 Finishes SHA-256 operation.
 

Detailed Description

License
For the license see file LICENSE.txt file in the root directory of this source tree.