Mbed OS Reference
Loading...
Searching...
No Matches
Privacy Enhanced Mail

PEM Error codes

These error codes are returned in case of errors reading the PEM data.

#define MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT   -0x1080
 No PEM header or footer found. More...
 
#define MBEDTLS_ERR_PEM_INVALID_DATA   -0x1100
 PEM string is not as expected. More...
 
#define MBEDTLS_ERR_PEM_ALLOC_FAILED   -0x1180
 Failed to allocate memory. More...
 
#define MBEDTLS_ERR_PEM_INVALID_ENC_IV   -0x1200
 RSA IV is not in hex-format. More...
 
#define MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG   -0x1280
 Unsupported key encryption algorithm. More...
 
#define MBEDTLS_ERR_PEM_PASSWORD_REQUIRED   -0x1300
 Private key password can't be empty. More...
 
#define MBEDTLS_ERR_PEM_PASSWORD_MISMATCH   -0x1380
 Given private key password does not allow for correct decryption. More...
 
#define MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE   -0x1400
 Unavailable feature, e.g. More...
 
#define MBEDTLS_ERR_PEM_BAD_INPUT_DATA   -0x1480
 Bad input parameters to function. More...
 

Detailed Description

Macro Definition Documentation

◆ MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT

#define MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT   -0x1080

No PEM header or footer found.

Definition at line 46 of file pem.h.

◆ MBEDTLS_ERR_PEM_INVALID_DATA

#define MBEDTLS_ERR_PEM_INVALID_DATA   -0x1100

PEM string is not as expected.

Definition at line 47 of file pem.h.

◆ MBEDTLS_ERR_PEM_ALLOC_FAILED

#define MBEDTLS_ERR_PEM_ALLOC_FAILED   -0x1180

Failed to allocate memory.

Definition at line 48 of file pem.h.

◆ MBEDTLS_ERR_PEM_INVALID_ENC_IV

#define MBEDTLS_ERR_PEM_INVALID_ENC_IV   -0x1200

RSA IV is not in hex-format.

Definition at line 49 of file pem.h.

◆ MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG

#define MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG   -0x1280

Unsupported key encryption algorithm.

Definition at line 50 of file pem.h.

◆ MBEDTLS_ERR_PEM_PASSWORD_REQUIRED

#define MBEDTLS_ERR_PEM_PASSWORD_REQUIRED   -0x1300

Private key password can't be empty.

Definition at line 51 of file pem.h.

◆ MBEDTLS_ERR_PEM_PASSWORD_MISMATCH

#define MBEDTLS_ERR_PEM_PASSWORD_MISMATCH   -0x1380

Given private key password does not allow for correct decryption.

Definition at line 52 of file pem.h.

◆ MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE

#define MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE   -0x1400

Unavailable feature, e.g.

hashing/encryption combination.

Definition at line 53 of file pem.h.

◆ MBEDTLS_ERR_PEM_BAD_INPUT_DATA

#define MBEDTLS_ERR_PEM_BAD_INPUT_DATA   -0x1480

Bad input parameters to function.

Definition at line 54 of file pem.h.