solo1/fido2/cose_key.h

27 wiersze
808 B
C

2019-02-12 22:18:17 +00:00
// Copyright 2019 SoloKeys Developers
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
2018-05-07 00:15:18 +00:00
#ifndef _COSE_KEY_H
#define _COSE_KEY_H
#define COSE_KEY_LABEL_KTY 1
#define COSE_KEY_LABEL_ALG 3
#define COSE_KEY_LABEL_CRV -1
#define COSE_KEY_LABEL_X -2
#define COSE_KEY_LABEL_Y -3
#define COSE_KEY_KTY_OKP 1
2018-05-07 00:15:18 +00:00
#define COSE_KEY_KTY_EC2 2
2018-05-07 00:15:18 +00:00
#define COSE_KEY_CRV_P256 1
#define COSE_KEY_CRV_ED25519 6
2018-05-07 00:15:18 +00:00
#define COSE_ALG_ES256 -7
#define COSE_ALG_EDDSA -8
#define COSE_ALG_ECDH_ES_HKDF_256 -25
2018-05-07 00:15:18 +00:00
#endif