X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fnessie_stream_test.h;fp=test_src%2Fnessie_stream_test.h;h=00fa7b63d8a4dec47ba9698e323a9391f0721f3f;hp=0000000000000000000000000000000000000000;hb=2a4779378a7bf4322a0e6b2024284092135e8a3d;hpb=e69f1207a9fbd9c0f45bfdbb2d8ebe9852d95969 diff --git a/test_src/nessie_stream_test.h b/test_src/nessie_stream_test.h new file mode 100644 index 0000000..00fa7b6 --- /dev/null +++ b/test_src/nessie_stream_test.h @@ -0,0 +1,42 @@ +/* nessie_stream_test.h */ +/* + This file is part of the ARM-Crypto-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_STREAM_TEST_H_ +#define NESSIE_STREAM_TEST_H_ + +#include + +typedef void (*nessie_stream_genctx_fpt)(uint8_t* key, uint16_t keylength_b, void* ctx); +typedef uint8_t (*nessie_stream_genenc_fpt)(void* ctx); + +typedef struct nessie_stream_ctx_st{ + uint16_t keysize_b; + uint16_t ivsize_b; + uint16_t outsize_b; + uint16_t ctx_size_B; + char* name; + nessie_stream_genctx_fpt cipher_genctx; + nessie_stream_genenc_fpt cipher_enc; +} nessie_stream_ctx_t; + + +extern nessie_stream_ctx_t nessie_stream_ctx; + +void nessie_stream_run(void); + +#endif /*NESSIE_STREAM_TEST_H_*/