mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 21:58:33 +03:00
Remove the paragraph about writing to the Free Software Foundation's mailing address. The FSF has changed addresses in the past, and may do so again. In 2021 this is not useful, let's rather have a bit less boilerplate at the start of source files. Change-Id: Ie0a3b2273383adbb3303faffd6ff96be7f4cae99
27 lines
933 B
C
27 lines
933 B
C
/* ISO7816-3 Fi/Di tables + computation
|
|
*
|
|
* (C) 2010-2015 by Harald Welte <laforge@gnumonks.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Table 7 of ISO 7816-3:2006 */
|
|
extern const uint16_t iso7816_3_fi_table[16];
|
|
|
|
/* Table 8 from ISO 7816-3:2006 */
|
|
extern const uint8_t iso7816_3_di_table[16];
|
|
|
|
/* compute the F/D ratio based on F_index and D_index values */
|
|
int iso7816_3_compute_fd_ratio(uint8_t f_index, uint8_t d_index);
|