|
ID Chip Reader
|
Header file for ISO 9797 MAC algorithm 3 using DES encryption. More...
Go to the source code of this file.
Macros | |
| #define | CRYPTOGRAPHY_MAC3_H_ |
Functions | |
| void | des_mac3_checksum (int length, unsigned char buff[8], unsigned char *data, unsigned char *key) |
| Calculates ISO 9797 MAC algorithm 3 using DES encryption with Padding Method 2, Initial Transformation 1, and Output transformation 3. More... | |
Header file for ISO 9797 MAC algorithm 3 using DES encryption.
This header file provides an API for calculating the checksum using the ISO 9797 MAC algorithm 3 with DES encryption.
| #define CRYPTOGRAPHY_MAC3_H_ |
| void des_mac3_checksum | ( | int | length, |
| unsigned char | buff[8], | ||
| unsigned char * | data, | ||
| unsigned char * | key | ||
| ) |
Calculates ISO 9797 MAC algorithm 3 using DES encryption with Padding Method 2, Initial Transformation 1, and Output transformation 3.
| length | Length of the input data. |
| buff | Buffer to store the calculated checksum (8 bytes). |
| data | Input data for which the checksum is to be calculated. |
| key | Encryption key used in the calculation (16 bytes). |