<< Previous | Next >>

AESinitStream4x4

void AESinitStream4x4( AESstreamState far * state, char far * key, char far * init_vector);

Description

Sets up a stream state structure to begin encrypting or decrypting a stream using AES with a 128-bit key and block size.. A particular stream state can only be used for one direction.

See Samples\Crypt\AES_STREAMTEST.C for a sample program and a detailed explanation of the encryption/decryption process.

Parameters

state
An AESstreamState structure to be initialized. This memory must be allocated in the program code before calling AESinitStream4x4().

key
The 16-byte cipher key, using a null pointer, will prevent an existing key from being recalculated.

init_vector
A 16-byte array representing the initial state of the feedback registers. Both ends of the stream must begin with the same initialization vector and key.

For security, it is very important never to use the same initialization vector twice with the same key.

Return value

None.

Library

AES_CORE.LIB


Dynamic C Functions << Previous | Next >> rabbit.com