<< Previous | Next >> | |
|
void AESencrypt4x4( char far * expandedkey, char far * plain, char far * crypt );
Description
- Encrypts a block of data using an implementation of the Rijndael AES cipher with 128-bit key and block size. The block of data may be overwritten by the encrypted block of data.
Parameters
- expandedkey
- A set of round keys (generated by
AESexpandKey4()
) from a 16-byte (128 bit) key.
- Total of 176 bytes (44 longwords)
- Note: when using an AESstreamState structure (e.g., "state") then call this function using:
AESencrypt4x4(state->expanded_key, plain, crypt);
- plain
- A block of 16 bytes of data to be encrypted; "crypt" and "plain" may point to the same place.
- crypt
- A block of 16 bytes of resulting encrypted data; "crypt" and "plain" may point to the same place.
Return value
- None.
Library
- AES_CORE.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |