X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Frc6.c;h=03c9cc568bb34ac68d48b27d446510d45ead9cc7;hb=72cfa31520ebc0058763a30e21c13f6e9a964aa0;hp=e2cc97cc5b4fb794d362d4755316ace3d45fedc3;hpb=2be0be2432fff760084c4093291e79f1fa6262d8;p=silc.git diff --git a/lib/silccrypt/rc6.c b/lib/silccrypt/rc6.c index e2cc97cc..03c9cc56 100644 --- a/lib/silccrypt/rc6.c +++ b/lib/silccrypt/rc6.c @@ -47,7 +47,7 @@ Mean: 249 cycles = 103.0 mbits/sec SILC_CIPHER_API_SET_KEY(rc6) { - rc6_set_key((RC6Context *)context, (unsigned int *)key, keylen); + rc6_set_key((RC6Context *)context, (uint32 *)key, keylen); return 1; } @@ -64,13 +64,13 @@ SILC_CIPHER_API_SET_KEY_WITH_STRING(rc6) SILC_CIPHER_API_ENCRYPT_CBC(rc6) { - unsigned int *in, *out, *tiv; - unsigned int tmp[4]; + uint32 *in, *out, *tiv; + uint32 tmp[4]; int i; - in = (unsigned int *)src; - out = (unsigned int *)dst; - tiv = (unsigned int *)iv; + in = (uint32 *)src; + out = (uint32 *)dst; + tiv = (uint32 *)iv; tmp[0] = in[0] ^ tiv[0]; tmp[1] = in[1] ^ tiv[1]; @@ -103,13 +103,13 @@ SILC_CIPHER_API_ENCRYPT_CBC(rc6) SILC_CIPHER_API_DECRYPT_CBC(rc6) { - unsigned int *in, *out, *tiv; - unsigned int tmp[4], tmp2[4]; + uint32 *in, *out, *tiv; + uint32 tmp[4], tmp2[4]; int i; - in = (unsigned int *)src; - out = (unsigned int *)dst; - tiv = (unsigned int *)iv; + in = (uint32 *)src; + out = (uint32 *)dst; + tiv = (uint32 *)iv; tmp[0] = in[0]; tmp[1] = in[1];