X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=nessie_bc_test.h;h=1bab98cd2d83d7601bd73d30853f32f5c606218a;hb=4d76909e4282baf1420ee309e270384246b241b8;hp=099a7e27527a5c96fd02138f77060faef262530b;hpb=cc0d247149bad70179dff52f544381545054da44;p=avr-crypto-lib.git diff --git a/nessie_bc_test.h b/nessie_bc_test.h index 099a7e2..1bab98c 100644 --- a/nessie_bc_test.h +++ b/nessie_bc_test.h @@ -1,9 +1,28 @@ +/* nessie_bc_test.h */ +/* + This file is part of the Crypto-avr-lib/microcrypt-lib. + Copyright (C) 2008 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 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 . +*/ #ifndef NESSIE_BC_TEST_H_ #define NESSIE_BC_TEST_H_ #include typedef void (*nessie_bc_gen_fpt)(uint8_t* key, uint16_t keysize_b, void* ctx); +typedef void (*nessie_bc_free_fpt)(void* ctx); typedef void (*nessie_bc_enc_fpt)(void* buffer, void* ctx); typedef void (*nessie_bc_dec_fpt)(void* buffer, void* ctx); @@ -12,14 +31,17 @@ typedef struct nessie_bc_ctx_st{ uint16_t blocksize_B; uint16_t ctx_size_B; char* name; - nessie_bc_gen_fpt cipher_genctx; - nessie_bc_enc_fpt cipher_enc; - nessie_bc_dec_fpt cipher_dec; + nessie_bc_gen_fpt cipher_genctx; + nessie_bc_free_fpt cipher_free; + nessie_bc_enc_fpt cipher_enc; + nessie_bc_dec_fpt cipher_dec; } nessie_bc_ctx_t; extern nessie_bc_ctx_t nessie_bc_ctx; void nessie_bc_run(void); +void nessie_bc_init(void); + #endif /*NESSIE_BC_TEST_H_*/