Browse Source

Also fix underflow for XMSSMT

This is the same fix as 998137622a
master
Joost Rijneveld 7 years ago
parent
commit
9ac634762f
No known key found for this signature in database GPG Key ID: A4FE39CF49CBC553
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/xmssmt_sign.c

+ 1
- 1
test/xmssmt_sign.c View File

@@ -43,7 +43,7 @@ int main(int argc, char **argv) {
fread(m, 1, MLEN, stdin);
xmssmt_core_sign(&params, sk, sm, &smlen, m, MLEN);

fseek(keypair, -params.privatekey_bytes, SEEK_CUR);
fseek(keypair, -((long int)params.privatekey_bytes), SEEK_CUR);
fwrite(sk, 1, params.privatekey_bytes, keypair);
fwrite(sm, 1, params.bytes + MLEN, stdout);



Loading…
Cancel
Save