OpenDOF Project
void(* const DOFCipher::Encrypt)(const void *keyState, void *text)

Encrypt a block of data.

This call is used to encrypt a single block of plaintext (of size blockSize). All required information for the encryption (e.g., key) is contained within the key state.

This call must be thread safe, and should not depend on any non-const global data.

This call must not be NULL. Encryption is required for all block ciphers.

Parameters
keyStateThe key state buffer. This must have been initialized by GenerateKeyState. This must not be NULL.
textThe buffer containing the plaintext block to be encrypted. This buffer will contain the encrypted ciphertext after the function returnes (encryption is performed in-place in the buffer). This buffer must be at least blockSize bytes in size. This must not be NULL.
core-c-dof-oal Version 7.1.5 Build 0
2017-01-25