X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=sha2%2Fsha256.c;h=d6134e49498ed1e315ce9f6f490ccc3fb08749a9;hp=61a9f8e817a436df11e75b0586364ec97c5dabb9;hb=1f6be6ce98d01772fbb1f4d5205a13bea896a1f1;hpb=38e12ca0d3a9df2ca6809ab88fb2ea32e5aed8f8 diff --git a/sha2/sha256.c b/sha2/sha256.c index 61a9f8e..d6134e4 100644 --- a/sha2/sha256.c +++ b/sha2/sha256.c @@ -1,7 +1,7 @@ /* sha256.c */ /* This file is part of the ARM-Crypto-Lib. - Copyright (C) 2006-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 @@ -66,12 +66,12 @@ void sha256_init(sha256_ctx_t *state){ } /*************************************************************************/ -void sha256_nextBlock (sha256_ctx_t *state, const void* block){ +void sha256_nextBlock (sha256_ctx_t *state, const void *block){ sha2_small_common_nextBlock(state, block); } /*************************************************************************/ -void sha256_lastBlock (sha256_ctx_t *state, const void* block, uint16_t length_b){ +void sha256_lastBlock (sha256_ctx_t *state, const void *block, uint16_t length_b){ sha2_small_common_lastBlock(state, block, length_b); } /*************************************************************************/ @@ -90,7 +90,7 @@ void sha256_lastBlock (sha256_ctx_t *state, const void* block, uint16_t length_b /* * length in bits! */ -void sha256(void* dest, const void* msg, uint32_t length_b){ /* length could be choosen longer but this is for µC */ +void sha256(void *dest, const void *msg, uint32_t length_b){ /* length could be choosen longer but this is for µC */ sha256_ctx_t s; sha256_init(&s); while(length_b >= SHA256_BLOCK_BITS){ @@ -106,7 +106,7 @@ void sha256(void* dest, const void* msg, uint32_t length_b){ /* length could be /*************************************************************************/ -void sha256_ctx2hash(void* dest, const sha256_ctx_t *state){ +void sha256_ctx2hash(void *dest, const sha256_ctx_t *state){ #if defined LITTLE_ENDIAN uint8_t i, j, *s=(uint8_t*)(state->h); i=8;