mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Test all cipher algorithm
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
@@ -501,12 +501,8 @@ class DomainData:
|
|||||||
for alg in cipher_algs
|
for alg in cipher_algs
|
||||||
if key_type.can_do(alg)}
|
if key_type.can_do(alg)}
|
||||||
|
|
||||||
# Get block cipher chaining modes. Do not select ECB, it is always enabled.
|
# Get cipher modes
|
||||||
cipher_modes_filter = re.compile(r'PSA_WANT_ALG_(?!ECB|STREAM|CCM)\w+\Z')
|
cipher_chaining_symbols = {algs[cipher_alg] for cipher_alg in cipher_algs}
|
||||||
cipher_chaining_symbols = {symbol
|
|
||||||
for alg, symbol in algs.items()
|
|
||||||
if alg.can_do(crypto_knowledge.AlgorithmCategory.CIPHER)
|
|
||||||
if re.match(cipher_modes_filter, symbol)}
|
|
||||||
|
|
||||||
# Find block padding mode enabling macros by name.
|
# Find block padding mode enabling macros by name.
|
||||||
cipher_padding_symbols = self.config_symbols_matching(r'MBEDTLS_CIPHER_PADDING_\w+\Z')
|
cipher_padding_symbols = self.config_symbols_matching(r'MBEDTLS_CIPHER_PADDING_\w+\Z')
|
||||||
|
Reference in New Issue
Block a user