1 //-----------------------------------------------------------------------------
2 // Borrowed initially from https://gist.github.com/robstradling/f525d423c79690b72e650e2ad38a161d
3 // Copyright (C) 2017-2018 Rob Stradling
4 // Copyright (C) 2017-2018 Sectigo Limited
5 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // See LICENSE.txt for the text of the license.
18 //-----------------------------------------------------------------------------
19 // roca.c - ROCA (CVE-2017-15361) fingerprint checker.
20 //-----------------------------------------------------------------------------
27 #define ROCA_PRINTS_LENGTH 17
29 bool emv_rocacheck(const unsigned char *buf
, size_t buflen
, bool verbose
);
30 int roca_self_test(void);