47#if !defined(MBEDTLS_CONFIG_FILE)
50#include MBEDTLS_CONFIG_FILE
53#if defined(MBEDTLS_ERROR_C) || defined(MBEDTLS_ERROR_STRERROR_DUMMY)
57#if defined(MBEDTLS_ERROR_C)
59#if defined(MBEDTLS_PLATFORM_C)
62#define mbedtls_snprintf snprintf
68#if defined(MBEDTLS_AES_C)
72#if defined(MBEDTLS_ARC4_C)
76#if defined(MBEDTLS_ARIA_C)
80#if defined(MBEDTLS_ASN1_PARSE_C)
84#if defined(MBEDTLS_BASE64_C)
88#if defined(MBEDTLS_BIGNUM_C)
92#if defined(MBEDTLS_BLOWFISH_C)
96#if defined(MBEDTLS_CAMELLIA_C)
100#if defined(MBEDTLS_CCM_C)
104#if defined(MBEDTLS_CHACHA20_C)
108#if defined(MBEDTLS_CHACHAPOLY_C)
112#if defined(MBEDTLS_CIPHER_C)
116#if defined(MBEDTLS_CMAC_C)
120#if defined(MBEDTLS_CTR_DRBG_C)
124#if defined(MBEDTLS_DES_C)
128#if defined(MBEDTLS_DHM_C)
132#if defined(MBEDTLS_ECP_C)
136#if defined(MBEDTLS_ENTROPY_C)
140#if defined(MBEDTLS_GCM_C)
144#if defined(MBEDTLS_HKDF_C)
148#if defined(MBEDTLS_HMAC_DRBG_C)
152#if defined(MBEDTLS_MD_C)
156#if defined(MBEDTLS_MD2_C)
160#if defined(MBEDTLS_MD4_C)
164#if defined(MBEDTLS_MD5_C)
168#if defined(MBEDTLS_NET_C)
172#if defined(MBEDTLS_OID_C)
176#if defined(MBEDTLS_PADLOCK_C)
180#if defined(MBEDTLS_PEM_PARSE_C) || defined(MBEDTLS_PEM_WRITE_C)
184#if defined(MBEDTLS_PK_C)
188#if defined(MBEDTLS_PKCS12_C)
192#if defined(MBEDTLS_PKCS5_C)
196#if defined(MBEDTLS_PLATFORM_C)
200#if defined(MBEDTLS_POLY1305_C)
204#if defined(MBEDTLS_RIPEMD160_C)
208#if defined(MBEDTLS_RSA_C)
212#if defined(MBEDTLS_SHA1_C)
216#if defined(MBEDTLS_SHA256_C)
220#if defined(MBEDTLS_SHA512_C)
224#if defined(MBEDTLS_SSL_TLS_C)
228#if defined(MBEDTLS_THREADING_C)
232#if defined(MBEDTLS_X509_USE_C) || defined(MBEDTLS_X509_CREATE_C)
236#if defined(MBEDTLS_XTEA_C)
256 use_ret =
ret & 0xFF80;
261#if defined(MBEDTLS_CIPHER_C)
269 mbedtls_snprintf(
buf, buflen,
"CIPHER - Input data contains invalid padding and is rejected" );
275 mbedtls_snprintf(
buf, buflen,
"CIPHER - The context is invalid. For example, because it was freed" );
280#if defined(MBEDTLS_DHM_C)
305#if defined(MBEDTLS_ECP_C)
311 mbedtls_snprintf(
buf, buflen,
"ECP - The requested feature is not available, for example, the requested curve is not supported" );
317 mbedtls_snprintf(
buf, buflen,
"ECP - Generation of random value, such as ephemeral key, failed" );
321 mbedtls_snprintf(
buf, buflen,
"ECP - The buffer contains a valid signature followed by more data" );
325 mbedtls_snprintf(
buf, buflen,
"ECP - Operation in progress, call again with the same parameters to continue" );
328#if defined(MBEDTLS_MD_C)
341#if defined(MBEDTLS_PEM_PARSE_C) || defined(MBEDTLS_PEM_WRITE_C)
355 mbedtls_snprintf(
buf, buflen,
"PEM - Given private key password does not allow for correct decryption" );
357 mbedtls_snprintf(
buf, buflen,
"PEM - Unavailable feature, e.g. hashing/encryption combination" );
362#if defined(MBEDTLS_PK_C)
366 mbedtls_snprintf(
buf, buflen,
"PK - Type mismatch, eg attempt to encrypt with an ECDSA key" );
376 mbedtls_snprintf(
buf, buflen,
"PK - Key algorithm is unsupported (only RSA and EC are supported)" );
380 mbedtls_snprintf(
buf, buflen,
"PK - Given private key password does not allow for correct decryption" );
382 mbedtls_snprintf(
buf, buflen,
"PK - The pubkey tag or value is invalid (only RSA and EC are supported)" );
386 mbedtls_snprintf(
buf, buflen,
"PK - Elliptic curve is unsupported (only NIST curves are supported)" );
388 mbedtls_snprintf(
buf, buflen,
"PK - Unavailable feature, e.g. RSA disabled for RSA key" );
390 mbedtls_snprintf(
buf, buflen,
"PK - The buffer contains a valid signature followed by more data" );
395#if defined(MBEDTLS_PKCS12_C)
399 mbedtls_snprintf(
buf, buflen,
"PKCS12 - Feature not available, e.g. unsupported encryption scheme" );
403 mbedtls_snprintf(
buf, buflen,
"PKCS12 - Given private key password does not allow for correct decryption" );
406#if defined(MBEDTLS_PKCS5_C)
412 mbedtls_snprintf(
buf, buflen,
"PKCS5 - Requested encryption or digest alg not available" );
414 mbedtls_snprintf(
buf, buflen,
"PKCS5 - Given private key password does not allow for correct decryption" );
417#if defined(MBEDTLS_RSA_C)
421 mbedtls_snprintf(
buf, buflen,
"RSA - Input data contains invalid padding and is rejected" );
425 mbedtls_snprintf(
buf, buflen,
"RSA - Key failed to pass the validity check of the library" );
433 mbedtls_snprintf(
buf, buflen,
"RSA - The output buffer for decryption is not large enough" );
435 mbedtls_snprintf(
buf, buflen,
"RSA - The random generator failed to generate non-zeros" );
437 mbedtls_snprintf(
buf, buflen,
"RSA - The implementation does not offer the requested operation, for example, because of security violations or lack of functionality" );
442#if defined(MBEDTLS_SSL_TLS_C)
456 mbedtls_snprintf(
buf, buflen,
"SSL - The server has no ciphersuites in common with the client" );
460 mbedtls_snprintf(
buf, buflen,
"SSL - No client certification received from the client, but required by the authentication mode" );
462 mbedtls_snprintf(
buf, buflen,
"SSL - Our own certificate(s) is/are too large to send in an SSL message" );
464 mbedtls_snprintf(
buf, buflen,
"SSL - The own certificate is not set, but needed by the server" );
466 mbedtls_snprintf(
buf, buflen,
"SSL - The own private key or pre-shared key is not set, but needed" );
479 mbedtls_snprintf(
buf, buflen,
"SSL - The peer notified us that the connection is going to be closed" );
481 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ClientHello handshake message failed" );
483 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ServerHello handshake message failed" );
485 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the Certificate handshake message failed" );
487 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the CertificateRequest handshake message failed" );
489 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ServerKeyExchange handshake message failed" );
491 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ServerHelloDone handshake message failed" );
493 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ClientKeyExchange handshake message failed" );
495 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ClientKeyExchange handshake message failed in DHM / ECDH Read Public" );
497 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ClientKeyExchange handshake message failed in DHM / ECDH Calculate Secret" );
499 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the CertificateVerify handshake message failed" );
501 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the ChangeCipherSpec handshake message failed" );
503 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the Finished handshake message failed" );
507 mbedtls_snprintf(
buf, buflen,
"SSL - Hardware acceleration function returned with error" );
509 mbedtls_snprintf(
buf, buflen,
"SSL - Hardware acceleration function skipped / left alone data" );
511 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the compression / decompression failed" );
515 mbedtls_snprintf(
buf, buflen,
"SSL - Processing of the NewSessionTicket handshake message failed" );
519 mbedtls_snprintf(
buf, buflen,
"SSL - Public key type mismatch (eg, asked for RSA key exchange and presented EC key)" );
523 mbedtls_snprintf(
buf, buflen,
"SSL - Internal error (eg, unexpected failure in lower-level module)" );
525 mbedtls_snprintf(
buf, buflen,
"SSL - A counter would wrap (eg, too many messages exchanged)" );
527 mbedtls_snprintf(
buf, buflen,
"SSL - Unexpected message at ServerHello in renegotiation" );
531 mbedtls_snprintf(
buf, buflen,
"SSL - A buffer is too small to receive or write a message" );
533 mbedtls_snprintf(
buf, buflen,
"SSL - None of the common ciphersuites is usable (eg, no suitable certificate, see debug messages)" );
535 mbedtls_snprintf(
buf, buflen,
"SSL - No data of requested type currently available on underlying transport" );
541 mbedtls_snprintf(
buf, buflen,
"SSL - The client initiated a reconnect from the same port" );
545 mbedtls_snprintf(
buf, buflen,
"SSL - The alert message received indicates a non-fatal error" );
547 mbedtls_snprintf(
buf, buflen,
"SSL - Couldn't set the hash for verifying CertificateVerify" );
549 mbedtls_snprintf(
buf, buflen,
"SSL - Internal-only message signaling that further message-processing should be done" );
553 mbedtls_snprintf(
buf, buflen,
"SSL - Internal-only message signaling that a message arrived early" );
555 mbedtls_snprintf(
buf, buflen,
"SSL - A cryptographic operation is in progress. Try again later" );
560#if defined(MBEDTLS_X509_USE_C) || defined(MBEDTLS_X509_CREATE_C)
562 mbedtls_snprintf(
buf, buflen,
"X509 - Unavailable feature, e.g. RSA hashing/encryption combination" );
566 mbedtls_snprintf(
buf, buflen,
"X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected" );
586 mbedtls_snprintf(
buf, buflen,
"X509 - Signature algorithms do not match. (see \\c ::mbedtls_x509_crt sig_oid)" );
588 mbedtls_snprintf(
buf, buflen,
"X509 - Certificate verification failed, e.g. CRL, CA or signature check failed" );
600 mbedtls_snprintf(
buf, buflen,
"X509 - A fatal error occurred, eg the chain is too long or the vrfy callback failed" );
608 use_ret =
ret & ~0xFF80;
620 if( buflen -
len < 5 )
632#if defined(MBEDTLS_AES_C)
640 mbedtls_snprintf(
buf, buflen,
"AES - Feature not available. For example, an unsupported AES key size" );
645#if defined(MBEDTLS_ARC4_C)
650#if defined(MBEDTLS_ARIA_C)
656 mbedtls_snprintf(
buf, buflen,
"ARIA - Feature not available. For example, an unsupported ARIA key size" );
661#if defined(MBEDTLS_ASN1_PARSE_C)
667 mbedtls_snprintf(
buf, buflen,
"ASN1 - Error when trying to determine the length or invalid length" );
675 mbedtls_snprintf(
buf, buflen,
"ASN1 - Buffer too small when writing ASN.1 data structure" );
678#if defined(MBEDTLS_BASE64_C)
685#if defined(MBEDTLS_BIGNUM_C)
687 mbedtls_snprintf(
buf, buflen,
"BIGNUM - An error occurred while reading from or writing to a file" );
691 mbedtls_snprintf(
buf, buflen,
"BIGNUM - There is an invalid character in the digit string" );
695 mbedtls_snprintf(
buf, buflen,
"BIGNUM - The input arguments are negative or result in illegal output" );
697 mbedtls_snprintf(
buf, buflen,
"BIGNUM - The input argument for division is zero, which is not allowed" );
704#if defined(MBEDTLS_BLOWFISH_C)
713#if defined(MBEDTLS_CAMELLIA_C)
722#if defined(MBEDTLS_CCM_C)
731#if defined(MBEDTLS_CHACHA20_C)
735 mbedtls_snprintf(
buf, buflen,
"CHACHA20 - Feature not available. For example, s part of the API is not implemented" );
740#if defined(MBEDTLS_CHACHAPOLY_C)
742 mbedtls_snprintf(
buf, buflen,
"CHACHAPOLY - The requested operation is not permitted in the current state" );
744 mbedtls_snprintf(
buf, buflen,
"CHACHAPOLY - Authenticated decryption failed: data was not authentic" );
747#if defined(MBEDTLS_CMAC_C)
752#if defined(MBEDTLS_CTR_DRBG_C)
756 mbedtls_snprintf(
buf, buflen,
"CTR_DRBG - The requested random buffer length is too big" );
758 mbedtls_snprintf(
buf, buflen,
"CTR_DRBG - The input (entropy + additional data) is too large" );
763#if defined(MBEDTLS_DES_C)
770#if defined(MBEDTLS_ENTROPY_C)
783#if defined(MBEDTLS_GCM_C)
792#if defined(MBEDTLS_HKDF_C)
797#if defined(MBEDTLS_HMAC_DRBG_C)
808#if defined(MBEDTLS_MD2_C)
813#if defined(MBEDTLS_MD4_C)
818#if defined(MBEDTLS_MD5_C)
823#if defined(MBEDTLS_NET_C)
841 mbedtls_snprintf(
buf, buflen,
"NET - Failed to get an IP address for the given hostname" );
845 mbedtls_snprintf(
buf, buflen,
"NET - The context is invalid, eg because it was free()ed" );
852#if defined(MBEDTLS_OID_C)
859#if defined(MBEDTLS_PADLOCK_C)
864#if defined(MBEDTLS_PLATFORM_C)
868 mbedtls_snprintf(
buf, buflen,
"PLATFORM - The requested feature is not supported by the platform" );
871#if defined(MBEDTLS_POLY1305_C)
875 mbedtls_snprintf(
buf, buflen,
"POLY1305 - Feature not available. For example, s part of the API is not implemented" );
880#if defined(MBEDTLS_RIPEMD160_C)
885#if defined(MBEDTLS_SHA1_C)
892#if defined(MBEDTLS_SHA256_C)
899#if defined(MBEDTLS_SHA512_C)
906#if defined(MBEDTLS_THREADING_C)
912 mbedtls_snprintf(
buf, buflen,
"THREADING - Locking / unlocking / free failed with error code" );
915#if defined(MBEDTLS_XTEA_C)
ACPI_SIZE strlen(const char *String)
This file contains AES definitions and functions.
#define MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_AES_HW_ACCEL_FAILED
#define MBEDTLS_ERR_AES_INVALID_KEY_LENGTH
#define MBEDTLS_ERR_AES_BAD_INPUT_DATA
#define MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH
#define MBEDTLS_ERR_ARIA_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_ARIA_HW_ACCEL_FAILED
#define MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH
#define MBEDTLS_ERR_ARIA_BAD_INPUT_DATA
RFC 1521 base64 encoding/decoding.
#define MBEDTLS_ERR_BASE64_INVALID_CHARACTER
#define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL
Multi-precision integer library.
#define MBEDTLS_ERR_MPI_INVALID_CHARACTER
#define MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
#define MBEDTLS_ERR_MPI_BAD_INPUT_DATA
#define MBEDTLS_ERR_MPI_FILE_IO_ERROR
#define MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
#define MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
#define MBEDTLS_ERR_MPI_ALLOC_FAILED
#define MBEDTLS_ERR_MPI_NEGATIVE_VALUE
#define MBEDTLS_ERR_BLOWFISH_BAD_INPUT_DATA
#define MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH
#define MBEDTLS_ERR_BLOWFISH_HW_ACCEL_FAILED
#define MBEDTLS_ERR_CAMELLIA_HW_ACCEL_FAILED
#define MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA
#define MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH
This file provides an API for the CCM authenticated encryption mode for block ciphers.
#define MBEDTLS_ERR_CCM_HW_ACCEL_FAILED
#define MBEDTLS_ERR_CCM_BAD_INPUT
#define MBEDTLS_ERR_CCM_AUTH_FAILED
This file contains ChaCha20 definitions and functions.
#define MBEDTLS_ERR_CHACHA20_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_CHACHA20_HW_ACCEL_FAILED
#define MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA
This file contains the AEAD-ChaCha20-Poly1305 definitions and functions.
#define MBEDTLS_ERR_CHACHAPOLY_BAD_STATE
#define MBEDTLS_ERR_CHACHAPOLY_AUTH_FAILED
This file contains an abstraction interface for use with the cipher primitives provided by the librar...
#define MBEDTLS_ERR_CIPHER_INVALID_PADDING
#define MBEDTLS_ERR_CIPHER_HW_ACCEL_FAILED
#define MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_CIPHER_AUTH_FAILED
#define MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
#define MBEDTLS_ERR_CIPHER_ALLOC_FAILED
#define MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED
#define MBEDTLS_ERR_CIPHER_INVALID_CONTEXT
This file contains CMAC definitions and functions.
#define MBEDTLS_ERR_CMAC_HW_ACCEL_FAILED
This file contains definitions and functions for the CTR_DRBG pseudorandom generator.
#define MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED
#define MBEDTLS_ERR_CTR_DRBG_INPUT_TOO_BIG
#define MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR
#define MBEDTLS_ERR_CTR_DRBG_REQUEST_TOO_BIG
This file contains Diffie-Hellman-Merkle (DHM) key exchange definitions and functions.
#define MBEDTLS_ERR_DHM_MAKE_PARAMS_FAILED
#define MBEDTLS_ERR_DHM_CALC_SECRET_FAILED
#define MBEDTLS_ERR_DHM_SET_GROUP_FAILED
#define MBEDTLS_ERR_DHM_HW_ACCEL_FAILED
#define MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED
#define MBEDTLS_ERR_DHM_READ_PUBLIC_FAILED
#define MBEDTLS_ERR_DHM_FILE_IO_ERROR
#define MBEDTLS_ERR_DHM_ALLOC_FAILED
#define MBEDTLS_ERR_DHM_INVALID_FORMAT
#define MBEDTLS_ERR_DHM_BAD_INPUT_DATA
#define MBEDTLS_ERR_DHM_READ_PARAMS_FAILED
Entropy accumulator implementation.
#define MBEDTLS_ERR_ENTROPY_MAX_SOURCES
#define MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR
#define MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
#define MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED
#define MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
This file contains GCM definitions and functions.
#define MBEDTLS_ERR_GCM_AUTH_FAILED
#define MBEDTLS_ERR_GCM_HW_ACCEL_FAILED
#define MBEDTLS_ERR_GCM_BAD_INPUT
GLenum GLuint GLenum GLsizei const GLchar * buf
#define MBEDTLS_ERR_ASN1_INVALID_LENGTH
#define MBEDTLS_ERR_ASN1_OUT_OF_DATA
#define MBEDTLS_ERR_ASN1_INVALID_DATA
#define MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
#define MBEDTLS_ERR_ASN1_ALLOC_FAILED
#define MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
#define MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
#define MBEDTLS_ERR_X509_INVALID_SIGNATURE
#define MBEDTLS_ERR_X509_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_X509_INVALID_FORMAT
#define MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG
#define MBEDTLS_ERR_X509_FATAL_ERROR
#define MBEDTLS_ERR_X509_INVALID_VERSION
#define MBEDTLS_ERR_X509_INVALID_SERIAL
#define MBEDTLS_ERR_X509_INVALID_NAME
#define MBEDTLS_ERR_X509_INVALID_EXTENSIONS
#define MBEDTLS_ERR_X509_UNKNOWN_OID
#define MBEDTLS_ERR_X509_UNKNOWN_VERSION
#define MBEDTLS_ERR_X509_BUFFER_TOO_SMALL
#define MBEDTLS_ERR_X509_CERT_VERIFY_FAILED
#define MBEDTLS_ERR_X509_INVALID_DATE
#define MBEDTLS_ERR_X509_SIG_MISMATCH
#define MBEDTLS_ERR_X509_ALLOC_FAILED
#define MBEDTLS_ERR_X509_FILE_IO_ERROR
#define MBEDTLS_ERR_X509_INVALID_ALG
#define MBEDTLS_ERR_X509_CERT_UNKNOWN_FORMAT
#define MBEDTLS_ERR_X509_BAD_INPUT_DATA
This file contains the HKDF interface.
#define MBEDTLS_ERR_HKDF_BAD_INPUT_DATA
The HMAC_DRBG pseudorandom generator.
#define MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG
#define MBEDTLS_ERR_HMAC_DRBG_REQUEST_TOO_BIG
#define MBEDTLS_ERR_HMAC_DRBG_ENTROPY_SOURCE_FAILED
#define MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR
MD2 message digest algorithm (hash function)
#define MBEDTLS_ERR_MD2_HW_ACCEL_FAILED
This file contains the generic message-digest wrapper.
#define MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_MD_ALLOC_FAILED
#define MBEDTLS_ERR_MD_FILE_IO_ERROR
#define MBEDTLS_ERR_MD_HW_ACCEL_FAILED
#define MBEDTLS_ERR_MD_BAD_INPUT_DATA
Network sockets abstraction layer to integrate Mbed TLS into a BSD-style sockets API.
#define MBEDTLS_ERR_NET_ACCEPT_FAILED
#define MBEDTLS_ERR_NET_POLL_FAILED
#define MBEDTLS_ERR_NET_RECV_FAILED
#define MBEDTLS_ERR_NET_CONN_RESET
#define MBEDTLS_ERR_NET_BAD_INPUT_DATA
#define MBEDTLS_ERR_NET_LISTEN_FAILED
#define MBEDTLS_ERR_NET_BIND_FAILED
#define MBEDTLS_ERR_NET_BUFFER_TOO_SMALL
#define MBEDTLS_ERR_NET_UNKNOWN_HOST
#define MBEDTLS_ERR_NET_INVALID_CONTEXT
#define MBEDTLS_ERR_NET_SOCKET_FAILED
#define MBEDTLS_ERR_NET_CONNECT_FAILED
#define MBEDTLS_ERR_NET_SEND_FAILED
Object Identifier (OID) database.
#define MBEDTLS_ERR_OID_BUF_TOO_SMALL
#define MBEDTLS_ERR_OID_NOT_FOUND
VIA PadLock ACE for HW encryption/decryption supported by some processors.
#define MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED
Privacy Enhanced Mail (PEM) decoding.
#define MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG
#define MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_PEM_BAD_INPUT_DATA
#define MBEDTLS_ERR_PEM_INVALID_ENC_IV
#define MBEDTLS_ERR_PEM_INVALID_DATA
#define MBEDTLS_ERR_PEM_ALLOC_FAILED
#define MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT
#define MBEDTLS_ERR_PEM_PASSWORD_REQUIRED
#define MBEDTLS_ERR_PEM_PASSWORD_MISMATCH
Public Key abstraction layer.
#define MBEDTLS_ERR_PK_INVALID_PUBKEY
#define MBEDTLS_ERR_PK_PASSWORD_MISMATCH
#define MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
#define MBEDTLS_ERR_PK_FILE_IO_ERROR
#define MBEDTLS_ERR_PK_INVALID_ALG
#define MBEDTLS_ERR_PK_HW_ACCEL_FAILED
#define MBEDTLS_ERR_PK_TYPE_MISMATCH
#define MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE
#define MBEDTLS_ERR_PK_UNKNOWN_PK_ALG
#define MBEDTLS_ERR_PK_KEY_INVALID_VERSION
#define MBEDTLS_ERR_PK_PASSWORD_REQUIRED
#define MBEDTLS_ERR_PK_BAD_INPUT_DATA
#define MBEDTLS_ERR_PK_SIG_LEN_MISMATCH
#define MBEDTLS_ERR_PK_ALLOC_FAILED
#define MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE
PKCS#12 Personal Information Exchange Syntax.
#define MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT
#define MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH
#define MBEDTLS_ERR_PKCS12_BAD_INPUT_DATA
#define MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_PKCS5_BAD_INPUT_DATA
#define MBEDTLS_ERR_PKCS5_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_PKCS5_INVALID_FORMAT
#define MBEDTLS_ERR_PKCS5_PASSWORD_MISMATCH
This file contains Poly1305 definitions and functions.
#define MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA
#define MBEDTLS_ERR_POLY1305_HW_ACCEL_FAILED
#define MBEDTLS_ERR_POLY1305_FEATURE_UNAVAILABLE
RIPE MD-160 message digest.
#define MBEDTLS_ERR_RIPEMD160_HW_ACCEL_FAILED
This file provides an API for the RSA public-key cryptosystem.
#define MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE
#define MBEDTLS_ERR_RSA_VERIFY_FAILED
#define MBEDTLS_ERR_RSA_HW_ACCEL_FAILED
#define MBEDTLS_ERR_RSA_RNG_FAILED
#define MBEDTLS_ERR_RSA_KEY_CHECK_FAILED
#define MBEDTLS_ERR_RSA_BAD_INPUT_DATA
#define MBEDTLS_ERR_RSA_INVALID_PADDING
#define MBEDTLS_ERR_RSA_KEY_GEN_FAILED
#define MBEDTLS_ERR_RSA_UNSUPPORTED_OPERATION
#define MBEDTLS_ERR_RSA_PUBLIC_FAILED
#define MBEDTLS_ERR_RSA_PRIVATE_FAILED
The ARCFOUR stream cipher.
#define MBEDTLS_ERR_ARC4_HW_ACCEL_FAILED
Configuration options (set of defines)
#define MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH
#define MBEDTLS_ERR_DES_HW_ACCEL_FAILED
This file provides an API for Elliptic Curves over GF(P) (ECP).
#define MBEDTLS_ERR_ECP_ALLOC_FAILED
#define MBEDTLS_ERR_ECP_INVALID_KEY
#define MBEDTLS_ERR_ECP_VERIFY_FAILED
#define MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL
#define MBEDTLS_ERR_ECP_RANDOM_FAILED
#define MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH
#define MBEDTLS_ERR_ECP_IN_PROGRESS
#define MBEDTLS_ERR_ECP_HW_ACCEL_FAILED
#define MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_ECP_BAD_INPUT_DATA
Error to string translation.
void mbedtls_strerror(int errnum, char *buffer, size_t buflen)
Translate a mbed TLS error code into a string representation, Result is truncated if necessary and al...
MD4 message digest algorithm (hash function)
#define MBEDTLS_ERR_MD4_HW_ACCEL_FAILED
MD5 message digest algorithm (hash function)
#define MBEDTLS_ERR_MD5_HW_ACCEL_FAILED
This file contains SHA-1 definitions and functions.
#define MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED
#define MBEDTLS_ERR_SHA1_BAD_INPUT_DATA
This file contains SHA-224 and SHA-256 definitions and functions.
#define MBEDTLS_ERR_SHA256_HW_ACCEL_FAILED
#define MBEDTLS_ERR_SHA256_BAD_INPUT_DATA
This file contains SHA-384 and SHA-512 definitions and functions.
#define MBEDTLS_ERR_SHA512_BAD_INPUT_DATA
#define MBEDTLS_ERR_SHA512_HW_ACCEL_FAILED
#define MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP
#define MBEDTLS_ERR_SSL_INVALID_VERIFY_HASH
#define MBEDTLS_ERR_SSL_BAD_CONFIG
#define MBEDTLS_ERR_SSL_NON_FATAL
#define MBEDTLS_ERR_SSL_HELLO_VERIFY_REQUIRED
#define MBEDTLS_ERR_SSL_COMPRESSION_FAILED
#define MBEDTLS_ERR_SSL_TIMEOUT
#define MBEDTLS_ERR_SSL_BAD_HS_FINISHED
#define MBEDTLS_ERR_SSL_CA_CHAIN_REQUIRED
#define MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST
#define MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED
#define MBEDTLS_ERR_SSL_NO_USABLE_CIPHERSUITE
#define MBEDTLS_ERR_SSL_CONTINUE_PROCESSING
#define MBEDTLS_ERR_SSL_NO_CIPHER_CHOSEN
#define MBEDTLS_ERR_SSL_BAD_HS_NEW_SESSION_TICKET
#define MBEDTLS_ERR_SSL_ASYNC_IN_PROGRESS
#define MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS
#define MBEDTLS_ERR_SSL_CERTIFICATE_TOO_LARGE
#define MBEDTLS_ERR_SSL_BAD_INPUT_DATA
#define MBEDTLS_ERR_SSL_WANT_WRITE
#define MBEDTLS_ERR_SSL_WANT_READ
#define MBEDTLS_ERR_SSL_ALLOC_FAILED
#define MBEDTLS_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE
#define MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO
#define MBEDTLS_ERR_SSL_UNEXPECTED_RECORD
#define MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED
#define MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE
#define MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE
#define MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO_DONE
#define MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_VERIFY
#define MBEDTLS_ERR_SSL_NO_CLIENT_CERTIFICATE
#define MBEDTLS_ERR_SSL_INVALID_RECORD
#define MBEDTLS_ERR_SSL_CONN_EOF
#define MBEDTLS_ERR_SSL_PEER_VERIFY_FAILED
#define MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY
#define MBEDTLS_ERR_SSL_INVALID_MAC
#define MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO
#define MBEDTLS_ERR_SSL_UNKNOWN_CIPHER
#define MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE
#define MBEDTLS_ERR_SSL_CERTIFICATE_REQUIRED
#define MBEDTLS_ERR_SSL_PK_TYPE_MISMATCH
#define MBEDTLS_ERR_SSL_BAD_HS_CHANGE_CIPHER_SPEC
#define MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL
#define MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE
#define MBEDTLS_ERR_SSL_WAITING_SERVER_HELLO_RENEGO
#define MBEDTLS_ERR_SSL_UNKNOWN_IDENTITY
#define MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION
#define MBEDTLS_ERR_SSL_COUNTER_WRAPPING
#define MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE
#define MBEDTLS_ERR_SSL_NO_RNG
#define MBEDTLS_ERR_SSL_HW_ACCEL_FAILED
#define MBEDTLS_ERR_SSL_INTERNAL_ERROR
#define MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_CS
#define MBEDTLS_ERR_SSL_CLIENT_RECONNECT
#define MBEDTLS_ERR_SSL_HW_ACCEL_FALLTHROUGH
#define MBEDTLS_ERR_SSL_EARLY_MESSAGE
Threading abstraction layer.
#define MBEDTLS_ERR_THREADING_MUTEX_ERROR
#define MBEDTLS_ERR_THREADING_BAD_INPUT_DATA
#define MBEDTLS_ERR_THREADING_FEATURE_UNAVAILABLE
X.509 generic defines and structures.
XTEA block cipher (32-bit)
#define MBEDTLS_ERR_XTEA_HW_ACCEL_FAILED
#define MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH