Smaller buf
This commit is contained in:
@@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define BUF_SIZE 1024 * 1024
|
#define BUF_SIZE 65536 // does it really need to be 1 MB?? 1024 * 1024
|
||||||
|
|
||||||
typedef char bool;
|
typedef char bool;
|
||||||
|
|
||||||
|
|||||||
@@ -73,8 +73,9 @@ void initVerify() {
|
|||||||
|
|
||||||
static unsigned char *secp256k1Fingerprint(const CC *cond) {
|
static unsigned char *secp256k1Fingerprint(const CC *cond) {
|
||||||
Secp256k1FingerprintContents_t *fp = calloc(1, sizeof(Secp256k1FingerprintContents_t));
|
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);
|
OCTET_STRING_fromBuf(&fp->publicKey, cond->publicKey, SECP256K1_PK_SIZE);
|
||||||
|
fprintf(stderr,"got octet\n");
|
||||||
return hashFingerprintContents(&asn_DEF_Secp256k1FingerprintContents, fp);
|
return hashFingerprintContents(&asn_DEF_Secp256k1FingerprintContents, fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user