cfb5a5fade
bignum_core_test_suite: Added mpi_core_shift_l()
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2023-04-25 12:23:34 +01:00
ec09e25251
bignum_core: Aligned xxx_core_shift_l
to xxx_core_shift_r
...
This patch modifies the left-shift implementation to closely
align in interface and behaviour to the existing right-shift
method.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2023-04-25 12:23:34 +01:00
ad808dd5f1
bignum_core: Extracted mbedtls_mpi_shift_l from prototype
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2023-04-25 12:23:33 +01:00
6e628a4e7b
Add undfined role for ec j-pake
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-25 13:11:36 +02:00
1d4cc917ce
cert_audit: Reword the options and their descriptions
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-04-25 15:17:19 +08:00
1381598aa3
cert_audit: Check the version of cryptography
...
The script requires cryptography >= 35.0.0, we
need to check the version and provide meaningful
error message when the package version was too
old.
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-04-25 14:55:38 +08:00
f015a93f98
Add msvc version document
...
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-04-25 10:38:03 +08:00
8f0e3d4c22
fix wrong compiler checks
...
- Add msc version check
- remove HAVE_ASM due to conflict with check_config
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-04-25 10:24:53 +08:00
ad450d5a92
Merge pull request #7463 from valeriosetti/issue7460-part2
...
Pass pk_context pointer to PK wrappers instead of void pointer
2023-04-24 17:41:39 +02:00
94cf710edc
Revert increase of MEMORY_HEAP_SIZE in ssl_client2
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 16:35:40 +02:00
53c6553deb
Merge pull request #7450 from xkqian/bignumber_ecp_update
...
Update gen_prvkey_mx paras to align with comments and c code
2023-04-24 13:44:39 +01:00
0f16d560aa
Fix documentation
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-04-24 12:53:45 +01:00
14bfdbf908
test: update guards also for pkwrite and pkparse
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 13:53:21 +02:00
8bb93bb44c
test: fix max value in test_mx32
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
e50831c639
test: minor fix for non-initialized variable
...
Signed-off-by: valerio <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
95e57c3517
doc: update use-psa-crypto.md
...
Signed-off-by: valerio <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
32f2ac9a18
test: proper positioning of USE_PSA_INIT + added missing exit labels
...
Signed-off-by: valerio <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
cf35d774fe
doc: update USE_PSA_CRYPTO description
...
Signed-off-by: valerio <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
285dae83dd
test: fix USE_PSA_INIT/DONE for SSL test suite
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
569c171015
test: fix USE_PSA_INIT/DONE for x509 test suite
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
b79f7db9b0
test: fix USE_PSA_INIT/DONE for PK test suite
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 13:47:18 +02:00
feb941a77a
Merge pull request #7465 from valeriosetti/issue7460-part3
...
Check remaning dependencies on ECP in PK module
2023-04-24 13:06:09 +02:00
0281d7630b
Merge pull request #7449 from valeriosetti/issue7446
...
Clean up & improve PK write test functions
2023-04-24 13:05:16 +02:00
0b0486452c
improve syms.sh script for external dependencies analysis
...
It is now possible to analyze also modules and not only
x509 and tls libraries.
Signed-off-by: valerio <valerio.setti@nordicsemi.no >
2023-04-24 10:34:08 +02:00
bf974b9b1c
test_suite_pkwrite: replace memcpy with memmove
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 10:26:24 +02:00
547b3a4ab5
fix typos
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 10:24:37 +02:00
f4194944e8
Use do-while(0) format in macros
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 09:52:17 +02:00
5346396c48
Fix code-style
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 09:01:41 +02:00
7bacaf859a
fix new line difference in Windows
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-04-24 08:53:00 +02:00
758aef60c5
Add guards for mbedtls_psa_crypto_free()
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 08:10:01 +02:00
774f9debf2
Init PSA in fuzz programs
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 08:07:20 +02:00
6cec5e9d9e
Add changelog entry (PSA initialization in sample programs)
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 08:03:30 +02:00
c34b9ac18c
cert_audit: Clarify the abstraction of Auditor
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-04-23 14:57:30 +08:00
28fe957239
cert_audit: Add simple parser of suite data file
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-04-23 13:56:25 +08:00
935a987b2b
Merge pull request #7436 from AndrzejKurek/x509-verify-san-ip
...
x509 SAN IP parsing
2023-04-21 22:00:58 +02:00
f921f4d228
Use loop for two passes in the reduction
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2023-04-21 14:09:06 +02:00
bbf881053d
Document undefined case. Clarify test code.
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-04-21 12:54:40 +01:00
4bf08f86bb
Merge pull request #7425 from minosgalanakis/ecp/7257_ecp_mod_p224k1_add_test_cases
...
ECP: Add Unit Tests for secp224k1
2023-04-21 11:18:23 +01:00
43fb9c83d8
Add link to review guideline fro contributors
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2023-04-21 11:19:44 +02:00
2d487217cd
cert_audit: Improve the method to find tests folder
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-04-21 12:41:24 +08:00
a228cbcecc
cert_audit: Add data-files and suite-data-files options
...
The commit adds '--data-files' and '--suite-data-files'
options so that we could pass names for the two types
of files separately. Additionally, the commit improves
the documentation in the script.
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-04-21 11:59:25 +08:00
fcda6d4f51
cert_audit: Enable logging module
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-04-21 11:04:07 +08:00
678e63007c
Remove test-case for all-zero
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-04-20 12:28:59 +01:00
880a6b34c2
Further size optimisation
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-04-20 11:52:55 +01:00
38992cb833
pk: pass pk_context pointer to wrappers intead of void one
...
Signed-off-by: valerio <valerio.setti@nordicsemi.no >
2023-04-20 12:02:34 +02:00
a7d454cec2
Remove unnecessary check
...
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-04-20 10:32:38 +08:00
8b6df3fd76
fix msvc fail on embed assembly code
...
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-04-20 10:32:37 +08:00
9db4b1f455
fix msvc type cast fail.
...
GCC needs the `cast` due to incompatible type error
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-04-20 10:32:36 +08:00
07d28d8598
Add msvc build for aesce module
...
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-04-20 10:32:36 +08:00
ad2091d9c2
fix grammar issues
...
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-04-20 10:01:42 +08:00