-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECDH and ECDSA test suite fails on big-endian MIPS #33
Comments
After a quick glance, I think the test suite is to blame; more specifically, the |
The following patch should work. As I don't have easy access to a big-endian
(I hope github markup doesn't make the patch unusable.) EDIT: just in case: http://pastebin.com/raw.php?i=UaEf2XXz |
That fixed it! Thanks for responding so quickly :) |
Integrated into development branch and included for 1.3.2 release |
Iotssl 1675 frontend config
TLS 1.3 code added to ssl_client2.c and ssl_server2.c
Disable dependency check for `MBEDTLS_USE_PSA_CRYPTO` on `MBEDTLS_PSA_CRYPTO_C`
Add Jenkinsfile
It passes on my x86-64 dev box and on mipsel, so I'm guessing this is an endianness issue, but I haven't tested further. I have bisected it back to d589a0d.
Here's the test suite output:
$ make check
Running checks (Success if all tests PASSED)
PASSED (77 / 77 tests (0 skipped))
PASSED (72 / 72 tests (0 skipped))
PASSED (72 / 72 tests (0 skipped))
PASSED (5 / 5 tests (0 skipped))
PASSED (9 / 9 tests (0 skipped))
PASSED (20 / 20 tests (0 skipped))
PASSED (103 / 103 tests (0 skipped))
PASSED (59 / 59 tests (0 skipped))
PASSED (275 / 275 tests (0 skipped))
PASSED (26 / 26 tests (0 skipped))
PASSED (32 / 32 tests (0 skipped))
PASSED (138 / 138 tests (0 skipped))
PASSED (190 / 190 tests (0 skipped))
PASSED (138 / 138 tests (0 skipped))
PASSED (24 / 24 tests (24 skipped))
PASSED (43 / 43 tests (1 skipped))
PASSED (240 / 240 tests (0 skipped))
PASSED (8 / 8 tests (2 skipped))
PASSED (80 / 80 tests (0 skipped))
PASSED (4 / 4 tests (0 skipped))
ECDH primitive rfc 5903 p256 ...................................... FAILED
mpi_cmp_mpi( &qA.X, &check ) == 0
ECDH primitive rfc 5903 p384 ...................................... FAILED
mpi_cmp_mpi( &qA.X, &check ) == 0
ECDH primitive rfc 5903 p521 ...................................... FAILED
mpi_cmp_mpi( &qA.X, &check ) == 0
FAILED (7 / 10 tests (0 skipped))
**** Failed ***************
ECDSA primitive rfc 4754 p256 ..................................... FAILED
mpi_cmp_mpi( &r, &r_check ) == 0
ECDSA primitive rfc 4754 p384 ..................................... FAILED
mpi_cmp_mpi( &r, &r_check ) == 0
ECDSA primitive rfc 4754 p521 ..................................... FAILED
mpi_cmp_mpi( &r, &r_check ) == 0
FAILED (10 / 13 tests (0 skipped))
**** Failed ***************
PASSED (87 / 87 tests (0 skipped))
PASSED (6 / 6 tests (0 skipped))
PASSED (169 / 169 tests (0 skipped))
PASSED (169 / 169 tests (0 skipped))
PASSED (169 / 169 tests (0 skipped))
PASSED (169 / 169 tests (0 skipped))
PASSED (169 / 169 tests (0 skipped))
PASSED (169 / 169 tests (0 skipped))
PASSED (36 / 36 tests (0 skipped))
PASSED (258 / 258 tests (48 skipped))
PASSED (55 / 55 tests (32 skipped))
PASSED (197 / 197 tests (0 skipped))
PASSED (5 / 5 tests (0 skipped))
PASSED (247 / 247 tests (0 skipped))
PASSED (5 / 5 tests (0 skipped))
PASSED (57 / 57 tests (0 skipped))
PASSED (4 / 4 tests (0 skipped))
PASSED (95 / 95 tests (4 skipped))
PASSED (63 / 63 tests (0 skipped))
PASSED (197 / 197 tests (2 skipped))
PASSED (8 / 8 tests (1 skipped))
PASSED (13 / 13 tests (0 skipped))
PASSED (2 / 2 tests (0 skipped))
make[1]: *** [check] Error 1
make: *** [check] Error 2
The text was updated successfully, but these errors were encountered: