]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - xtea.h
insereated GPLv3 stub
[avr-crypto-lib.git] / xtea.h
diff --git a/xtea.h b/xtea.h
index a156abd1246cecdea6e1a02cc0e7200ce02627dc..a35c84b020036eaa9c99342b5aa848805070c3a1 100644 (file)
--- a/xtea.h
+++ b/xtea.h
@@ -1,3 +1,21 @@
+/* xtea.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 <http://www.gnu.org/licenses/>.
+*/
 /*
  * Author:     Daniel Otte
  * Date:               06.06.2006
  * this fits for xtea.c and xtea-asm.S
  * 
  */
-
+#define XTEA_BLOCKSIZE 64
+#define XTEA_BLOCKSIZEB ((XTEA_BLOCKSIZE+7)/8)
+#define XTEA_KEYSIZE 128
+#define XTEA_KEYSIZEB ((XTEA_KEYSIZE+7)/8)
 
 
 /*
@@ -21,8 +42,8 @@
  * v:   the block to operate on (64 bit)
  * k:   the key for en/decryption (128 bit)
  */
-void xtea_enc(uint32_t* dest, uint32_t* v, uint32_t* k);
-void xtea_dec(uint32_t* dest, uint32_t* v, uint32_t* k);
+void xtea_enc(void* dest, const void* v, const void* k);
+void xtea_dec(void* dest, const void* v, const void* k);
 
 
 #endif /*XTEA_H_*/