X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=shabal%2Fshabal512.c;h=82d49b4df0ae3941aaf20b5729b12828a74203ff;hp=caad571e3c0f4adc07fd7f5cf74103a0702d90b6;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=4f50c75ee5a6cc88bf7ea71957ed509e298e6c25 diff --git a/shabal/shabal512.c b/shabal/shabal512.c index caad571..82d49b4 100644 --- a/shabal/shabal512.c +++ b/shabal/shabal512.c @@ -1,7 +1,7 @@ /* shabal512.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 shabal512.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 shabal512_iv[] PROGMEM = { +const uint32_t shabal512_iv[] PROGMEM = { /* A */ 0x20728DFD, 0x46C0BD53, 0xE782B699, 0x55304632, 0x71B4EF90, 0x0EA9E82C, 0xDBB930F1, 0xFAD06B8B, @@ -47,7 +47,7 @@ uint32_t shabal512_iv[] PROGMEM = { 0x950C3434, 0xAED9A06D, 0x2537DC8D, 0x7CDB5969, }; -void shabal512_init(shabal_ctx_t* ctx){ +void shabal512_init(shabal_ctx_t *ctx){ uint8_t i; ctx->b = ctx->b_buffer; ctx->c = ctx->c_buffer; @@ -63,11 +63,11 @@ void shabal512_init(shabal_ctx_t* ctx){ } } -void shabal512_ctx2hash(void* dest, const shabal_ctx_t* ctx){ +void shabal512_ctx2hash(void *dest, const shabal_ctx_t *ctx){ shabal_ctx2hash(dest, ctx, 512); } -void shabal512(void* dest, void* msg, uint32_t length_b){ +void shabal512(void *dest, void *msg, uint32_t length_b){ shabal_ctx_t ctx; shabal512_init(&ctx); while(length_b>=SHABAL_BLOCKSIZE){