blob: 3b4b451b88241c2d07a3cbdaa9d445dd5e6c069d [file] [log] [blame]
Harald Welte30a53f82015-11-08 14:29:55 +01001#pragma once
2
3#include <stdint.h>
4
Kévin Redon74063372018-07-03 15:57:03 +02005/* Table 7 of ISO 7816-3:2006 */
6extern const uint16_t fi_table[];
7
8/* Table 8 from ISO 7816-3:2006 */
9extern const uint8_t di_table[];
10
Harald Welte30a53f82015-11-08 14:29:55 +010011/* compute the F/D ratio based on Fi and Di values */
12int compute_fidi_ratio(uint8_t fi, uint8_t di);