X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=bmw%2Fbmw_large.h;fp=bmw%2Fbmw_large.h;h=9df8d714a6e5235c68f9ac5c86e99a60a560cc59;hp=a810b188a64ca210638082cdaea57a18b4f18695;hb=8d1970350aa1d7cdcb59cf79f7f60e385e2816e5;hpb=a30df60ac814350db243b270034ef188c8d02d5e diff --git a/bmw/bmw_large.h b/bmw/bmw_large.h index a810b18..9df8d71 100644 --- a/bmw/bmw_large.h +++ b/bmw/bmw_large.h @@ -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 . -*/ + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ /* * \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);