High Level DES functions.
More...
|
ErrorStatus | CRYP_DES_ECB (uint8_t Mode, uint8_t Key[8], uint8_t *Input, uint32_t Ilength, uint8_t *Output) |
| Encrypt and decrypt using DES in ECB Mode. More...
|
|
ErrorStatus | CRYP_DES_CBC (uint8_t Mode, uint8_t Key[8], uint8_t InitVectors[8], uint8_t *Input, uint32_t Ilength, uint8_t *Output) |
| Encrypt and decrypt using DES in CBC Mode. More...
|
|
High Level DES functions.
===============================================================================
High Level DES functions
===============================================================================
ErrorStatus CRYP_DES_CBC |
( |
uint8_t |
Mode, |
|
|
uint8_t |
Key[8], |
|
|
uint8_t |
InitVectors[8], |
|
|
uint8_t * |
Input, |
|
|
uint32_t |
Ilength, |
|
|
uint8_t * |
Output |
|
) |
| |
Encrypt and decrypt using DES in CBC Mode.
- Parameters
-
Mode,: | encryption or decryption Mode. This parameter can be one of the following values:
- MODE_ENCRYPT: Encryption
- MODE_DECRYPT: Decryption
|
Key,: | Key used for DES algorithm. |
InitVectors,: | Initialisation Vectors used for DES algorithm. |
Ilength,: | length of the Input buffer, must be a multiple of 8. |
Input,: | pointer to the Input buffer. |
Output,: | pointer to the returned buffer. |
- Return values
-
An | ErrorStatus enumeration value:
- SUCCESS: Operation done
- ERROR: Operation failed
|
ErrorStatus CRYP_DES_ECB |
( |
uint8_t |
Mode, |
|
|
uint8_t |
Key[8], |
|
|
uint8_t * |
Input, |
|
|
uint32_t |
Ilength, |
|
|
uint8_t * |
Output |
|
) |
| |
Encrypt and decrypt using DES in ECB Mode.
- Parameters
-
Mode,: | encryption or decryption Mode. This parameter can be one of the following values:
- MODE_ENCRYPT: Encryption
- MODE_DECRYPT: Decryption
|
Key,: | Key used for DES algorithm. |
Ilength,: | length of the Input buffer, must be a multiple of 8. |
Input,: | pointer to the Input buffer. |
Output,: | pointer to the returned buffer. |
- Return values
-
An | ErrorStatus enumeration value:
- SUCCESS: Operation done
- ERROR: Operation failed
|