Frank Denis
|
7e2755166a
|
Add a scalarmult test to show that the high bit is ignored
|
2020-04-26 20:00:49 +02:00 |
|
Frank Denis
|
c190574cee
|
x25519-ref10: reject low order points before the multiplication
|
2017-11-17 10:47:00 +01:00 |
|
Frank Denis
|
3cce789304
|
Indent
|
2017-02-23 11:22:00 +01:00 |
|
Frank Denis
|
d8b9b395a3
|
Mark everything as static in tests
|
2015-11-23 16:07:13 +01:00 |
|
Frank Denis
|
5e17a7adf8
|
Check that scalarmult() returns -1 with a point of small order
325606250916557431795983626356110631294008115727848805560023387167927233504
is a point of order 8
|
2015-11-17 11:07:37 +01:00 |
|
Frank Denis
|
2bc5874874
|
Check that the output of X25519 is not the all-zero value
Return -1 if this happens, and mark crypto_scalarmult() as warn_unused_result
Mark dependent functions with warn_unused_result as well
|
2015-11-17 11:07:33 +01:00 |
|
Frank Denis
|
dca2131f45
|
C++ compat
|
2015-09-21 16:05:53 +02:00 |
|
Frank Denis
|
6be1ce3f34
|
scalarmult: add the exact test from the irtf-cfrg-curves draft
Use guarded memory by the way.
|
2015-09-21 15:45:32 +02:00 |
|
Frank Denis
|
82bc039d6c
|
Consistent syle for the tests.
|
2014-09-14 11:32:55 -07:00 |
|
Frank Denis
|
0e559b94d5
|
Make the tests a little bit more readable
|
2014-09-14 10:34:16 -07:00 |
|
Frank Denis
|
a92731a9f4
|
More tests for constants
|
2014-09-13 14:47:29 -07:00 |
|
Frank Denis
|
4d276a81e7
|
Include header files commonly used by the tests to cmptest.h
|
2014-09-13 14:11:12 -07:00 |
|
Frank Denis
|
3b680e0a52
|
Use high-level APIs in tests
|
2014-09-13 13:56:41 -07:00 |
|
Frank Denis
|
faa399c3df
|
Only include sodium.h in tests.
Tests should always be passing by just including that.
|
2013-04-21 17:32:04 -07:00 |
|
Frank Denis
|
5c946f9c61
|
Move tests to test/default and windows to quirks/windows.
test/default contains only tests using the default primitives
for a given operation. We need to add other tests as well.
|
2013-02-09 04:21:32 +08:00 |
|