JacobBarthelmeh
0e35e9cbbe
Merge pull request #6806 from lealem47/XTS
...
Add XTS API's required for VeraCrypt
2023-10-11 13:35:45 -06:00
JacobBarthelmeh
653e5b01b1
Merge pull request #6646 from embhorn/gh5636_5637
...
Fix RFC references and add WOLFSSL_ALLOW_CRIT_AIA
2023-10-11 13:30:42 -06:00
Lealem Amedie
e7eec645b0
Sanity checks and correct comment
2023-10-11 12:03:02 -06:00
JacobBarthelmeh
5e4baf898c
Merge pull request #6786 from SparkiDev/aes_gcm_align_arm_fix
...
AES GCM ARM32 alignment fix
2023-10-11 10:18:11 -06:00
Hideki Miyazaki
f8604da8e3
change to use a cutom random generation func for PRNG
2023-10-11 06:50:26 +09:00
Lealem Amedie
a27b49882d
Add XTS API's required for VeraCrypt
2023-10-10 15:09:35 -06:00
Chris Conlon
210fff5569
Merge pull request #6849 from miyazakh/rnd_gen_updates
...
Update random generation on RZ RSIP
2023-10-10 08:52:22 -06:00
Daniel Pouzzner
61371d403a
minor fixes for AES-EAX implementation and test routines.
2023-10-08 18:02:52 -05:00
Hideki Miyazaki
8d5df6fec2
change to use custom random generation func
2023-10-08 16:42:36 +09:00
JacobBarthelmeh
fd2d098566
Merge pull request #6821 from bigbrett/aes-eax
...
AES EAX mode
2023-10-06 14:14:28 -06:00
Brett Nicholas
fafb9e81c0
Add support for AES EAX mode, as described in https://eprint.iacr.org/2003/069
2023-10-06 11:10:06 -06:00
Sean Parkinson
862a98abe0
Aarch64 and ARM32 AES XTS with crypto instructions
...
Optimised assembly of AES-XTS for Aarch64 and ARM32 using hardware
crypto instructions.
Aarch64 has loop unrolling.
Update aes.c to not have AES-XTS implementation when assembly
compilable.
Update test of AES-XTS to check expected cipher text of partial block
encryption.
2023-10-06 12:39:31 +10:00
JacobBarthelmeh
c26ad8d19a
Merge pull request #6828 from SparkiDev/mp_sqrtmod_prime_cust_curve
...
mp_sqrtmod_prime: bail early on the check for small values
2023-10-05 16:32:01 -06:00
JacobBarthelmeh
22b838c22b
Merge pull request #6799 from kojo1/no_malloc
...
fix NO_MALLOC guard in an error case
2023-10-05 16:23:54 -06:00
Chris Conlon
6968105984
Merge pull request #6831 from miyazakh/renesas_tsip_fix
...
fix compile error due to rz port change
2023-10-05 09:43:34 -06:00
Daniel Pouzzner
45b613ee55
wolfcrypt/test/test.c: fix error codes in hpke_test_single(), hpke_test(), and ecc521_test_deterministic_k().
2023-10-03 22:44:11 -05:00
Hideki Miyazaki
f9fb966bb4
fix compile error due to rz port change
2023-10-04 06:47:12 +09:00
Sean Parkinson
e55e6790dd
mp_sqrtmod_prime: bail early on the check for small values
...
When using custom curves, only use the first 22 values with the prime to
calculate Legendre symbol. The known curves work and defeats long running
times when non-prime values are passed in.
2023-10-03 16:48:34 +10:00
JacobBarthelmeh
1a3bf5e932
Merge pull request #6822 from douzzer/20230930-aes-xts-test-gate
...
20230930-aes-xts-test-gate
2023-10-02 17:57:17 -06:00
Chris Conlon
ecf666a121
Merge pull request #6819 from miyazakh/renesas_rz_opt
...
Update usage of sha acceleration on RSIP
2023-10-02 09:22:06 -06:00
Daniel Pouzzner
3e7f4c5f2d
wolfcrypt/test/test.c: in aes_xts_128_test(), fix gate on LARGE_XTS_SZ test added in 3ea0fb30dd (disable for AF_ALG and pre-5.3 FIPS).
2023-09-30 12:07:56 -05:00
JacobBarthelmeh
8a57936d7e
Merge pull request #6801 from julek-wolfssl/zephyr-fixes
...
Misc zephyr fixes
2023-09-29 09:50:19 -06:00
Hideki Miyazaki
e092c57675
change sha h/w acceleration implementation
2023-09-29 16:22:16 +09:00
Sean Parkinson
3ea0fb30dd
AES XTS x64 ASM: add AVX1 and AESNI implementations
...
Adding AES-XTS AVX1 and AESNI implementations.
Fix name in comment at top of x64 assembly files.
2023-09-28 14:44:23 -05:00
gojimmypi
4ece466fca
ESP32 debug only: Mode REVERT to ESP32_SHA_SW
2023-09-26 08:32:23 -07:00
Juliusz Sosinowicz
470e839b26
Misc zephyr fixes
...
- Need to call fs_file_t_init() before calling fs_open()
- 0 is a valid POSIX socket number
- Include stdio.h when needed to simplify macro logic
- Define Zephyr specific macros in CMakeLists.txt to make for a better user experience
2023-09-22 12:19:06 +02:00
Dimitri Papadopoulos
f7d7006e87
More typos found by codespell
2023-09-22 11:38:24 +02:00
Takashi Kojo
a9548b2f11
fix NO_MALLOC guard in an error case
2023-09-22 10:05:21 +09:00
David Garske
f7ca923b4b
Merge pull request #6783 from bandi13/more_async_cb
...
More async cb
2023-09-20 10:16:08 -07:00
Hideki Miyazaki
8f9c3716ed
fix ra6m4 port
2023-09-20 09:00:22 +09:00
Chris Conlon
5bc5b8a99b
Merge pull request #6768 from miyazakh/renesas_rz
...
Renesas RZN2L support
2023-09-19 14:38:03 -06:00
Andras Fekete
186d3c2eb4
Fixes to various Async issues
2023-09-19 13:10:16 -04:00
Andras Fekete
ad9779cdc1
Explicitly define code with WOLFCRYPT_ASYNC_CRYPT_SW
2023-09-19 13:10:16 -04:00
David Garske
eca28ea2f6
Merge pull request #6789 from bandi13/renameAsyncEnumPart2
...
Clean up double enum
2023-09-19 09:08:32 -07:00
gojimmypi
9398fa0736
Espressif HW Improvements ( #6624 )
...
* Espressif HW Improvements
* revised AES HW/SW fallback logic for ESP32
2023-09-19 08:21:13 -07:00
Andras Fekete
2af5ae89a2
Rename enum to protect the innocent
...
WC_NO_PENDING_E indicates that there really isn't any asynchronous task that is pending.
2023-09-19 10:46:11 -04:00
Sean Parkinson
af6386732c
AES GCM ARM32 alignment fix
...
Don't use xorbufout in GMULT.
Force the table to be aligned.
2023-09-19 09:21:20 +10:00
David Garske
1d7c6c94fe
Merge pull request #6780 from SparkiDev/sp_x64_uninit
...
SP x64 ASM: Initialize pointers in RSA functions
2023-09-18 09:49:22 -07:00
Sean Parkinson
ea8bc82f85
SP ARM64 ASM: fix sp_256_mont_dbl_4
...
In sp_256_mont_dbl_4, not all used registers were in asm clobber list.
2023-09-18 15:17:39 +10:00
Sean Parkinson
c0edb7b583
SP x64 ASM: Initialize pointers in RSA functions
...
Windows compiler complains about uninitialized variables in these
functions. Set the pointers to NULL to quiet the compiler.
2023-09-18 14:49:19 +10:00
Hideki Miyazaki
7735ea0ff3
fix rx build failure
2023-09-16 11:48:49 +09:00
JacobBarthelmeh
1f2ddb7554
Merge pull request #6778 from danielinux/writeable_pkcs11_tokens
...
Add compile-time option WOLFSSL_PKCS11_RW_TOKENS
2023-09-15 11:46:03 -06:00
JacobBarthelmeh
5654691f05
Merge pull request #6775 from kareem-wolfssl/zd16652
...
Add a build flag ASN_TEMPLATE_SKIP_ISCA_CHECK to optionally skip the isCa != false check.
2023-09-15 11:43:04 -06:00
Daniele Lacamera
ca56b79209
Add compile-time option WOLFSSL_PKCS11_RW_TOKENS
...
By default, wolfcrypt PKCS11 interface accesses tokens in read-only
mode. In some cases, we might want to build the client with write
permissions, i.e. when initializing tokens via C_InitToken().
The WOLFSSL_PKCS11_RW_TOKENS option, if present, allows write access to
PKCS11 tokens.
2023-09-15 15:18:11 +02:00
Hideki Miyazaki
5e97b9fde8
addressed review comments
2023-09-15 13:22:35 +09:00
Sean Parkinson
e9f1489997
SP ECC: x64 minor speed improvement
...
ARM32/Thumb2: for safer code, do two reductions in mont triple after doing double part.
2023-09-15 09:48:32 +10:00
Kareem
8e40130003
Add a build flag ASN_TEMPLATE_SKIP_ISCA_CHECK to optionally skip the isCa != false check.
2023-09-14 15:44:47 -07:00
JacobBarthelmeh
7d85e390a9
Merge pull request #6769 from cconlon/pkcs7ContentType
...
Support PKCS#7 definition for ContentType content ANY
2023-09-14 15:44:35 -06:00
Sean Parkinson
6a25cdeb28
SP: WOLFSSL_SP_ARM_ARCH to WOLFSSL_ARM_ARCH and fix SAKKE on Thumb2/ARM32
...
WOLFSSL_SP_ARM_ARCH no longer used.
Using WOLFSSL_ARM_ARCH instead.
Change umaal check to only available with WOLFSSL_ARM_ARCH > 6.
SAKKE mont_reduce with umaal not using correct registers at end.
2023-09-14 13:04:49 +10:00
JacobBarthelmeh
ba03677569
Merge pull request #6770 from SparkiDev/sp_asm_improvements_1
...
SP ASM: improve performance
2023-09-13 16:01:03 -06:00