Software implementation of the AES algorithm.
More...
|
| | Internals |
| | Software implementation of the AES algorithm.
|
| |
Software implementation of the AES algorithm.
◆ phCryptoSym_Sw_Aes_KeyExpansion()
Performs the key Expansion of the AES key (128, 192, 256 bits).
According to the size of the key specified, the pDataParams key array is filled up in the following sequence: pKey || pRk1 ..... ||pRkN
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layers parameter structure. |
| [in] | pKey | [In] Key array to be loaded into the AES engine. |
| [in] | bNkCurrent | [In] Size of the key provided (in 32 bit granularity). |
| [in] | bNkMax | [In] Total amount of 32 bit Values to be loaded. |
◆ phCryptoSym_Sw_Aes_EncryptBlock()
Performs a encryption of an AES Block (16 byte) using an AES Key.
The key needs to be provided in the pDataParams structure. By specifying the bNumRounds, the amount of AES rounds to be executed is defined.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layers parameter structure. |
| [in,out] | pBlock | [InOut] Block to be enciphered in place. |
| [in] | bNumRounds | [In] Number of rounds according to AES algorithm. |
◆ phCryptoSym_Sw_Aes_DecryptBlock()
Performs a decryption of an AES Block (16 byte) using an AES Key.
The key needs to be provided in the pDataParams structure. By specifying the bNumRounds, the amount of AES rounds to be executed is defined.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layers parameter structure. |
| [in,out] | pBlock | [InOut] Block to be deciphered in place. |
| [in] | bNumRounds | [In] Number of rounds according to AES algorithm. |