Harald Welte | 30a53f8 | 2015-11-08 14:29:55 +0100 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include <stdint.h> | ||||
4 | |||||
Kévin Redon | 7406337 | 2018-07-03 15:57:03 +0200 | [diff] [blame] | 5 | /* Table 7 of ISO 7816-3:2006 */ |
6 | extern const uint16_t fi_table[]; | ||||
7 | |||||
8 | /* Table 8 from ISO 7816-3:2006 */ | ||||
9 | extern const uint8_t di_table[]; | ||||
10 | |||||
Harald Welte | 30a53f8 | 2015-11-08 14:29:55 +0100 | [diff] [blame] | 11 | /* compute the F/D ratio based on Fi and Di values */ |
12 | int compute_fidi_ratio(uint8_t fi, uint8_t di); |