Mistake on this page?
Report an issue in GitHub or email us
Macros
CryptoCell DH specific errors

Macros

#define CRYS_DH_INVALID_ARGUMENT_POINTER_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x0UL)
 
#define CRYS_DH_INVALID_ARGUMENT_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x1UL)
 
#define CRYS_DH_INVALID_ARGUMENT_OPERATION_MODE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2UL)
 
#define CRYS_DH_INVALID_ARGUMENT_HASH_MODE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x3UL)
 
#define CRYS_DH_SECRET_KEYING_DATA_SIZE_ILLEGAL_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x4UL)
 
#define CRYS_DH_INVALID_L_ARGUMENT_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x5UL)
 
#define CRYS_DH_ARGUMENT_PRIME_SMALLER_THAN_GENERATOR_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x6UL)
 
#define CRYS_DH_ARGUMENT_GENERATOR_SMALLER_THAN_ZERO_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x7UL)
 
#define CRYS_DH_ARGUMENT_PRV_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x8UL)
 
#define CRYS_DH_ARGUMENT_BUFFER_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x9UL)
 
#define CRYS_DH_INVALID_SHARED_SECRET_VALUE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0xAUL)
 
#define CRYS_DH_IS_NOT_SUPPORTED   (CRYS_DH_MODULE_ERROR_BASE + 0xFUL)
 
#define CRYS_DH_X942_HYBRID_SIZE1_BUFFER_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x15UL)
 
#define CRYS_DH_SECRET_KEY_SIZE_NEEDED_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x16UL)
 
#define CRYS_DH_SECRET_KEY_SIZE_OUTPUT_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x17UL)
 
#define CRYS_DH_OTHERINFO_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x18UL)
 
#define CRYS_DH_INVALID_MODULUS_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x20UL)
 
#define CRYS_DH_INVALID_ORDER_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x21UL)
 
#define CRYS_DH_INVALID_SEED_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x22UL)
 
#define CRYS_DH_INVALID_J_FACTOR_PTR_OR_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x23UL)
 
#define CRYS_DH_INVALID_GENERATOR_PTR_OR_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x24UL)
 
#define CRYS_DH_CHECK_DOMAIN_PRIMES_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x25UL)
 
#define CRYS_DH_CHECK_DOMAIN_GENERATOR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x26UL)
 
#define CRYS_DH_INVALID_PUBLIC_KEY_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x27UL)
 
#define CRYS_DH_CHECK_PUB_KEY_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x28UL)
 
#define CRYS_DH_CHECK_GENERATOR_SIZE_OR_PTR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x29UL)
 
#define CRYS_DH_CHECK_SEED_SIZE_OR_PTR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2AUL)
 
#define CRYS_DH_CHECK_GENERATOR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2BUL)
 
#define CRYS_DH_PRIME_P_GENERATION_FAILURE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2CUL)
 
#define CRYS_DH_INVALID_PUBLIC_KEY_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2DUL)
 
#define CRYS_DH_PASSED_INVALID_SEED_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2EUL)
 
#define CRYS_DH_PRIME_Q_GENERATION_FAILURE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2FUL)
 
#define CRYS_DH_PKI_INTERNAL_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x30UL)
 

Detailed Description

Macro Definition Documentation

#define CRYS_DH_ARGUMENT_BUFFER_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x9UL)

Illegal buffer size.

Definition at line 79 of file crys_dh_error.h.

#define CRYS_DH_ARGUMENT_GENERATOR_SMALLER_THAN_ZERO_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x7UL)

Generator is smaller than zero.

Definition at line 75 of file crys_dh_error.h.

#define CRYS_DH_ARGUMENT_PRIME_SMALLER_THAN_GENERATOR_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x6UL)

Prime is smaller than generator.

Definition at line 73 of file crys_dh_error.h.

#define CRYS_DH_ARGUMENT_PRV_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x8UL)

Illegal private key size.

Definition at line 77 of file crys_dh_error.h.

#define CRYS_DH_CHECK_DOMAIN_GENERATOR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x26UL)

Illegal domain generator.

Definition at line 110 of file crys_dh_error.h.

#define CRYS_DH_CHECK_DOMAIN_PRIMES_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x25UL)

Illegal domain primes.

Definition at line 108 of file crys_dh_error.h.

#define CRYS_DH_CHECK_GENERATOR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2BUL)

Illegal generator.

Definition at line 120 of file crys_dh_error.h.

