ndn-lite
Macros
sign-on-basic-sec-consts.h File Reference

Go to the source code of this file.

Macros

#define SIGN_ON_BASIC_SEC_OP_FAILURE   0
 Implementations of the generic security interfaces of sign_on_basic_client.h should return this for a successful operation. More...
 
#define SIGN_ON_BASIC_SEC_OP_SUCCESS   1
 Implementations of the generic security interfaces of sign_on_basic_client.h should return this for a failed operation. More...
 
#define SIGN_ON_BASIC_SHA256_HASH_SIZE   32
 Length of SHA256 hash. More...
 
#define SIGN_ON_BASIC_ECC_CURVE_SECP_256R1_RAW_PRI_KEY_LENGTH   32
 SECP_256R1 ECC curve private key length. More...
 
#define SIGN_ON_BASIC_ECC_CURVE_SECP_256R1_RAW_PUB_KEY_LENGTH   64
 SECP_256R1 ECC curve public key length, no point identifier. More...
 
#define SIGN_ON_BASIC_AES_KEY_MAX_LENGTH   16
 For encryption and decryption, only this many bytes of any keys will be used. More...
 
#define SIGN_ON_BASIC_ECC_CURVE_SECP_256R1   0
 Indicates to use SECP_256R1 ECC curve. More...
 

Macro Definition Documentation

◆ SIGN_ON_BASIC_AES_KEY_MAX_LENGTH

#define SIGN_ON_BASIC_AES_KEY_MAX_LENGTH   16

For encryption and decryption, only this many bytes of any keys will be used.

◆ SIGN_ON_BASIC_ECC_CURVE_SECP_256R1_RAW_PRI_KEY_LENGTH

#define SIGN_ON_BASIC_ECC_CURVE_SECP_256R1_RAW_PRI_KEY_LENGTH   32

SECP_256R1 ECC curve private key length.

◆ SIGN_ON_BASIC_ECC_CURVE_SECP_256R1_RAW_PUB_KEY_LENGTH

#define SIGN_ON_BASIC_ECC_CURVE_SECP_256R1_RAW_PUB_KEY_LENGTH   64

SECP_256R1 ECC curve public key length, no point identifier.

◆ SIGN_ON_BASIC_SEC_OP_FAILURE

#define SIGN_ON_BASIC_SEC_OP_FAILURE   0

Implementations of the generic security interfaces of sign_on_basic_client.h should return this for a successful operation.

◆ SIGN_ON_BASIC_SEC_OP_SUCCESS

#define SIGN_ON_BASIC_SEC_OP_SUCCESS   1

Implementations of the generic security interfaces of sign_on_basic_client.h should return this for a failed operation.

◆ SIGN_ON_BASIC_SHA256_HASH_SIZE

#define SIGN_ON_BASIC_SHA256_HASH_SIZE   32

Length of SHA256 hash.