X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=xtea.h;h=a35c84b020036eaa9c99342b5aa848805070c3a1;hb=96ebafd201c9e8441c7677577b24aa402c1defc6;hp=a156abd1246cecdea6e1a02cc0e7200ce02627dc;hpb=3c995d0a8faeb9d37927d48e20fc45d839e066ea;p=avr-crypto-lib.git diff --git a/xtea.h b/xtea.h index a156abd..a35c84b 100644 --- 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 . +*/ /* * Author: Daniel Otte * Date: 06.06.2006 @@ -13,7 +31,10 @@ * 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_*/