Forked from
Nettle / nettle
4707 commits behind the upstream repository.
-
Niels Möller authored
Rev: src/symmetric/include/blowfish.h:1.3 Rev: src/symmetric/include/idea.h:1.4 Rev: src/symmetric/include/rc4.h:1.4
Niels Möller authoredRev: src/symmetric/include/blowfish.h:1.3 Rev: src/symmetric/include/idea.h:1.4 Rev: src/symmetric/include/rc4.h:1.4
idea.h 540 B
/*
* $Id$
*/
/*
* Please be aware that IDEA IS PATENT ENCUMBERED; see the note in idea.c.
* -------------------------
*/
#ifndef IDEA_H_INCLUDED
#define IDEA_H_INCLUDED
#define IDEA_KEYSIZE 16
#define IDEA_BLOCKSIZE 8
#define IDEA_ROUNDS 8
#define IDEA_KEYLEN (6*IDEA_ROUNDS+4)
#include "crypto_types.h"
void idea_expand(UINT16 *ctx,
const UINT8 *key);
void idea_invert(UINT16 *d,
const UINT16 *e);
void idea_crypt(const UINT16 *ctx,
UINT8 *dest,
const UINT8 *src);
#endif /* IDEA_H_INCLUDED */