Go to the documentation of this file.
20 #ifndef CRYPTOGRAPHY_DES3_H_
21 #define CRYPTOGRAPHY_DES3_H_
27 #define MBEDTLS_DES_ENCRYPT 1
28 #define MBEDTLS_DES_DECRYPT 0
29 #define MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH 0
32 #define USE_DES_ECB_EN 1
33 #define USE_DES_CBC_EN 0
36 #define USE_3DES_ECB_EN 0
37 #define USE_3DES_CBC_EN 1
39 #define DES_INPUT_LENGTH -0x0002
41 #define MBEDTLS_DES_KEY_SIZE 8
42 #define DES_KEY_SIZE (8)
43 #define DES3_KEY2_SIZE (16)
44 #define DES3_KEY3_SIZE (24)
72 const unsigned char* input,
73 unsigned char* output);
74 unsigned int des_cbc_encrypt(
unsigned char* pout,
85 unsigned int des3_ecb_encrypt(
unsigned char* pout,
92 unsigned int des3_ecb_decrypt(
unsigned char* pout,
102 unsigned char* pdata,
110 unsigned char* pdata,