123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #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
|