X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=scal%2Fscal-basic.h;fp=scal%2Fscal-basic.h;h=890a73de1636c3376e11fc6c312acd29007d28a1;hp=0000000000000000000000000000000000000000;hb=66c915087d1f7b8eb7280be43c16e9588faf2e55;hpb=3f759a542ce8ba4ffbeb6d336a3557a8abbd3ad4
diff --git a/scal/scal-basic.h b/scal/scal-basic.h
new file mode 100644
index 0000000..890a73d
--- /dev/null
+++ b/scal/scal-basic.h
@@ -0,0 +1,41 @@
+/* scal-basic.h */
+/*
+ This file is part of the AVR-Crypto-Lib.
+ Copyright (C) 2011 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 SCAL_BASIC_H_
+#define SCAL_BASIC_H_
+
+#include
+#include
+#include "streamcipher_descriptor.h"
+#include "keysize_descriptor.h"
+#include
+
+uint8_t scal_cipher_init(const scdesc_t* cipher_descriptor,
+ const void* key, uint16_t keysize_b,
+ const void* iv, uint16_t ivsize_b, scgen_ctx_t* ctx);
+void scal_cipher_free(scgen_ctx_t* ctx);
+uint8_t scal_cipher_gen_byte(scgen_ctx_t* ctx);
+void scal_cipher_gen_block(void* block, scgen_ctx_t* ctx);
+void scal_cipher_gen_fillblock(void* block, uint16_t blocksize_B, scgen_ctx_t* ctx);
+uint16_t scal_cipher_getBlocksize_b(const scdesc_t* desc);
+PGM_VOID_P scal_cipher_getKeysizeDesc(const scdesc_t* desc);
+PGM_VOID_P scal_cipher_getIVsizeDesc(const scdesc_t* desc);
+
+
+#endif /* SCAL_BASIC_H_ */