|
UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
|
#include "ufsecp_version.h"Go to the source code of this file.
Macros | |
| #define | UFSECP_OK 0 |
| #define | UFSECP_ERR_NULL_ARG 1 |
| #define | UFSECP_ERR_BAD_KEY 2 |
| #define | UFSECP_ERR_BAD_PUBKEY 3 |
| #define | UFSECP_ERR_BAD_SIG 4 |
| #define | UFSECP_ERR_BAD_INPUT 5 |
| #define | UFSECP_ERR_VERIFY_FAIL 6 |
| #define | UFSECP_ERR_ARITH 7 |
| #define | UFSECP_ERR_SELFTEST 8 |
| #define | UFSECP_ERR_INTERNAL 9 |
| #define | UFSECP_ERR_BUF_TOO_SMALL 10 |
| #define | UFSECP_ERR_NOT_FOUND 11 |
Typedefs | |
| typedef int | ufsecp_error_t |
Functions | |
| UFSECP_API const char * | ufsecp_error_str (ufsecp_error_t err) |
| #define UFSECP_ERR_ARITH 7 |
Scalar/field arithmetic overflow
Definition at line 31 of file ufsecp_error.h.
| #define UFSECP_ERR_BAD_INPUT 5 |
Malformed input (wrong length, etc.)
Definition at line 29 of file ufsecp_error.h.
| #define UFSECP_ERR_BAD_KEY 2 |
Invalid private key (zero, >= order)
Definition at line 26 of file ufsecp_error.h.
| #define UFSECP_ERR_BAD_PUBKEY 3 |
Invalid / unparseable public key
Definition at line 27 of file ufsecp_error.h.
| #define UFSECP_ERR_BAD_SIG 4 |
Invalid / malformed signature
Definition at line 28 of file ufsecp_error.h.
| #define UFSECP_ERR_BUF_TOO_SMALL 10 |
Output buffer too small
Definition at line 34 of file ufsecp_error.h.
| #define UFSECP_ERR_INTERNAL 9 |
Unexpected internal error
Definition at line 33 of file ufsecp_error.h.
| #define UFSECP_ERR_NOT_FOUND 11 |
Item not found (e.g. GCS filter match)
Definition at line 35 of file ufsecp_error.h.
| #define UFSECP_ERR_NULL_ARG 1 |
Required pointer argument was NULL
Definition at line 25 of file ufsecp_error.h.
| #define UFSECP_ERR_SELFTEST 8 |
Library self-test failed
Definition at line 32 of file ufsecp_error.h.
| #define UFSECP_ERR_VERIFY_FAIL 6 |
Signature verification failed
Definition at line 30 of file ufsecp_error.h.
| #define UFSECP_OK 0 |
Success
Definition at line 24 of file ufsecp_error.h.
| typedef int ufsecp_error_t |
Definition at line 22 of file ufsecp_error.h.
| UFSECP_API const char * ufsecp_error_str | ( | ufsecp_error_t | err | ) |
Map error code to a short English description (never NULL).
Definition at line 351 of file ufsecp_impl.cpp.
References UFSECP_ERR_ARITH, UFSECP_ERR_BAD_INPUT, UFSECP_ERR_BAD_KEY, UFSECP_ERR_BAD_PUBKEY, UFSECP_ERR_BAD_SIG, UFSECP_ERR_BUF_TOO_SMALL, UFSECP_ERR_INTERNAL, UFSECP_ERR_NULL_ARG, UFSECP_ERR_SELFTEST, UFSECP_ERR_VERIFY_FAIL, and UFSECP_OK.
Referenced by ufsecp_last_error_msg().