fix for ASM failures on freebsd/netbsd

This commit is contained in:
Karel Miko
2014-01-20 12:05:58 +01:00
committed by Steffen Jaeckel
parent e08480f621
commit 0bda0770d9
+3 -3
View File
@@ -33,7 +33,7 @@ const struct ltc_cipher_descriptor xtea_desc =
int xtea_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey)
{
unsigned long x, sum, K[4];
ulong32 x, sum, K[4];
LTC_ARGCHK(key != NULL);
LTC_ARGCHK(skey != NULL);
@@ -75,7 +75,7 @@ int xtea_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_k
*/
int xtea_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey)
{
unsigned long y, z;
ulong32 y, z;
int r;
LTC_ARGCHK(pt != NULL);
@@ -111,7 +111,7 @@ int xtea_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *
*/
int xtea_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey)
{
unsigned long y, z;
ulong32 y, z;
int r;
LTC_ARGCHK(pt != NULL);