Home | History | Annotate | Download | only in libtomcrypt

Lines Matching refs:Error

126 also performs extensive parameter error checking to prevent any number of run-time exploits or errors.
227 that return {\bf int} will return {\bf CRYPT\_OK} if the function was successful, or one of the many error codes
228 if it failed. Certain functions that return int will return $-1$ to indicate an error. These functions will be explicitly
229 commented upon. When a function does return a CRYPT error code it can be translated into a string with
231 \index{error\_to\_string()}
236 An example of handling an error is:
245 printf("A crypto error occurred, %s\n", error_to_string(err));
246 /* perform error handling */
248 /* continue on if no error occurred */
321 \index{rsa\_export()} \index{error\_to\_string()} \index{variable length output}
337 printf("Export error: %s\n", error_to_string(err));
351 In the above example if the size of the RSA public key was more than 1024 bytes this function would return an error code
380 printf("make_key error: %s\n", error_to_string(err));
476 printf("Error getting key size: %s\n", error_to_string(err));
517 printf("Setup error: %s\n", error_to_string(err));
694 \index{register\_cipher()} \index{find\_cipher()} \index{error\_to\_string()}
714 printf("Error setting up Blowfish: %s\n", error_to_string(err));
729 Which accepts a pointer to a descriptor and returns the index into the global descriptor table. If an error occurs such
746 printf("Error registering Rijndael\n");
754 printf("Error removing Rijndael: %s\n", error_to_string(err));
889 The routines return {\bf CRYPT\_OK} if the cipher initialized correctly, otherwise, they return an error code.
967 printf("Error registering cipher.\n");
983 printf("ctr_start error: %s\n", error_to_string(err));
993 printf("ctr_encrypt error: %s\n", error_to_string(err));
1004 printf("ctr_setiv error: %s\n", error_to_string(err));
1013 printf("ctr_decrypt error: %s\n", error_to_string(err));
1019 printf("ctr_done error: %s\n", error_to_string(err));
1255 printf("Error registering Rijndael");
1269 printf("Error eax_init: %s", error_to_string(err));
1279 printf("Error eax_encrypt: %s", error_to_string(err));
1289 printf("Error eax_done: %s", error_to_string(err));
1514 printf("ccm_memory error %s\n", error_to_string(err));
1531 printf("ccm_memory error %s\n", error_to_string(err));
1792 This will return {\bf CRYPT\_OK} if the hash matches the test vectors, otherwise it returns an error code. An
1867 printf("Error registering MD5.\n");
1955 printf("Error registering MD5.\n");
1966 printf("Error hashing data: %s\n", error_to_string(err));
2057 printf("Error binding AES to CHC: %s\n",
2148 Which returns {\bf CRYPT\_OK} if the code passes otherwise it returns an error code. Some example code for using the
2163 printf("Error registering SHA1\n");
2174 printf("Error setting up hmac: %s\n", error_to_string(err));
2180 printf("Error processing hmac: %s\n", error_to_string(err));
2187 printf("Error finishing hmac: %s\n", error_to_string(err));
2286 Which returns {\bf CRYPT\_OK} if the code passes otherwise it returns an error code. Some example code for using the
2301 printf("Error registering Rijndael\n");
2312 printf("Error setting up omac: %s\n", error_to_string(err));
2318 printf("Error processing omac: %s\n", error_to_string(err));
2325 printf("Error finishing omac: %s\n", error_to_string(err));
2420 Which returns {\bf CRYPT\_OK} if the code passes otherwise it returns an error code.
2468 printf("Error initializing Pelican: %s",
2478 printf("Error processing Pelican: %s",
2487 printf("Error terminating Pelican: %s",
2760 in the PRNG until ready() is called again. This allows the PRNG to be used and re-seeded at the same time. No real error
2777 printf("Start error: %s\n", error_to_string(err));
2782 printf("Add_entropy error: %s\n", error_to_string(err));
2786 printf("Ready error: %s\n", error_to_string(err));
2839 The register function will register the PRNG, and return the index into the table where it was placed (or -1 for error). It will avoid registering the same
2928 printf("RC4 init error: %s\n", error_to_string(err));
2934 printf("RC4 add entropy error: %s\n", error_to_string(err));
2940 printf("RC4 ready error: %s\n", error_to_string(err));
2947 printf("RC4 read error\n");
3001 printf("Error registering Yarrow\n");
3008 printf("Error setting up PRNG, %s\n", error_to_string(err));
3015 printf("Error making key: %s\n", error_to_string(err));
3039 printf("Error registering SPRNG\n");
3046 printf("Error making key: %s\n", error_to_string(err));
3169 it returns an error code.
3502 printf("Error registering sprng");
3510 printf("Error registering sha1");
3740 The function will free any internally allocated resources if there is an error.
3798 all internally allocated memory upon error.
3822 \textit{key}. The function will free any allocated memory upon error.
3835 The imported key is stored in the ECC key pointed to by \textit{key}. The function will free any allocated memory upon error.
3886 used during encryption. If the wrong key is provided the function will not specifically return an error code. It is important
3937 the function will not return an error if the signature is invalid. It will return an error, if the actual signature payload is an invalid format.
4088 is stored and the function returns an error code. The DSA \textit{key} must be of the \textbf{PK\_PRIVATE} persuasion.
4349 // error handling
4636 The encoder will store time in one of the two ASN.1 formats, either \textit{YYMMDDhhmmssZ} or \textit{YYMMDDhhmmss$\pm$hhmm}, and perform minimal error checking on the
4683 The function will terminate when either it hits an invalid ASN.1 tag, or it reads \textit{inlen} octets. An early termination is a soft error, and returns
4717 printf("Error decoding: %s\n", error_to_string(err));
4836 /* error handle */
4888 $\left ( { 1 \over 4 } \right )^{8} = 2^{-16}$. In practice the probability of error is in fact much lower than that.
4909 it returns an error that the value in \textit{result} is undefined. To make
4937 buffer is smaller than the output it will report an error. Therefore, make sure the size you pass is correct!
4939 Also, virtually all of the functions return an error code or {\bf CRYPT\_OK}. You should detect all errors, as simple
5198 stderr and raising a SIGABRT signal. This is provided so all platforms that use LibTomCrypt can have an error that functions
5199 similarly. When set to 1, it will simply pass on to the assert() macro. When set to 2, the macro will display the error to
5201 if you handle signals on your own. When set to 3, it will resolve to a empty macro and no error checking will be performed. Finally, when set
5669 example, if the input is $25$ and $24$ is valid then it stores $24$ back in the pointed to integer. It must not round up and must return an error if the keysize
5727 \hline NULL & NULL & Error, not supported \\
6367 @return CRYPT_OK if successful, upon error all allocated ram is freed
6402 All functions (except where noted otherwise) return \textbf{CRYPT\_OK} to signify a successful operation. All error codes must be valid LibTomCrypt error codes.