]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - sha2/sha224.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / sha2 / sha224.c
index 732cd5b8ce1d43f90daa66fcd4060a5d5d95919b..5e619e68cfd81eac35ff66fdb7c3d3bff9d7b6f8 100644 (file)
@@ -1,7 +1,7 @@
 /* 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
@@ -67,12 +67,12 @@ void sha224_init(sha224_ctx_t *state){
 }
 
 /*************************************************************************/
-void sha224_nextBlock (sha224_ctx_t *state, const voidblock){
+void sha224_nextBlock (sha224_ctx_t *state, const void *block){
        sha2_small_common_nextBlock(state, block);
 }
 
 /*************************************************************************/
-void sha224_lastBlock (sha224_ctx_t *state, const voidblock, 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);
 }
 /*************************************************************************/
@@ -91,7 +91,7 @@ void sha224_lastBlock (sha224_ctx_t *state, const void* block, uint16_t 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){
@@ -107,7 +107,7 @@ void sha224(void* dest, const void* msg, uint32_t length_b){ /* length could be
 
 /*************************************************************************/
 
-void sha224_ctx2hash(voiddest, 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;