Noise-C
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Macros
Error codes

Macros

#define NOISE_ERROR_INVALID_FORMAT   NOISE_ID('E', 16)
 Invalid format for packet or key file. More...
 
#define NOISE_ERROR_INVALID_LENGTH   NOISE_ID('E', 10)
 Invalid length specified for a key, packet, etc. More...
 
#define NOISE_ERROR_INVALID_NONCE   NOISE_ID('E', 13)
 Invalid nonce value. More...
 
#define NOISE_ERROR_INVALID_PARAM   NOISE_ID('E', 11)
 Invalid parameter to function; e.g. a NULL value. More...
 
#define NOISE_ERROR_INVALID_PRIVATE_KEY   NOISE_ID('E', 14)
 Invalid private key value. More...
 
#define NOISE_ERROR_INVALID_PUBLIC_KEY   NOISE_ID('E', 15)
 Invalid public key value. More...
 
#define NOISE_ERROR_INVALID_SIGNATURE   NOISE_ID('E', 17)
 Invalid digital signature; does not verify. More...
 
#define NOISE_ERROR_INVALID_STATE   NOISE_ID('E', 12)
 Operation cannot be performed in the current state. More...
 
#define NOISE_ERROR_LOCAL_KEY_REQUIRED   NOISE_ID('E', 8)
 A local keypair is required for the selected protocol, but one was not supplied. More...
 
#define NOISE_ERROR_MAC_FAILURE   NOISE_ID('E', 4)
 MAC check failed on an incoming packet. More...
 
#define NOISE_ERROR_NO_MEMORY   NOISE_ID('E', 1)
 Insufficient memory to complete the operation. More...
 
#define NOISE_ERROR_NONE   0
 Success, no error. More...
 
#define NOISE_ERROR_NOT_APPLICABLE   NOISE_ID('E', 5)
 An option was supplied that was not applicable to the selected protocol. More...
 
#define NOISE_ERROR_PSK_REQUIRED   NOISE_ID('E', 9)
 A pre shared key is required for the selected protocol, but one was not supplied. More...
 
#define NOISE_ERROR_REMOTE_KEY_REQUIRED   NOISE_ID('E', 7)
 A remote static public key is required for the selected protocol, but one was not supplied. More...
 
#define NOISE_ERROR_SYSTEM   NOISE_ID('E', 6)
 System error, with more information in errno. More...
 
#define NOISE_ERROR_UNKNOWN_ID   NOISE_ID('E', 2)
 Algorithm identifier is unknown. More...
 
#define NOISE_ERROR_UNKNOWN_NAME   NOISE_ID('E', 3)
 Algorithm name is unknown. More...
 

Detailed Description

Macro Definition Documentation

#define NOISE_ERROR_INVALID_FORMAT   NOISE_ID('E', 16)

Invalid format for packet or key file.

#define NOISE_ERROR_INVALID_LENGTH   NOISE_ID('E', 10)

Invalid length specified for a key, packet, etc.

#define NOISE_ERROR_INVALID_NONCE   NOISE_ID('E', 13)

Invalid nonce value.

Typically this is reported when the 64-bit nonce value wraps around.

#define NOISE_ERROR_INVALID_PARAM   NOISE_ID('E', 11)

Invalid parameter to function; e.g. a NULL value.

#define NOISE_ERROR_INVALID_PRIVATE_KEY   NOISE_ID('E', 14)

Invalid private key value.

#define NOISE_ERROR_INVALID_PUBLIC_KEY   NOISE_ID('E', 15)

Invalid public key value.

#define NOISE_ERROR_INVALID_SIGNATURE   NOISE_ID('E', 17)

Invalid digital signature; does not verify.

#define NOISE_ERROR_INVALID_STATE   NOISE_ID('E', 12)

Operation cannot be performed in the current state.

For example, attempting to encrypt or decrypt with a CipherState before setting the key.

#define NOISE_ERROR_LOCAL_KEY_REQUIRED   NOISE_ID('E', 8)

A local keypair is required for the selected protocol, but one was not supplied.

#define NOISE_ERROR_MAC_FAILURE   NOISE_ID('E', 4)

MAC check failed on an incoming packet.

#define NOISE_ERROR_NO_MEMORY   NOISE_ID('E', 1)

Insufficient memory to complete the operation.

#define NOISE_ERROR_NONE   0

Success, no error.

#define NOISE_ERROR_NOT_APPLICABLE   NOISE_ID('E', 5)

An option was supplied that was not applicable to the selected protocol.

For example, a pre shared key was supplied to a protocol that does not use pre shared keys.

#define NOISE_ERROR_PSK_REQUIRED   NOISE_ID('E', 9)

A pre shared key is required for the selected protocol, but one was not supplied.

#define NOISE_ERROR_REMOTE_KEY_REQUIRED   NOISE_ID('E', 7)

A remote static public key is required for the selected protocol, but one was not supplied.

#define NOISE_ERROR_SYSTEM   NOISE_ID('E', 6)

System error, with more information in errno.

This code is intended for reporting errors from the underlying operating system, with more information about the specific error in the standard errno variable.

#define NOISE_ERROR_UNKNOWN_ID   NOISE_ID('E', 2)

Algorithm identifier is unknown.

#define NOISE_ERROR_UNKNOWN_NAME   NOISE_ID('E', 3)

Algorithm name is unknown.