sign demo: fix weird max message length

This commit is contained in:
Frank Denis 2015-05-27 20:01:03 +02:00
parent a67f42e015
commit 385b44aee5

View File

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