aboutsummaryrefslogtreecommitdiffstats
path: root/src/keccak.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-17 23:27:00 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-17 23:27:00 +0200
commit5b1729bf7cdcc28bb818ee4af479d1ae5cb13c9f (patch)
tree493eb0ec67926d2999bdf9b69a0f0b19be60a9e2 /src/keccak.h
parentadd deps (diff)
downloadfile2key-5b1729bf7cdcc28bb818ee4af479d1ae5cb13c9f.tar.gz
file2key-5b1729bf7cdcc28bb818ee4af479d1ae5cb13c9f.tar.bz2
file2key-5b1729bf7cdcc28bb818ee4af479d1ae5cb13c9f.tar.xz
misc + add makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/keccak.h')
-rw-r--r--src/keccak.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keccak.h b/src/keccak.h
index c52cd10..abe8dc2 100644
--- a/src/keccak.h
+++ b/src/keccak.h
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdlib.h>
+#include <stddef.h>
#include <inttypes.h>
@@ -39,7 +39,7 @@ void dispose(void);
* @param msg The partial message
* @param msglen The length of the partial message
*/
-void update(const int8_t* restrict msg, long msglen);
+void update(const char* restrict msg, size_t msglen);
/**
@@ -49,7 +49,7 @@ void update(const int8_t* restrict msg, long msglen);
* @param msglen The length of the partial message
* @return The hash sum
*/
-int8_t* digest(const int8_t* restrict msg, long msglen);
+char* digest(const char* restrict msg, size_t msglen);
/**
@@ -57,5 +57,5 @@ int8_t* digest(const int8_t* restrict msg, long msglen);
*
* @return The hash sum
*/
-int8_t* squeeze(void);
+char* squeeze(void);