sign demo: fix weird max message length
This commit is contained in:
parent
a67f42e015
commit
385b44aee5
@ -43,9 +43,8 @@ sign(void)
|
||||
puts("\n");
|
||||
|
||||
/* read input */
|
||||
mlen = prompt_input("a message", (char*)m,
|
||||
sizeof m - crypto_sign_BYTES, 1);
|
||||
putc('\n', stdout);
|
||||
mlen = prompt_input("a message", (char*)m, sizeof m, 1);
|
||||
putchar('\n');
|
||||
|
||||
puts("Notice the message has no prepended padding");
|
||||
print_hex(m, mlen);
|
||||
|
Loading…
Reference in New Issue
Block a user