cryptnox-sdk-arduino 1.0.0
Arduino library for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
CW_SecureChannel.h File Reference

Cryptnox secure channel protocol over NFC. More...

#include "platform_compat.h"
#include "CW_NfcTransport.h"
#include "CW_Logger.h"
#include "CW_CryptoProvider.h"
#include "CW_Platform.h"
#include "CW_Defs.h"
Include dependency graph for CW_SecureChannel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CW_SecureChannel
 Implements the Cryptnox secure channel protocol over NFC. More...

Macros

#define CW_PAIRING_DATA   "Cryptnox Basic CommonPairingData"
#define CW_PAIRING_DATA_BYTES   (sizeof(CW_PAIRING_DATA) - 1U)

Detailed Description

Cryptnox secure channel protocol over NFC.

Declares CW_SecureChannel, responsible for every low-level APDU exchange required to establish and use an authenticated, encrypted session with a Cryptnox Hardware Wallet:

  • SELECT AID
  • Manufacturer + card certificate retrieval and chain verification
  • Ephemeral key extraction and ECDH session key derivation
  • MUTUALLY AUTHENTICATE
  • AES-CBC + MAC secure messaging (encrypt / decrypt / SW check)

The class is composed inside CryptnoxWallet and is not normally used directly by application code.

Definition in file CW_SecureChannel.h.

Macro Definition Documentation

◆ CW_PAIRING_DATA

#define CW_PAIRING_DATA   "Cryptnox Basic CommonPairingData"

Definition at line 30 of file CW_SecureChannel.h.

◆ CW_PAIRING_DATA_BYTES

#define CW_PAIRING_DATA_BYTES   (sizeof(CW_PAIRING_DATA) - 1U)

Definition at line 31 of file CW_SecureChannel.h.