avr-crypto-lib/test_src/nessie_stream_test.h

43 lines
1.3 KiB
C
Raw Permalink Normal View History

2008-05-26 19:13:21 +00:00
/* nessie_stream_test.h */
/*
2009-01-30 23:00:04 +00:00
This file is part of the AVR-Crypto-Lib.
2015-02-06 02:43:31 +00:00
Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
2008-05-26 19:13:21 +00:00
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 <http://www.gnu.org/licenses/>.
*/
#ifndef NESSIE_STREAM_TEST_H_
#define NESSIE_STREAM_TEST_H_
#include <stdint.h>
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_*/