fcdd0477b3
Replace loop zeroise with memset
...
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com >
2023-06-08 10:03:53 +00:00
035e5fc885
Add comments to 448 optimised reduction
...
Signed-off-by: Janos Follath <janos.follath@arm.com >
2023-06-08 09:44:30 +00:00
9cce348a70
Add corner case for p448 (A0+A1= full 1 of 448 bits)
...
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com >
2023-06-08 09:19:40 +00:00
9304186ae9
Restore accidentally removed comment
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-08 10:13:22 +01:00
ff45d44c02
Replace MBEDTLS_MD_CAN_SHA3 with MBEDTLS_MD_CAN_SHA3_xxx
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-08 10:11:34 +01:00
7ae342f3f7
Use helper_libtestdriver1_adjust_config more
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2023-06-08 09:26:55 +02:00
981732e453
Fix some typos
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2023-06-08 09:26:51 +02:00
ccfb3fee93
Merge pull request #7708 from daverodgman/sha3-updated
2023-06-07 17:09:41 -04:00
2c91f4b8b2
Fix for big-endian architectures
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 19:59:05 +01:00
2f0f998ec4
Unify ABSORB and ABSORB8 to fix compile error
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 19:12:04 +01:00
a8af4f4da2
Fix test dependency
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 18:27:09 +01:00
b61cd1042a
Correct minor merge mistakes
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 18:14:45 +01:00
8b0deef299
Add HMAC DRBG SHA-3 tests
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 18:05:02 +01:00
05d71ffe5b
Merge remote-tracking branch 'origin/development' into sha3-updated
2023-06-07 18:02:04 +01:00
f213d0a7b0
Tidy-up
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 17:09:47 +01:00
1b42763516
Remove NULL checks
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 17:09:02 +01:00
f9d8f4cd68
Remove reference to SHAKE
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 17:08:29 +01:00
a35551ef01
Use MBEDTLS_PRIVATE
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 17:08:19 +01:00
cf4d2bdc09
Spell as SHA-3 not SHA3
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 17:08:09 +01:00
2468ad10d7
Add tests for invalid paramters
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 17:06:35 +01:00
c3048b3eea
Tidy-up definition of mbedtls_sha3_context
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:50:15 +01:00
9d7fa93e6c
move mbedtls_sha3_family_functions out of public interface
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:50:15 +01:00
e627bef2f8
Use faster type for state index
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:50:15 +01:00
1789d84282
remove not-needed fields from SHA-3 context
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:50:15 +01:00
bcfd79c699
Consume input in 8-byte chunks
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:50:15 +01:00
2070c2074e
Avoid possible NEON alignment issue
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:38:26 +01:00
9d1635e742
Revert not-useful changes to AES-CBC decrypt
...
Signed-off-by: Dave Rodgman <dave.rodgman@gmail.com >
2023-06-07 16:38:26 +01:00
f1e396c427
improve cbc encrypt perf
...
Signed-off-by: Dave Rodgman <dave.rodgman@gmail.com >
2023-06-07 16:38:26 +01:00
3f47b3f7a3
Extend NEON use to 32-bit Arm
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:38:26 +01:00
9c1128edaa
Add tests for xor over large blocks
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-06-07 16:38:26 +01:00
feb1757ead
Add clangd compilation databases to gitignore
...
The clangd language server uses a file called compile_commands.json to
interpret the source tree. This is generated by CMake and must be
present in the source tree in order to use clangd properly.
Add this to the gitignore to improve the developer experience for users
of clangd.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2023-06-07 15:21:59 +01:00
0624e460fb
Add a guard for IP parsing in cert_req app
...
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com >
2023-06-07 08:54:35 -04:00
5d9aeba899
Fix param documentation for mbedtls_x509_crt_parse_cn_inet_pton
...
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com >
2023-06-07 08:54:35 -04:00
c40a1b552c
Remove references to x509_invasive.h
...
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com >
2023-06-07 08:54:34 -04:00
cd17ecfe85
Use better IP parsing in x509 programs
...
Remove unnecessary duplicated code.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com >
2023-06-07 08:50:05 -04:00
0b683a9a57
Remove redundant test and add tests: keyid only (without issuer)
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
401c8e3a97
Adapt test (use path instead of bytes) after rebase
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
ff9c2996f3
Fix code style
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
05d5c3e734
Further test improvements
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
9a1c428966
Fix after rebase (remove redundant variables in tests)
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
64a06e48b3
Add more test cases
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
2c64e90e02
Use RSA keys in generated certificates
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
b1f0b536d7
Add test for invalid KeyIdentifier tag length + adapt error code
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
a6a0a7929a
Use TEST_EQUAL instead of TEST_ASSERT in tests
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
1969f6a453
Test optional fields in authorityKeyId
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
0ad1006606
Check values in tests
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
2568d47916
Use generated certs in DER format in tests
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
5ff986cb0a
Provide makefile rules to generate cerst for authorityKeyId, subjectKeyId tests
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-06-07 09:01:29 +02:00
13230a4ad3
Merge pull request #7349 from mpg/rm-hash-info
...
Remove `hash_info` module
2023-06-06 21:05:13 +02:00
d598eaf212
Merge pull request #7106 from davidhorstmann-arm/parse-oid-from-string
...
Parse an OID from a string
2023-06-06 20:57:17 +02:00