mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 23:13:38 +08:00
Fix bugs
This commit is contained in:
@@ -137,6 +137,10 @@ bad:
|
||||
}
|
||||
}
|
||||
|
||||
// SPHINCS+ requires two passes over the input data (prepare then update),
|
||||
// so stdin streaming is not directly supported here. If infp == stdin,
|
||||
// input should be buffered into memory with calloc/malloc before the first pass.
|
||||
// TODO: buffer input to support stdin in a future version
|
||||
rewind(infp);
|
||||
while (1) {
|
||||
uint8_t buf[1024];
|
||||
|
||||
Reference in New Issue
Block a user