X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=bmw%2Fbmw_large.h;h=6fd11f21bbb83aec6fe28dec6bfff57fe6cc01f0;hp=fba01fbf2b4a2a1c1df13af0b93548df470775fc;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=d32eba56ce10ea6b9eff123b50d9842673b38f2b diff --git a/bmw/bmw_large.h b/bmw/bmw_large.h index fba01fb..6fd11f2 100644 --- a/bmw/bmw_large.h +++ b/bmw/bmw_large.h @@ -1,25 +1,25 @@ /* 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) 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 - 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 - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \date 2009-04-27 * \license GPLv3 or later * @@ -37,29 +37,30 @@ #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; typedef bmw_large_ctx_t bmw512_ctx_t; -void bmw384_init(bmw384_ctx_t* ctx); -void bmw512_init(bmw512_ctx_t* ctx); +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_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 bmw384_nextBlock(bmw384_ctx_t* ctx, const void* block); -void bmw384_lastBlock(bmw384_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); -void bmw512_nextBlock(bmw512_ctx_t* ctx, const void* block); -void bmw512_lastBlock(bmw512_ctx_t* ctx, const void* block, uint16_t length_b); +void bmw512_nextBlock(bmw512_ctx_t *ctx, const void *block); +void bmw512_lastBlock(bmw512_ctx_t *ctx, const void *block, uint16_t length_b); -void bmw384_ctx2hash(void* dest, const bmw384_ctx_t* ctx); -void bmw512_ctx2hash(void* dest, const bmw512_ctx_t* ctx); +void bmw384_ctx2hash(void *dest, const bmw384_ctx_t *ctx); +void bmw512_ctx2hash(void *dest, const bmw512_ctx_t *ctx); -void bmw384(void* dest, const void* msg, uint32_t length_b); -void bmw512(void* dest, const void* msg, uint32_t length_b); +void bmw384(void *dest, const void *msg, uint32_t length_b); +void bmw512(void *dest, const void *msg, uint32_t length_b); #endif /* BMW_LARGE_H_ */