mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
sign demo: fix weird max message length
This commit is contained in:
+2
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user