X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=jh%2Fjh_simple.h;h=eb15fd88c57a66fa0f5fe12877ed672bfa564480;hp=8deb4a7243d98978293858524f204d6ca5443342;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=bd740a03aa9137d46277a2eee05ac6be538ef69d diff --git a/jh/jh_simple.h b/jh/jh_simple.h index 8deb4a7..eb15fd8 100644 --- a/jh/jh_simple.h +++ b/jh/jh_simple.h @@ -1,7 +1,7 @@ /* jh_simple.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,27 +36,23 @@ typedef struct { uint32_t block_hashed; } jh_ctx_t; -void jh_round(uint8_t* a, uint8_t roundno); -void jh_encrypt(uint8_t* a); +void jh_init(uint16_t hashlen_b, jh_ctx_t *ctx); +void jh_nextBlock(jh_ctx_t *ctx, void *block); +void jh_lastBlock(jh_ctx_t *ctx, void *block, uint16_t length_b); +void jh_ctx2hash(void *dest, uint16_t length_b, jh_ctx_t *ctx); +void jh224_init(jh_ctx_t *ctx); +void jh224_ctx2hash(void *dest, jh_ctx_t *ctx); -void jh_init(uint16_t hashlen_b, jh_ctx_t* ctx); -void jh_nextBlock(jh_ctx_t* ctx, void* block); -void jh_lastBlock(jh_ctx_t* ctx, void* block, uint16_t length_b); -void jh_ctx2hash(void* dest, uint16_t length_b, jh_ctx_t* ctx); +void jh256_init(jh_ctx_t *ctx); +void jh256_ctx2hash(void *dest, jh_ctx_t *ctx); -void jh224_init(jh_ctx_t* ctx); -void jh224_ctx2hash(void* dest, jh_ctx_t* ctx); +void jh384_init(jh_ctx_t *ctx); +void jh384_ctx2hash(void *dest, jh_ctx_t *ctx); -void jh256_init(jh_ctx_t* ctx); -void jh256_ctx2hash(void* dest, jh_ctx_t* ctx); - -void jh384_init(jh_ctx_t* ctx); -void jh384_ctx2hash(void* dest, jh_ctx_t* ctx); - -void jh512_init(jh_ctx_t* ctx); -void jh512_ctx2hash(void* dest, jh_ctx_t* ctx); +void jh512_init(jh_ctx_t *ctx); +void jh512_ctx2hash(void *dest, jh_ctx_t *ctx); #endif /* JH_SIMPLE_H_ */