Also fix underflow for XMSSMT

This is the same fix as 998137622a
This commit is contained in:
Joost Rijneveld 2017-10-24 09:23:38 +02:00
父節點 a9fe0e43fe
當前提交 9ac634762f
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: A4FE39CF49CBC553

查看文件

@ -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);