recover_pk.py: replace secp192r1 by prime192v1
[RRG-proxmark3.git] / client / src / fido / cose.h
blob448463689665cc293b2c2a593adbf2ae5bdb5159
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Tools for work with COSE (CBOR Object Signing and Encryption) rfc8152
17 // https://tools.ietf.org/html/rfc8152
18 //-----------------------------------------------------------------------------
20 #ifndef __COSE_H__
21 #define __COSE_H__
23 #include "common.h"
25 const char *GetCOSEAlgName(int id);
26 const char *GetCOSEAlgDescription(int id);
27 const char *GetCOSEktyDescription(int id);
28 const char *GetCOSECurveDescription(int id);
30 int COSEGetECDSAKey(uint8_t *data, size_t datalen, bool verbose, uint8_t *public_key);
32 #endif /* __COSE_H__ */