]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - camellia.h
added md5_c.mk
[avr-crypto-lib.git] / camellia.h
index 6ced2b2114f672559c1ae3516869ae271506ea93..760961366dcb2a9af80091f10b74f13371f0d784 100644 (file)
@@ -1,3 +1,21 @@
+/* camellia.h */
+/*
+    This file is part of the AVR-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 <http://www.gnu.org/licenses/>.
+*/
 #ifndef CAMELLIA_H_
 #define CAMELLIA_H_
 
@@ -11,9 +29,9 @@ typedef struct camellia128_ctx_s{
 }camellia128_ctx_t;
 
 
-void camellia128_init(camellia128_ctx_t* s, uint8_t* key);
-void camellia128_enc(camellia128_ctx_t* s, void* block);
-void camellia128_dec(camellia128_ctx_t* s, void* block);
+void camellia128_init(const void* key, camellia128_ctx_t* s);
+void camellia128_enc(void* block, const camellia128_ctx_t* s);
+void camellia128_dec(void* block, const camellia128_ctx_t* s);
 
 
 #endif /*CAMELLIA_H_*/