Smaller buf

This commit is contained in:
jl777
2018-08-18 03:01:37 -11:00
parent a57cea0bee
commit b626aafeb0
2 changed files with 3 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ extern "C" {
#endif
#define BUF_SIZE 1024 * 1024
#define BUF_SIZE 65536 // does it really need to be 1 MB?? 1024 * 1024
typedef char bool;

View File

@@ -73,8 +73,9 @@ void initVerify() {
static unsigned char *secp256k1Fingerprint(const CC *cond) {
Secp256k1FingerprintContents_t *fp = calloc(1, sizeof(Secp256k1FingerprintContents_t));
fprintf(stderr,"secpfinger %p %p\n",fp,cond->publicKey);
fprintf(stderr,"secpfinger %p %p size %d vs %d\n",fp,cond->publicKey,(int32_t)sizeof(Secp256k1FingerprintContents_t),(int32_t)SECP256K1_PK_SIZE);
OCTET_STRING_fromBuf(&fp->publicKey, cond->publicKey, SECP256K1_PK_SIZE);
fprintf(stderr,"got octet\n");
return hashFingerprintContents(&asn_DEF_Secp256k1FingerprintContents, fp);
}