28 #if defined(POLARSSL_ERROR_C)
32 #if defined(POLARSSL_AES_C)
36 #if defined(POLARSSL_BASE64_C)
40 #if defined(POLARSSL_BIGNUM_C)
44 #if defined(POLARSSL_BLOWFISH_C)
48 #if defined(POLARSSL_CAMELLIA_C)
52 #if defined(POLARSSL_CIPHER_C)
56 #if defined(POLARSSL_CTR_DRBG_C)
60 #if defined(POLARSSL_DES_C)
64 #if defined(POLARSSL_DHM_C)
68 #if defined(POLARSSL_ENTROPY_C)
72 #if defined(POLARSSL_GCM_C)
76 #if defined(POLARSSL_MD_C)
80 #if defined(POLARSSL_MD2_C)
84 #if defined(POLARSSL_MD4_C)
88 #if defined(POLARSSL_MD5_C)
92 #if defined(POLARSSL_NET_C)
96 #if defined(POLARSSL_PADLOCK_C)
100 #if defined(POLARSSL_PBKDF2_C)
104 #if defined(POLARSSL_PEM_C)
108 #if defined(POLARSSL_PKCS12_C)
112 #if defined(POLARSSL_PKCS5_C)
116 #if defined(POLARSSL_RSA_C)
120 #if defined(POLARSSL_SHA1_C)
124 #if defined(POLARSSL_SHA2_C)
128 #if defined(POLARSSL_SHA4_C)
132 #if defined(POLARSSL_SSL_TLS_C)
136 #if defined(POLARSSL_X509_PARSE_C)
140 #if defined(POLARSSL_XTEA_C)
147 #if defined _MSC_VER && !defined snprintf
148 #define snprintf _snprintf
156 memset( buf, 0x00, buflen );
163 use_ret = ret & 0xFF80;
167 #if defined(POLARSSL_CIPHER_C)
169 snprintf( buf, buflen,
"CIPHER - The selected feature is not available" );
171 snprintf( buf, buflen,
"CIPHER - Bad input parameters to function" );
173 snprintf( buf, buflen,
"CIPHER - Failed to allocate memory" );
175 snprintf( buf, buflen,
"CIPHER - Input data contains invalid padding and is rejected" );
177 snprintf( buf, buflen,
"CIPHER - Decryption of block requires a full block" );
180 #if defined(POLARSSL_DHM_C)
182 snprintf( buf, buflen,
"DHM - Bad input parameters to function" );
184 snprintf( buf, buflen,
"DHM - Reading of the DHM parameters failed" );
186 snprintf( buf, buflen,
"DHM - Making of the DHM parameters failed" );
188 snprintf( buf, buflen,
"DHM - Reading of the public values failed" );
190 snprintf( buf, buflen,
"DHM - Making of the public value failed" );
192 snprintf( buf, buflen,
"DHM - Calculation of the DHM secret failed" );
195 #if defined(POLARSSL_MD_C)
197 snprintf( buf, buflen,
"MD - The selected feature is not available" );
199 snprintf( buf, buflen,
"MD - Bad input parameters to function" );
201 snprintf( buf, buflen,
"MD - Failed to allocate memory" );
203 snprintf( buf, buflen,
"MD - Opening or reading of file failed" );
206 #if defined(POLARSSL_PEM_C)
208 snprintf( buf, buflen,
"PEM - No PEM header or footer found" );
210 snprintf( buf, buflen,
"PEM - PEM string is not as expected" );
212 snprintf( buf, buflen,
"PEM - Failed to allocate memory" );
214 snprintf( buf, buflen,
"PEM - RSA IV is not in hex-format" );
216 snprintf( buf, buflen,
"PEM - Unsupported key encryption algorithm" );
218 snprintf( buf, buflen,
"PEM - Private key password can't be empty" );
220 snprintf( buf, buflen,
"PEM - Given private key password does not allow for correct decryption" );
222 snprintf( buf, buflen,
"PEM - Unavailable feature, e.g. hashing/encryption combination" );
224 snprintf( buf, buflen,
"PEM - Bad input parameters to function" );
227 #if defined(POLARSSL_PKCS12_C)
229 snprintf( buf, buflen,
"PKCS12 - Bad input parameters to function" );
231 snprintf( buf, buflen,
"PKCS12 - Feature not available, e.g. unsupported encryption scheme" );
233 snprintf( buf, buflen,
"PKCS12 - PBE ASN.1 data not as expected" );
235 snprintf( buf, buflen,
"PKCS12 - Given private key password does not allow for correct decryption" );
238 #if defined(POLARSSL_PKCS5_C)
240 snprintf( buf, buflen,
"PKCS5 - Bad input parameters to function" );
242 snprintf( buf, buflen,
"PKCS5 - Unexpected ASN.1 data" );
244 snprintf( buf, buflen,
"PKCS5 - Requested encryption or digest alg not available" );
246 snprintf( buf, buflen,
"PKCS5 - Given private key password does not allow for correct decryption" );
249 #if defined(POLARSSL_RSA_C)
251 snprintf( buf, buflen,
"RSA - Bad input parameters to function" );
253 snprintf( buf, buflen,
"RSA - Input data contains invalid padding and is rejected" );
255 snprintf( buf, buflen,
"RSA - Something failed during generation of a key" );
257 snprintf( buf, buflen,
"RSA - Key failed to pass the libraries validity check" );
259 snprintf( buf, buflen,
"RSA - The public key operation failed" );
261 snprintf( buf, buflen,
"RSA - The private key operation failed" );
263 snprintf( buf, buflen,
"RSA - The PKCS#1 verification failed" );
265 snprintf( buf, buflen,
"RSA - The output buffer for decryption is not large enough" );
267 snprintf( buf, buflen,
"RSA - The random generator failed to generate non-zeros" );
270 #if defined(POLARSSL_SSL_TLS_C)
272 snprintf( buf, buflen,
"SSL - The requested feature is not available" );
274 snprintf( buf, buflen,
"SSL - Bad input parameters to function" );
276 snprintf( buf, buflen,
"SSL - Verification of the message MAC failed" );
278 snprintf( buf, buflen,
"SSL - An invalid SSL record was received" );
280 snprintf( buf, buflen,
"SSL - The connection indicated an EOF" );
282 snprintf( buf, buflen,
"SSL - An unknown cipher was received" );
284 snprintf( buf, buflen,
"SSL - The server has no ciphersuites in common with the client" );
286 snprintf( buf, buflen,
"SSL - No session to recover was found" );
288 snprintf( buf, buflen,
"SSL - No client certification received from the client, but required by the authentication mode" );
290 snprintf( buf, buflen,
"SSL - DESCRIPTION MISSING" );
292 snprintf( buf, buflen,
"SSL - The own certificate is not set, but needed by the server" );
294 snprintf( buf, buflen,
"SSL - The own private key is not set, but needed" );
296 snprintf( buf, buflen,
"SSL - No CA Chain is set, but required to operate" );
298 snprintf( buf, buflen,
"SSL - An unexpected message was received from our peer" );
301 snprintf( buf, buflen,
"SSL - A fatal alert message was received from our peer" );
305 snprintf( buf, buflen,
"SSL - Verification of our peer failed" );
307 snprintf( buf, buflen,
"SSL - The peer notified us that the connection is going to be closed" );
309 snprintf( buf, buflen,
"SSL - Processing of the ClientHello handshake message failed" );
311 snprintf( buf, buflen,
"SSL - Processing of the ServerHello handshake message failed" );
313 snprintf( buf, buflen,
"SSL - Processing of the Certificate handshake message failed" );
315 snprintf( buf, buflen,
"SSL - Processing of the CertificateRequest handshake message failed" );
317 snprintf( buf, buflen,
"SSL - Processing of the ServerKeyExchange handshake message failed" );
319 snprintf( buf, buflen,
"SSL - Processing of the ServerHelloDone handshake message failed" );
321 snprintf( buf, buflen,
"SSL - Processing of the ClientKeyExchange handshake message failed" );
323 snprintf( buf, buflen,
"SSL - Processing of the ClientKeyExchange handshake message failed in DHM Read Public" );
325 snprintf( buf, buflen,
"SSL - Processing of the ClientKeyExchange handshake message failed in DHM Calculate Secret" );
327 snprintf( buf, buflen,
"SSL - Processing of the CertificateVerify handshake message failed" );
329 snprintf( buf, buflen,
"SSL - Processing of the ChangeCipherSpec handshake message failed" );
331 snprintf( buf, buflen,
"SSL - Processing of the Finished handshake message failed" );
333 snprintf( buf, buflen,
"SSL - Memory allocation failed" );
335 snprintf( buf, buflen,
"SSL - Hardware acceleration function returned with error" );
337 snprintf( buf, buflen,
"SSL - Hardware acceleration function skipped / left alone data" );
339 snprintf( buf, buflen,
"SSL - Processing of the compression / decompression failed" );
341 snprintf( buf, buflen,
"SSL - Handshake protocol not within min/max boundaries" );
344 #if defined(POLARSSL_X509_PARSE_C)
346 snprintf( buf, buflen,
"X509 - Unavailable feature, e.g. RSA hashing/encryption combination" );
348 snprintf( buf, buflen,
"X509 - The PEM-encoded certificate contains invalid elements, e.g. invalid character" );
350 snprintf( buf, buflen,
"X509 - The certificate format is invalid, e.g. different type expected" );
352 snprintf( buf, buflen,
"X509 - The certificate version element is invalid" );
354 snprintf( buf, buflen,
"X509 - The serial tag or value is invalid" );
356 snprintf( buf, buflen,
"X509 - The algorithm tag or value is invalid" );
358 snprintf( buf, buflen,
"X509 - The name tag or value is invalid" );
360 snprintf( buf, buflen,
"X509 - The date tag or value is invalid" );
362 snprintf( buf, buflen,
"X509 - The pubkey tag or value is invalid (only RSA is supported)" );
364 snprintf( buf, buflen,
"X509 - The signature tag or value invalid" );
366 snprintf( buf, buflen,
"X509 - The extension tag or value is invalid" );
368 snprintf( buf, buflen,
"X509 - Certificate or CRL has an unsupported version number" );
370 snprintf( buf, buflen,
"X509 - Signature algorithm (oid) is unsupported" );
372 snprintf( buf, buflen,
"X509 - Key algorithm is unsupported (only RSA is supported)" );
374 snprintf( buf, buflen,
"X509 - Certificate signature algorithms do not match. (see \\c ::x509_cert sig_oid)" );
376 snprintf( buf, buflen,
"X509 - Certificate verification failed, e.g. CRL, CA or signature check failed" );
378 snprintf( buf, buflen,
"X509 - Unsupported RSA key version" );
380 snprintf( buf, buflen,
"X509 - Invalid RSA key tag or value" );
382 snprintf( buf, buflen,
"X509 - Format not recognized as DER or PEM" );
384 snprintf( buf, buflen,
"X509 - Input invalid" );
386 snprintf( buf, buflen,
"X509 - Allocation of memory failed" );
388 snprintf( buf, buflen,
"X509 - Read/write of file failed" );
390 snprintf( buf, buflen,
"X509 - Private key password can't be empty" );
392 snprintf( buf, buflen,
"X509 - Given private key password does not allow for correct decryption" );
395 if( strlen( buf ) == 0 )
396 snprintf( buf, buflen,
"UNKNOWN ERROR CODE (%04X)", use_ret );
399 use_ret = ret & ~0xFF80;
411 if( buflen - len < 5 )
414 snprintf( buf + len, buflen - len,
" : " );
422 #if defined(POLARSSL_AES_C)
424 snprintf( buf, buflen,
"AES - Invalid key length" );
426 snprintf( buf, buflen,
"AES - Invalid data input length" );
429 #if defined(POLARSSL_ASN1_PARSE_C)
431 snprintf( buf, buflen,
"ASN1 - Out of data when parsing an ASN1 data structure" );
433 snprintf( buf, buflen,
"ASN1 - ASN1 tag was of an unexpected value" );
435 snprintf( buf, buflen,
"ASN1 - Error when trying to determine the length or invalid length" );
437 snprintf( buf, buflen,
"ASN1 - Actual length differs from expected length" );
439 snprintf( buf, buflen,
"ASN1 - Data is invalid. (not used)" );
441 snprintf( buf, buflen,
"ASN1 - Memory allocation failed" );
443 snprintf( buf, buflen,
"ASN1 - Buffer too small when writing ASN.1 data structure" );
446 #if defined(POLARSSL_BASE64_C)
448 snprintf( buf, buflen,
"BASE64 - Output buffer too small" );
450 snprintf( buf, buflen,
"BASE64 - Invalid character in input" );
453 #if defined(POLARSSL_BIGNUM_C)
455 snprintf( buf, buflen,
"BIGNUM - An error occurred while reading from or writing to a file" );
457 snprintf( buf, buflen,
"BIGNUM - Bad input parameters to function" );
459 snprintf( buf, buflen,
"BIGNUM - There is an invalid character in the digit string" );
461 snprintf( buf, buflen,
"BIGNUM - The buffer is too small to write to" );
463 snprintf( buf, buflen,
"BIGNUM - The input arguments are negative or result in illegal output" );
465 snprintf( buf, buflen,
"BIGNUM - The input argument for division is zero, which is not allowed" );
467 snprintf( buf, buflen,
"BIGNUM - The input arguments are not acceptable" );
469 snprintf( buf, buflen,
"BIGNUM - Memory allocation failed" );
472 #if defined(POLARSSL_BLOWFISH_C)
474 snprintf( buf, buflen,
"BLOWFISH - Invalid key length" );
476 snprintf( buf, buflen,
"BLOWFISH - Invalid data input length" );
479 #if defined(POLARSSL_CAMELLIA_C)
481 snprintf( buf, buflen,
"CAMELLIA - Invalid key length" );
483 snprintf( buf, buflen,
"CAMELLIA - Invalid data input length" );
486 #if defined(POLARSSL_CTR_DRBG_C)
488 snprintf( buf, buflen,
"CTR_DRBG - The entropy source failed" );
490 snprintf( buf, buflen,
"CTR_DRBG - Too many random requested in single call" );
492 snprintf( buf, buflen,
"CTR_DRBG - Input too large (Entropy + additional)" );
494 snprintf( buf, buflen,
"CTR_DRBG - Read/write error in file" );
497 #if defined(POLARSSL_DES_C)
499 snprintf( buf, buflen,
"DES - The data input has an invalid length" );
502 #if defined(POLARSSL_ENTROPY_C)
504 snprintf( buf, buflen,
"ENTROPY - Critical entropy source failure" );
506 snprintf( buf, buflen,
"ENTROPY - No more sources can be added" );
508 snprintf( buf, buflen,
"ENTROPY - No sources have been added to poll" );
511 #if defined(POLARSSL_GCM_C)
513 snprintf( buf, buflen,
"GCM - Authenticated decryption failed" );
515 snprintf( buf, buflen,
"GCM - Bad input parameters to function" );
518 #if defined(POLARSSL_MD2_C)
520 snprintf( buf, buflen,
"MD2 - Read/write error in file" );
523 #if defined(POLARSSL_MD4_C)
525 snprintf( buf, buflen,
"MD4 - Read/write error in file" );
528 #if defined(POLARSSL_MD5_C)
530 snprintf( buf, buflen,
"MD5 - Read/write error in file" );
533 #if defined(POLARSSL_NET_C)
535 snprintf( buf, buflen,
"NET - Failed to get an IP address for the given hostname" );
537 snprintf( buf, buflen,
"NET - Failed to open a socket" );
539 snprintf( buf, buflen,
"NET - The connection to the given server / port failed" );
541 snprintf( buf, buflen,
"NET - Binding of the socket failed" );
543 snprintf( buf, buflen,
"NET - Could not listen on the socket" );
545 snprintf( buf, buflen,
"NET - Could not accept the incoming connection" );
547 snprintf( buf, buflen,
"NET - Reading information from the socket failed" );
549 snprintf( buf, buflen,
"NET - Sending information through the socket failed" );
551 snprintf( buf, buflen,
"NET - Connection was reset by peer" );
553 snprintf( buf, buflen,
"NET - Connection requires a read call" );
555 snprintf( buf, buflen,
"NET - Connection requires a write call" );
558 #if defined(POLARSSL_PADLOCK_C)
560 snprintf( buf, buflen,
"PADLOCK - Input data should be aligned" );
563 #if defined(POLARSSL_PBKDF2_C)
565 snprintf( buf, buflen,
"PBKDF2 - Bad input parameters to function" );
568 #if defined(POLARSSL_SHA1_C)
570 snprintf( buf, buflen,
"SHA1 - Read/write error in file" );
573 #if defined(POLARSSL_SHA2_C)
575 snprintf( buf, buflen,
"SHA2 - Read/write error in file" );
578 #if defined(POLARSSL_SHA4_C)
580 snprintf( buf, buflen,
"SHA4 - Read/write error in file" );
583 #if defined(POLARSSL_XTEA_C)
585 snprintf( buf, buflen,
"XTEA - The data input has an invalid length" );
588 if( strlen( buf ) != 0 )
591 snprintf( buf, buflen,
"UNKNOWN ERROR CODE (%04X)", use_ret );
596 #if defined(POLARSSL_ERROR_STRERROR_DUMMY)
#define POLARSSL_ERR_PKCS5_INVALID_FORMAT
Unexpected ASN.1 data.
#define POLARSSL_ERR_PKCS12_FEATURE_UNAVAILABLE
Feature not available, e.g.
#define POLARSSL_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED
The entropy source failed.
#define POLARSSL_ERR_MPI_INVALID_CHARACTER
There is an invalid character in the digit string.
#define POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE
The output buffer for decryption is not large enough.
#define POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Invalid RSA key tag or value.
#define POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_DHM_MAKE_PUBLIC_FAILED
Making of the public value failed.
#define POLARSSL_ERR_SSL_BAD_HS_CHANGE_CIPHER_SPEC
Processing of the ChangeCipherSpec handshake message failed.
#define POLARSSL_ERR_PEM_FEATURE_UNAVAILABLE
Unavailable feature, e.g.
#define POLARSSL_ERR_XTEA_INVALID_INPUT_LENGTH
The data input has an invalid length.
#define POLARSSL_ERR_DHM_MAKE_PARAMS_FAILED
Making of the DHM parameters failed.
Password-Based Key Derivation Function 2 (from PKCS#5) DEPRECATED: use pkcs5.h instead.
#define POLARSSL_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE
Processing of the ServerKeyExchange handshake message failed.
#define POLARSSL_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_DHM_CS
Processing of the ClientKeyExchange handshake message failed in DHM Calculate Secret.
#define POLARSSL_ERR_X509_CERT_INVALID_PEM
The PEM-encoded certificate contains invalid elements, e.g.
#define POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
The selected feature is not available.
#define POLARSSL_ERR_MD_ALLOC_FAILED
Failed to allocate memory.
#define POLARSSL_ERR_NET_BIND_FAILED
Binding of the socket failed.
#define POLARSSL_ERR_NET_RECV_FAILED
Reading information from the socket failed.
#define POLARSSL_ERR_NET_WANT_WRITE
Connection requires a write call.
#define POLARSSL_ERR_SSL_BAD_HS_SERVER_HELLO_DONE
Processing of the ServerHelloDone handshake message failed.
Network communication functions.
#define POLARSSL_ERR_MPI_NEGATIVE_VALUE
The input arguments are negative or result in illegal output.
#define POLARSSL_ERR_SSL_NO_SESSION_FOUND
No session to recover was found.
#define POLARSSL_ERR_X509_PASSWORD_REQUIRED
Private key password can't be empty.
#define POLARSSL_ERR_CIPHER_ALLOC_FAILED
Failed to allocate memory.
#define POLARSSL_ERR_PEM_UNKNOWN_ENC_ALG
Unsupported key encryption algorithm.
#define POLARSSL_ERR_SSL_CONN_EOF
The connection indicated an EOF.
#define POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Actual length differs from expected length.
#define POLARSSL_ERR_MD_FEATURE_UNAVAILABLE
The selected feature is not available.
#define POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS
The extension tag or value is invalid.
#define POLARSSL_ERR_SSL_BAD_HS_SERVER_HELLO
Processing of the ServerHello handshake message failed.
#define POLARSSL_ERR_DHM_CALC_SECRET_FAILED
Calculation of the DHM secret failed.
#define POLARSSL_ERR_X509_INVALID_INPUT
Input invalid.
#define POLARSSL_ERR_X509_CERT_UNKNOWN_FORMAT
Format not recognized as DER or PEM.
#define POLARSSL_ERR_SSL_INVALID_RECORD
An invalid SSL record was received.
#define POLARSSL_ERR_GCM_BAD_INPUT
Bad input parameters to function.
#define POLARSSL_ERR_ENTROPY_MAX_SOURCES
No more sources can be added.
#define POLARSSL_ERR_ASN1_BUF_TOO_SMALL
Buffer too small when writing ASN.1 data structure.
#define POLARSSL_ERR_PEM_MALLOC_FAILED
Failed to allocate memory.
#define POLARSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG
Signature algorithm (oid) is unsupported.
#define POLARSSL_ERR_PKCS5_FEATURE_UNAVAILABLE
Requested encryption or digest alg not available.
#define POLARSSL_ERR_PKCS12_PASSWORD_MISMATCH
Given private key password does not allow for correct decryption.
#define POLARSSL_ERR_X509_CERT_INVALID_VERSION
The certificate version element is invalid.
Configuration options (set of defines)
#define POLARSSL_ERR_SSL_PEER_CLOSE_NOTIFY
The peer notified us that the connection is going to be closed.
#define POLARSSL_ERR_MD5_FILE_IO_ERROR
Read/write error in file.
#define POLARSSL_ERR_ASN1_INVALID_DATA
Data is invalid.
#define POLARSSL_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_DHM_RP
Processing of the ClientKeyExchange handshake message failed in DHM Read Public.
#define POLARSSL_ERR_X509_UNKNOWN_PK_ALG
Key algorithm is unsupported (only RSA is supported).
#define POLARSSL_ERR_MD_FILE_IO_ERROR
Opening or reading of file failed.
#define POLARSSL_ERR_RSA_RNG_FAILED
The random generator failed to generate non-zeros.
#define POLARSSL_ERR_CIPHER_INVALID_PADDING
Input data contains invalid padding and is rejected.
#define POLARSSL_ERR_MPI_BAD_INPUT_DATA
Bad input parameters to function.
Entropy accumulator implementation.
#define POLARSSL_ERR_PBKDF2_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_SSL_HW_ACCEL_FAILED
Hardware acceleration function returned with error.
#define POLARSSL_ERR_ASN1_INVALID_LENGTH
Error when trying to determine the length or invalid length.
#define POLARSSL_ERR_SSL_INVALID_MAC
Verification of the message MAC failed.
#define POLARSSL_ERR_X509_CERT_INVALID_SERIAL
The serial tag or value is invalid.
#define POLARSSL_ERR_SSL_NO_CLIENT_CERTIFICATE
No client certification received from the client, but required by the authentication mode...
#define POLARSSL_ERR_NET_CONN_RESET
Connection was reset by peer.
#define POLARSSL_ERR_PKCS12_PBE_INVALID_FORMAT
PBE ASN.1 data not as expected.
#define POLARSSL_ERR_PADLOCK_DATA_MISALIGNED
Input data should be aligned.
Multi-precision integer library.
#define POLARSSL_ERR_X509_KEY_INVALID_VERSION
Unsupported RSA key version.
#define POLARSSL_ERR_SSL_HW_ACCEL_FALLTHROUGH
Hardware acceleration function skipped / left alone data.
#define POLARSSL_ERR_X509_CERT_SIG_MISMATCH
Certificate signature algorithms do not match.
#define POLARSSL_ERR_PKCS5_PASSWORD_MISMATCH
Given private key password does not allow for correct decryption.
Error to string translation.
#define POLARSSL_ERR_SSL_CERTIFICATE_REQUIRED
The own certificate is not set, but needed by the server.
#define POLARSSL_ERR_PEM_PASSWORD_REQUIRED
Private key password can't be empty.
#define POLARSSL_ERR_CTR_DRBG_REQUEST_TOO_BIG
Too many random requested in single call.
#define POLARSSL_ERR_SSL_CERTIFICATE_TOO_LARGE
Our own certificate(s) is/are too large to send in an SSL message.
#define POLARSSL_ERR_MD_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_DHM_READ_PUBLIC_FAILED
Reading of the public values failed.
SHA-384 and SHA-512 cryptographic hash function.
#define POLARSSL_ERR_RSA_INVALID_PADDING
Input data contains invalid padding and is rejected.
#define POLARSSL_ERR_X509_CERT_VERIFY_FAILED
Certificate verification failed, e.g.
Privacy Enhanced Mail (PEM) decoding.
#define POLARSSL_ERR_SSL_FATAL_ALERT_MESSAGE
A fatal alert message was received from our peer.
#define POLARSSL_ERR_CAMELLIA_INVALID_INPUT_LENGTH
Invalid data input length.
#define POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL
Output buffer too small.
#define POLARSSL_ERR_MPI_DIVISION_BY_ZERO
The input argument for division is zero, which is not allowed.
#define POLARSSL_ERR_X509_CERT_INVALID_SIGNATURE
The signature tag or value invalid.
SHA-224 and SHA-256 cryptographic hash function.
#define POLARSSL_ERR_SSL_BAD_HS_PROTOCOL_VERSION
Handshake protocol not within min/max boundaries.
#define POLARSSL_ERR_DHM_READ_PARAMS_FAILED
Reading of the DHM parameters failed.
#define POLARSSL_ERR_SSL_UNEXPECTED_MESSAGE
An unexpected message was received from our peer.
#define POLARSSL_ERR_X509_CERT_INVALID_FORMAT
The certificate format is invalid, e.g.
#define POLARSSL_ERR_MPI_BUFFER_TOO_SMALL
The buffer is too small to write to.
#define POLARSSL_ERR_SSL_COMPRESSION_FAILED
Processing of the compression / decompression failed.
#define POLARSSL_ERR_SSL_PEER_VERIFY_FAILED
Verification of our peer failed.
XTEA block cipher (32-bit)
#define POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR
Read/write error in file.
#define POLARSSL_ERR_NET_CONNECT_FAILED
The connection to the given server / port failed.
#define POLARSSL_ERR_AES_INVALID_KEY_LENGTH
Invalid key length.
#define POLARSSL_ERR_PEM_PASSWORD_MISMATCH
Given private key password does not allow for correct decryption.
#define POLARSSL_ERR_CIPHER_FULL_BLOCK_EXPECTED
Decryption of block requires a full block.
#define POLARSSL_ERR_SSL_CA_CHAIN_REQUIRED
No CA Chain is set, but required to operate.
Diffie-Hellman-Merkle key exchange.
#define POLARSSL_ERR_PEM_INVALID_ENC_IV
RSA IV is not in hex-format.
#define POLARSSL_ERR_MD2_FILE_IO_ERROR
Read/write error in file.
#define POLARSSL_ERR_NET_SEND_FAILED
Sending information through the socket failed.
#define POLARSSL_ERR_NET_WANT_READ
Connection requires a read call.
#define POLARSSL_ERR_ASN1_OUT_OF_DATA
Out of data when parsing an ASN1 data structure.
#define POLARSSL_ERR_RSA_VERIFY_FAILED
The PKCS#1 verification failed.
X.509 certificate and private key decoding.
#define POLARSSL_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST
Processing of the CertificateRequest handshake message failed.
#define POLARSSL_ERR_ASN1_MALLOC_FAILED
Memory allocation failed.
#define POLARSSL_ERR_SSL_BAD_HS_CLIENT_HELLO
Processing of the ClientHello handshake message failed.
#define POLARSSL_ERR_PEM_INVALID_DATA
PEM string is not as expected.
#define POLARSSL_ERR_X509_FILE_IO_ERROR
Read/write of file failed.
#define POLARSSL_ERR_CTR_DRBG_INPUT_TOO_BIG
Input too large (Entropy + additional).
#define POLARSSL_ERR_GCM_AUTH_FAILED
Authenticated decryption failed.
#define POLARSSL_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE
Processing of the ClientKeyExchange handshake message failed.
#define POLARSSL_ERR_SSL_PRIVATE_KEY_REQUIRED
The own private key is not set, but needed.
Generic message digest wrapper.
RFC 1521 base64 encoding/decoding.
#define POLARSSL_ERR_X509_CERT_INVALID_DATE
The date tag or value is invalid.
#define POLARSSL_ERR_NET_ACCEPT_FAILED
Could not accept the incoming connection.
The RSA public-key cryptosystem.
#define POLARSSL_ERR_SSL_UNKNOWN_CIPHER
An unknown cipher was received.
#define POLARSSL_ERR_X509_CERT_UNKNOWN_VERSION
Certificate or CRL has an unsupported version number.
#define POLARSSL_ERR_MPI_MALLOC_FAILED
Memory allocation failed.
#define POLARSSL_ERR_BLOWFISH_INVALID_KEY_LENGTH
Invalid key length.
#define POLARSSL_ERR_RSA_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_RSA_PRIVATE_FAILED
The private key operation failed.
#define POLARSSL_ERR_X509_CERT_INVALID_PUBKEY
The pubkey tag or value is invalid (only RSA is supported).
#define POLARSSL_ERR_BLOWFISH_INVALID_INPUT_LENGTH
Invalid data input length.
SHA-1 cryptographic hash function.
#define POLARSSL_ERR_RSA_KEY_CHECK_FAILED
Key failed to pass the libraries validity check.
#define POLARSSL_ERR_SSL_BAD_HS_FINISHED
Processing of the Finished handshake message failed.
#define POLARSSL_ERR_ENTROPY_NO_SOURCES_DEFINED
No sources have been added to poll.
#define POLARSSL_ERR_X509_FEATURE_UNAVAILABLE
Unavailable feature, e.g.
Galois/Counter mode for AES.
#define POLARSSL_ERR_X509_CERT_INVALID_ALG
The algorithm tag or value is invalid.
#define POLARSSL_ERR_SSL_MALLOC_FAILED
Memory allocation failed.
#define POLARSSL_ERR_X509_PASSWORD_MISMATCH
Given private key password does not allow for correct decryption.
#define POLARSSL_ERR_SHA4_FILE_IO_ERROR
Read/write error in file.
#define POLARSSL_ERR_MPI_FILE_IO_ERROR
An error occurred while reading from or writing to a file.
#define POLARSSL_ERR_DHM_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_PKCS5_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_RSA_KEY_GEN_FAILED
Something failed during generation of a key.
VIA PadLock ACE for HW encryption/decryption supported by some processors.
#define POLARSSL_ERR_NET_SOCKET_FAILED
Failed to open a socket.
#define POLARSSL_ERR_PEM_NO_HEADER_FOOTER_PRESENT
No PEM header or footer found.
#define POLARSSL_ERR_NET_LISTEN_FAILED
Could not listen on the socket.
#define POLARSSL_ERR_RSA_PUBLIC_FAILED
The public key operation failed.
MD4 message digest algorithm (hash function)
void error_strerror(int errnum, char *buffer, size_t buflen)
Error code layout.
#define POLARSSL_ERR_CAMELLIA_INVALID_KEY_LENGTH
Invalid key length.
#define POLARSSL_ERR_MD4_FILE_IO_ERROR
Read/write error in file.
#define POLARSSL_ERR_ENTROPY_SOURCE_FAILED
Critical entropy source failure.
MD5 message digest algorithm (hash function)
#define POLARSSL_ERR_X509_MALLOC_FAILED
Allocation of memory failed.
#define POLARSSL_ERR_DES_INVALID_INPUT_LENGTH
The data input has an invalid length.
#define POLARSSL_ERR_PEM_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_AES_INVALID_INPUT_LENGTH
Invalid data input length.
#define POLARSSL_ERR_SSL_FEATURE_UNAVAILABLE
The requested feature is not available.
#define POLARSSL_ERR_SHA2_FILE_IO_ERROR
Read/write error in file.
#define POLARSSL_ERR_SSL_BAD_HS_CERTIFICATE
Processing of the Certificate handshake message failed.
#define POLARSSL_ERR_PKCS12_BAD_INPUT_DATA
Bad input parameters to function.
MD2 message digest algorithm (hash function)
#define POLARSSL_ERR_SSL_BAD_INPUT_DATA
Bad input parameters to function.
#define POLARSSL_ERR_ASN1_UNEXPECTED_TAG
ASN1 tag was of an unexpected value.
#define POLARSSL_ERR_BASE64_INVALID_CHARACTER
Invalid character in input.
#define POLARSSL_ERR_MPI_NOT_ACCEPTABLE
The input arguments are not acceptable.
PKCS#12 Personal Information Exchange Syntax.
#define POLARSSL_ERR_SSL_BAD_HS_CERTIFICATE_VERIFY
Processing of the CertificateVerify handshake message failed.
CTR_DRBG based on AES-256 (NIST SP 800-90)
#define POLARSSL_ERR_SSL_NO_CIPHER_CHOSEN
The server has no ciphersuites in common with the client.
#define POLARSSL_ERR_X509_CERT_INVALID_NAME
The name tag or value is invalid.
#define POLARSSL_ERR_SHA1_FILE_IO_ERROR
Read/write error in file.
#define POLARSSL_ERR_NET_UNKNOWN_HOST
Failed to get an IP address for the given hostname.