]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - bmw/bmw_large.h
bug fixing and support for malloc instead of stack memory (some functions)
[avr-crypto-lib.git] / bmw / bmw_large.h
index a810b188a64ca210638082cdaea57a18b4f18695..9df8d714a6e5235c68f9ac5c86e99a60a560cc59 100644 (file)
@@ -1,21 +1,21 @@
 /* bmw_large.h */
 /*
   This file is part of the AVR-Crypto-Lib.
   Copyright (C) 2009  Daniel Otte (daniel.otte@rub.de)
+ This file is part of the AVR-Crypto-Lib.
+ Copyright (C) 2009  Daniel Otte (daniel.otte@rub.de)
 
   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
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
+ 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
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
 
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
 
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 /*
  * \file    bmw_large.h
  * \author  Daniel Otte
@@ -37,8 +37,8 @@
 #define BMW512_BLOCKSIZE_B    BMW_LARGE_BLOCKSIZE_B
 
 typedef struct {
-       uint64_t h[16];
-       uint32_t counter;
+    uint64_t h[16];
+    uint32_t counter;
 } bmw_large_ctx_t;
 
 typedef bmw_large_ctx_t bmw384_ctx_t;
@@ -48,7 +48,8 @@ void bmw384_init(bmw384_ctx_t *ctx);
 void bmw512_init(bmw512_ctx_t *ctx);
 
 void bmw_large_nextBlock(bmw_large_ctx_t *ctx, const void *block);
-void bmw_large_lastBlock(bmw_large_ctx_t *ctx, const void *block, uint16_t length_b);
+void bmw_large_lastBlock(bmw_large_ctx_t *ctx, const void *block,
+        uint16_t length_b);
 
 void bmw384_nextBlock(bmw384_ctx_t *ctx, const void *block);
 void bmw384_lastBlock(bmw384_ctx_t *ctx, const void *block, uint16_t length_b);