mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Add (placeholder) CCM module
This commit is contained in:
@@ -43,6 +43,7 @@ add_test_suite(arc4)
|
||||
add_test_suite(base64)
|
||||
add_test_suite(blowfish)
|
||||
add_test_suite(camellia)
|
||||
add_test_suite(ccm)
|
||||
add_test_suite(cipher cipher.aes)
|
||||
add_test_suite(cipher cipher.arc4)
|
||||
add_test_suite(cipher cipher.blowfish)
|
||||
|
@@ -34,7 +34,8 @@ APPS = test_suite_aes.ecb test_suite_aes.cbc \
|
||||
test_suite_aes.cfb test_suite_aes.rest \
|
||||
test_suite_arc4 \
|
||||
test_suite_base64 test_suite_blowfish \
|
||||
test_suite_camellia test_suite_cipher.aes \
|
||||
test_suite_camellia test_suite_ccm \
|
||||
test_suite_cipher.aes \
|
||||
test_suite_cipher.arc4 test_suite_cipher.gcm \
|
||||
test_suite_cipher.blowfish \
|
||||
test_suite_cipher.camellia \
|
||||
@@ -198,6 +199,10 @@ test_suite_camellia: test_suite_camellia.c $(DEP)
|
||||
echo " CC $@.c"
|
||||
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
|
||||
|
||||
test_suite_ccm: test_suite_ccm.c $(DEP)
|
||||
echo " CC $@.c"
|
||||
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
|
||||
|
||||
test_suite_cipher.aes: test_suite_cipher.aes.c $(DEP)
|
||||
echo " CC $@.c"
|
||||
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
|
||||
|
2
tests/suites/test_suite_ccm.data
Normal file
2
tests/suites/test_suite_ccm.data
Normal file
@@ -0,0 +1,2 @@
|
||||
CCM self test
|
||||
ccm_self_test:
|
15
tests/suites/test_suite_ccm.function
Normal file
15
tests/suites/test_suite_ccm.function
Normal file
@@ -0,0 +1,15 @@
|
||||
/* BEGIN_HEADER */
|
||||
#include <polarssl/ccm.h>
|
||||
/* END_HEADER */
|
||||
|
||||
/* BEGIN_DEPENDENCIES
|
||||
* depends_on:POLARSSL_CCM_C
|
||||
* END_DEPENDENCIES
|
||||
*/
|
||||
|
||||
/* BEGIN_CASE depends_on:POLARSSL_SELF_TEST:POLARSSL_AES_C */
|
||||
void ccm_self_test( )
|
||||
{
|
||||
TEST_ASSERT( ccm_self_test( 0 ) == 0 );
|
||||
}
|
||||
/* END_CASE */
|
Reference in New Issue
Block a user