summaryrefslogtreecommitdiff
path: root/includes/BSHA1.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/BSHA1.h')
-rw-r--r--includes/BSHA1.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/includes/BSHA1.h b/includes/BSHA1.h
deleted file mode 100644
index b58a890..0000000
--- a/includes/BSHA1.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-#include <Exceptions.h>
-#include <tomcrypt.h>
-
-namespace Balau {
-
-class SHA1 {
- public:
- SHA1() { reset(); }
- void reset() { sha1_init(&m_state); }
- void update(const uint8_t * data, const size_t len) { sha1_process(&m_state, data, len); }
- void final(uint8_t * digest) { sha1_done(&m_state, digest); }
-
- enum { DIGEST_SIZE = 20 };
-
- private:
- hash_state m_state;
-};
-
-};