2018-11-26 22:12:28 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2022-01-07 08:58:03 +08:00
|
|
|
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
2018-11-26 22:12:28 +08:00
|
|
|
//
|
2022-01-07 08:58:03 +08:00
|
|
|
// 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 3 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.
|
|
|
|
//
|
|
|
|
// See LICENSE.txt for the text of the license.
|
2018-11-26 22:12:28 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Tools for work with COSE (CBOR Object Signing and Encryption) rfc8152
|
|
|
|
// https://tools.ietf.org/html/rfc8152
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef __COSE_H__
|
|
|
|
#define __COSE_H__
|
|
|
|
|
2019-08-08 22:57:33 +08:00
|
|
|
#include "common.h"
|
2018-11-26 22:12:28 +08:00
|
|
|
|
2019-04-06 06:52:55 +08:00
|
|
|
const char *GetCOSEAlgName(int id);
|
|
|
|
const char *GetCOSEAlgDescription(int id);
|
|
|
|
const char *GetCOSEktyDescription(int id);
|
|
|
|
const char *GetCOSECurveDescription(int id);
|
2018-11-26 22:12:28 +08:00
|
|
|
|
2019-04-06 06:52:55 +08:00
|
|
|
int COSEGetECDSAKey(uint8_t *data, size_t datalen, bool verbose, uint8_t *public_key);
|
2018-11-27 00:30:14 +08:00
|
|
|
|
2018-11-26 22:12:28 +08:00
|
|
|
#endif /* __COSE_H__ */
|