Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
scp.h File Reference
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for scp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  _Msg
 
struct  Scp_ctx
 

Macros

#define SCP_CARD_CRYPTOGRAM   0x00
 
#define SCP_HOST_CRYPTOGRAM   0x01
 
#define SCP_CARD_CHALLENGE   0x02
 
#define SCP_S_ENC_DERIVATION   0x04
 
#define SCP_S_MAC_DERIVATION   0x06
 
#define SCP_S_RMAC_DERIVATION   0x07
 
#define AES_128_KEY_LEN   16
 
#define AES_192_KEY_LEN   24
 
#define AES_256_KEY_LEN   32
 
#define SCP_KEY_LEN   (AES_128_KEY_LEN)
 
#define SCP_PRF_LEN   16
 
#define SCP_CARD_CHAL_LEN   8
 
#define SCP_HOST_CHAL_LEN   8
 
#define SCP_CARD_CRYPTO_LEN   8
 
#define SCP_HOST_CRYPTO_LEN   8
 
#define SCP_MAC_LEN   8
 
#define SCP_CONTEXT_LEN   16
 
#define SCP_AUTHKEY_ID_LEN   2
 
#define SCP_MSG_BUF_SIZE   2048
 

Typedefs

typedef union _Msg Msg
 

Macro Definition Documentation

◆ AES_128_KEY_LEN

#define AES_128_KEY_LEN   16

Definition at line 34 of file scp.h.

◆ AES_192_KEY_LEN

#define AES_192_KEY_LEN   24

Definition at line 35 of file scp.h.

◆ AES_256_KEY_LEN

#define AES_256_KEY_LEN   32

Definition at line 36 of file scp.h.

◆ SCP_AUTHKEY_ID_LEN

#define SCP_AUTHKEY_ID_LEN   2

Definition at line 50 of file scp.h.

◆ SCP_CARD_CHAL_LEN

#define SCP_CARD_CHAL_LEN   8

Definition at line 40 of file scp.h.

◆ SCP_CARD_CHALLENGE

#define SCP_CARD_CHALLENGE   0x02

Definition at line 27 of file scp.h.

◆ SCP_CARD_CRYPTO_LEN

#define SCP_CARD_CRYPTO_LEN   8

Definition at line 43 of file scp.h.

◆ SCP_CARD_CRYPTOGRAM

#define SCP_CARD_CRYPTOGRAM   0x00

Definition at line 24 of file scp.h.

◆ SCP_CONTEXT_LEN

#define SCP_CONTEXT_LEN   16

Definition at line 48 of file scp.h.

◆ SCP_HOST_CHAL_LEN

#define SCP_HOST_CHAL_LEN   8

Definition at line 41 of file scp.h.

◆ SCP_HOST_CRYPTO_LEN

#define SCP_HOST_CRYPTO_LEN   8

Definition at line 44 of file scp.h.

◆ SCP_HOST_CRYPTOGRAM

#define SCP_HOST_CRYPTOGRAM   0x01

Definition at line 25 of file scp.h.

◆ SCP_KEY_LEN

#define SCP_KEY_LEN   (AES_128_KEY_LEN)

Definition at line 37 of file scp.h.

◆ SCP_MAC_LEN

#define SCP_MAC_LEN   8

Definition at line 46 of file scp.h.

◆ SCP_MSG_BUF_SIZE

#define SCP_MSG_BUF_SIZE   2048

Definition at line 52 of file scp.h.

◆ SCP_PRF_LEN

#define SCP_PRF_LEN   16

Definition at line 38 of file scp.h.

◆ SCP_S_ENC_DERIVATION

#define SCP_S_ENC_DERIVATION   0x04

Definition at line 29 of file scp.h.

◆ SCP_S_MAC_DERIVATION

#define SCP_S_MAC_DERIVATION   0x06

Definition at line 30 of file scp.h.

◆ SCP_S_RMAC_DERIVATION

#define SCP_S_RMAC_DERIVATION   0x07

Definition at line 31 of file scp.h.

Typedef Documentation

◆ Msg

typedef union _Msg Msg

Definition at line 66 of file scp.h.