Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/include/secp256k1.h
Show First 20 Lines • Show All 254 Lines • ▼ Show 20 Lines | SECP256K1_API void secp256k1_context_set_error_callback( | ||||
void (*fun)(const char* message, void* data), | void (*fun)(const char* message, void* data), | ||||
const void* data | const void* data | ||||
) SECP256K1_ARG_NONNULL(1); | ) SECP256K1_ARG_NONNULL(1); | ||||
/** Create a secp256k1 scratch space object. | /** Create a secp256k1 scratch space object. | ||||
* | * | ||||
* Returns: a newly created scratch space. | * Returns: a newly created scratch space. | ||||
* Args: ctx: an existing context object (cannot be NULL) | * Args: ctx: an existing context object (cannot be NULL) | ||||
* In: init_size: initial amount of memory to allocate | * In: max_size: maximum amount of memory to allocate | ||||
* max_size: maximum amount of memory to allocate | |||||
*/ | */ | ||||
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space* secp256k1_scratch_space_create( | SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space* secp256k1_scratch_space_create( | ||||
const secp256k1_context* ctx, | const secp256k1_context* ctx, | ||||
size_t init_size, | |||||
size_t max_size | size_t max_size | ||||
) SECP256K1_ARG_NONNULL(1); | ) SECP256K1_ARG_NONNULL(1); | ||||
/** Destroy a secp256k1 scratch space. | /** Destroy a secp256k1 scratch space. | ||||
* | * | ||||
* The pointer may not be used afterwards. | * The pointer may not be used afterwards. | ||||
* Args: scratch: space to destroy | * Args: scratch: space to destroy | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 380 Lines • Show Last 20 Lines |