Home > |
---|
Encrypt, Decrypt, Multi-Part MAC, Multi-Part MAC Verify
128 byte (Max)
The least significant nibble (four bits) is used to determine the operational mode. The following list defines the possible values:
•SYM_MODE_ECB (0)
Electronic Code Book (ECB) mode. It may be combined with a padding mode (see below).
•SYM_MODE_CBC (1)
Cipher Block Chaining (CBC) mode. It may be combined with a padding mode (see below).
For MAC generation and verification the following modes are available:
•SYM_MODE_MAC_3 (0)
Standard CBC
•SYM_MODE_MAC_GEN (1)
Standard CBC with configurable MAC length (max 8 bytes).
In SYM_MODE_CBC, the parameter buffer must contain the IV (8 bytes). In SYM_MODE_ECB, there are no parameters.
When mode is SYM_MODE_MAC_GEN, parameter buffer contains at least 4 bytes, which is the little-endian encoding of an integer. The integer value must contain a value from 1 to 8, indicating the number of bytes of the final IV that will be used as the MAC.