X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=shabal%2Fshabal224.c;h=167bb9bbc268a9ec0d199c9bedf1cfd361d862a0;hb=b8aa8d06134ce687993cb3148d66ebd86dbf1d6f;hp=db01d3c2f55b3491fd1ac5fc91fe4ec3d27928c4;hpb=4f50c75ee5a6cc88bf7ea71957ed509e298e6c25;p=avr-crypto-lib.git diff --git a/shabal/shabal224.c b/shabal/shabal224.c index db01d3c..167bb9b 100644 --- a/shabal/shabal224.c +++ b/shabal/shabal224.c @@ -1,7 +1,7 @@ /* shabal224.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2009 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 @@ -19,7 +19,7 @@ /* * \file shabal224.c * \author Daniel Otte - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \date 2009-04-27 * \license GPLv3 or later * @@ -30,7 +30,7 @@ #include #include -uint32_t shabal224_iv[] PROGMEM = { +const uint32_t shabal224_iv[] PROGMEM = { /* A */ 0xA5201467, 0xA9B8D94A, 0xD4CED997, 0x68379D7B, 0xA7FC73BA, 0xF1A2546B, 0x606782BF, 0xE0BCFD0F, @@ -47,7 +47,7 @@ uint32_t shabal224_iv[] PROGMEM = { 0x16F1AC05, 0x38BBEB56, 0x9B01DC60, 0xB1096D83 }; -void shabal224_init(shabal_ctx_t* ctx){ +void shabal224_init(shabal_ctx_t *ctx){ uint8_t i; ctx->b = ctx->b_buffer; ctx->c = ctx->c_buffer; @@ -63,11 +63,11 @@ void shabal224_init(shabal_ctx_t* ctx){ } } -void shabal224_ctx2hash(void* dest, const shabal_ctx_t* ctx){ +void shabal224_ctx2hash(void *dest, const shabal_ctx_t *ctx){ shabal_ctx2hash(dest, ctx, 224); } -void shabal224(void* dest, void* msg, uint32_t length_b){ +void shabal224(void *dest, void *msg, uint32_t length_b){ shabal_ctx_t ctx; shabal224_init(&ctx); while(length_b>=SHABAL_BLOCKSIZE){