1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef HPAVKEYSHA_SOURCE
- #define HPAVKEYSHA_SOURCE
- #include "../key/HPAVKey.h"
- #include "../key/SHA256.h"
- void HPAVKeySHA (uint8_t digest [], const char * string)
- {
- struct sha256 sha256;
- SHA256Reset (& sha256);
- SHA256Write (& sha256, string, strlen (string));
- SHA256Fetch (& sha256, digest);
- return;
- }
- #endif
|