@@ -225,81 +225,6 @@ SECP256K1_API void secp256k1_context_destroy(
225225 secp256k1_context * ctx
226226);
227227
228- /** Determine the memory size of a secp256k1 context object to be created in
229- * caller-provided memory.
230- *
231- * The purpose of this function is to determine how much memory must be provided
232- * to secp256k1_context_prealloc_create.
233- *
234- * Returns: the required size of the caller-provided memory block
235- * In: flags: which parts of the context to initialize.
236- */
237- SECP256K1_API size_t secp256k1_context_prealloc_size (
238- unsigned int flags
239- ) SECP256K1_WARN_UNUSED_RESULT ;
240-
241- /** Create a secp256k1 context object in caller-provided memory.
242- *
243- * Returns: a newly created context object.
244- * In: prealloc: a pointer to a rewritable contiguous block of memory of
245- * size at least secp256k1_context_prealloc_size(flags)
246- * bytes, suitably aligned to hold an object of any type
247- * (cannot be NULL)
248- * flags: which parts of the context to initialize.
249- *
250- * See also secp256k1_context_randomize.
251- */
252- SECP256K1_API secp256k1_context * secp256k1_context_prealloc_create (
253- void * prealloc ,
254- unsigned int flags
255- ) SECP256K1_ARG_NONNULL (1 ) SECP256K1_WARN_UNUSED_RESULT ;
256-
257- /** Determine the memory size of a secp256k1 context object to be copied into
258- * caller-provided memory.
259- *
260- * The purpose of this function is to determine how much memory must be provided
261- * to secp256k1_context_prealloc_clone when copying the context ctx.
262- *
263- * Returns: the required size of the caller-provided memory block.
264- * In: ctx: an existing context to copy (cannot be NULL)
265- */
266- SECP256K1_API size_t secp256k1_context_prealloc_clone_size (
267- const secp256k1_context * ctx
268- ) SECP256K1_ARG_NONNULL (1 ) SECP256K1_WARN_UNUSED_RESULT ;
269-
270- /** Copy a secp256k1 context object into caller-provided memory.
271- *
272- * Returns: a newly created context object.
273- * Args: ctx: an existing context to copy (cannot be NULL)
274- * In: prealloc: a pointer to a rewritable contiguous block of memory of
275- * size at least secp256k1_context_prealloc_size(flags)
276- * bytes, suitably aligned to hold an object of any type
277- * (cannot be NULL)
278- */
279- SECP256K1_API secp256k1_context * secp256k1_context_prealloc_clone (
280- const secp256k1_context * ctx ,
281- void * prealloc
282- ) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_WARN_UNUSED_RESULT ;
283-
284- /** Destroy a secp256k1 context object that has been created in
285- * caller-provided memory.
286- *
287- * The context pointer may not be used afterwards.
288- *
289- * The context to destroy must have been created using
290- * secp256k1_context_prealloc_create or secp256k1_context_prealloc_clone.
291- * If the context has instead been created using secp256k1_context_create or
292- * secp256k1_context_clone, the behaviour is undefined. In that case,
293- * secp256k1_context_destroy must be used instead.
294- *
295- * Args: ctx: an existing context to destroy, constructed using
296- * secp256k1_context_prealloc_create or
297- * secp256k1_context_prealloc_clone (cannot be NULL)
298- */
299- SECP256K1_API void secp256k1_context_prealloc_destroy (
300- secp256k1_context * ctx
301- );
302-
303228/** Set a callback function to be called when an illegal argument is passed to
304229 * an API call. It will only trigger for violations that are mentioned
305230 * explicitly in the header.
0 commit comments