X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=norx%2Fnorx32.h;h=d09c5d30ddf503ad54cc7e50ac1ef577798dad93;hb=HEAD;hp=288435eda48ec72109b858b272b87f9f76260176;hpb=f63427e84c047aafe16f6ab3b5452d4d2993241d;p=avr-crypto-lib.git diff --git a/norx/norx32.h b/norx/norx32.h index 288435e..d09c5d3 100644 --- a/norx/norx32.h +++ b/norx/norx32.h @@ -1,7 +1,7 @@ /* norx32.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2014 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 @@ -37,11 +37,14 @@ int8_t norx32_init ( norx32_ctx_t *ctx, const void* nonce, const void* key, - uint16_t tag_size_b, uint8_t rounds, - uint8_t parallel ); + uint8_t parallel, + uint16_t tag_size_b ); + void norx32_finalize(norx32_ctx_t *ctx, void *tag); + void norx32_add_header_block(norx32_ctx_t *ctx, const void *block); + void norx32_add_header_last_block( norx32_ctx_t *ctx, const void *block, @@ -54,6 +57,7 @@ void norx32_encrypt_last_block( void *dest, const void *src, uint16_t length_b ); + void norx32_add_trailer_block(norx32_ctx_t *ctx, const void *block); void norx32_add_trailer_last_block(