]> git.cryptolib.org Git - avr-crypto-lib.git/blob - xtea.h
d72ce135cafb904942eb30b16aaea77c9269bac6
[avr-crypto-lib.git] / xtea.h
1 /*
2  * Author:      Daniel Otte
3  * Date:                06.06.2006
4  * License:     GPL
5  */
6
7 #ifndef XTEA_H_
8 #define XTEA_H_
9
10 #include <stdint.h> 
11  
12 /*
13  * this fits for xtea.c and xtea-asm.S
14  * 
15  */
16 #define XTEA_BLOCKSIZE 64
17 #define XTEA_BLOCKSIZEB ((XTEA_BLOCKSIZE+7)/8)
18 #define XTEA_KEYSIZE 128
19 #define XTEA_KEYSIZEB ((XTEA_KEYSIZE+7)/8)
20
21
22 /*
23  * dest: the destination where result of operation will be placed (64 bit)
24  * v:    the block to operate on (64 bit)
25  * k:    the key for en/decryption (128 bit)
26  */
27 void xtea_enc(void* dest, const void* v, const void* k);
28 void xtea_dec(void* dest, const void* v, const void* k);
29
30
31 #endif /*XTEA_H_*/