7.1.1. AES Module Functions
vAes_Cipher
Description: Encrypts 128 bit data block with 128 bit key.
Inputs:
pbioState: (pointer to IDATA BYTE) Pointer to a byte which is the first byte in an
array of 16 bytes. This array is the data to be encrypted.
pbioRoundKey: (pointer to IDATA BYTE) Pointer to a byte which is the first byte
in an array of 16 bytes. This array contains the key to be used for AES.
Outputs:
pbioState: (pointer to IDATA BYTE) Pointer to a byte which is the first byte in an
array of 16 bytes. This pointer is pointing to the same memory location as the input
version, but now the 16 byte data contents have been encrypted.
pbioRoundKey: (pointer to IDATA BYTE) The original key gets destroyed.
vAes_InvGenKey
Description: Given the last key used in the encryption process this function calculates the
starting key for the decryption process. It must be called before the vAes_InvCipher() to
prepare the decryption key if only the cipher (encryption) key is available.
Inputs:
pbioRoundKey: (pointer to IDATA BYTE) Pointer to a byte which is the first byte
in an array of 16 bytes. This array contains the key to be updated to the proper key
for decryption.
Outputs:
pbioRoundKey: (pointer to IDATA BYTE) Pointer to a byte which is the first byte
in an array of 16 bytes. This pointer is pointing to the same memory location as the
input version, but the 16 byte key has been updated to contain the starting key for
decryption.
Rev. 1.0
AN370
29
Need help?
Do you have a question about the Si4010 and is the answer not in the manual?
Questions and answers