summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/sha256.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/sha256.h')
-rw-r--r--examples/redis-unstable/src/sha256.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/examples/redis-unstable/src/sha256.h b/examples/redis-unstable/src/sha256.h
deleted file mode 100644
index a0d90a7..0000000
--- a/examples/redis-unstable/src/sha256.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*********************************************************************
-* Filename: sha256.h
-* Author: Brad Conte (brad AT bradconte.com)
-* Copyright:
-* Disclaimer: This code is presented "as is" without any guarantees.
-* Details: Defines the API for the corresponding SHA256 implementation.
-*********************************************************************/
-
-#ifndef SHA256_H
-#define SHA256_H
-
-/*************************** HEADER FILES ***************************/
-#include <stddef.h>
-#include <stdint.h>
-
-/****************************** MACROS ******************************/
-#define SHA256_BLOCK_SIZE 32 // SHA256 outputs a 32 byte digest
-
-/**************************** DATA TYPES ****************************/
-typedef uint8_t BYTE; // 8-bit byte
-typedef uint32_t WORD; // 32-bit word
-
-typedef struct {
- BYTE data[64];
- WORD datalen;
- unsigned long long bitlen;
- WORD state[8];
-} 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[]);
-
-#endif // SHA256_H