summaryrefslogtreecommitdiff
path: root/CryptoPkg/Library/MbedTlsLib
AgeCommit message (Collapse)AuthorFilesLines
2026-08-28CryptoPkg: Merge CryptoPkgMbedTls into CryptoPkg DSC fileLonghaox Lee1-2/+13
Merge CryptoPkgMbedTls into CryptoPkg DSC. Null instances for SlhDsa, MlDsa, EdDsa since mbebtls not support. Fixing build error for mbedtls BaseCryptLib. Signed-off-by: Longhaox Lee <longhaox.lee@intel.com>
2026-07-01CryptoPkg: Remove VS2015 specific compiler flagsMichael Kubacki2-17/+0
VS2015 support is being removed in edk2 as it is out of service. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2026-04-27CryptoPkg/Library/MbedTlsLib: Update mbedtls submodule to v3.6.6Richard Lyu1-0/+0
Update the mbedtls submodule from v3.6.5 to v3.6.6 to mitigate the CVEs CVE-2026-25833, CVE-2026-25834, CVE-2026-25835 CVE-2026-34874. Signed-off-by: Richard Lyu <richard.lyu@suse.com>
2026-01-15CryptoPkg: Add CLANGPDB AArch64 SupportOliver Smith-Denny2-2/+2
CryptoPkg needed various updates to support CLANGPDB AARCH64: - Scope a feature PCD to IA32/X64 only - Ensure that OpenSSL and MbedTls have the Windows defines unset so they don't try to build for Windows instead of UEFI Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-12-24CryptoPkg/Library/MbedTlsLib: Undefined _MSC_VER for GCC FamilyMichael D Kinney2-4/+4
Update GCC Family to undefined _MSC_VER to match settings used by other compilers. This addresses clang compatibility issues for host-based unit test builds. Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-11-24CryptoPkg: Override mbedtls_config headerLonghaox Lee1-1/+9
1.Defended MBEDTLS_PLATFORM_MS_TIME_ALT use alternative implement. 2.Defended MBEDTLS_TEST_SW_INET_PTON use software version INET_PTON, not depend on OS. REF: https://github.com/tianocore/edk2/issues/11605 Signed-off-by: Longhaox Lee <longhaox.lee@intel.com>
2025-11-24CryptoPkg: EDK2 code update for Mbedtls 3.6.5.Longhaox Lee4-284/+906
1. mbedtls_config.h header sync with 3.6.5 . 2. Implement mbedtls_ms_time() Get time in milliseconds. 3. Covert some CRT library to EDK Implement and CRT defined. 4. Added and remove file to sync. REF: https://github.com/tianocore/edk2/issues/11605 Signed-off-by: Longhaox Lee <longhaox.lee@intel.com>
2025-11-24CryptoPkg: Update mbedtls submodule for EDKIILonghaox Lee1-0/+0
Update mbedtls submodule from 3.3.0 to 3.6.5 in CryptoPkg. REF: https://github.com/tianocore/edk2/issues/11605 Signed-off-by: Longhaox Lee <longhaox.lee@intel.com>
2025-10-10CryptoPkg: Fix build of MbedTlsLibNate DeSimone2-2/+2
Fixes build failures caused by __USE_MINGW_ANSI_STDIO not being defined when building with CLANG. Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2025-09-26CryptoPkg: Drop ARM32 SupportOliver Smith-Denny2-14/+0
edk2 is dropping support for the ARM32 architecture. This commit removes ARM32 code from CryptoPkg. This also drops irrelevant VALID_ARCHITECTURES comments from infs that are not arch specific. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-07-03CryptoPkg: Disable the security risk ciphers.INDIA\kanagavels1-6/+6
REF:https://github.com/tianocore/edk2/issues/11040 Since the below mentioned ciphers has a security risks, Disable MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED MBEDTLS_SSL_RENEGOTIATION MBEDTLS_DHM_C Enable MBEDTLS_SSL_DTLS_ANTI_REPLAY MBEDTLS_SSL_DTLS_HELLO_VERIFY. Signed-off-by: Kanagavel S <kanagavels@ami.com>
2024-09-23CryptoPkg/MbedTls CLANGDWARF: Replace outdated CLANG3x referencesArd Biesheuvel2-4/+2
The CLANG35 and CLANG38 toolchain specifiers have been phased out, and replaced with CLANGDWARF. Update the MbedTls library definitions accordingly. While at it, switch to the gnu99 C dialect, which is a better match with GCC in C99 mode, which includes GCC specific GNU extensions. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2024-01-08CryptoPkg: fix gcc build fail for CryptoPkgMbedtlsHou, Wenxing1-1/+1
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4630 Enable MBEDTLS_NO_UDBL_DIVISION to fix GCC x64 build failure. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Yi Li <yi1.li@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Signed-off-by: Wenxing Hou <wenxing.hou@intel.com> Reviewed-by: Yi Li <yi1.li@intel.com>
2023-10-12CryptoPkg: Add all .inf files for BaseCryptLibMbedTlsWenxing Hou1-1/+1
Add .inf files and other support files. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4177 Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Yi Li <yi1.li@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Signed-off-by: Wenxing Hou <wenxing.hou@intel.com> Reviewed-by: Yi Li <yi1.li@intel.com>
2023-10-12CryptoPkg: Add mbedtls_config and MbedTlsLib.infWenxing Hou5-0/+4760
Add MbedTlsLib support. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4177 Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Yi Li <yi1.li@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Signed-off-by: Wenxing Hou <wenxing.hou@intel.com> Reviewed-by: Yi Li <yi1.li@intel.com>
2023-10-12CryptoPkg: Add mbedtls submodule for EDKIIWenxing Hou1-0/+0
Add mbedtls 3.3.0 as submodule in CryptoPkg. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4177 Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Yi Li <yi1.li@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Signed-off-by: Wenxing Hou <wenxing.hou@intel.com> Reviewed-by: Yi Li <yi1.li@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>