Lines Matching refs:buf

241 void mbedtls_strerror( int ret, char *buf, size_t buflen )  in mbedtls_strerror()  argument
249 memset( buf, 0x00, buflen ); in mbedtls_strerror()
263 mbedtls_snprintf( buf, buflen, "CIPHER - The selected feature is not available" ); in mbedtls_strerror()
265 mbedtls_snprintf( buf, buflen, "CIPHER - Bad input parameters" ); in mbedtls_strerror()
267 mbedtls_snprintf( buf, buflen, "CIPHER - Failed to allocate memory" ); in mbedtls_strerror()
269 … mbedtls_snprintf( buf, buflen, "CIPHER - Input data contains invalid padding and is rejected" ); in mbedtls_strerror()
271 mbedtls_snprintf( buf, buflen, "CIPHER - Decryption of block requires a full block" ); in mbedtls_strerror()
273 mbedtls_snprintf( buf, buflen, "CIPHER - Authentication failed (for AEAD modes)" ); in mbedtls_strerror()
275 …mbedtls_snprintf( buf, buflen, "CIPHER - The context is invalid. For example, because it was freed… in mbedtls_strerror()
277 mbedtls_snprintf( buf, buflen, "CIPHER - Cipher hardware accelerator failed" ); in mbedtls_strerror()
282 mbedtls_snprintf( buf, buflen, "DHM - Bad input parameters" ); in mbedtls_strerror()
284 mbedtls_snprintf( buf, buflen, "DHM - Reading of the DHM parameters failed" ); in mbedtls_strerror()
286 mbedtls_snprintf( buf, buflen, "DHM - Making of the DHM parameters failed" ); in mbedtls_strerror()
288 mbedtls_snprintf( buf, buflen, "DHM - Reading of the public values failed" ); in mbedtls_strerror()
290 mbedtls_snprintf( buf, buflen, "DHM - Making of the public value failed" ); in mbedtls_strerror()
292 mbedtls_snprintf( buf, buflen, "DHM - Calculation of the DHM secret failed" ); in mbedtls_strerror()
294 mbedtls_snprintf( buf, buflen, "DHM - The ASN.1 data is not formatted correctly" ); in mbedtls_strerror()
296 mbedtls_snprintf( buf, buflen, "DHM - Allocation of memory failed" ); in mbedtls_strerror()
298 mbedtls_snprintf( buf, buflen, "DHM - Read or write of file failed" ); in mbedtls_strerror()
300 mbedtls_snprintf( buf, buflen, "DHM - DHM hardware accelerator failed" ); in mbedtls_strerror()
302 mbedtls_snprintf( buf, buflen, "DHM - Setting the modulus and generator failed" ); in mbedtls_strerror()
307 mbedtls_snprintf( buf, buflen, "ECP - Bad input parameters to function" ); in mbedtls_strerror()
309 mbedtls_snprintf( buf, buflen, "ECP - The buffer is too small to write to" ); in mbedtls_strerror()
311 …mbedtls_snprintf( buf, buflen, "ECP - The requested feature is not available, for example, the req… in mbedtls_strerror()
313 mbedtls_snprintf( buf, buflen, "ECP - The signature is not valid" ); in mbedtls_strerror()
315 mbedtls_snprintf( buf, buflen, "ECP - Memory allocation failed" ); in mbedtls_strerror()
317 …mbedtls_snprintf( buf, buflen, "ECP - Generation of random value, such as ephemeral key, failed" ); in mbedtls_strerror()
319 mbedtls_snprintf( buf, buflen, "ECP - Invalid private or public key" ); in mbedtls_strerror()
321 …mbedtls_snprintf( buf, buflen, "ECP - The buffer contains a valid signature followed by more data"… in mbedtls_strerror()
323 mbedtls_snprintf( buf, buflen, "ECP - The ECP hardware accelerator failed" ); in mbedtls_strerror()
325 …mbedtls_snprintf( buf, buflen, "ECP - Operation in progress, call again with the same parameters t… in mbedtls_strerror()
330 mbedtls_snprintf( buf, buflen, "MD - The selected feature is not available" ); in mbedtls_strerror()
332 mbedtls_snprintf( buf, buflen, "MD - Bad input parameters to function" ); in mbedtls_strerror()
334 mbedtls_snprintf( buf, buflen, "MD - Failed to allocate memory" ); in mbedtls_strerror()
336 mbedtls_snprintf( buf, buflen, "MD - Opening or reading of file failed" ); in mbedtls_strerror()
338 mbedtls_snprintf( buf, buflen, "MD - MD hardware accelerator failed" ); in mbedtls_strerror()
343 mbedtls_snprintf( buf, buflen, "PEM - No PEM header or footer found" ); in mbedtls_strerror()
345 mbedtls_snprintf( buf, buflen, "PEM - PEM string is not as expected" ); in mbedtls_strerror()
347 mbedtls_snprintf( buf, buflen, "PEM - Failed to allocate memory" ); in mbedtls_strerror()
349 mbedtls_snprintf( buf, buflen, "PEM - RSA IV is not in hex-format" ); in mbedtls_strerror()
351 mbedtls_snprintf( buf, buflen, "PEM - Unsupported key encryption algorithm" ); in mbedtls_strerror()
353 mbedtls_snprintf( buf, buflen, "PEM - Private key password can't be empty" ); in mbedtls_strerror()
355 …mbedtls_snprintf( buf, buflen, "PEM - Given private key password does not allow for correct decryp… in mbedtls_strerror()
357 … mbedtls_snprintf( buf, buflen, "PEM - Unavailable feature, e.g. hashing/encryption combination" ); in mbedtls_strerror()
359 mbedtls_snprintf( buf, buflen, "PEM - Bad input parameters to function" ); in mbedtls_strerror()
364 mbedtls_snprintf( buf, buflen, "PK - Memory allocation failed" ); in mbedtls_strerror()
366 … mbedtls_snprintf( buf, buflen, "PK - Type mismatch, eg attempt to encrypt with an ECDSA key" ); in mbedtls_strerror()
368 mbedtls_snprintf( buf, buflen, "PK - Bad input parameters to function" ); in mbedtls_strerror()
370 mbedtls_snprintf( buf, buflen, "PK - Read/write of file failed" ); in mbedtls_strerror()
372 mbedtls_snprintf( buf, buflen, "PK - Unsupported key version" ); in mbedtls_strerror()
374 mbedtls_snprintf( buf, buflen, "PK - Invalid key tag or value" ); in mbedtls_strerror()
376 …mbedtls_snprintf( buf, buflen, "PK - Key algorithm is unsupported (only RSA and EC are supported)"… in mbedtls_strerror()
378 mbedtls_snprintf( buf, buflen, "PK - Private key password can't be empty" ); in mbedtls_strerror()
380 …mbedtls_snprintf( buf, buflen, "PK - Given private key password does not allow for correct decrypt… in mbedtls_strerror()
382 …mbedtls_snprintf( buf, buflen, "PK - The pubkey tag or value is invalid (only RSA and EC are suppo… in mbedtls_strerror()
384 mbedtls_snprintf( buf, buflen, "PK - The algorithm tag or value is invalid" ); in mbedtls_strerror()
386 …mbedtls_snprintf( buf, buflen, "PK - Elliptic curve is unsupported (only NIST curves are supported… in mbedtls_strerror()
388 … mbedtls_snprintf( buf, buflen, "PK - Unavailable feature, e.g. RSA disabled for RSA key" ); in mbedtls_strerror()
390 …mbedtls_snprintf( buf, buflen, "PK - The buffer contains a valid signature followed by more data" … in mbedtls_strerror()
392 mbedtls_snprintf( buf, buflen, "PK - PK hardware accelerator failed" ); in mbedtls_strerror()
397 mbedtls_snprintf( buf, buflen, "PKCS12 - Bad input parameters to function" ); in mbedtls_strerror()
399 …mbedtls_snprintf( buf, buflen, "PKCS12 - Feature not available, e.g. unsupported encryption scheme… in mbedtls_strerror()
401 mbedtls_snprintf( buf, buflen, "PKCS12 - PBE ASN.1 data not as expected" ); in mbedtls_strerror()
403 …mbedtls_snprintf( buf, buflen, "PKCS12 - Given private key password does not allow for correct dec… in mbedtls_strerror()
408 mbedtls_snprintf( buf, buflen, "PKCS5 - Bad input parameters to function" ); in mbedtls_strerror()
410 mbedtls_snprintf( buf, buflen, "PKCS5 - Unexpected ASN.1 data" ); in mbedtls_strerror()
412 … mbedtls_snprintf( buf, buflen, "PKCS5 - Requested encryption or digest alg not available" ); in mbedtls_strerror()
414 …mbedtls_snprintf( buf, buflen, "PKCS5 - Given private key password does not allow for correct decr… in mbedtls_strerror()
419 mbedtls_snprintf( buf, buflen, "RSA - Bad input parameters to function" ); in mbedtls_strerror()
421 … mbedtls_snprintf( buf, buflen, "RSA - Input data contains invalid padding and is rejected" ); in mbedtls_strerror()
423 mbedtls_snprintf( buf, buflen, "RSA - Something failed during generation of a key" ); in mbedtls_strerror()
425 … mbedtls_snprintf( buf, buflen, "RSA - Key failed to pass the validity check of the library" ); in mbedtls_strerror()
427 mbedtls_snprintf( buf, buflen, "RSA - The public key operation failed" ); in mbedtls_strerror()
429 mbedtls_snprintf( buf, buflen, "RSA - The private key operation failed" ); in mbedtls_strerror()
431 mbedtls_snprintf( buf, buflen, "RSA - The PKCS#1 verification failed" ); in mbedtls_strerror()
433 … mbedtls_snprintf( buf, buflen, "RSA - The output buffer for decryption is not large enough" ); in mbedtls_strerror()
435 … mbedtls_snprintf( buf, buflen, "RSA - The random generator failed to generate non-zeros" ); in mbedtls_strerror()
437 …mbedtls_snprintf( buf, buflen, "RSA - The implementation does not offer the requested operation, f… in mbedtls_strerror()
439 mbedtls_snprintf( buf, buflen, "RSA - RSA hardware accelerator failed" ); in mbedtls_strerror()
444 mbedtls_snprintf( buf, buflen, "SSL - The requested feature is not available" ); in mbedtls_strerror()
446 mbedtls_snprintf( buf, buflen, "SSL - Bad input parameters to function" ); in mbedtls_strerror()
448 mbedtls_snprintf( buf, buflen, "SSL - Verification of the message MAC failed" ); in mbedtls_strerror()
450 mbedtls_snprintf( buf, buflen, "SSL - An invalid SSL record was received" ); in mbedtls_strerror()
452 mbedtls_snprintf( buf, buflen, "SSL - The connection indicated an EOF" ); in mbedtls_strerror()
454 mbedtls_snprintf( buf, buflen, "SSL - An unknown cipher was received" ); in mbedtls_strerror()
456 … mbedtls_snprintf( buf, buflen, "SSL - The server has no ciphersuites in common with the client" ); in mbedtls_strerror()
458 mbedtls_snprintf( buf, buflen, "SSL - No RNG was provided to the SSL module" ); in mbedtls_strerror()
460 …mbedtls_snprintf( buf, buflen, "SSL - No client certification received from the client, but requir… in mbedtls_strerror()
462 …mbedtls_snprintf( buf, buflen, "SSL - Our own certificate(s) is/are too large to send in an SSL me… in mbedtls_strerror()
464 … mbedtls_snprintf( buf, buflen, "SSL - The own certificate is not set, but needed by the server" ); in mbedtls_strerror()
466 …mbedtls_snprintf( buf, buflen, "SSL - The own private key or pre-shared key is not set, but needed… in mbedtls_strerror()
468 mbedtls_snprintf( buf, buflen, "SSL - No CA Chain is set, but required to operate" ); in mbedtls_strerror()
470 … mbedtls_snprintf( buf, buflen, "SSL - An unexpected message was received from our peer" ); in mbedtls_strerror()
473 … mbedtls_snprintf( buf, buflen, "SSL - A fatal alert message was received from our peer" ); in mbedtls_strerror()
477 mbedtls_snprintf( buf, buflen, "SSL - Verification of our peer failed" ); in mbedtls_strerror()
479 …mbedtls_snprintf( buf, buflen, "SSL - The peer notified us that the connection is going to be clos… in mbedtls_strerror()
481 … mbedtls_snprintf( buf, buflen, "SSL - Processing of the ClientHello handshake message failed" ); in mbedtls_strerror()
483 … mbedtls_snprintf( buf, buflen, "SSL - Processing of the ServerHello handshake message failed" ); in mbedtls_strerror()
485 … mbedtls_snprintf( buf, buflen, "SSL - Processing of the Certificate handshake message failed" ); in mbedtls_strerror()
487 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the CertificateRequest handshake message faile… in mbedtls_strerror()
489 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the ServerKeyExchange handshake message failed… in mbedtls_strerror()
491 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the ServerHelloDone handshake message failed" … in mbedtls_strerror()
493 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the ClientKeyExchange handshake message failed… in mbedtls_strerror()
495 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the ClientKeyExchange handshake message failed… in mbedtls_strerror()
497 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the ClientKeyExchange handshake message failed… in mbedtls_strerror()
499 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the CertificateVerify handshake message failed… in mbedtls_strerror()
501 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the ChangeCipherSpec handshake message failed"… in mbedtls_strerror()
503 … mbedtls_snprintf( buf, buflen, "SSL - Processing of the Finished handshake message failed" ); in mbedtls_strerror()
505 mbedtls_snprintf( buf, buflen, "SSL - Memory allocation failed" ); in mbedtls_strerror()
507 … mbedtls_snprintf( buf, buflen, "SSL - Hardware acceleration function returned with error" ); in mbedtls_strerror()
509 … mbedtls_snprintf( buf, buflen, "SSL - Hardware acceleration function skipped / left alone data" ); in mbedtls_strerror()
511 … mbedtls_snprintf( buf, buflen, "SSL - Processing of the compression / decompression failed" ); in mbedtls_strerror()
513 … mbedtls_snprintf( buf, buflen, "SSL - Handshake protocol not within min/max boundaries" ); in mbedtls_strerror()
515 …mbedtls_snprintf( buf, buflen, "SSL - Processing of the NewSessionTicket handshake message failed"… in mbedtls_strerror()
517 mbedtls_snprintf( buf, buflen, "SSL - Session ticket has expired" ); in mbedtls_strerror()
519 …mbedtls_snprintf( buf, buflen, "SSL - Public key type mismatch (eg, asked for RSA key exchange and… in mbedtls_strerror()
521 mbedtls_snprintf( buf, buflen, "SSL - Unknown identity received (eg, PSK identity)" ); in mbedtls_strerror()
523 …mbedtls_snprintf( buf, buflen, "SSL - Internal error (eg, unexpected failure in lower-level module… in mbedtls_strerror()
525 … mbedtls_snprintf( buf, buflen, "SSL - A counter would wrap (eg, too many messages exchanged)" ); in mbedtls_strerror()
527 … mbedtls_snprintf( buf, buflen, "SSL - Unexpected message at ServerHello in renegotiation" ); in mbedtls_strerror()
529 mbedtls_snprintf( buf, buflen, "SSL - DTLS client must retry for hello verification" ); in mbedtls_strerror()
531 … mbedtls_snprintf( buf, buflen, "SSL - A buffer is too small to receive or write a message" ); in mbedtls_strerror()
533 …mbedtls_snprintf( buf, buflen, "SSL - None of the common ciphersuites is usable (eg, no suitable c… in mbedtls_strerror()
535 …mbedtls_snprintf( buf, buflen, "SSL - No data of requested type currently available on underlying … in mbedtls_strerror()
537 mbedtls_snprintf( buf, buflen, "SSL - Connection requires a write call" ); in mbedtls_strerror()
539 mbedtls_snprintf( buf, buflen, "SSL - The operation timed out" ); in mbedtls_strerror()
541 … mbedtls_snprintf( buf, buflen, "SSL - The client initiated a reconnect from the same port" ); in mbedtls_strerror()
543 mbedtls_snprintf( buf, buflen, "SSL - Record header looks valid but is not expected" ); in mbedtls_strerror()
545 … mbedtls_snprintf( buf, buflen, "SSL - The alert message received indicates a non-fatal error" ); in mbedtls_strerror()
547 … mbedtls_snprintf( buf, buflen, "SSL - Couldn't set the hash for verifying CertificateVerify" ); in mbedtls_strerror()
549 …mbedtls_snprintf( buf, buflen, "SSL - Internal-only message signaling that further message-process… in mbedtls_strerror()
551 … mbedtls_snprintf( buf, buflen, "SSL - The asynchronous operation is not completed yet" ); in mbedtls_strerror()
553 …mbedtls_snprintf( buf, buflen, "SSL - Internal-only message signaling that a message arrived early… in mbedtls_strerror()
555 …mbedtls_snprintf( buf, buflen, "SSL - A cryptographic operation is in progress. Try again later" ); in mbedtls_strerror()
557 mbedtls_snprintf( buf, buflen, "SSL - Invalid value in SSL config" ); in mbedtls_strerror()
562 …mbedtls_snprintf( buf, buflen, "X509 - Unavailable feature, e.g. RSA hashing/encryption combinatio… in mbedtls_strerror()
564 mbedtls_snprintf( buf, buflen, "X509 - Requested OID is unknown" ); in mbedtls_strerror()
566 …mbedtls_snprintf( buf, buflen, "X509 - The CRT/CRL/CSR format is invalid, e.g. different type expe… in mbedtls_strerror()
568 mbedtls_snprintf( buf, buflen, "X509 - The CRT/CRL/CSR version element is invalid" ); in mbedtls_strerror()
570 mbedtls_snprintf( buf, buflen, "X509 - The serial tag or value is invalid" ); in mbedtls_strerror()
572 mbedtls_snprintf( buf, buflen, "X509 - The algorithm tag or value is invalid" ); in mbedtls_strerror()
574 mbedtls_snprintf( buf, buflen, "X509 - The name tag or value is invalid" ); in mbedtls_strerror()
576 mbedtls_snprintf( buf, buflen, "X509 - The date tag or value is invalid" ); in mbedtls_strerror()
578 mbedtls_snprintf( buf, buflen, "X509 - The signature tag or value invalid" ); in mbedtls_strerror()
580 mbedtls_snprintf( buf, buflen, "X509 - The extension tag or value is invalid" ); in mbedtls_strerror()
582 mbedtls_snprintf( buf, buflen, "X509 - CRT/CRL/CSR has an unsupported version number" ); in mbedtls_strerror()
584 mbedtls_snprintf( buf, buflen, "X509 - Signature algorithm (oid) is unsupported" ); in mbedtls_strerror()
586 …mbedtls_snprintf( buf, buflen, "X509 - Signature algorithms do not match. (see \\c ::mbedtls_x509_… in mbedtls_strerror()
588 …mbedtls_snprintf( buf, buflen, "X509 - Certificate verification failed, e.g. CRL, CA or signature … in mbedtls_strerror()
590 mbedtls_snprintf( buf, buflen, "X509 - Format not recognized as DER or PEM" ); in mbedtls_strerror()
592 mbedtls_snprintf( buf, buflen, "X509 - Input invalid" ); in mbedtls_strerror()
594 mbedtls_snprintf( buf, buflen, "X509 - Allocation of memory failed" ); in mbedtls_strerror()
596 mbedtls_snprintf( buf, buflen, "X509 - Read/write of file failed" ); in mbedtls_strerror()
598 mbedtls_snprintf( buf, buflen, "X509 - Destination buffer is too small" ); in mbedtls_strerror()
600 …mbedtls_snprintf( buf, buflen, "X509 - A fatal error occurred, eg the chain is too long or the vrf… in mbedtls_strerror()
604 if( strlen( buf ) == 0 ) in mbedtls_strerror()
605 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret ); in mbedtls_strerror()
616 len = strlen( buf ); in mbedtls_strerror()
623 mbedtls_snprintf( buf + len, buflen - len, " : " ); in mbedtls_strerror()
625 buf += len + 3; in mbedtls_strerror()
634 mbedtls_snprintf( buf, buflen, "AES - Invalid key length" ); in mbedtls_strerror()
636 mbedtls_snprintf( buf, buflen, "AES - Invalid data input length" ); in mbedtls_strerror()
638 mbedtls_snprintf( buf, buflen, "AES - Invalid input data" ); in mbedtls_strerror()
640 …mbedtls_snprintf( buf, buflen, "AES - Feature not available. For example, an unsupported AES key s… in mbedtls_strerror()
642 mbedtls_snprintf( buf, buflen, "AES - AES hardware accelerator failed" ); in mbedtls_strerror()
647 mbedtls_snprintf( buf, buflen, "ARC4 - ARC4 hardware accelerator failed" ); in mbedtls_strerror()
652 mbedtls_snprintf( buf, buflen, "ARIA - Bad input data" ); in mbedtls_strerror()
654 mbedtls_snprintf( buf, buflen, "ARIA - Invalid data input length" ); in mbedtls_strerror()
656 …mbedtls_snprintf( buf, buflen, "ARIA - Feature not available. For example, an unsupported ARIA key… in mbedtls_strerror()
658 mbedtls_snprintf( buf, buflen, "ARIA - ARIA hardware accelerator failed" ); in mbedtls_strerror()
663 mbedtls_snprintf( buf, buflen, "ASN1 - Out of data when parsing an ASN1 data structure" ); in mbedtls_strerror()
665 mbedtls_snprintf( buf, buflen, "ASN1 - ASN1 tag was of an unexpected value" ); in mbedtls_strerror()
667 …mbedtls_snprintf( buf, buflen, "ASN1 - Error when trying to determine the length or invalid length… in mbedtls_strerror()
669 mbedtls_snprintf( buf, buflen, "ASN1 - Actual length differs from expected length" ); in mbedtls_strerror()
671 mbedtls_snprintf( buf, buflen, "ASN1 - Data is invalid. (not used)" ); in mbedtls_strerror()
673 mbedtls_snprintf( buf, buflen, "ASN1 - Memory allocation failed" ); in mbedtls_strerror()
675 … mbedtls_snprintf( buf, buflen, "ASN1 - Buffer too small when writing ASN.1 data structure" ); in mbedtls_strerror()
680 mbedtls_snprintf( buf, buflen, "BASE64 - Output buffer too small" ); in mbedtls_strerror()
682 mbedtls_snprintf( buf, buflen, "BASE64 - Invalid character in input" ); in mbedtls_strerror()
687 …mbedtls_snprintf( buf, buflen, "BIGNUM - An error occurred while reading from or writing to a file… in mbedtls_strerror()
689 mbedtls_snprintf( buf, buflen, "BIGNUM - Bad input parameters to function" ); in mbedtls_strerror()
691 … mbedtls_snprintf( buf, buflen, "BIGNUM - There is an invalid character in the digit string" ); in mbedtls_strerror()
693 mbedtls_snprintf( buf, buflen, "BIGNUM - The buffer is too small to write to" ); in mbedtls_strerror()
695 …mbedtls_snprintf( buf, buflen, "BIGNUM - The input arguments are negative or result in illegal out… in mbedtls_strerror()
697 …mbedtls_snprintf( buf, buflen, "BIGNUM - The input argument for division is zero, which is not all… in mbedtls_strerror()
699 mbedtls_snprintf( buf, buflen, "BIGNUM - The input arguments are not acceptable" ); in mbedtls_strerror()
701 mbedtls_snprintf( buf, buflen, "BIGNUM - Memory allocation failed" ); in mbedtls_strerror()
706 mbedtls_snprintf( buf, buflen, "BLOWFISH - Bad input data" ); in mbedtls_strerror()
708 mbedtls_snprintf( buf, buflen, "BLOWFISH - Invalid data input length" ); in mbedtls_strerror()
710 mbedtls_snprintf( buf, buflen, "BLOWFISH - Blowfish hardware accelerator failed" ); in mbedtls_strerror()
715 mbedtls_snprintf( buf, buflen, "CAMELLIA - Bad input data" ); in mbedtls_strerror()
717 mbedtls_snprintf( buf, buflen, "CAMELLIA - Invalid data input length" ); in mbedtls_strerror()
719 mbedtls_snprintf( buf, buflen, "CAMELLIA - Camellia hardware accelerator failed" ); in mbedtls_strerror()
724 mbedtls_snprintf( buf, buflen, "CCM - Bad input parameters to the function" ); in mbedtls_strerror()
726 mbedtls_snprintf( buf, buflen, "CCM - Authenticated decryption failed" ); in mbedtls_strerror()
728 mbedtls_snprintf( buf, buflen, "CCM - CCM hardware accelerator failed" ); in mbedtls_strerror()
733 mbedtls_snprintf( buf, buflen, "CHACHA20 - Invalid input parameter(s)" ); in mbedtls_strerror()
735 …mbedtls_snprintf( buf, buflen, "CHACHA20 - Feature not available. For example, s part of the API i… in mbedtls_strerror()
737 mbedtls_snprintf( buf, buflen, "CHACHA20 - Chacha20 hardware accelerator failed" ); in mbedtls_strerror()
742 …mbedtls_snprintf( buf, buflen, "CHACHAPOLY - The requested operation is not permitted in the curre… in mbedtls_strerror()
744 …mbedtls_snprintf( buf, buflen, "CHACHAPOLY - Authenticated decryption failed: data was not authent… in mbedtls_strerror()
749 mbedtls_snprintf( buf, buflen, "CMAC - CMAC hardware accelerator failed" ); in mbedtls_strerror()
754 mbedtls_snprintf( buf, buflen, "CTR_DRBG - The entropy source failed" ); in mbedtls_strerror()
756 mbedtls_snprintf( buf, buflen, "CTR_DRBG - The requested random buffer length is too big" ); in mbedtls_strerror()
758 … mbedtls_snprintf( buf, buflen, "CTR_DRBG - The input (entropy + additional data) is too large" ); in mbedtls_strerror()
760 mbedtls_snprintf( buf, buflen, "CTR_DRBG - Read or write error in file" ); in mbedtls_strerror()
765 mbedtls_snprintf( buf, buflen, "DES - The data input has an invalid length" ); in mbedtls_strerror()
767 mbedtls_snprintf( buf, buflen, "DES - DES hardware accelerator failed" ); in mbedtls_strerror()
772 mbedtls_snprintf( buf, buflen, "ENTROPY - Critical entropy source failure" ); in mbedtls_strerror()
774 mbedtls_snprintf( buf, buflen, "ENTROPY - No more sources can be added" ); in mbedtls_strerror()
776 mbedtls_snprintf( buf, buflen, "ENTROPY - No sources have been added to poll" ); in mbedtls_strerror()
778 mbedtls_snprintf( buf, buflen, "ENTROPY - No strong sources have been added to poll" ); in mbedtls_strerror()
780 mbedtls_snprintf( buf, buflen, "ENTROPY - Read/write error in file" ); in mbedtls_strerror()
785 mbedtls_snprintf( buf, buflen, "GCM - Authenticated decryption failed" ); in mbedtls_strerror()
787 mbedtls_snprintf( buf, buflen, "GCM - GCM hardware accelerator failed" ); in mbedtls_strerror()
789 mbedtls_snprintf( buf, buflen, "GCM - Bad input parameters to function" ); in mbedtls_strerror()
794 mbedtls_snprintf( buf, buflen, "HKDF - Bad input parameters to function" ); in mbedtls_strerror()
799 mbedtls_snprintf( buf, buflen, "HMAC_DRBG - Too many random requested in single call" ); in mbedtls_strerror()
801 mbedtls_snprintf( buf, buflen, "HMAC_DRBG - Input too large (Entropy + additional)" ); in mbedtls_strerror()
803 mbedtls_snprintf( buf, buflen, "HMAC_DRBG - Read/write error in file" ); in mbedtls_strerror()
805 mbedtls_snprintf( buf, buflen, "HMAC_DRBG - The entropy source failed" ); in mbedtls_strerror()
810 mbedtls_snprintf( buf, buflen, "MD2 - MD2 hardware accelerator failed" ); in mbedtls_strerror()
815 mbedtls_snprintf( buf, buflen, "MD4 - MD4 hardware accelerator failed" ); in mbedtls_strerror()
820 mbedtls_snprintf( buf, buflen, "MD5 - MD5 hardware accelerator failed" ); in mbedtls_strerror()
825 mbedtls_snprintf( buf, buflen, "NET - Failed to open a socket" ); in mbedtls_strerror()
827 mbedtls_snprintf( buf, buflen, "NET - The connection to the given server / port failed" ); in mbedtls_strerror()
829 mbedtls_snprintf( buf, buflen, "NET - Binding of the socket failed" ); in mbedtls_strerror()
831 mbedtls_snprintf( buf, buflen, "NET - Could not listen on the socket" ); in mbedtls_strerror()
833 mbedtls_snprintf( buf, buflen, "NET - Could not accept the incoming connection" ); in mbedtls_strerror()
835 mbedtls_snprintf( buf, buflen, "NET - Reading information from the socket failed" ); in mbedtls_strerror()
837 mbedtls_snprintf( buf, buflen, "NET - Sending information through the socket failed" ); in mbedtls_strerror()
839 mbedtls_snprintf( buf, buflen, "NET - Connection was reset by peer" ); in mbedtls_strerror()
841 mbedtls_snprintf( buf, buflen, "NET - Failed to get an IP address for the given hostname" ); in mbedtls_strerror()
843 mbedtls_snprintf( buf, buflen, "NET - Buffer is too small to hold the data" ); in mbedtls_strerror()
845 mbedtls_snprintf( buf, buflen, "NET - The context is invalid, eg because it was free()ed" ); in mbedtls_strerror()
847 mbedtls_snprintf( buf, buflen, "NET - Polling the net context failed" ); in mbedtls_strerror()
849 mbedtls_snprintf( buf, buflen, "NET - Input invalid" ); in mbedtls_strerror()
854 mbedtls_snprintf( buf, buflen, "OID - OID is not found" ); in mbedtls_strerror()
856 mbedtls_snprintf( buf, buflen, "OID - output buffer is too small" ); in mbedtls_strerror()
861 mbedtls_snprintf( buf, buflen, "PADLOCK - Input data should be aligned" ); in mbedtls_strerror()
866 mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware accelerator failed" ); in mbedtls_strerror()
868 …mbedtls_snprintf( buf, buflen, "PLATFORM - The requested feature is not supported by the platform"… in mbedtls_strerror()
873 mbedtls_snprintf( buf, buflen, "POLY1305 - Invalid input parameter(s)" ); in mbedtls_strerror()
875 …mbedtls_snprintf( buf, buflen, "POLY1305 - Feature not available. For example, s part of the API i… in mbedtls_strerror()
877 mbedtls_snprintf( buf, buflen, "POLY1305 - Poly1305 hardware accelerator failed" ); in mbedtls_strerror()
882 mbedtls_snprintf( buf, buflen, "RIPEMD160 - RIPEMD160 hardware accelerator failed" ); in mbedtls_strerror()
887 mbedtls_snprintf( buf, buflen, "SHA1 - SHA-1 hardware accelerator failed" ); in mbedtls_strerror()
889 mbedtls_snprintf( buf, buflen, "SHA1 - SHA-1 input data was malformed" ); in mbedtls_strerror()
894 mbedtls_snprintf( buf, buflen, "SHA256 - SHA-256 hardware accelerator failed" ); in mbedtls_strerror()
896 mbedtls_snprintf( buf, buflen, "SHA256 - SHA-256 input data was malformed" ); in mbedtls_strerror()
901 mbedtls_snprintf( buf, buflen, "SHA512 - SHA-512 hardware accelerator failed" ); in mbedtls_strerror()
903 mbedtls_snprintf( buf, buflen, "SHA512 - SHA-512 input data was malformed" ); in mbedtls_strerror()
908 mbedtls_snprintf( buf, buflen, "THREADING - The selected feature is not available" ); in mbedtls_strerror()
910 mbedtls_snprintf( buf, buflen, "THREADING - Bad input parameters to function" ); in mbedtls_strerror()
912 … mbedtls_snprintf( buf, buflen, "THREADING - Locking / unlocking / free failed with error code" ); in mbedtls_strerror()
917 mbedtls_snprintf( buf, buflen, "XTEA - The data input has an invalid length" ); in mbedtls_strerror()
919 mbedtls_snprintf( buf, buflen, "XTEA - XTEA hardware accelerator failed" ); in mbedtls_strerror()
923 if( strlen( buf ) != 0 ) in mbedtls_strerror()
926 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret ); in mbedtls_strerror()
934 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument
939 buf[0] = '\0'; in mbedtls_strerror()