*/
#include "silcincludes.h"
+#include "rc6_internal.h"
#include "rc6.h"
/*
SILC_CIPHER_API_SET_KEY(rc6)
{
- uint32 k[8];
+ SilcUInt32 k[8];
SILC_GET_WORD_KEY(key, k, keylen);
rc6_set_key((RC6Context *)context, k, keylen);
SILC_CIPHER_API_ENCRYPT_CBC(rc6)
{
- uint32 tiv[4];
+ SilcUInt32 tiv[4];
int i;
SILC_CBC_GET_IV(tiv, iv);
SILC_CIPHER_API_DECRYPT_CBC(rc6)
{
- uint32 tmp[4], tmp2[4], tiv[4];
+ SilcUInt32 tmp[4], tmp2[4], tiv[4];
int i;
SILC_CBC_GET_IV(tiv, iv);
l[k] = in_key[k];
- t = (key_len / 32) - 1; // t = (key_len / 32);
+ t = (key_len / 32) - 1; /* t = (key_len / 32); */
a = b = i = j = 0;
{ a = rotl(l_key[i] + a + b, 3); b += a;
b = rotl(l[j] + b, b);
l_key[i] = a; l[j] = b;
- i = (i == 43 ? 0 : i + 1); // i = (i + 1) % 44;
- j = (j == t ? 0 : j + 1); // j = (j + 1) % t;
+ i = (i == 43 ? 0 : i + 1); /* i = (i + 1) % 44; */
+ j = (j == t ? 0 : j + 1); /* j = (j + 1) % t; */
}
return l_key;