/* sha224.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
}
/*************************************************************************/
-void sha224_nextBlock (sha224_ctx_t *state, const void* block){
+void sha224_nextBlock (sha224_ctx_t *state, const void *block){
sha2_small_common_nextBlock(state, block);
}
/*************************************************************************/
-void sha224_lastBlock (sha224_ctx_t *state, const void* block, uint16_t length_b){
+void sha224_lastBlock (sha224_ctx_t *state, const void *block, uint16_t length_b){
sha2_small_common_lastBlock(state, block, length_b);
}
/*************************************************************************/
/*
* length in bits!
*/
-void sha224(void* dest, const void* msg, uint32_t length_b){ /* length could be choosen longer but this is for µC */
+void sha224(void *dest, const void *msg, uint32_t length_b){ /* length could be choosen longer but this is for µC */
sha224_ctx_t s;
sha224_init(&s);
while(length_b >= SHA224_BLOCK_BITS){
/*************************************************************************/
-void sha224_ctx2hash(void* dest, const sha224_ctx_t *state){
+void sha224_ctx2hash(void *dest, const sha224_ctx_t *state){
#if defined LITTLE_ENDIAN
uint8_t i, j, *s=(uint8_t*)(state->h);
i=7;