Xiaokang Qian
|
967b477954
|
Add test data "modulus-1" and "modulus-2" for every curve
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-23 06:07:32 +00:00 |
|
Xiaokang Qian
|
f33b4a5aed
|
Update comments how to generate the randoms to make it reproducible
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-22 10:55:46 +00:00 |
|
Xiaokang Qian
|
10b6daf755
|
Fix the comments of sum in ecp function
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-22 02:28:06 +00:00 |
|
Xiaokang Qian
|
be860a14ce
|
Generate test data with special seed 2,3,4
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Xiaokang Qian
|
bead774daa
|
Fix the limb mismatch issue on 32-bit platform
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Xiaokang Qian
|
6d02c2fefc
|
Compare the libs of two input value and add comments
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Xiaokang Qian
|
c304e53209
|
Remove useless parameters for ecp_mod_add_sub
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Xiaokang Qian
|
61b0c1c3dd
|
Refine code to align with the styles of ecp_mod_mul_inv
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Xiaokang Qian
|
4dd1c0a475
|
Add test data for ecp_add_sub
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Xiaokang Qian
|
9fe2587ccf
|
Add add_sub test data for named moduli curves
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Xiaokang Qian
|
5fc7846507
|
Add add_sub test cases for named moduli curves
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-19 07:39:48 +00:00 |
|
Janos Follath
|
399fa48e95
|
Merge pull request #7479 from xkqian/bignumber_test_mul_inv_named_moduli
[Bignum] Bignumber test mul inv named moduli
|
2023-05-18 11:55:01 +01:00 |
|
Paul Elliott
|
9a11f8a122
|
Merge pull request #7573 from tom-cosgrove-arm/add-psa_want_alg_some_pake
Only include psa_pake_setup() and friends if some PAKE algorithms are required
|
2023-05-18 09:59:52 +01:00 |
|
Paul Elliott
|
aa266f29e6
|
Merge pull request #7602 from mprse/AuthorityKeyId_leak_fix
Fix for memory leak while parsing AuthorityKeyId ext
|
2023-05-18 09:57:56 +01:00 |
|
Xiaokang Qian
|
c8f677d33e
|
Both compare the least significant limb 1 and the left limbs 0
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-18 03:41:31 +00:00 |
|
Xiaokang Qian
|
c1f5e54d2d
|
Remove useless parameter iret for ecp mul_inv cases
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-05-18 02:02:48 +00:00 |
|
Dave Rodgman
|
e4cbab6945
|
Merge pull request #7607 from daverodgman/pr6511
|
2023-05-17 19:11:56 +01:00 |
|
Paul Elliott
|
8203f2d89f
|
Merge pull request #7535 from minosgalanakis/ecp/7264_enable_core_shift_l
[Bignum] Adjust mbedtls_mpi_core_shift_l to use the core function
|
2023-05-17 18:45:44 +01:00 |
|
Manuel Pégourié-Gonnard
|
b1c0afe484
|
Merge pull request #7595 from valeriosetti/deprecate_pk_ec
Set mbedtls_pk_ec() as internal function when ECP_C is not defined
|
2023-05-17 12:27:03 +02:00 |
|
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 |
|
Przemek Stekiel
|
da97ad9f14
|
Use valid MD5 dependency for test
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2023-05-17 09:26:42 +02: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 |
|
Gilles Peskine
|
63df4ec3ca
|
Merge pull request #7589 from daverodgman/pr4990
Replace references to Mbed Crypto (rebase)
|
2023-05-16 19:14:51 +02:00 |
|
Minos Galanakis
|
2056d09893
|
bignum: Updated documentation for mbedtls_mpi_shift_l()
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
|
2023-05-16 17:16:26 +01:00 |
|
Minos Galanakis
|
0144b35f7d
|
bignum: Updated mbedtls_mpi_shift_l to use the core method.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
|
2023-05-16 17:16:26 +01: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 |
|
Dave Rodgman
|
8508e50d3d
|
Make use of MBEDTLS_STATIC_ASSERT
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-05-16 16:43:48 +01:00 |
|
Dave Rodgman
|
ed59ea76a6
|
Document minimum size for DEBUG_BUF_SIZE
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-05-16 16:42:40 +01:00 |
|
valord577
|
5bfcd1c63b
|
simplify code
Signed-off-by: valord577 <valord577@gmail.com>
|
2023-05-16 16:42:40 +01:00 |
|
valord577
|
176e92711c
|
code style
Signed-off-by: valord577 <valord577@gmail.com>
|
2023-05-16 16:42:40 +01:00 |
|
valord577
|
536893c22f
|
make code readable and change var name
Signed-off-by: valord577 <valord577@gmail.com>
|
2023-05-16 16:42:40 +01:00 |
|
valord577
|
24da0cd0f9
|
send debug msg if contains '\n'
Signed-off-by: valord577 <valord577@gmail.com>
|
2023-05-16 16:42:40 +01:00 |
|
Dave Rodgman
|
9ecf5f96df
|
Update library/debug.c
Fix trailing white-space
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-05-16 16:42:40 +01:00 |
|
valord577
|
25418ac734
|
Fix: no newline when debug msg over DEBUG_BUF_SIZE
Signed-off-by: valord577 <valord577@gmail.com>
|
2023-05-16 16:42:40 +01:00 |
|
Minos Galanakis
|
99453ad9f0
|
bignum_core.py: Simplified result calculation for BignumCoreShiftL
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
|
2023-05-16 15:28:19 +01:00 |
|