scratch: add magic bytes to beginning of structure

This commit is contained in:
Andrew Poelstra
2019-03-13 22:35:08 +00:00
parent 92a48a764d
commit 0be1a4ae62
2 changed files with 22 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
/* The typedef is used internally; the struct name is used in the public API
* (where it is exposed as a different typedef) */
typedef struct secp256k1_scratch_space_struct {
unsigned char magic[8];
void *data;
void *current_frame;
size_t offset[SECP256K1_SCRATCH_MAX_FRAMES];