@@ -1734,53 +1734,6 @@ component_test_psa_crypto_config_reference_hmac () {
1734
1734
make test
1735
1735
}
1736
1736
1737
- component_test_psa_crypto_config_accel_des () {
1738
- msg " test: accelerated DES"
1739
-
1740
- # Albeit this components aims at accelerating DES which should only support
1741
- # CBC and ECB modes, we need to accelerate more than that otherwise DES_C
1742
- # would automatically be re-enabled by "config_adjust_legacy_from_psa.c"
1743
- loc_accel_list=" ALG_ECB_NO_PADDING ALG_CBC_NO_PADDING ALG_CBC_PKCS7 \
1744
- ALG_CTR ALG_CFB ALG_OFB ALG_XTS ALG_CMAC \
1745
- KEY_TYPE_DES"
1746
-
1747
- # Note: we cannot accelerate all ciphers' key types otherwise we would also
1748
- # have to either disable CCM/GCM or accelerate them, but that's out of scope
1749
- # of this component. This limitation will be addressed by #8598.
1750
-
1751
- # Configure
1752
- # ---------
1753
-
1754
- # Start from the full config
1755
- helper_libtestdriver1_adjust_config " full"
1756
-
1757
- # Disable the things that are being accelerated
1758
- scripts/config.py unset MBEDTLS_CIPHER_MODE_CBC
1759
- scripts/config.py unset MBEDTLS_CIPHER_PADDING_PKCS7
1760
- scripts/config.py unset MBEDTLS_CIPHER_MODE_CTR
1761
- scripts/config.py unset MBEDTLS_CIPHER_MODE_CFB
1762
- scripts/config.py unset MBEDTLS_CIPHER_MODE_OFB
1763
- scripts/config.py unset MBEDTLS_CIPHER_MODE_XTS
1764
- scripts/config.py unset MBEDTLS_DES_C
1765
- scripts/config.py unset MBEDTLS_CMAC_C
1766
-
1767
- # Build
1768
- # -----
1769
-
1770
- helper_libtestdriver1_make_drivers " $loc_accel_list "
1771
-
1772
- helper_libtestdriver1_make_main " $loc_accel_list "
1773
-
1774
- # Make sure this was not re-enabled by accident (additive config)
1775
- not grep mbedtls_des ${BUILTIN_SRC_PATH} /des.o
1776
-
1777
- # Run the tests
1778
- # -------------
1779
-
1780
- msg " test: accelerated DES"
1781
- make test
1782
- }
1783
-
1784
1737
component_test_psa_crypto_config_accel_aead () {
1785
1738
msg " test: accelerated AEAD"
1786
1739
@@ -1841,7 +1794,7 @@ component_test_psa_crypto_config_accel_cipher_aead_cmac () {
1841
1794
loc_accel_list=" ALG_ECB_NO_PADDING ALG_CBC_NO_PADDING ALG_CBC_PKCS7 ALG_CTR ALG_CFB \
1842
1795
ALG_OFB ALG_XTS ALG_STREAM_CIPHER ALG_CCM_STAR_NO_TAG \
1843
1796
ALG_GCM ALG_CCM ALG_CHACHA20_POLY1305 ALG_CMAC \
1844
- KEY_TYPE_DES KEY_TYPE_AES KEY_TYPE_ARIA KEY_TYPE_CHACHA20 KEY_TYPE_CAMELLIA"
1797
+ KEY_TYPE_AES KEY_TYPE_ARIA KEY_TYPE_CHACHA20 KEY_TYPE_CAMELLIA"
1845
1798
1846
1799
# Configure
1847
1800
# ---------
@@ -1865,6 +1818,10 @@ component_test_psa_crypto_config_accel_cipher_aead_cmac () {
1865
1818
scripts/config.py unset MBEDTLS_CHACHA20_C
1866
1819
scripts/config.py unset MBEDTLS_CAMELLIA_C
1867
1820
1821
+ # Disable DES, if it still exists.
1822
+ # This can be removed once we remove DES from the library.
1823
+ scripts/config.py unset PSA_WANT_KEY_TYPE_DES
1824
+
1868
1825
# Disable CIPHER_C entirely as all ciphers/AEADs are accelerated and PSA
1869
1826
# does not depend on it.
1870
1827
scripts/config.py unset MBEDTLS_CIPHER_C
@@ -1878,7 +1835,6 @@ component_test_psa_crypto_config_accel_cipher_aead_cmac () {
1878
1835
1879
1836
# Make sure this was not re-enabled by accident (additive config)
1880
1837
not grep mbedtls_cipher ${BUILTIN_SRC_PATH} /cipher.o
1881
- not grep mbedtls_des ${BUILTIN_SRC_PATH} /des.o
1882
1838
not grep mbedtls_aes ${BUILTIN_SRC_PATH} /aes.o
1883
1839
not grep mbedtls_aria ${BUILTIN_SRC_PATH} /aria.o
1884
1840
not grep mbedtls_camellia ${BUILTIN_SRC_PATH} /camellia.o
@@ -1904,6 +1860,10 @@ component_test_psa_crypto_config_reference_cipher_aead_cmac () {
1904
1860
msg " build: full config with non-accelerated cipher inc. AEAD and CMAC"
1905
1861
common_psa_crypto_config_accel_cipher_aead_cmac
1906
1862
1863
+ # Disable DES, if it still exists.
1864
+ # This can be removed once we remove DES from the library.
1865
+ scripts/config.py unset PSA_WANT_KEY_TYPE_DES
1866
+
1907
1867
make
1908
1868
1909
1869
msg " test: full config with non-accelerated cipher inc. AEAD and CMAC"
@@ -2168,7 +2128,7 @@ component_build_aes_variations () {
2168
2128
cd " $MBEDTLS_ROOT_DIR "
2169
2129
msg " build: aes.o for all combinations of relevant config options + BLOCK_CIPHER_NO_DECRYPT"
2170
2130
2171
- # MBEDTLS_BLOCK_CIPHER_NO_DECRYPT is incompatible with ECB in PSA, CBC/XTS/NIST_KW/DES ,
2131
+ # MBEDTLS_BLOCK_CIPHER_NO_DECRYPT is incompatible with ECB in PSA, CBC/XTS/NIST_KW,
2172
2132
# manually set or unset those configurations to check
2173
2133
# MBEDTLS_BLOCK_CIPHER_NO_DECRYPT with various combinations in aes.o.
2174
2134
scripts/config.py set MBEDTLS_BLOCK_CIPHER_NO_DECRYPT
0 commit comments