mbed TLS v2.2.0
pem.h File Reference

Detailed Description

Privacy Enhanced Mail (PEM) decoding.

Copyright (C) 2006-2015, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This file is part of mbed TLS (https://tls.mbed.org)

Definition in file pem.h.

#include <stddef.h>
Include dependency graph for pem.h:

Go to the source code of this file.

Macros

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...
 

Macro Definition Documentation

#define MBEDTLS_ERR_PEM_ALLOC_FAILED   -0x1180

Failed to allocate memory.

Definition at line 36 of file pem.h.

#define MBEDTLS_ERR_PEM_BAD_INPUT_DATA   -0x1480

Bad input parameters to function.

Definition at line 42 of file pem.h.

#define MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE   -0x1400

Unavailable feature, e.g.

hashing/encryption combination.

Definition at line 41 of file pem.h.

#define MBEDTLS_ERR_PEM_INVALID_DATA   -0x1100

PEM string is not as expected.

Definition at line 35 of file pem.h.

#define MBEDTLS_ERR_PEM_INVALID_ENC_IV   -0x1200

RSA IV is not in hex-format.

Definition at line 37 of file pem.h.

#define MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT   -0x1080

No PEM header or footer found.

Definition at line 34 of file pem.h.

#define MBEDTLS_ERR_PEM_PASSWORD_MISMATCH   -0x1380

Given private key password does not allow for correct decryption.

Definition at line 40 of file pem.h.

#define MBEDTLS_ERR_PEM_PASSWORD_REQUIRED   -0x1300

Private key password can't be empty.

Definition at line 39 of file pem.h.

#define MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG   -0x1280

Unsupported key encryption algorithm.

Definition at line 38 of file pem.h.