cryptnox-sdk-arduino 1.0.0
Arduino library for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
CW_TrustedKeys.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: LGPL-3.0-or-later
3 * Copyright (c) 2026 Cryptnox SA
4 */
5
26
27#ifndef CW_TRUSTEDKEYS_H
28#define CW_TRUSTEDKEYS_H
29
30#include "platform_compat.h"
31
32/* CRYPTNOX_DLT_CARDS_CA — signs manufacturer certificates for DLT cards.
33 * Curve: secp256r1. Issued by CRYPTNOX INTERMEDIATE CA #2. */
34static const uint8_t CW_CA_DLT_PUBKEY[64] = {
35 /* X */
36 0x64, 0x7a, 0x11, 0x2c, 0x2a, 0xcf, 0x5a, 0x49,
37 0xb5, 0x2b, 0x32, 0x1c, 0xbd, 0xcf, 0x5a, 0x9e,
38 0xa3, 0x07, 0xfc, 0x4c, 0xcd, 0x33, 0xaa, 0x78,
39 0xb9, 0xb8, 0x05, 0x5d, 0xd8, 0x4d, 0x03, 0xae,
40 /* Y */
41 0xda, 0xb0, 0x2c, 0xc7, 0x20, 0xa7, 0x80, 0xcb,
42 0x1f, 0xf2, 0x80, 0xaf, 0x50, 0x77, 0x4a, 0x6c,
43 0xdc, 0x15, 0x7e, 0xfa, 0x23, 0x5e, 0xa2, 0x53,
44 0x11, 0xa4, 0x2b, 0x4c, 0xf5, 0x7d, 0x88, 0x61
45};
47/* Number of trusted CA keys in the table below. */
48#define CW_TRUSTED_CA_COUNT (1U)
49
50/* Table of all trusted CA public keys (each 64 bytes, X||Y).
51 * verifyCertificateChain() tries every entry until one succeeds. */
52static const uint8_t* const CW_TRUSTED_CA_KEYS[CW_TRUSTED_CA_COUNT] = {
54};
55
56#endif /* CW_TRUSTEDKEYS_H */
static const uint8_t *const CW_TRUSTED_CA_KEYS[CW_TRUSTED_CA_COUNT]
#define CW_TRUSTED_CA_COUNT
static const uint8_t CW_CA_DLT_PUBKEY[64]
Arduino compatibility shims for non-Arduino (plain C++) builds.