CryptoAuthLib
Atmel CryptoAuthentication Library
atca_crypto_sw_sha1.h
Go to the documentation of this file.
1 
42 #ifndef ATCA_CRYPTO_SW_SHA1_H
43 #define ATCA_CRYPTO_SW_SHA1_H
44 
45 #include "atca_crypto_sw.h"
46 #include <stddef.h>
47 #include <stdint.h>
48 
57 #define ATCA_SHA1_DIGEST_SIZE (20)
58 
59 typedef struct {
60  uint32_t pad[32];
62 
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
66 
68 int atcac_sw_sha1_update(atcac_sha1_ctx* ctx, const uint8_t* data, size_t data_size);
70 int atcac_sw_sha1(const uint8_t * data, size_t data_size, uint8_t digest[ATCA_SHA1_DIGEST_SIZE]);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
77 #endif
#define ATCA_SHA1_DIGEST_SIZE
Definition: atca_crypto_sw_sha1.h:57
int atcac_sw_sha1_finish(atcac_sha1_ctx *ctx, uint8_t digest[ATCA_SHA1_DIGEST_SIZE])
Definition: atca_crypto_sw_sha1.c:62
int atcac_sw_sha1_update(atcac_sha1_ctx *ctx, const uint8_t *data, size_t data_size)
Definition: atca_crypto_sw_sha1.c:55
int atcac_sw_sha1(const uint8_t *data, size_t data_size, uint8_t digest[ATCA_SHA1_DIGEST_SIZE])
Definition: atca_crypto_sw_sha1.c:69
Common defines for CryptoAuthLib software crypto wrappers.
Definition: atca_crypto_sw_sha1.h:59
int atcac_sw_sha1_init(atcac_sha1_ctx *ctx)
Definition: atca_crypto_sw_sha1.c:46