Steffen Jaeckel
78a32430d4
more tests
2017-03-31 18:24:42 +02:00
Steffen Jaeckel
2bd517307c
add GeneralizedTime DER en-/decode
2017-03-30 22:29:02 +02:00
Steffen Jaeckel
f7cb199066
add test proposed by @karel-m
2017-03-30 22:29:02 +02:00
Steffen Jaeckel
ec327b3d86
move x509 processing to rsa_import_x509()
2017-03-30 18:46:05 +02:00
Steffen Jaeckel
019a9e9850
add stinky certificate
2017-03-30 18:46:04 +02:00
Steffen Jaeckel
39b2a8daca
add tests for new functionality of der_encode_flexi() and rsa_import()
2017-03-30 18:46:04 +02:00
Karel Miko
2a2968ae92
demos/test facelift
2017-03-30 16:56:10 +02:00
Karel Miko
c6a0362c88
SHA3
2017-03-29 13:44:04 +02:00
Karel Miko
7bb7bdde1d
improving MS Windows builds (msvc)
2017-03-29 08:48:33 +02:00
Steffen Jaeckel
8518b56dbf
Revert "fix rotate_test to pass rotate by zero with LTC_NO_ASM"
...
This reverts commit 82080f0b87
.
2017-03-28 21:18:22 +02:00
Karel Miko
82080f0b87
fix rotate_test to pass rotate by zero with LTC_NO_ASM
2017-03-27 22:03:33 +02:00
Karel Miko
e5aa2bd453
added rotate_test
2017-03-27 19:32:05 +02:00
Karel Miko
b465881b58
fix "declaration-after-statement" warnings (tests only)
2017-03-24 10:17:02 +01:00
Karel Miko
15db3eab59
fix travis failure
2017-03-22 11:24:21 +01:00
Steffen Jaeckel
cd08a8cec3
disable ltc_rng by default
2017-03-22 11:24:21 +01:00
Steffen Jaeckel
fcae7e2c49
test the ltc_rng
2017-03-22 11:24:21 +01:00
Karel Miko
54a26525dc
avoid C++ style comments
2017-03-15 15:22:06 +01:00
Steffen Jaeckel
90da7e71e1
There's no need running the same test multiple times
...
If there would be some random input okay, but like that it's just running
the same functionality over and over again.
2017-03-09 20:09:55 +01:00
Steffen Jaeckel
00308d8651
fix base64url related errors when only LTC_BASE64 is defined
2017-03-01 11:37:49 +01:00
Steffen Jaeckel
03f0674985
add compare_testvector() prototype to tomcrypt_misc.h
2017-02-28 20:09:32 +01:00
Steffen Jaeckel
abf0a18290
add some testcases
2017-02-28 01:27:07 +01:00
Steffen Jaeckel
c1dd1cbe30
re-work strict/relaxed base64 decoding implementation
...
Instead of one API function with an option parameter, provide two API
functions.
Instead of defaulting to strict decoding, default to relaxed decoding.
2017-02-28 01:27:03 +01:00
Steffen Jaeckel
53359ccfc6
fix failing test
2017-02-28 01:27:02 +01:00
Steffen Jaeckel
bc16c149fc
fix base64[url] strict/relaxed decode
2017-02-28 01:27:01 +01:00
Steffen Jaeckel
1c0edfdead
add/fix tests
...
add explicit strict&loose base64-decode tests
2017-02-28 01:26:58 +01:00
Matt Kelly
e187f4cbf4
Fix all warnings from -Wcast-align
2017-02-26 10:12:16 -05:00
Karel Miko
953080bcea
more trailing spaces + tabs outside of "src" dir
2017-02-24 20:50:37 +01:00
Steffen Jaeckel
ef023f3329
fix rsa/dsa test duplicate symbols
2017-02-21 17:32:30 +01:00
Karel Miko
bbbbf5f1d5
adding rsa_import_radix tests
2017-02-21 16:55:10 +01:00
Karel Miko
ac6f69e8fe
adding dsa_import_radix tests
2017-02-21 16:54:11 +01:00
Steffen Jaeckel
600004fecc
print ascii in print_hex()
2017-02-21 11:42:24 +01:00
Steffen Jaeckel
60bb5440fb
add compare_testvector()
2017-02-21 11:42:24 +01:00
Steffen Jaeckel
08aabc7f8c
improve print_hex() prototype
2017-02-17 11:53:14 +01:00
Steffen Jaeckel
912eff4949
make testprof/makefile silent
2016-01-23 19:11:30 +01:00
Steffen Jaeckel
6ec93afa3c
clean-up test-build and extend tomcrypt_custom.h
...
added LTC_MINIMAL to be able do a build without nearly any
functionality :)
make sure timing resistant RSA & ECC are enabled if not said otherwise
2015-09-01 17:36:43 +02:00
Steffen Jaeckel
ee03c97cde
add crc32
2015-08-23 22:59:14 +02:00
Steffen Jaeckel
1987a2f975
add adler32 checksum algorithm
2015-08-23 22:59:14 +02:00
Pascal Brand
7313d1e6b0
Update ECC timing tests
...
Signed-off-by: Pascal Brand <pascal.brand@st.com>
2015-08-21 22:09:25 +02:00
Steffen Jaeckel
46c038f7d4
adapt rsa_test() to modified pkcs#1 decoding routines
2014-11-13 22:30:07 +01:00
Steffen Jaeckel
e6b1c7101e
der test: also run der_length_utf8_string()
2014-10-10 00:56:23 +02:00
Steffen Jaeckel
f75b5ec8f4
der tests: improve/implement handling of context-specific data
...
no more "EOL" in the output as the flexi decoder handles now
context-specific data
2014-10-06 18:59:40 +02:00
Steffen Jaeckel
6da3b856d6
der test: print list-element details on EOL
...
EOL indicates an unitialized list-element
2014-10-06 18:57:42 +02:00
Steffen Jaeckel
2e426e2d57
der test: add example of decoding a X.509 v3 cert with the flexi decoder
...
you can define "LTC_DER_TESTS_PRINT_FLEXI" at compile time to print
the decoded cert whenn running the test executable...
well not all of it, since some parts of the cert are marked as
"context-specific" so we would need to do some further digging
...these are the parts that are output as "EOL"...
2014-09-30 17:57:53 +02:00
Steffen Jaeckel
c1e81ad469
minor changes
...
print MP_DIGIT_BIT when running test
der_test: improve error output of 'short integer' test
2014-09-30 13:26:18 +02:00
Steffen Jaeckel
eea24fe2c0
bring back possibility to import/export old DSA key format
2014-09-29 23:44:47 +02:00
Steffen Jaeckel
f58c87866e
add possibility to export RSA public key in SubjectPublicKeyInfo format
2014-09-29 23:44:47 +02:00
Steffen Jaeckel
b1f29539be
Revert "removed testing of "stripped" rsa key"
...
This reverts commit 496453f289
.
2014-09-29 23:44:47 +02:00
Steffen Jaeckel
1924e6fd47
add sha512/224 and sha512/256 to tests and crypt_build_settings
2014-09-29 19:57:21 +02:00
Steffen Jaeckel
94363b601c
add testcase to verify that this patch is working
2014-09-28 22:52:32 +02:00
Steffen Jaeckel
e5fb4d5ebe
use DO() macro when calling API functions in tests
2014-08-28 14:02:57 +02:00