7#ifndef SECP256K1_SCRATCH_IMPL_H
8#define SECP256K1_SCRATCH_IMPL_H
15 void *alloc = checked_malloc(error_callback, base_alloc + size);
20 ret->data = (
void *) ((
char *) alloc + base_alloc);
27 if (scratch != NULL) {
29 if (secp256k1_memcmp_var(scratch->
magic,
"scratch", 8) != 0) {
30 secp256k1_callback_call(error_callback,
"invalid scratch space");
39 if (secp256k1_memcmp_var(scratch->
magic,
"scratch", 8) != 0) {
40 secp256k1_callback_call(error_callback,
"invalid scratch space");
47 if (secp256k1_memcmp_var(scratch->
magic,
"scratch", 8) != 0) {
48 secp256k1_callback_call(error_callback,
"invalid scratch space");
52 secp256k1_callback_call(error_callback,
"invalid checkpoint");
59 if (secp256k1_memcmp_var(scratch->
magic,
"scratch", 8) != 0) {
60 secp256k1_callback_call(error_callback,
"invalid scratch space");
79 if (rounded_size < size) {
84 if (secp256k1_memcmp_var(scratch->
magic,
"scratch", 8) != 0) {
85 secp256k1_callback_call(error_callback,
"invalid scratch space");
#define ROUND_TO_ALIGN(size)
#define VERIFY_CHECK(cond)
memset(pInfo->slotDescription, ' ', 64)
memcpy((char *) pInfo->slotDescription, s, l)