diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-20 16:57:57 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-20 23:14:47 +0200 |
commit | 1b7f62241023fdd000ee011824679a34d615c722 (patch) | |
tree | a68d1ee99adca06d4aec138887ba8de507c85fd2 /extmod/crypto-algorithms/sha256.h | |
parent | 664bc44f302ca9cbed02788fea4414b815b1ac65 (diff) | |
download | micropython-1b7f62241023fdd000ee011824679a34d615c722.tar.gz micropython-1b7f62241023fdd000ee011824679a34d615c722.zip |
extmod/moduhashlib: Add namespace prefix for crypto-algorithms/sha256.h.
Everyone loves to names similar things the same, then there're conflicts
between different libraries. The namespace prefix used is "CRYAL_", which
is weird, and that's good, as that minimizes chance of another conflict.
Diffstat (limited to 'extmod/crypto-algorithms/sha256.h')
-rw-r--r-- | extmod/crypto-algorithms/sha256.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extmod/crypto-algorithms/sha256.h b/extmod/crypto-algorithms/sha256.h index 7123a30dd4..caa1f81020 100644 --- a/extmod/crypto-algorithms/sha256.h +++ b/extmod/crypto-algorithms/sha256.h @@ -24,11 +24,11 @@ typedef struct { WORD datalen; unsigned long long bitlen; WORD state[8]; -} SHA256_CTX; +} CRYAL_SHA256_CTX; /*********************** FUNCTION DECLARATIONS **********************/ -void sha256_init(SHA256_CTX *ctx); -void sha256_update(SHA256_CTX *ctx, const BYTE data[], size_t len); -void sha256_final(SHA256_CTX *ctx, BYTE hash[]); +void sha256_init(CRYAL_SHA256_CTX *ctx); +void sha256_update(CRYAL_SHA256_CTX *ctx, const BYTE data[], size_t len); +void sha256_final(CRYAL_SHA256_CTX *ctx, BYTE hash[]); #endif // SHA256_H |