]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - shabal/shabal384.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / shabal / shabal384.c
index 11ab06ed49e3d06259aa645e2cbbbd408dc7bd36..54175fed42c4fc2b2fae57be4af7662286c5ed7d 100644 (file)
@@ -1,7 +1,7 @@
 /* shabal384.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    shabal384.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 <avr/pgmspace.h>
 #include <string.h>
 
-uint32_t shabal384_iv[] PROGMEM = {
+const uint32_t shabal384_iv[] PROGMEM = {
        /* A */ 
        0xC8FCA331, 0xE55C504E, 0x003EBF26, 0xBB6B8D83, 
        0x7B0448C1, 0x41B82789, 0x0A7C9601, 0x8D659CFF,
@@ -47,7 +47,7 @@ uint32_t shabal384_iv[] PROGMEM = {
        0x7C35073B, 0x28D95E6D, 0xAA340E0D, 0xCB3DEE70
 };
 
-void shabal384_init(shabal_ctx_tctx){
+void shabal384_init(shabal_ctx_t *ctx){
        uint8_t i;
        ctx->b = ctx->b_buffer;
        ctx->c = ctx->c_buffer;
@@ -63,11 +63,11 @@ void shabal384_init(shabal_ctx_t* ctx){
        }
 }
 
-void shabal384_ctx2hash(void* dest, const shabal_ctx_t* ctx){
+void shabal384_ctx2hash(void *dest, const shabal_ctx_t *ctx){
        shabal_ctx2hash(dest, ctx, 384);
 }
 
-void shabal384(void* dest, void* msg, uint32_t length_b){
+void shabal384(void *dest, void *msg, uint32_t length_b){
        shabal_ctx_t ctx;
        shabal384_init(&ctx);
        while(length_b>=SHABAL_BLOCKSIZE){