*/
-#include "silcincludes.h"
+#include "silc.h"
+#include "cast_internal.h"
#include "cast.h"
#define io_swap
SILC_CIPHER_API_SET_KEY(cast)
{
- uint32 k[8];
+ SilcUInt32 k[8];
SILC_GET_WORD_KEY(key, k, keylen);
cast_set_key((CastContext *)context, k, keylen);
SILC_CIPHER_API_SET_KEY_WITH_STRING(cast)
{
- /* unsigned char key[md5_hash_len];
- SilcMarsContext *ctx = (SilcMarsContext *)context;
-
- make_md5_hash(string, &key);
- memcpy(&ctx->key, mars_set_key(&key, keylen), keylen);
- memset(&key, 'F', sizeoof(key));
- */
-
return 1;
}
SILC_CIPHER_API_ENCRYPT_CBC(cast)
{
- uint32 tiv[4];
+ SilcUInt32 tiv[4];
int i;
SILC_CBC_GET_IV(tiv, iv);
SILC_CIPHER_API_DECRYPT_CBC(cast)
{
- uint32 tmp[4], tmp2[4], tiv[4];
+ SilcUInt32 tmp[4], tmp2[4], tiv[4];
int i;
SILC_CBC_GET_IV(tiv, iv);