#define CRYS_DH_CHECK_GENERATOR_SIZE_OR_PTR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x29UL)

Illegal generator size or pointer.

Definition at line 116 of file crys_dh_error.h.

#define CRYS_DH_CHECK_PUB_KEY_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x28UL)

Illegal public key.

Definition at line 114 of file crys_dh_error.h.

#define CRYS_DH_CHECK_SEED_SIZE_OR_PTR_NOT_VALID_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2AUL)

Illegal seed size or pointer.

Definition at line 118 of file crys_dh_error.h.

#define CRYS_DH_INVALID_ARGUMENT_HASH_MODE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x3UL)

Illegal hash mode.

Definition at line 66 of file crys_dh_error.h.

#define CRYS_DH_INVALID_ARGUMENT_OPERATION_MODE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2UL)

Illegal operation mode.

Definition at line 64 of file crys_dh_error.h.

#define CRYS_DH_INVALID_ARGUMENT_POINTER_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x0UL)

The CRYS DH module errors

Illegal input pointer.

Definition at line 60 of file crys_dh_error.h.

#define CRYS_DH_INVALID_ARGUMENT_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x1UL)

Illegal input size.

Definition at line 62 of file crys_dh_error.h.

#define CRYS_DH_INVALID_GENERATOR_PTR_OR_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x24UL)

Illegal generator pointer or size.

Definition at line 105 of file crys_dh_error.h.

#define CRYS_DH_INVALID_J_FACTOR_PTR_OR_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x23UL)

Illegal J factor pointer size.

Definition at line 103 of file crys_dh_error.h.

#define CRYS_DH_INVALID_L_ARGUMENT_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x5UL)

Illegal L input.

Definition at line 71 of file crys_dh_error.h.

#define CRYS_DH_INVALID_MODULUS_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x20UL)

Illegal modulus size.

Definition at line 97 of file crys_dh_error.h.

#define CRYS_DH_INVALID_ORDER_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x21UL)

Illegal order size.

Definition at line 99 of file crys_dh_error.h.

#define CRYS_DH_INVALID_PUBLIC_KEY_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2DUL)

Illegal public key.

Definition at line 124 of file crys_dh_error.h.

#define CRYS_DH_INVALID_PUBLIC_KEY_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x27UL)

Illegal public key size.

Definition at line 112 of file crys_dh_error.h.

#define CRYS_DH_INVALID_SEED_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x22UL)

Illegal seed size.

Definition at line 101 of file crys_dh_error.h.

#define CRYS_DH_INVALID_SHARED_SECRET_VALUE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0xAUL)

Invalid shared secret value.

Definition at line 81 of file crys_dh_error.h.

#define CRYS_DH_IS_NOT_SUPPORTED   (CRYS_DH_MODULE_ERROR_BASE + 0xFUL)

DH is not supported.

Definition at line 83 of file crys_dh_error.h.

#define CRYS_DH_OTHERINFO_SIZE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x18UL)

Illegal otherInfo size .

Definition at line 93 of file crys_dh_error.h.

#define CRYS_DH_PASSED_INVALID_SEED_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2EUL)

Illegal seed.

Definition at line 126 of file crys_dh_error.h.

#define CRYS_DH_PKI_INTERNAL_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x30UL)

Internal PKI error

Definition at line 130 of file crys_dh_error.h.

#define CRYS_DH_PRIME_P_GENERATION_FAILURE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2CUL)

Prime generation failed.

Definition at line 122 of file crys_dh_error.h.

#define CRYS_DH_PRIME_Q_GENERATION_FAILURE_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x2FUL)

Prime generation failed.

Definition at line 128 of file crys_dh_error.h.

#define CRYS_DH_SECRET_KEY_SIZE_NEEDED_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x16UL)

Illegal secret key size .

Definition at line 89 of file crys_dh_error.h.

#define CRYS_DH_SECRET_KEY_SIZE_OUTPUT_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x17UL)

Illegal output secret key size .

Definition at line 91 of file crys_dh_error.h.

#define CRYS_DH_SECRET_KEYING_DATA_SIZE_ILLEGAL_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x4UL)

Illegal secret key data size.

Definition at line 69 of file crys_dh_error.h.

#define CRYS_DH_X942_HYBRID_SIZE1_BUFFER_ERROR   (CRYS_DH_MODULE_ERROR_BASE + 0x15UL)

Illegal X942 hybrid buffer size.

Definition at line 85 of file crys_dh_error.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.