IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


int Crypt_AES_Encrypt ( const Crypt_AES_Context aescontext,
const void *  in,
void *  out 
)

The AES (Advanced Encryption Standard) is a block cipher method. This API encrypts one block of a message. The cipher block size is 16 bytes.

This API may be used repeatedly until your entire message has been encrypted. When your message is not an integral number of 16 byte blocks in length, then you must pad the final block with some pattern agreed upon with your decryption side.

Prior to calling this API for the first block of the message, the Crypt_AES_MakeEncryptKey() must be used to initialize the encryption key.

Parameters:
[in] aescontext Pointer to Crypt_AES_Context structure containing the key schedule schedule.
[in] in Pointer to 16 bytes (one cipher block) of "plain text" input data.
[out] out Pointer to a 16 byte output buffer to receive the resulting encrypted data. (This may be the same buffer as 'in'.)
Returns:
0 : Constant for compatibility with SC2x and SC1x3 legacy C-Library
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
Crypt_AES_MakeEncryptKey(), Crypt_AES_MakeDecryptKey(), Crypt_AES_Decrypt()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:39 2017 by Doxygen 1.6.1