mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add a test for short (non-detached) signed messages
This commit is contained in:
@@ -1090,6 +1090,12 @@ int main(void)
|
||||
printf("message can be forged: [%u]\n", i);
|
||||
continue;
|
||||
}
|
||||
if (crypto_sign_open(m, &mlen, sm, i % crypto_sign_BYTES,
|
||||
test_data[i].pk) == 0) {
|
||||
printf("short signed message verifies: [%u]\n",
|
||||
i % crypto_sign_BYTES);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
printf("%u tests\n", i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user