X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=blake%2Fblake_large.h;h=1427a51a62aa60f5b029bfbc4f2cd6a1443b889f;hp=472e164ddd8f70900a94252354ab2d96eca03276;hb=8d1970350aa1d7cdcb59cf79f7f60e385e2816e5;hpb=a30df60ac814350db243b270034ef188c8d02d5e diff --git a/blake/blake_large.h b/blake/blake_large.h index 472e164..1427a51 100644 --- a/blake/blake_large.h +++ b/blake/blake_large.h @@ -1,21 +1,21 @@ /* blake_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 blake_large.h * \author Daniel Otte @@ -37,10 +37,10 @@ #define BLAKE512_BLOCKSIZE_B BLAKE_LARGE_BLOCKSIZE_B typedef struct { - uint64_t h[8]; - uint64_t s[4]; - uint32_t counter; - uint8_t appendone; + uint64_t h[8]; + uint64_t s[4]; + uint32_t counter; + uint8_t appendone; } blake_large_ctx_t; typedef blake_large_ctx_t blake384_ctx_t; @@ -50,13 +50,16 @@ void blake384_init(blake384_ctx_t *ctx); void blake512_init(blake512_ctx_t *ctx); void blake_large_nextBlock(blake_large_ctx_t *ctx, const void *block); -void blake_large_lastBlock(blake_large_ctx_t *ctx, const void *block, uint16_t length_b); +void blake_large_lastBlock(blake_large_ctx_t *ctx, const void *block, + uint16_t length_b); void blake384_nextBlock(blake384_ctx_t *ctx, const void *block); -void blake384_lastBlock(blake384_ctx_t *ctx, const void *block, uint16_t length_b); +void blake384_lastBlock(blake384_ctx_t *ctx, const void *block, + uint16_t length_b); void blake512_nextBlock(blake512_ctx_t *ctx, const void *block); -void blake512_lastBlock(blake512_ctx_t *ctx, const void *block, uint16_t length_b); +void blake512_lastBlock(blake512_ctx_t *ctx, const void *block, + uint16_t length_b); void blake384_ctx2hash(void *dest, const blake384_ctx_t *ctx); void blake512_ctx2hash(void *dest, const blake512_ctx_t *ctx);