add sha256 impl

This commit is contained in:
Conor Patrick
2018-05-06 14:53:43 -04:00
parent ed6308eaa1
commit 0c5c3dc742
4 changed files with 240 additions and 0 deletions

11
crypto.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef _CRYPTO_H
#define _CRYPTO_H
#define USE_SOFTWARE_IMPLEMENTATION
void crypto_sha256_init();
void crypto_sha256_update(uint8_t * data, size_t len);
void crypto_sha256_final(uint8_t * hash);
#endif