1 /* 2 Copyright (c) 2021 Fraunhofer AISEC. See the COPYRIGHT 3 file at the top-level directory of this distribution. 4 5 Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 6 http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 7 <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 8 option. This file may not be copied, modified, or distributed 9 except according to those terms. 10 */ 11 #ifndef OSCORE_TESTS_H 12 #define OSCORE_TESTS_H 13 14 /*integration tests*/ 15 void t1_oscore_client_request_response(void); 16 void t3_oscore_client_request(void); 17 void t5_oscore_client_request(void); 18 void t2_oscore_server_request_response(void); 19 void t4_oscore_server_key_derivation(void); 20 void t6_oscore_server_key_derivation(void); 21 void t8_oscore_server_response_simple_ack(void); 22 void t9_oscore_client_server_observe(void); 23 void t10_oscore_client_server_after_reboot(void); 24 void t11_oscore_ssn_overflow_protection(void); 25 26 /*unit tests*/ 27 void t100_inner_outer_option_split__no_special_options(void); 28 void t101_inner_outer_option_split__with_observe_notification(void); 29 void t102_inner_outer_option_split__with_observe_registration(void); 30 void t103_oscore_pkg_generate__request_with_observe_registration(void); 31 void t104_oscore_pkg_generate__request_with_observe_notification(void); 32 void t105_inner_outer_option_split__too_many_options(void); 33 void t106_oscore_option_generate_no_piv(void); 34 35 void t200_options_serialize_deserialize(void); 36 void t201_coap_serialize_deserialize(void); 37 void t202_options_deserialize_corner_cases(void); 38 void t203_coap_get_message_type(void); 39 40 void t300_oscore_option_parser_no_piv(void); 41 void t301_oscore_option_parser_wrong_n(void); 42 void t302_oscore_option_parser_no_kid(void); 43 void t303_options_reorder(void); 44 45 void t400_is_class_e(void); 46 void t401_cache_echo_val(void); 47 void t402_echo_val_is_fresh(void); 48 void t403_uri_path_create(void); 49 void t404_get_observe_value(void); 50 51 void t500_oscore_context_init_corner_cases(void); 52 void t501_piv2ssn(void); 53 void t502_ssn2piv(void); 54 void t503_derive_corner_case(void); 55 void t504_context_freshness(void); 56 57 void t600_server_replay_init_test(void); 58 void t601_server_replay_reinit_test(void); 59 void t602_server_replay_check_at_start_test(void); 60 void t603_server_replay_check_in_progress_test(void); 61 void t604_server_replay_insert_zero_test(void); 62 void t605_server_replay_insert_test(void); 63 void t606_server_replay_standard_scenario_test(void); 64 65 void t700_interactions_init_test(void); 66 void t701_interactions_set_record_test(void); 67 void t702_interactions_get_record_test(void); 68 void t703_interactions_remove_record_test(void); 69 void t704_interactions_usecases_test(void); 70 71 #endif