Commit 46c17941 authored by Paul Bakker's avatar Paul Bakker
Browse files

- Split cipher test suite into three different sets

 - Adapted test source code generation accordingly
parent 26b41a83
......@@ -6,11 +6,15 @@ if(USE_PKCS11_HELPER_LIBRARY)
set(libs ${libs} pkcs11-helper)
endif(USE_PKCS11_HELPER_LIBRARY)
function(add_test_suite suite_name)
function(add_test_suite suite_name data_name)
if(!data_name)
set(data_name ${suite_name})
endif()
add_custom_command(
OUTPUT test_suite_${suite_name}.c
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/generate_code.pl ${CMAKE_CURRENT_SOURCE_DIR}/suites test_suite_${suite_name}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/generate_code.pl polarssl fct.h suites/helpers.function suites/test_suite_${suite_name}.function suites/test_suite_${suite_name}.data
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/generate_code.pl ${CMAKE_CURRENT_SOURCE_DIR}/suites test_suite_${suite_name} test_suite_${data_name}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/generate_code.pl polarssl fct.h suites/helpers.function suites/test_suite_${suite_name}.function suites/test_suite_${data_name}.data
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
......@@ -25,7 +29,9 @@ add_test_suite(aes)
add_test_suite(arc4)
add_test_suite(base64)
add_test_suite(camellia)
add_test_suite(cipher)
add_test_suite(cipher cipher.aes)
add_test_suite(cipher cipher.camellia)
add_test_suite(cipher cipher.des)
add_test_suite(debug)
add_test_suite(des)
add_test_suite(dhm)
......
......@@ -11,7 +11,8 @@ LDFLAGS += -L../library -lpolarssl $(SYS_LDFLAGS)
APPS = test_suite_aes test_suite_arc4 \
test_suite_base64 test_suite_camellia \
test_suite_cipher test_suite_debug \
test_suite_cipher.aes test_suite_cipher.camellia \
test_suite_cipher.des test_suite_debug \
test_suite_des test_suite_dhm \
test_suite_error test_suite_hmac_shax \
test_suite_md test_suite_mdx \
......@@ -24,9 +25,21 @@ APPS = test_suite_aes test_suite_arc4 \
all: $(APPS)
test_suite_cipher.aes.c : suites/test_suite_cipher.function suites/test_suite_cipher.aes.data scripts/generate_code.pl suites/helpers.function
echo " Generate $@"
scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.aes
test_suite_cipher.camellia.c : suites/test_suite_cipher.function suites/test_suite_cipher.camellia.data scripts/generate_code.pl suites/helpers.function
echo " Generate $@"
scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.camellia
test_suite_cipher.des.c : suites/test_suite_cipher.function suites/test_suite_cipher.des.data scripts/generate_code.pl suites/helpers.function
echo " Generate $@"
scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.des
%.c : suites/%.function suites/%.data scripts/generate_code.pl suites/helpers.function
echo " Generate $@"
scripts/generate_code.pl suites $*
scripts/generate_code.pl suites $* $*
test_suite_aes: test_suite_aes.c ../library/libpolarssl.a
echo " CC $@.c"
......@@ -44,7 +57,15 @@ test_suite_camellia: test_suite_camellia.c ../library/libpolarssl.a
echo " CC $@.c"
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
test_suite_cipher: test_suite_cipher.c ../library/libpolarssl.a
test_suite_cipher.aes: test_suite_cipher.aes.c ../library/libpolarssl.a
echo " CC $@.c"
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
test_suite_cipher.camellia: test_suite_cipher.camellia.c ../library/libpolarssl.a
echo " CC $@.c"
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
test_suite_cipher.des: test_suite_cipher.des.c ../library/libpolarssl.a
echo " CC $@.c"
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
......
......@@ -5,10 +5,11 @@ use strict;
my $suite_dir = shift or die "Missing suite directory";
my $suite_name = shift or die "Missing suite name";
my $test_file = $suite_name.".c";
my $data_name = shift or die "Missing data name";
my $test_file = $data_name.".c";
my $test_helper_file = $suite_dir."/helpers.function";
my $test_case_file = $suite_dir."/".$suite_name.".function";
my $test_data_file = $suite_dir."/".$suite_name.".data";
my $test_data_file = $suite_dir."/".$data_name.".data";
open(TEST_DATA, "$test_data_file") or die "Opening test cases '$test_data_file': $!";
......
Cipher Selftest
depends_on:POLARSSL_SELF_TEST
cipher_selftest:
Decrypt empty buffer
dec_empty_buf:
AES Encrypt and decrypt 0 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:0
AES Encrypt and decrypt 1 byte
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:1
AES Encrypt and decrypt 2 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:2
AES Encrypt and decrypt 7 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:7
AES Encrypt and decrypt 8 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:8
AES Encrypt and decrypt 9 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:9
AES Encrypt and decrypt 15 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:15
AES Encrypt and decrypt 16 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:16
AES Encrypt and decrypt 17 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:17
AES Encrypt and decrypt 31 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:31
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:32
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:33
AES Encrypt and decrypt 47 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:47
AES Encrypt and decrypt 48 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:48
AES Encrypt and decrypt 49 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_128_CBC:AES-128-CBC:128:49
AES Encrypt and decrypt 0 bytes in multiple parts
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:0:0:
AES Encrypt and decrypt 1 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:1:0:
AES Encrypt and decrypt 1 bytes in multiple parts 2
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:0:1:
AES Encrypt and decrypt 16 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:16:0:
AES Encrypt and decrypt 16 bytes in multiple parts 2
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:0:16:
AES Encrypt and decrypt 16 bytes in multiple parts 3
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:1:15:
AES Encrypt and decrypt 16 bytes in multiple parts 4
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:15:1:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:15:7:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:16:6:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:17:6:
AES Encrypt and decrypt 32 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CBC:128:16:16:
AES Encrypt and decrypt 0 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:0
AES Encrypt and decrypt 1 byte
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:1
AES Encrypt and decrypt 2 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:2
AES Encrypt and decrypt 7 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:7
AES Encrypt and decrypt 8 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:8
AES Encrypt and decrypt 9 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:9
AES Encrypt and decrypt 15 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:15
AES Encrypt and decrypt 16 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:16
AES Encrypt and decrypt 17 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:17
AES Encrypt and decrypt 31 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:31
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:32
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:33
AES Encrypt and decrypt 47 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:47
AES Encrypt and decrypt 48 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:48
AES Encrypt and decrypt 49 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf:POLARSSL_CIPHER_AES_128_CFB128:AES-128-CFB128:128:49
AES Encrypt and decrypt 0 bytes in multiple parts
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:0:0:
AES Encrypt and decrypt 1 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:1:0:
AES Encrypt and decrypt 1 bytes in multiple parts 2
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:0:1:
AES Encrypt and decrypt 16 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:16:0:
AES Encrypt and decrypt 16 bytes in multiple parts 2
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:0:16:
AES Encrypt and decrypt 16 bytes in multiple parts 3
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:1:15:
AES Encrypt and decrypt 16 bytes in multiple parts 4
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:15:1:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:15:7:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:16:6:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:17:6:
AES Encrypt and decrypt 32 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CFB128:128:16:16:
AES Encrypt and decrypt 0 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:0
AES Encrypt and decrypt 1 byte
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:1
AES Encrypt and decrypt 2 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:2
AES Encrypt and decrypt 7 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:7
AES Encrypt and decrypt 8 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:8
AES Encrypt and decrypt 9 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:9
AES Encrypt and decrypt 15 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:15
AES Encrypt and decrypt 16 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:16
AES Encrypt and decrypt 17 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:17
AES Encrypt and decrypt 31 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:31
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:32
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:33
AES Encrypt and decrypt 47 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:47
AES Encrypt and decrypt 48 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:48
AES Encrypt and decrypt 49 bytes
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf:POLARSSL_CIPHER_AES_128_CTR:AES-128-CTR:128:49
AES Encrypt and decrypt 0 bytes in multiple parts
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:0:0:
AES Encrypt and decrypt 1 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:1:0:
AES Encrypt and decrypt 1 bytes in multiple parts 2
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:0:1:
AES Encrypt and decrypt 16 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:16:0:
AES Encrypt and decrypt 16 bytes in multiple parts 2
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:0:16:
AES Encrypt and decrypt 16 bytes in multiple parts 3
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:1:15:
AES Encrypt and decrypt 16 bytes in multiple parts 4
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:15:1:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:15:7:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:16:6:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:17:6:
AES Encrypt and decrypt 32 bytes in multiple parts 1
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_128_CTR:128:16:16:
AES Encrypt and decrypt 0 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:0
AES Encrypt and decrypt 1 byte
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:1
AES Encrypt and decrypt 2 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:2
AES Encrypt and decrypt 7 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:7
AES Encrypt and decrypt 8 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:8
AES Encrypt and decrypt 9 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:9
AES Encrypt and decrypt 15 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:15
AES Encrypt and decrypt 16 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:16
AES Encrypt and decrypt 17 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:17
AES Encrypt and decrypt 31 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:31
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:32
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:33
AES Encrypt and decrypt 47 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:47
AES Encrypt and decrypt 48 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:48
AES Encrypt and decrypt 49 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_192_CBC:AES-192-CBC:192:49
AES Encrypt and decrypt 0 bytes in multiple parts
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:0:0:
AES Encrypt and decrypt 1 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:1:0:
AES Encrypt and decrypt 1 bytes in multiple parts 2
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:0:1:
AES Encrypt and decrypt 16 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:16:0:
AES Encrypt and decrypt 16 bytes in multiple parts 2
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:0:16:
AES Encrypt and decrypt 16 bytes in multiple parts 3
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:1:15:
AES Encrypt and decrypt 16 bytes in multiple parts 4
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:15:1:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:15:7:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:16:6:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:17:6:
AES Encrypt and decrypt 32 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_192_CBC:192:16:16:
AES Encrypt and decrypt 0 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:0
AES Encrypt and decrypt 1 byte
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:1
AES Encrypt and decrypt 2 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:2
AES Encrypt and decrypt 7 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:7
AES Encrypt and decrypt 8 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:8
AES Encrypt and decrypt 9 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:9
AES Encrypt and decrypt 15 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:15
AES Encrypt and decrypt 16 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:16
AES Encrypt and decrypt 17 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:17
AES Encrypt and decrypt 31 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:31
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:32
AES Encrypt and decrypt 32 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:33
AES Encrypt and decrypt 47 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:47
AES Encrypt and decrypt 48 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:48
AES Encrypt and decrypt 49 bytes
depends_on:POLARSSL_AES_C
enc_dec_buf:POLARSSL_CIPHER_AES_256_CBC:AES-256-CBC:256:49
AES Encrypt and decrypt 0 bytes in multiple parts
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:0:0:
AES Encrypt and decrypt 1 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:1:0:
AES Encrypt and decrypt 1 bytes in multiple parts 2
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:0:1:
AES Encrypt and decrypt 16 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:16:0:
AES Encrypt and decrypt 16 bytes in multiple parts 2
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:0:16:
AES Encrypt and decrypt 16 bytes in multiple parts 3
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:1:15:
AES Encrypt and decrypt 16 bytes in multiple parts 4
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:15:1:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:15:7:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:16:6:
AES Encrypt and decrypt 22 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:17:6:
AES Encrypt and decrypt 32 bytes in multiple parts 1
depends_on:POLARSSL_AES_C
enc_dec_buf_multipart:POLARSSL_CIPHER_AES_256_CBC:256:16:16:
Cipher Selftest
depends_on:POLARSSL_SELF_TEST
cipher_selftest:
Decrypt empty buffer
dec_empty_buf:
DES Encrypt and decrypt 0 bytes
depends_on:POLARSSL_DES_C
enc_dec_buf:POLARSSL_CIPHER_DES_CBC:DES-CBC:56:0
DES Encrypt and decrypt 1 byte
depends_on:POLARSSL_DES_C
enc_dec_buf:POLARSSL_CIPHER_DES_CBC:DES-CBC:56:1