The "en" Package

These routines are meant to provide strong encryption.

Library: karma
Link With: -lkarma

Functions

en_idea_initCreate stream for IDEA encryption.
en_idea_cfbEncrypt bytes using the IDEA cipher.
en_idea_closeClose a cipher stream.


Functions


idea_status en_idea_init (char key[EN_IDEA_KEY_SIZE], flag decrypt, char init_vector[EN_IDEA_BLOCK_SIZE], flag clear)

This routine will initialise the IDEA cipher in Cipher Feed Back mode for a stream of data. The stream is uni-directional.

Parameters:

Returns: An IDEA cipher status which may be sebsequently used by en_idea_cfb on success, else NULL.
Multithreading Level: Unsafe


void en_idea_cfb (idea_status status, char *buffer, unsigned int length)

This routine will encrypt (or decrypt) a sequence of bytes using the IDEA cipher in Cipher Feed Back mode.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void en_idea_close (idea_status status)

This routine will clean up an IDEA cipher status, removing sensitive key information.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


Contact: Richard Gooch
Web Development: Ariel Internet Services