Toyomasa Watarai
/
Mbed-example-WS-W27
Mbed Cloud example program for workshop in W27 2018.
Embed:
(wiki syntax)
Show/hide line numbers
pal_crypto_test_runner.c
00001 /* 00002 * Copyright (c) 2016 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #include "unity.h" 00018 #include "unity_fixture.h" 00019 00020 00021 // PAL Socket API tests 00022 TEST_GROUP_RUNNER(pal_crypto) 00023 { 00024 // AES cryptography 00025 RUN_TEST_CASE(pal_crypto, AES_CTR); 00026 RUN_TEST_CASE(pal_crypto, AES_ECB); 00027 RUN_TEST_CASE(pal_crypto, AES_CCM); 00028 00029 //Hashing using SHA256 00030 RUN_TEST_CASE(pal_crypto, SHA256); 00031 RUN_TEST_CASE(pal_crypto, md); 00032 00033 //Random Number Generation 00034 RUN_TEST_CASE(pal_crypto, CTR_DRBG); 00035 00036 //CMAC 00037 RUN_TEST_CASE(pal_crypto, CMAC_one_shot); 00038 RUN_TEST_CASE(pal_crypto, CMAC_Iterative); 00039 00040 //MD HMAC SHA256 00041 RUN_TEST_CASE(pal_crypto, HMAC_SHA256_one_shot); 00042 00043 //Certificate 00044 RUN_TEST_CASE(pal_crypto, ASN1); 00045 RUN_TEST_CASE(pal_crypto, X509_Parse); 00046 RUN_TEST_CASE(pal_crypto, X509_ReadAttributes); 00047 RUN_TEST_CASE(pal_crypto, X509_Verify); 00048 00049 //Elliptic Curves 00050 RUN_TEST_CASE(pal_crypto, ECKey_checkKey); 00051 RUN_TEST_CASE(pal_crypto, ECKey_parseKey); 00052 #if 0 00053 //Not required for R1.2 00054 RUN_TEST_CASE(pal_crypto, CSR); 00055 #endif //0 00056 }
Generated on Tue Jul 12 2022 16:22:09 by 1.7.2