mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 10:14:34 +08:00
a91d0a7b19
* if on Windows, no color, as usual * if on Linux, color only on real term * no color when > foo * no color in the logfile
28 lines
957 B
C
28 lines
957 B
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2018 Merlok
|
|
//
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
// the license.
|
|
//-----------------------------------------------------------------------------
|
|
// Tools for work with COSE (CBOR Object Signing and Encryption) rfc8152
|
|
// https://tools.ietf.org/html/rfc8152
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
|
|
#ifndef __COSE_H__
|
|
#define __COSE_H__
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <cbor.h>
|
|
#include "util.h"
|
|
|
|
const char *GetCOSEAlgName(int id);
|
|
const char *GetCOSEAlgDescription(int id);
|
|
const char *GetCOSEktyDescription(int id);
|
|
const char *GetCOSECurveDescription(int id);
|
|
|
|
int COSEGetECDSAKey(uint8_t *data, size_t datalen, bool verbose, uint8_t *public_key);
|
|
|
|
#endif /* __COSE_H__ */
|