Xiaokang Qian
|
11dd5c0b36
|
Compare final result with ASSERT_COMPARE
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
c81272461e
|
Check all of the limbs of result
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
1ae7ca435b
|
Re-order the variable orders and rename them
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
78b93b1902
|
Refine error check for mbedtls_ecp_modulus_setup
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
afdea64b50
|
Remove the useless modulus validaty
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
631f63d29d
|
Remove modulus double free
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
d3e86a170a
|
Add back 255 bit test data for SECP224K1 test cases
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
5b6bedfaf3
|
Add comments to the data file for the cureve secp224k1
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
424da8aa36
|
Revert to 224bit random data no need leading bit "1"
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
b7f9950234
|
Increase bit size to 225 for SECP224K1 test cases
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
86cb08ba27
|
Add comments about how the mod_inv data is generated
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
d244c83dfe
|
Update ecp mul_inv test cases
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
e4dc798b59
|
Change coding styles of white space
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
8ca64374b1
|
Tidy up ecp mul_inv_test code
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
3d0c2be8c2
|
Add ecp test cases for mont mul and inv after named moduli setup
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Xiaokang Qian
|
5e25f80d8a
|
Add ecp test function for mont mul and inv
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-17 10:02:52 +00:00 |
|
Gilles Peskine
|
ff7a346201
|
Merge pull request #7416 from bharsaklemukesh975/update-pkparse-tests-to-use-AES
Updating test-ca.key to use AES instead of DES
|
2023-05-16 19:15:16 +02:00 |
|
Paul Elliott
|
f0806bee66
|
Merge pull request #7489 from minosgalanakis/ecp/7246_xtrack_core_shift_l
[Bignum]: Introduce left shift from prototype
|
2023-05-16 17:13:19 +01:00 |
|
Paul Elliott
|
926bcb04fe
|
Merge pull request #7532 from AndrzejKurek/remove-leading-zeroes-ip-parsing
Disallow leading zeroes when parsing IPv4 addresses
|
2023-05-15 13:59:10 +01:00 |
|
Mukesh Bharsakle
|
4823d5ff0e
|
Merge branch 'Mbed-TLS:development' into update-pkparse-tests-to-use-AES
|
2023-05-10 12:35:19 +01:00 |
|
Manuel Pégourié-Gonnard
|
1d046fa0dd
|
Merge pull request #6010 from mprse/ffdh_import_export
FFDH 1, 2A, 2B: FFDH add support for import/export key, key agreement, key generation + tests
|
2023-05-10 11:40:54 +02:00 |
|
Gilles Peskine
|
97edeb4fb8
|
Merge pull request #6866 from mprse/extract-key-ids
Extracting SubjectKeyId and AuthorityKeyId in case of x509 V3 extensions v.2
|
2023-05-08 20:38:29 +02:00 |
|
Przemek Stekiel
|
67d3f52617
|
Use int instead uint in test function arguments
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2023-05-08 11:15:59 +02:00 |
|
Przemek Stekiel
|
ed9fb78739
|
Fix parsing of KeyIdentifier (tag length error case) + test
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2023-05-08 11:15:54 +02:00 |
|
Jerry Yu
|
8beb25041e
|
fix wrong target detection
For mingw with `-std=c99`, WIN32 is not defined.
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-05-06 13:45:12 +08:00 |
|
Jerry Yu
|
484a9e138f
|
Remove delay milliseconds test
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-05-05 17:03:29 +08:00 |
|
Jethro Beekman
|
e3d98fcbf6
|
Add pkwrite tests for X25519/X448 DER
Signed-off-by: Jethro Beekman <jethro@fortanix.com>
|
2023-05-04 13:01:47 +02:00 |
|
Jethro Beekman
|
abbba5ed43
|
Add derive public test for X25519/X448
Signed-off-by: Jethro Beekman <jethro@fortanix.com>
|
2023-05-04 13:01:47 +02:00 |
|
Jethro Beekman
|
0167244be4
|
Read and write X25519 and X448 private keys
Signed-off-by: Jethro Beekman <jethro@fortanix.com>
Co-authored-by: Gijs Kwakkel <gijs.kwakkel@fortanix.com>
Signed-off-by: Gijs Kwakkel <gijs.kwakkel@fortanix.com>
|
2023-05-04 13:01:47 +02:00 |
|
Manuel Pégourié-Gonnard
|
e4072c00c8
|
Merge pull request #7548 from jethrogb/jb/mbedtls_pem_write_buffer
mbedtls_pem_write_buffer: Correctly report needed buffer size for all possible line lengths and counts
|
2023-05-04 12:54:56 +02:00 |
|
Paul Elliott
|
b6432832d0
|
Merge pull request #7490 from paul-elliott-arm/test_ecp_mod_p448
[Bignum] Add unit tests for ecp_mod_p448
|
2023-05-04 11:39:44 +01:00 |
|
Gilles Peskine
|
2eff33cb6f
|
Merge pull request #6716 from gilles-peskine-arm/test-argument-types-union
Support larger integer test arguments
|
2023-05-04 10:05:20 +02:00 |
|
Jethro Beekman
|
2593ec4bee
|
Use TEST_EQUAL instead of TEST_ASSERT
Signed-off-by: Jethro Beekman <jethro@fortanix.com>
|
2023-05-03 17:47:29 +02:00 |
|
Jethro Beekman
|
3477a672b9
|
Fix cross-platform compilation issue
Signed-off-by: Jethro Beekman <jethro@fortanix.com>
|
2023-05-03 17:47:27 +02:00 |
|
Przemek Stekiel
|
8194285cf1
|
Fix parsing of authorityCertSerialNumber (use valid tags)
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2023-05-03 16:19:16 +02:00 |
|
Jethro Beekman
|
746df88e90
|
mbedtls_pem_write_buffer: Correctly report needed buffer size for all possible line lengths and counts
Signed-off-by: Jethro Beekman <jethro@fortanix.com>
|
2023-05-03 15:30:49 +02:00 |
|
Manuel Pégourié-Gonnard
|
f57273c817
|
Merge pull request #7496 from valeriosetti/issue7480
Fix test gap in PK write: private (opaque) -> public
|
2023-05-03 12:39:49 +02:00 |
|
Gilles Peskine
|
d3ca5e5897
|
Merge pull request #7328 from mprse/ec-jpake-fix1
Fix the JPAKE driver interface for user+peer
|
2023-05-02 20:42:25 +02:00 |
|
Gilles Peskine
|
c70d9eab8a
|
Merge pull request #7412 from silabs-Kusumit/PBKDF2_implementation
PBKDF2: Implement input_integer
|
2023-05-02 20:41:23 +02:00 |
|
Valerio Setti
|
9a855f21aa
|
test: check for exact length of returned pub key
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-05-02 15:45:39 +02:00 |
|
Valerio Setti
|
f5451717af
|
test: optimize code for pk_write_public_from_private()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-05-02 15:45:39 +02:00 |
|
Valerio Setti
|
84554e9830
|
test: use better naming for the newly introduced test function
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-05-02 15:45:39 +02:00 |
|
Valerio Setti
|
d860a79029
|
test: fix wrong private key file
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-05-02 15:45:39 +02:00 |
|
Valerio Setti
|
1751341b68
|
test: add test function for public key derivation starting from private one
Data test cases are also included in the commit.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-05-02 15:45:39 +02:00 |
|
Manuel Pégourié-Gonnard
|
f317df98ea
|
Merge pull request #7461 from valeriosetti/issue7460-part1
Fixing USE_PSA_INIT/DONE in SSL/X509/PK test suites
|
2023-05-02 10:44:13 +02:00 |
|
Kusumit Ghoderao
|
d60dfc0e43
|
Add test for parse_binary_string
Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com>
|
2023-05-02 10:47:50 +05:30 |
|
Andrzej Kurek
|
6f400a376e
|
Disallow leading zeroes when parsing IPv4 addresses
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2023-05-01 06:23:42 -04:00 |
|
Gilles Peskine
|
14d6b1124b
|
Merge pull request #7419 from yuhaoth/test/random-time-test-fail
Workaround random `test_suite_platform` fail in time test
|
2023-04-28 13:17:31 +02:00 |
|
Valerio Setti
|
7c0f91be10
|
test: use define for initializing ssl_message_queue struct
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-04-28 12:20:34 +02:00 |
|
Przemek Stekiel
|
6d85afa0cc
|
Fix naming: FFDH key -> DH key and fix guard in psa_validate_key_type_and_size_for_key_generation
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2023-04-28 11:42:17 +02:00 |
|