gojimmypi
40c52bd844
Espressif updates. Kconfig, WOLFSSL_VIS_FOR_TESTS, ESP32P4
2025-04-06 16:01:35 +02:00
JacobBarthelmeh
3ff4e5e303
Merge pull request #8606 from mgrojo/feature/alire-usability
...
Ada: preparation for Alire index and fixes detected by GNATprove
2025-04-04 11:07:29 -06:00
Daniel Pouzzner
10a1126624
Merge pull request #8635 from SparkiDev/asm_thumb2_fix
...
AES Thumb2 ASM: fix td4 variable declarations
2025-04-04 11:13:50 -05:00
JacobBarthelmeh
b7af89acdb
Merge pull request #8619 from SparkiDev/mlkem_bigendian
...
ML-KEM/Kyber: fix for big-endian
2025-04-04 09:39:40 -06:00
JacobBarthelmeh
97d86b873d
Merge pull request #8628 from douzzer/20250402-WOLFSSL_TEST_API
...
20250402-WOLFSSL_TEST_API
2025-04-04 09:37:56 -06:00
Sean Parkinson
827516c040
Merge pull request #8636 from douzzer/20250403-linuxkm-lkcapi-fixes
...
20250403-linuxkm-lkcapi-fixes
2025-04-04 15:45:34 +10:00
Daniel Pouzzner
2c001ccec1
linuxkm/lkcapi_glue.c: in km_AesGet(), only null aes_copy->streamData in
...
WOLFSSL_AESGCM_STREAM builds, and in km_AesFree(), remove ad hoc zeroization of
(*aes)->streamData gated on FIPS_VERSION3_LT(6,0,0) because it doesn't include
WOLFSSL_AESGCM_STREAM.
2025-04-03 21:34:11 -05:00
Daniel Pouzzner
96118b416d
WOLFSSL_TEST_VIS: improved naming scheme based on peer review:
...
WOLFSSL_TEST_API->WOLFSSL_TEST_VIS,
WOLFSSL_ALLOW_TEST_APIS->WOLFSSL_VIS_FOR_TESTS,
WOLFSSL_LOCALIZE_TEST_APIS->WOLFSSL_PRIVATE_TEST_VIS.
support message argument to WC_DEPRECATED() on targets that support it
add MSVC support for WC_DEPRECATED().
2025-04-03 19:29:29 -05:00
Daniel Pouzzner
cc223d1904
tests/api.c: in test_wolfSSL_TXT_DB(), fix -Wpointer-to-int-cast detected by building --host=x86_64-w64-mingw32.
2025-04-03 19:29:29 -05:00
Daniel Pouzzner
87e63a0f21
wolfssl/wolfcrypt/wc_port.h: if WOLFSSL_ZEPHYR, don't activate WC_DEPRECATED (compat issues).
2025-04-03 19:29:29 -05:00
Daniel Pouzzner
ce73c1dfd1
Add WC_DEPRECATED, WOLFSSL_TEST_API, WOLFSSL_ALLOW_TEST_APIS, and WOLFSSL_LOCALIZE_TEST_APIS, and use them to control export and usability of internal functions needed by unit tests.
2025-04-03 19:29:29 -05:00
Sean Parkinson
0e8d3ad3d9
AES Thumb2 ASM: fix td4 variable declarations
...
td4 is an array of bytes and the type was wrong.
2025-04-04 09:47:59 +10:00
JacobBarthelmeh
47ed447987
Merge pull request #8632 from douzzer/20250403-fixes
...
20250403-fixes
2025-04-03 17:26:40 -06:00
Sean Parkinson
151b9f0e74
Merge pull request #8633 from JacobBarthelmeh/compile
...
do sanity check for -Wa,-mbranches-within-32B-boundaries use
2025-04-04 09:19:48 +10:00
Sean Parkinson
4f87a8980f
ML-KEM/Kyber: fix for big-endian
...
Don't pull apart the nibbles when big-endian in reject uniform C code.
2025-04-04 09:04:05 +10:00
JacobBarthelmeh
f6894a3949
add compileharden flag
2025-04-03 15:05:24 -06:00
JacobBarthelmeh
c4fcd5fd54
do sanity check that the -Wa,-mbranches-within-32B-boundaries is supported for cases where CC=gcc is really clang
2025-04-03 13:58:43 -06:00
Daniel Pouzzner
b5d999779d
wolfcrypt/src/port/arm/thumb2-aes-asm_c.c: fix a pair of -Wpointer-to-int-casts in AES_ECB_decrypt() and AES_CBC_decrypt().
2025-04-03 14:30:22 -05:00
Daniel Pouzzner
87aa6ec977
wolfcrypt/src/wc_mlkem_poly.c: move mlkem_ntt_add_to() implementation to resolve gating inconsistency (fixes armasm on arm32).
2025-04-03 14:30:22 -05:00
Daniel Pouzzner
971dafb1c2
configure.ac: add v5-kcapi to FIPS version map, same as v5-dev, but version 5.3.0 (as v5-dev was before 9d931d45de).
2025-04-03 14:30:22 -05:00
Daniel Pouzzner
a2eddc889f
tests/api.c: fix double-free()s in test_wolfSSL_FPKI().
2025-04-03 14:30:22 -05:00
JacobBarthelmeh
5ecacfd8eb
Merge pull request #8577 from SparkiDev/x64-branch-32b
...
Intel x86_64, gcc, icc: put branches on 32 byte boundary
2025-04-03 10:53:46 -06:00
JacobBarthelmeh
50ef56ab7a
Merge pull request #8630 from kojiws/kojiws/more_strict_key_format_check
...
Detect unknown key format on ProcessBufferTryDecode()
2025-04-03 10:31:16 -06:00
JacobBarthelmeh
05ac52085d
Merge pull request #8618 from miyazakh/renesas_csplus
...
Fix Renesas cs+ example failure
2025-04-03 10:02:00 -06:00
Koji Takeda
71ebad1fc7
Add test
2025-04-03 22:20:55 +09:00
Koji Takeda
2f01c9d715
Detect unknown key format
2025-04-03 18:36:05 +09:00
Sean Parkinson
c29fba5b7e
Merge pull request #8614 from douzzer/20250317-linuxkm-lkcapi-aes-ctr-ofb-ecb
...
20250317-linuxkm-lkcapi-aes-ctr-ofb-ecb
2025-04-03 10:45:04 +10:00
Sean Parkinson
2210ec8839
Merge pull request #8617 from douzzer/20250401-Base64_Decode_nonCT
...
20250401-Base64_Decode_nonCT
2025-04-03 10:41:08 +10:00
David Garske
ca371b05a5
Merge pull request #8629 from douzzer/20250402-configure-copyright-year
...
20250402-configure-copyright-year
2025-04-02 17:38:00 -07:00
Daniel Pouzzner
3e87c4465c
update copyright year in configure.ac.
2025-04-02 18:51:28 -05:00
Hideki Miyazaki
aef224d53e
fix cs+ failure
2025-04-03 07:57:42 +09:00
Daniel Pouzzner
13c73a9691
linuxkm/lkcapi_glue.c: add LINUXKM_LKCAPI_NEED_AES_COMMON_FUNCS and
...
LINUXKM_LKCAPI_NEED_AES_SKCIPHER_COMMON_FUNCS helper macros (peer review
suggestion).
wolfcrypt/src/aes.c: add lengthy comment in software wc_AesSetKeyLocal()
explaining the dynamics of aes->use_aesni (peer review suggestion), and in the
!haveAESNI && WC_C_DYNAMIC_FALLBACK case, return with immediate success rather
than following through to the redundant AesSetKey_C().
2025-04-02 17:30:19 -05:00
Daniel Pouzzner
e0a74420f1
wolfcrypt/src/coding.c: restore support for BASE64_NO_TABLE builds.
2025-04-02 17:14:09 -05:00
Daniel Pouzzner
140e18c063
undo unnecessary change to .github/workflows/zephyr.yml.
2025-04-02 17:08:20 -05:00
Daniel Pouzzner
c2b486ce53
fix some misindentation in wolfcrypt/src/coding.c.
...
force lower CMAKE_POLICY_VERSION_MINIMUM to try to work around obsolete cmake config syntax in several OSP workflows.
2025-04-02 17:08:20 -05:00
Daniel Pouzzner
51c6848340
wolfcrypt/src/coding.c, wolfssl/wolfcrypt/coding.h, wolfcrypt/src/asn.c,
...
wolfcrypt/test/test.c: refactor Base64_Decode() with separate always-CT
Base64_Decode() and never-CT Base64_Decode_nonCT(), and use the latter only to
decode known-public PEM objects, otherwise use always-CT Base64_Decode().
2025-04-02 17:08:20 -05:00
Daniel Pouzzner
8705d28d48
wolfcrypt/src/aes.c: in wc_AesSetKeyLocal(), rework support for WC_FLAG_DONT_USE_AESNI (fixes WC_C_DYNAMIC_FALLBACK).
...
wolfssl/wolfcrypt/settings.h: in WOLFSSL_LINUXKM section, #ifdef LINUXKM_LKCAPI_REGISTER, #define WOLFSSL_TEST_SUBROUTINE to nothing, and #define WC_TEST_EXPORT_SUBTESTS.
linuxkm/lkcapi_glue.c:
* add check_skcipher_driver_masking() and check_aead_driver_masking(),
* use _masking() checks in all linuxkm_test_*().
* add !WOLFSSL_AESGCM_STREAM implementation of linuxkm_test_aesgcm().
* add implementations of linuxkm_test_aesctr(), linuxkm_test_aesofb(), and linuxkm_test_aesecb()
* remove incomplete+disabled AES-CCM shim implementation.
linuxkm/module_hooks.c: pull in wolfcrypt/test/test.h if LINUXKM_LKCAPI_REGISTER.
linuxkm/Makefile: build wolfcrypt/test/test.o if ENABLED_LINUXKM_LKCAPI_REGISTER.
Makefile.am: add ENABLED_LINUXKM_LKCAPI_REGISTER to exports in BUILD_LINUXKM section.
configure.ac: add AC_SUBST([ENABLED_LINUXKM_LKCAPI_REGISTER]); in ENABLED_LINUXKM_DEFAULTS set up, remove `-DWOLFSSL_TEST_SUBROUTINE=static` from AM_CFLAGS adds; fix whitespace.
.wolfssl_known_macro_extras: add WC_WANT_FLAG_DONT_USE_AESNI.
wolfcrypt/test/test.c: add `|| defined(WC_TEST_EXPORT_SUBTESTS)` to outermost gate, add wc_test_ prefix to render_error_message() and export it,
wolfcrypt/test/test.h: add prototype for wc_test_render_error_message(), and #ifdef WC_TEST_EXPORT_SUBTESTS, add prototypes for all the subtests.
2025-04-02 17:00:48 -05:00
Daniel Pouzzner
8092ff915c
linuxkm/lkcapi_glue.c: bring in wolfcrypt/src/misc.c for ForceZero if FIPS_VERSION3_LT(6,0,0).
2025-04-02 17:00:48 -05:00
Daniel Pouzzner
3c16722538
wolfcrypt/src/aes.c and wolfssl/wolfcrypt/aes.h: add support for WC_FLAG_DONT_USE_AESNI in wc_AesSetKeyLocal(); add support for USE_INTEL_SPEEDUP_FOR_AES.
...
linuxkm/lkcapi_glue.c: finish implementation of WC_LINUXKM_C_FALLBACK_IN_SHIMS and add TEST_WC_LINUXKM_C_FALLBACK_IN_SHIMS.
use "WC_C_DYNAMIC_FALLBACK" consistently (remove/replace uses of "WC_AES_C_DYNAMIC_FALLBACK").
2025-04-02 17:00:48 -05:00
Daniel Pouzzner
6d92dae632
configure.ac: add support for --enable-aesni-with-avx/USE_INTEL_SPEEDUP_FOR_AES (AESNI+AVX, but only for AES modes).
...
linuxkm/lkcapi_glue.c: implement WC_LINUXKM_C_FALLBACK_IN_SHIMS, km_AesGet(), and km_AesFree().
src/include.am: add missing gates for AES-GCM and AES-XTS asm.
wolfcrypt/src/aes_xts_asm.S and wolfssl/wolfcrypt/sp_int.h: don't redefine HAVE_INTEL_AVX2.
2025-04-02 17:00:48 -05:00
Daniel Pouzzner
9d931d45de
LKCAPI checkpoint (all AES except CCM working).
2025-04-02 17:00:48 -05:00
JacobBarthelmeh
9bcb3f71d0
Merge pull request #8624 from douzzer/20250401-AEAD-WARN_UNUSED_RESULT
...
20250401-AEAD-WARN_UNUSED_RESULT
2025-04-02 15:08:33 -06:00
Daniel Pouzzner
91e9e8f65f
update documentation for AEAD decrypt methods, specifically noting that nonzero retval means output data is undefined, and noting requirement to zeroize the output data unconditionally.
2025-04-02 13:36:59 -05:00
JacobBarthelmeh
a3d0ffb1ed
Merge pull request #8622 from SparkiDev/kyber_improv_3
...
ML-KEM/Kyber: minor improvements
2025-04-02 09:56:32 -06:00
JacobBarthelmeh
0a4599133c
Merge pull request #8599 from kareem-wolfssl/zd19563
...
Add support for DoD certificate policy OIDs.
2025-04-02 09:44:25 -06:00
Daniel Pouzzner
b8ece68b17
add WARN_UNUSED_RESULT to AEAD verify methods.
2025-04-02 01:15:57 -05:00
Sean Parkinson
8a9e125756
ML-KEM/Kyber: minor improvements
...
Minor improvement to SHA-3 x64 code.
Minor improvement to performance of ML-KEM/Kyber x64 code.
Minor improvement to performance of C code.
2025-04-02 13:10:44 +10:00
David Garske
dcdaeabc40
Merge pull request #8620 from lealem47/actions_cmake
...
Set the CMake compiler version for failing gh actions
2025-04-01 18:46:59 -07:00
Lealem Amedie
5083b41d1b
Set the CMake compiler version for failin gh actions
2025-04-01 14:11:15 -10:00
Sean Parkinson
c5dadd6f8d
Merge pull request #8600 from JacobBarthelmeh/microchip
...
random implementation does not require PIC32 build macro
2025-04-01 08:36:45 +10:00