edhoc 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -0
- package/binding.gyp +13 -11
- package/dist/bindings.d.ts +5 -0
- package/dist/bindings.d.ts.map +1 -0
- package/dist/bindings.js +10 -0
- package/dist/crypto.d.ts +29 -0
- package/dist/crypto.d.ts.map +1 -0
- package/dist/crypto.js +205 -0
- package/dist/edhoc.d.ts +368 -0
- package/dist/edhoc.d.ts.map +1 -0
- package/dist/edhoc.js +76 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/x509credentials.d.ts +20 -0
- package/dist/x509credentials.d.ts.map +1 -0
- package/dist/x509credentials.js +140 -0
- package/external/libedhoc/backends/cbor/include/backend_cbor_bstr_type_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_bstr_type_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_bstr_type_types.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_ead_decode.h +2 -2
- package/external/libedhoc/backends/cbor/include/backend_cbor_ead_encode.h +2 -2
- package/external/libedhoc/backends/cbor/include/backend_cbor_edhoc_types.h +48 -43
- package/external/libedhoc/backends/cbor/include/backend_cbor_enc_structure_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_enc_structure_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_enc_structure_types.h +3 -3
- package/external/libedhoc/backends/cbor/include/backend_cbor_id_cred_x_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_id_cred_x_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_info_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_info_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_int_type_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_int_type_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_int_type_types.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_1_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_1_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_2_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_2_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_3_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_3_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_4_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_4_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_error_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_message_error_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_plaintext_2_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_plaintext_2_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_plaintext_3_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_plaintext_3_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_plaintext_4_decode.h +3 -3
- package/external/libedhoc/backends/cbor/include/backend_cbor_plaintext_4_encode.h +3 -3
- package/external/libedhoc/backends/cbor/include/backend_cbor_sig_structure_decode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_sig_structure_encode.h +1 -1
- package/external/libedhoc/backends/cbor/include/backend_cbor_sig_structure_types.h +4 -4
- package/external/libedhoc/backends/cbor/include/backend_cbor_x509_types.h +93 -83
- package/external/libedhoc/backends/cbor/src/backend_cbor_bstr_type_decode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_bstr_type_encode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_ead_decode.c +27 -32
- package/external/libedhoc/backends/cbor/src/backend_cbor_ead_encode.c +27 -32
- package/external/libedhoc/backends/cbor/src/backend_cbor_enc_structure_decode.c +14 -23
- package/external/libedhoc/backends/cbor/src/backend_cbor_enc_structure_encode.c +14 -23
- package/external/libedhoc/backends/cbor/src/backend_cbor_id_cred_x_decode.c +63 -52
- package/external/libedhoc/backends/cbor/src/backend_cbor_id_cred_x_encode.c +62 -51
- package/external/libedhoc/backends/cbor/src/backend_cbor_info_decode.c +14 -23
- package/external/libedhoc/backends/cbor/src/backend_cbor_info_encode.c +14 -23
- package/external/libedhoc/backends/cbor/src/backend_cbor_int_type_decode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_int_type_encode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_1_decode.c +54 -51
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_1_encode.c +54 -51
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_2_decode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_2_encode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_3_decode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_3_encode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_4_decode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_4_encode.c +11 -20
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_error_decode.c +36 -37
- package/external/libedhoc/backends/cbor/src/backend_cbor_message_error_encode.c +36 -37
- package/external/libedhoc/backends/cbor/src/backend_cbor_plaintext_2_decode.c +103 -80
- package/external/libedhoc/backends/cbor/src/backend_cbor_plaintext_2_encode.c +102 -79
- package/external/libedhoc/backends/cbor/src/backend_cbor_plaintext_3_decode.c +99 -76
- package/external/libedhoc/backends/cbor/src/backend_cbor_plaintext_3_encode.c +98 -75
- package/external/libedhoc/backends/cbor/src/backend_cbor_plaintext_4_decode.c +40 -41
- package/external/libedhoc/backends/cbor/src/backend_cbor_plaintext_4_encode.c +40 -41
- package/external/libedhoc/backends/cbor/src/backend_cbor_sig_structure_decode.c +15 -24
- package/external/libedhoc/backends/cbor/src/backend_cbor_sig_structure_encode.c +15 -24
- package/external/libedhoc/externals/Unity/examples/example_1/src/ProductionCode.c +31 -0
- package/external/libedhoc/externals/Unity/examples/example_1/src/ProductionCode.h +10 -0
- package/external/libedhoc/externals/Unity/examples/example_1/src/ProductionCode2.c +18 -0
- package/external/libedhoc/externals/Unity/examples/example_1/src/ProductionCode2.h +9 -0
- package/external/libedhoc/externals/Unity/examples/example_1/test/TestProductionCode.c +69 -0
- package/external/libedhoc/externals/Unity/examples/example_1/test/TestProductionCode2.c +38 -0
- package/external/libedhoc/externals/Unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
- package/external/libedhoc/externals/Unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
- package/external/libedhoc/externals/Unity/examples/example_2/src/ProductionCode.c +31 -0
- package/external/libedhoc/externals/Unity/examples/example_2/src/ProductionCode.h +10 -0
- package/external/libedhoc/externals/Unity/examples/example_2/src/ProductionCode2.c +18 -0
- package/external/libedhoc/externals/Unity/examples/example_2/src/ProductionCode2.h +9 -0
- package/external/libedhoc/externals/Unity/examples/example_2/test/TestProductionCode.c +71 -0
- package/external/libedhoc/externals/Unity/examples/example_2/test/TestProductionCode2.c +40 -0
- package/external/libedhoc/externals/Unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +16 -0
- package/external/libedhoc/externals/Unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +18 -0
- package/external/libedhoc/externals/Unity/examples/example_2/test/test_runners/all_tests.c +19 -0
- package/external/libedhoc/externals/Unity/examples/example_3/helper/UnityHelper.c +17 -0
- package/external/libedhoc/externals/Unity/examples/example_3/helper/UnityHelper.h +19 -0
- package/external/libedhoc/externals/Unity/examples/example_3/src/ProductionCode.c +31 -0
- package/external/libedhoc/externals/Unity/examples/example_3/src/ProductionCode.h +10 -0
- package/external/libedhoc/externals/Unity/examples/example_3/src/ProductionCode2.c +18 -0
- package/external/libedhoc/externals/Unity/examples/example_3/src/ProductionCode2.h +9 -0
- package/external/libedhoc/externals/Unity/examples/example_3/test/TestProductionCode.c +69 -0
- package/external/libedhoc/externals/Unity/examples/example_3/test/TestProductionCode2.c +38 -0
- package/external/libedhoc/externals/Unity/examples/example_4/src/ProductionCode.c +31 -0
- package/external/libedhoc/externals/Unity/examples/example_4/src/ProductionCode.h +10 -0
- package/external/libedhoc/externals/Unity/examples/example_4/src/ProductionCode2.c +18 -0
- package/external/libedhoc/externals/Unity/examples/example_4/src/ProductionCode2.h +9 -0
- package/external/libedhoc/externals/Unity/examples/example_4/test/TestProductionCode.c +70 -0
- package/external/libedhoc/externals/Unity/examples/example_4/test/TestProductionCode2.c +42 -0
- package/external/libedhoc/externals/Unity/examples/example_4/test/test_runners/TestProductionCode2_Runner.c +53 -0
- package/external/libedhoc/externals/Unity/examples/example_4/test/test_runners/TestProductionCode_Runner.c +57 -0
- package/external/libedhoc/externals/Unity/examples/unity_config.h +251 -0
- package/external/libedhoc/externals/Unity/extras/bdd/src/unity_bdd.h +44 -0
- package/external/libedhoc/externals/Unity/extras/bdd/test/test_bdd.c +129 -0
- package/external/libedhoc/externals/Unity/extras/fixture/src/unity_fixture.c +310 -0
- package/external/libedhoc/externals/Unity/extras/fixture/src/unity_fixture.h +95 -0
- package/external/libedhoc/externals/Unity/extras/fixture/src/unity_fixture_internals.h +51 -0
- package/external/libedhoc/externals/Unity/extras/fixture/test/main/AllTests.c +20 -0
- package/external/libedhoc/externals/Unity/extras/fixture/test/template_fixture_tests.c +40 -0
- package/external/libedhoc/externals/Unity/extras/fixture/test/unity_fixture_Test.c +246 -0
- package/external/libedhoc/externals/Unity/extras/fixture/test/unity_fixture_TestRunner.c +33 -0
- package/external/libedhoc/externals/Unity/extras/memory/src/unity_memory.c +203 -0
- package/external/libedhoc/externals/Unity/extras/memory/src/unity_memory.h +61 -0
- package/external/libedhoc/externals/Unity/extras/memory/test/unity_memory_Test.c +326 -0
- package/external/libedhoc/externals/Unity/extras/memory/test/unity_memory_TestRunner.c +50 -0
- package/external/libedhoc/externals/Unity/extras/memory/test/unity_output_Spy.c +57 -0
- package/external/libedhoc/externals/Unity/extras/memory/test/unity_output_Spy.h +17 -0
- package/external/libedhoc/externals/Unity/src/unity.c +2501 -0
- package/external/libedhoc/externals/Unity/src/unity.h +698 -0
- package/external/libedhoc/externals/Unity/src/unity_internals.h +1183 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_cmd.c +61 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_def.c +57 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_head1.c +55 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_head1.h +15 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_cmd.c +80 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_def.c +76 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_head1.c +75 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_head1.h +13 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_new1.c +89 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_new2.c +89 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_param.c +77 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_run1.c +89 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_run2.c +89 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_mock_yaml.c +90 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_new1.c +67 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_new2.c +70 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_param.c +58 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_run1.c +67 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_run2.c +70 -0
- package/external/libedhoc/externals/Unity/test/expectdata/testsample_yaml.c +71 -0
- package/external/libedhoc/externals/Unity/test/testdata/CException.h +18 -0
- package/external/libedhoc/externals/Unity/test/testdata/Defs.h +16 -0
- package/external/libedhoc/externals/Unity/test/testdata/cmock.h +21 -0
- package/external/libedhoc/externals/Unity/test/testdata/mockMock.h +20 -0
- package/external/libedhoc/externals/Unity/test/testdata/testRunnerGenerator.c +204 -0
- package/external/libedhoc/externals/Unity/test/testdata/testRunnerGeneratorSmall.c +73 -0
- package/external/libedhoc/externals/Unity/test/testdata/testRunnerGeneratorWithMocks.c +200 -0
- package/external/libedhoc/externals/Unity/test/tests/self_assessment_utils.h +151 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_arrays.c +2941 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_core.c +375 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_doubles.c +1285 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_floats.c +1395 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_integers.c +2863 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_integers_64.c +783 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_memory.c +82 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_parameterized.c +309 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_parameterizedDemo.c +28 -0
- package/external/libedhoc/externals/Unity/test/tests/test_unity_strings.c +330 -0
- package/external/libedhoc/externals/Unity/test/tests/types_for_test.h +21 -0
- package/external/libedhoc/externals/zcbor/include/zcbor_common.h +147 -60
- package/external/libedhoc/externals/zcbor/include/zcbor_decode.h +291 -202
- package/external/libedhoc/externals/zcbor/include/zcbor_encode.h +100 -156
- package/external/libedhoc/externals/zcbor/include/zcbor_print.h +165 -0
- package/external/libedhoc/externals/zcbor/samples/hello_world/src/main.c +1 -1
- package/external/libedhoc/externals/zcbor/samples/pet/include/pet_decode.h +1 -1
- package/external/libedhoc/externals/zcbor/samples/pet/include/pet_encode.h +1 -1
- package/external/libedhoc/externals/zcbor/samples/pet/include/pet_types.h +4 -4
- package/external/libedhoc/externals/zcbor/samples/pet/src/main.c +4 -4
- package/external/libedhoc/externals/zcbor/samples/pet/src/pet_decode.c +15 -24
- package/external/libedhoc/externals/zcbor/samples/pet/src/pet_encode.c +14 -23
- package/external/libedhoc/externals/zcbor/src/zcbor_common.c +202 -29
- package/external/libedhoc/externals/zcbor/src/zcbor_decode.c +633 -173
- package/external/libedhoc/externals/zcbor/src/zcbor_encode.c +71 -184
- package/external/libedhoc/externals/zcbor/tests/decode/test1_suit_old_formats/src/main.c +152 -153
- package/external/libedhoc/externals/zcbor/tests/decode/test2_suit/src/main.c +64 -64
- package/external/libedhoc/externals/zcbor/tests/decode/test3_simple/src/main.c +15 -16
- package/external/libedhoc/externals/zcbor/tests/decode/test5_corner_cases/src/main.c +228 -84
- package/external/libedhoc/externals/zcbor/tests/decode/test7_suit9_simple/src/main.c +9 -9
- package/external/libedhoc/externals/zcbor/tests/decode/test8_suit12/src/main.c +0 -1
- package/external/libedhoc/externals/zcbor/tests/decode/test9_manifest14/src/main.c +172 -173
- package/external/libedhoc/externals/zcbor/tests/encode/test1_suit/src/main.c +73 -73
- package/external/libedhoc/externals/zcbor/tests/encode/test2_simple/src/main.c +1 -2
- package/external/libedhoc/externals/zcbor/tests/encode/test3_corner_cases/src/main.c +83 -56
- package/external/libedhoc/externals/zcbor/tests/encode/test4_senml/src/main.c +15 -16
- package/external/libedhoc/externals/zcbor/tests/fuzz/fuzz_everything.c +12 -0
- package/external/libedhoc/externals/zcbor/tests/fuzz/fuzz_manifest12.c +69 -69
- package/external/libedhoc/externals/zcbor/tests/unit/test1_unit_tests/src/main.c +448 -55
- package/external/libedhoc/externals/zcbor/tests/unit/test3_float16/src/main.c +49 -48
- package/external/libedhoc/include/edhoc.h +348 -54
- package/external/libedhoc/include/edhoc_common.h +289 -0
- package/external/libedhoc/include/edhoc_context.h +60 -35
- package/external/libedhoc/include/edhoc_credentials.h +55 -7
- package/external/libedhoc/include/edhoc_crypto.h +10 -10
- package/external/libedhoc/include/edhoc_ead.h +13 -10
- package/external/libedhoc/include/edhoc_macros.h +20 -11
- package/external/libedhoc/include/edhoc_values.h +2 -2
- package/external/libedhoc/library/edhoc.c +70 -36
- package/external/libedhoc/library/edhoc_common.c +1314 -0
- package/external/libedhoc/library/edhoc_exporter.c +45 -46
- package/external/libedhoc/library/edhoc_message_1.c +107 -72
- package/external/libedhoc/library/edhoc_message_2.c +396 -1693
- package/external/libedhoc/library/edhoc_message_3.c +465 -1656
- package/external/libedhoc/library/edhoc_message_4.c +93 -91
- package/external/libedhoc/library/edhoc_message_error.c +41 -41
- package/external/libedhoc/tests/include/{cipher_suites/cipher_suite_0.h → cipher_suite_0.h} +131 -134
- package/external/libedhoc/tests/include/{cipher_suites/cipher_suite_2.h → cipher_suite_2.h} +139 -140
- package/external/libedhoc/tests/include/{edhoc_trace_1/test_vector_1.h → test_vector_rfc9529_chapter_2.h} +786 -738
- package/external/libedhoc/tests/include/{edhoc_trace_2/test_vector_2.h → test_vector_rfc9529_chapter_3.h} +14 -10
- package/external/libedhoc/tests/include/{x509_chain_cs_0/test_vector_x5chain_cs_0.h → test_vector_x5chain_sign_keys_suite_0.h} +137 -140
- package/external/libedhoc/tests/include/{x509_chain_cs_2/test_vector_x5chain_cs_2.h → test_vector_x5chain_sign_keys_suite_2.h} +7 -8
- package/external/libedhoc/tests/include/{x509_chain_cs_2_static_dh/test_vector_x5chain_cs_2_static_dh.h → test_vector_x5chain_static_dh_keys_suite_2.h} +7 -8
- package/external/libedhoc/tests/include/{x509_hash_cs_2/test_vector_x5t_cs_2.h → test_vector_x5t_sign_keys_suite_2.h} +6 -7
- package/external/libedhoc/tests/src/{cipher_suites/cipher_suite_0.c → cipher_suite_0.c} +445 -447
- package/external/libedhoc/tests/src/{cipher_suites/cipher_suite_2.c → cipher_suite_2.c} +600 -600
- package/external/libedhoc/tests/src/module_test_api.c +430 -0
- package/external/libedhoc/tests/src/module_test_cipher_suite_0.c +395 -0
- package/external/libedhoc/tests/src/module_test_cipher_suite_2.c +392 -0
- package/external/libedhoc/tests/src/{error_message/test_edhoc_error_message.c → module_test_error_message.c} +94 -69
- package/external/libedhoc/tests/src/module_test_main.c +49 -0
- package/external/libedhoc/tests/src/{cipher_suite_negotiation/test_edhoc_cipher_suite_negotiation.c → module_test_rfc9528_suites_negotiation.c} +224 -227
- package/external/libedhoc/tests/src/module_test_rfc9529_chapter_2.c +2681 -0
- package/external/libedhoc/tests/src/module_test_rfc9529_chapter_3.c +1635 -0
- package/external/libedhoc/tests/src/module_test_x5chain_sign_keys_suite_0.c +1135 -0
- package/external/libedhoc/tests/src/module_test_x5chain_sign_keys_suite_2.c +1249 -0
- package/external/libedhoc/tests/src/module_test_x5chain_static_dh_keys_suite_2.c +798 -0
- package/external/libedhoc/tests/src/module_test_x5t_sign_keys_suite_2.c +956 -0
- package/include/EdhocComposeAsyncWorker.h +8 -6
- package/include/EdhocCredentialManager.h +16 -11
- package/include/EdhocCryptoManager.h +28 -21
- package/include/EdhocEadManager.h +3 -6
- package/include/{EdhocExportAsyncWorker.h → EdhocExportOscoreAsyncWorker.h} +20 -17
- package/include/EdhocKeyExporterAsyncWorker.h +76 -0
- package/include/EdhocKeyUpdateAsyncWorker.h +72 -0
- package/include/EdhocProcessAsyncWorker.h +14 -10
- package/include/LibEDHOC.h +44 -20
- package/include/UserContext.h +7 -9
- package/include/Utils.h +31 -27
- package/package.json +14 -3
- package/prebuilds/android-arm/edhoc.armv7.node +0 -0
- package/prebuilds/android-arm64/edhoc.armv8.node +0 -0
- package/prebuilds/darwin-arm64/edhoc.node +0 -0
- package/prebuilds/darwin-x64/edhoc.node +0 -0
- package/prebuilds/linux-arm/edhoc.armv6.node +0 -0
- package/prebuilds/linux-arm/edhoc.armv7.node +0 -0
- package/prebuilds/linux-arm64/edhoc.armv8.node +0 -0
- package/prebuilds/linux-x64/edhoc.glibc.node +0 -0
- package/prebuilds/linux-x64/edhoc.musl.node +0 -0
- package/prebuilds/win32-ia32/edhoc.node +0 -0
- package/prebuilds/win32-x64/edhoc.node +0 -0
- package/src/EdhocComposeAsyncWorker.cpp +18 -35
- package/src/EdhocCredentialManager.cpp +160 -187
- package/src/EdhocCryptoManager.cpp +386 -586
- package/src/EdhocEadManager.cpp +10 -18
- package/src/EdhocExportOscoreAsyncWorker.cpp +77 -0
- package/src/EdhocKeyExporterAsyncWorker.cpp +49 -0
- package/src/EdhocKeyUpdateAsyncWorker.cpp +41 -0
- package/src/EdhocProcessAsyncWorker.cpp +72 -19
- package/src/LibEDHOC.cpp +213 -174
- package/src/Suites.cpp +39 -72
- package/src/Utils.cpp +32 -56
- package/test/basic.test.ts +64 -0
- package/test/vectors.test.ts +111 -0
- package/external/libedhoc/externals/zcbor/include/zcbor_debug.h +0 -69
- package/external/libedhoc/tests/include/cipher_suite_negotiation/test_edhoc_cipher_suite_negotiation.h +0 -37
- package/external/libedhoc/tests/include/cipher_suites/test_cipher_suite_0.h +0 -48
- package/external/libedhoc/tests/include/cipher_suites/test_cipher_suite_2.h +0 -48
- package/external/libedhoc/tests/include/edhoc_trace_1/authentication_credentials_1.h +0 -60
- package/external/libedhoc/tests/include/edhoc_trace_1/test_edhoc_handshake_1.h +0 -208
- package/external/libedhoc/tests/include/edhoc_trace_1/test_edhoc_handshake_ead_1.h +0 -59
- package/external/libedhoc/tests/include/edhoc_trace_2/authentication_credentials_2.h +0 -60
- package/external/libedhoc/tests/include/edhoc_trace_2/test_edhoc_handshake_2.h +0 -199
- package/external/libedhoc/tests/include/error_message/test_edhoc_error_message.h +0 -48
- package/external/libedhoc/tests/include/x509_chain_cs_0/authentication_credentials_x5chain_cs_0.h +0 -92
- package/external/libedhoc/tests/include/x509_chain_cs_0/test_edhoc_handshake_x5chain_cs_0.h +0 -96
- package/external/libedhoc/tests/include/x509_chain_cs_2/authentication_credentials_x5chain_cs_2.h +0 -58
- package/external/libedhoc/tests/include/x509_chain_cs_2/test_edhoc_handshake_x5chain_cs_2.h +0 -56
- package/external/libedhoc/tests/include/x509_chain_cs_2/test_edhoc_handshake_x5chain_cs_2_ead.h +0 -57
- package/external/libedhoc/tests/include/x509_chain_cs_2_static_dh/authentication_credentials_x5chain_cs_2_static_dh.h +0 -59
- package/external/libedhoc/tests/include/x509_chain_cs_2_static_dh/test_edhoc_handshake_x5chain_cs_2_static_dh_ead.h +0 -57
- package/external/libedhoc/tests/include/x509_hash_cs_2/authentication_credentials_x5t_cs_2.h +0 -60
- package/external/libedhoc/tests/include/x509_hash_cs_2/test_edhoc_handshake_x5t_cs_2_ead.h +0 -57
- package/external/libedhoc/tests/src/cipher_suites/test_cipher_suite_0.c +0 -475
- package/external/libedhoc/tests/src/cipher_suites/test_cipher_suite_2.c +0 -473
- package/external/libedhoc/tests/src/edhoc_trace_1/authentication_credentials_1.c +0 -252
- package/external/libedhoc/tests/src/edhoc_trace_1/test_edhoc_handshake_1.c +0 -1829
- package/external/libedhoc/tests/src/edhoc_trace_1/test_edhoc_handshake_ead_1.c +0 -1247
- package/external/libedhoc/tests/src/edhoc_trace_2/authentication_credentials_2.c +0 -170
- package/external/libedhoc/tests/src/edhoc_trace_2/test_edhoc_handshake_2.c +0 -1783
- package/external/libedhoc/tests/src/tests.c +0 -228
- package/external/libedhoc/tests/src/x509_chain_cs_0/authentication_credentials_x5chain_cs_0.c +0 -332
- package/external/libedhoc/tests/src/x509_chain_cs_0/test_edhoc_handshake_x5chain_cs_0.c +0 -936
- package/external/libedhoc/tests/src/x509_chain_cs_2/authentication_credentials_x5chain_cs_2.c +0 -166
- package/external/libedhoc/tests/src/x509_chain_cs_2/test_edhoc_handshake_x5chain_cs_2.c +0 -587
- package/external/libedhoc/tests/src/x509_chain_cs_2/test_edhoc_handshake_x5chain_cs_2_ead.c +0 -917
- package/external/libedhoc/tests/src/x509_chain_cs_2_static_dh/authentication_credentials_x5chain_cs_2_static_dh.c +0 -186
- package/external/libedhoc/tests/src/x509_chain_cs_2_static_dh/test_edhoc_handshake_x5chain_cs_2_static_dh_ead.c +0 -743
- package/external/libedhoc/tests/src/x509_hash_cs_2/authentication_credentials_x5t_cs_2.c +0 -261
- package/external/libedhoc/tests/src/x509_hash_cs_2/test_edhoc_handshake_x5t_cs_2_ead.c +0 -854
- package/src/EdhocExportAsyncWorker.cpp +0 -82
|
@@ -1,738 +1,786 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* \file
|
|
3
|
-
* \author Kamil Kielbasa
|
|
4
|
-
* \brief Test vector from EDHOC traces (RFC 9529) for chapter 2.
|
|
5
|
-
* It contains authentication with signatures, X.509 identified by 'x5t'.
|
|
6
|
-
*
|
|
7
|
-
* \version 0.
|
|
8
|
-
* \date 2024-
|
|
9
|
-
*
|
|
10
|
-
* \copyright Copyright (c) 2024
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/* Header guard ------------------------------------------------------------ */
|
|
15
|
-
#ifndef
|
|
16
|
-
#define
|
|
17
|
-
|
|
18
|
-
/* Include files ----------------------------------------------------------- */
|
|
19
|
-
#include <stdint.h>
|
|
20
|
-
|
|
21
|
-
/* Defines ----------------------------------------------------------------- */
|
|
22
|
-
/* Types and type definitions ---------------------------------------------- */
|
|
23
|
-
/* Module interface variables and constants -------------------------------- */
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* \brief EDHOC message 1.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
static const uint8_t METHOD = 0;
|
|
30
|
-
|
|
31
|
-
static const int32_t SUITES_I[] = { 0 };
|
|
32
|
-
|
|
33
|
-
static const uint8_t X[] = {
|
|
34
|
-
0x89, 0x2e, 0xc2, 0x8e, 0x5c, 0xb6, 0x66, 0x91, 0x08, 0x47, 0x05,
|
|
35
|
-
0x39, 0x50, 0x0b, 0x70, 0x5e, 0x60, 0xd0, 0x08, 0xd3, 0x47, 0xc5,
|
|
36
|
-
0x81, 0x7e, 0xe9, 0xf3, 0x32, 0x7c, 0x8a, 0x87, 0xbb, 0x03,
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
static const uint8_t G_X[] = {
|
|
40
|
-
0x31, 0xf8, 0x2c, 0x7b, 0x5b, 0x9c, 0xbb, 0xf0, 0xf1, 0x94, 0xd9,
|
|
41
|
-
0x13, 0xcc, 0x12, 0xef, 0x15, 0x32, 0xd3, 0x28, 0xef, 0x32, 0x63,
|
|
42
|
-
0x2a, 0x48, 0x81, 0xa1, 0xc0, 0x70, 0x1e, 0x23, 0x7f, 0x04,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
static const uint8_t C_I[] = { -14 };
|
|
46
|
-
|
|
47
|
-
static const uint8_t message_1[] = {
|
|
48
|
-
0x00, 0x00, 0x58, 0x20, 0x31, 0xf8, 0x2c, 0x7b, 0x5b, 0x9c,
|
|
49
|
-
0xbb, 0xf0, 0xf1, 0x94, 0xd9, 0x13, 0xcc, 0x12, 0xef, 0x15,
|
|
50
|
-
0x32, 0xd3, 0x28, 0xef, 0x32, 0x63, 0x2a, 0x48, 0x81, 0xa1,
|
|
51
|
-
0xc0, 0x70, 0x1e, 0x23, 0x7f, 0x04, 0x2d,
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* \brief EDHOC message 2.
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
static const uint8_t SUITES_R[] = { 0 };
|
|
59
|
-
|
|
60
|
-
static const uint8_t Y[] = {
|
|
61
|
-
0xe6, 0x9c, 0x23, 0xfb, 0xf8, 0x1b, 0xc4, 0x35, 0x94, 0x24, 0x46,
|
|
62
|
-
0x83, 0x7f, 0xe8, 0x27, 0xbf, 0x20, 0x6c, 0x8f, 0xa1, 0x0a, 0x39,
|
|
63
|
-
0xdb, 0x47, 0x44, 0x9e, 0x5a, 0x81, 0x34, 0x21, 0xe1, 0xe8,
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
static const uint8_t G_Y[] = {
|
|
67
|
-
0xdc, 0x88, 0xd2, 0xd5, 0x1d, 0xa5, 0xed, 0x67, 0xfc, 0x46, 0x16,
|
|
68
|
-
0x35, 0x6b, 0xc8, 0xca, 0x74, 0xef, 0x9e, 0xbe, 0x8b, 0x38, 0x7e,
|
|
69
|
-
0x62, 0x3a, 0x36, 0x0b, 0xa4, 0x80, 0xb9, 0xb2, 0x9d, 0x1c,
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
static const uint8_t C_R[] = { 24 };
|
|
73
|
-
|
|
74
|
-
static const uint8_t H_message_1[] = {
|
|
75
|
-
0xc1, 0x65, 0xd6, 0xa9, 0x9d, 0x1b, 0xca, 0xfa, 0xac, 0x8d, 0xbf,
|
|
76
|
-
0x2b, 0x35, 0x2a, 0x6f, 0x7d, 0x71, 0xa3, 0x0b, 0x43, 0x9c, 0x9d,
|
|
77
|
-
0x64, 0xd3, 0x49, 0xa2, 0x38, 0x48, 0x03, 0x8e, 0xd1, 0x6b,
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
static const uint8_t TH_2[] = {
|
|
81
|
-
0xc6, 0x40, 0x5c, 0x15, 0x4c, 0x56, 0x74, 0x66, 0xab, 0x1d, 0xf2,
|
|
82
|
-
0x03, 0x69, 0x50, 0x0e, 0x54, 0x0e, 0x9f, 0x14, 0xbd, 0x3a, 0x79,
|
|
83
|
-
0x6a, 0x06, 0x52, 0xca, 0xe6, 0x6c, 0x90, 0x61, 0x68, 0x8d,
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
static const uint8_t G_XY[] = {
|
|
87
|
-
0xe5, 0xcd, 0xf3, 0xa9, 0x86, 0xcd, 0xac, 0x5b, 0x7b, 0xf0, 0x46,
|
|
88
|
-
0x91, 0xe2, 0xb0, 0x7c, 0x08, 0xe7, 0x1f, 0x53, 0x99, 0x8d, 0x8f,
|
|
89
|
-
0x84, 0x2b, 0x7c, 0x3f, 0xb4, 0xd8, 0x39, 0xcf, 0x7b, 0x28,
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
static const uint8_t PRK_2e[] = {
|
|
93
|
-
0xd5, 0x84, 0xac, 0x2e, 0x5d, 0xad, 0x5a, 0x77, 0xd1, 0x4b, 0x53,
|
|
94
|
-
0xeb, 0xe7, 0x2e, 0xf1, 0xd5, 0xda, 0xa8, 0x86, 0x0d, 0x39, 0x93,
|
|
95
|
-
0x73, 0xbf, 0x2c, 0x24, 0x0a, 0xfa, 0x7b, 0xa8, 0x04, 0xda,
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
static const uint8_t SK_R[] = {
|
|
99
|
-
0xef, 0x14, 0x0f, 0xf9, 0x00, 0xb0, 0xab, 0x03, 0xf0, 0xc0, 0x8d,
|
|
100
|
-
0x87, 0x9c, 0xbb, 0xd4, 0xb3, 0x1e, 0xa7, 0x1e, 0x6e, 0x7e, 0xe7,
|
|
101
|
-
0xff, 0xcb, 0x7e, 0x79, 0x55, 0x77, 0x7a, 0x33, 0x27, 0x99,
|
|
102
|
-
|
|
103
|
-
0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c,
|
|
104
|
-
0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2, 0xc6,
|
|
105
|
-
0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59,
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
static const uint8_t PK_R[] = {
|
|
109
|
-
0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c,
|
|
110
|
-
0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2, 0xc6,
|
|
111
|
-
0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59,
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
static const uint8_t PRK_3e2m[] = {
|
|
115
|
-
0xd5, 0x84, 0xac, 0x2e, 0x5d, 0xad, 0x5a, 0x77, 0xd1, 0x4b, 0x53,
|
|
116
|
-
0xeb, 0xe7, 0x2e, 0xf1, 0xd5, 0xda, 0xa8, 0x86, 0x0d, 0x39, 0x93,
|
|
117
|
-
0x73, 0xbf, 0x2c, 0x24, 0x0a, 0xfa, 0x7b, 0xa8, 0x04, 0xda,
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
static const uint8_t ID_CRED_R_cborised[] = {
|
|
121
|
-
0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0x79,
|
|
122
|
-
0xf2, 0xa4, 0x1b, 0x51, 0x0c, 0x1f, 0x9b,
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
static const uint8_t CRED_R[] = {
|
|
126
|
-
0x30, 0x81, 0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02,
|
|
127
|
-
0x04, 0x62, 0x31, 0x9e, 0xc4, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
128
|
-
0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
|
|
129
|
-
0x12, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20,
|
|
130
|
-
0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32,
|
|
131
|
-
0x32, 0x30, 0x33, 0x31, 0x36, 0x30, 0x38, 0x32, 0x34, 0x33, 0x36, 0x5a,
|
|
132
|
-
0x17, 0x0d, 0x32, 0x39, 0x31, 0x32, 0x33, 0x31, 0x32, 0x33, 0x30, 0x30,
|
|
133
|
-
0x30, 0x30, 0x5a, 0x30, 0x22, 0x31, 0x20, 0x30, 0x1e, 0x06, 0x03, 0x55,
|
|
134
|
-
0x04, 0x03, 0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x65,
|
|
135
|
-
0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x20, 0x45, 0x64, 0x32, 0x35,
|
|
136
|
-
0x35, 0x31, 0x39, 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
137
|
-
0x03, 0x21, 0x00, 0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1,
|
|
138
|
-
0x2a, 0x0c, 0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2,
|
|
139
|
-
0xc6, 0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59, 0x30,
|
|
140
|
-
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x41, 0x00, 0xb7, 0x23, 0xbc,
|
|
141
|
-
0x01, 0xea, 0xb0, 0x92, 0x8e, 0x8b, 0x2b, 0x6c, 0x98, 0xde, 0x19, 0xcc,
|
|
142
|
-
0x38, 0x23, 0xd4, 0x6e, 0x7d, 0x69, 0x87, 0xb0, 0x32, 0x47, 0x8f, 0xec,
|
|
143
|
-
0xfa, 0xf1, 0x45, 0x37, 0xa1, 0xaf, 0x14, 0xcc, 0x8b, 0xe8, 0x29, 0xc6,
|
|
144
|
-
0xb7, 0x30, 0x44, 0x10, 0x18, 0x37, 0xeb, 0x4a, 0xbc, 0x94, 0x95, 0x65,
|
|
145
|
-
0xd8, 0x6d, 0xce, 0x51, 0xcf, 0xae, 0x52, 0xab, 0x82, 0xc1, 0x52, 0xcb,
|
|
146
|
-
0x02,
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
static const uint8_t
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
0x82,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
0xa1,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
0x69,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
static const uint8_t
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
static const uint8_t
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
static const uint8_t
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
static const uint8_t
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
static const uint8_t
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
static const uint8_t
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
1
|
+
/**
|
|
2
|
+
* \file test_vector_rfc9529_chapter_2.h
|
|
3
|
+
* \author Kamil Kielbasa
|
|
4
|
+
* \brief Test vector from EDHOC traces (RFC 9529) for chapter 2.
|
|
5
|
+
* It contains authentication with signatures, X.509 identified by 'x5t'.
|
|
6
|
+
*
|
|
7
|
+
* \version 0.6
|
|
8
|
+
* \date 2024-08-05
|
|
9
|
+
*
|
|
10
|
+
* \copyright Copyright (c) 2024
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* Header guard ------------------------------------------------------------ */
|
|
15
|
+
#ifndef TEST_VECTOR_RFC9529_CHAPTER_2_H
|
|
16
|
+
#define TEST_VECTOR_RFC9529_CHAPTER_2_H
|
|
17
|
+
|
|
18
|
+
/* Include files ----------------------------------------------------------- */
|
|
19
|
+
#include <stdint.h>
|
|
20
|
+
|
|
21
|
+
/* Defines ----------------------------------------------------------------- */
|
|
22
|
+
/* Types and type definitions ---------------------------------------------- */
|
|
23
|
+
/* Module interface variables and constants -------------------------------- */
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* \brief EDHOC message 1.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
static const uint8_t METHOD = 0;
|
|
30
|
+
|
|
31
|
+
static const int32_t SUITES_I[] = { 0 };
|
|
32
|
+
|
|
33
|
+
static const uint8_t X[] = {
|
|
34
|
+
0x89, 0x2e, 0xc2, 0x8e, 0x5c, 0xb6, 0x66, 0x91, 0x08, 0x47, 0x05,
|
|
35
|
+
0x39, 0x50, 0x0b, 0x70, 0x5e, 0x60, 0xd0, 0x08, 0xd3, 0x47, 0xc5,
|
|
36
|
+
0x81, 0x7e, 0xe9, 0xf3, 0x32, 0x7c, 0x8a, 0x87, 0xbb, 0x03,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
static const uint8_t G_X[] = {
|
|
40
|
+
0x31, 0xf8, 0x2c, 0x7b, 0x5b, 0x9c, 0xbb, 0xf0, 0xf1, 0x94, 0xd9,
|
|
41
|
+
0x13, 0xcc, 0x12, 0xef, 0x15, 0x32, 0xd3, 0x28, 0xef, 0x32, 0x63,
|
|
42
|
+
0x2a, 0x48, 0x81, 0xa1, 0xc0, 0x70, 0x1e, 0x23, 0x7f, 0x04,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
static const uint8_t C_I[] = { -14 };
|
|
46
|
+
|
|
47
|
+
static const uint8_t message_1[] = {
|
|
48
|
+
0x00, 0x00, 0x58, 0x20, 0x31, 0xf8, 0x2c, 0x7b, 0x5b, 0x9c,
|
|
49
|
+
0xbb, 0xf0, 0xf1, 0x94, 0xd9, 0x13, 0xcc, 0x12, 0xef, 0x15,
|
|
50
|
+
0x32, 0xd3, 0x28, 0xef, 0x32, 0x63, 0x2a, 0x48, 0x81, 0xa1,
|
|
51
|
+
0xc0, 0x70, 0x1e, 0x23, 0x7f, 0x04, 0x2d,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* \brief EDHOC message 2.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
static const uint8_t SUITES_R[] = { 0 };
|
|
59
|
+
|
|
60
|
+
static const uint8_t Y[] = {
|
|
61
|
+
0xe6, 0x9c, 0x23, 0xfb, 0xf8, 0x1b, 0xc4, 0x35, 0x94, 0x24, 0x46,
|
|
62
|
+
0x83, 0x7f, 0xe8, 0x27, 0xbf, 0x20, 0x6c, 0x8f, 0xa1, 0x0a, 0x39,
|
|
63
|
+
0xdb, 0x47, 0x44, 0x9e, 0x5a, 0x81, 0x34, 0x21, 0xe1, 0xe8,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
static const uint8_t G_Y[] = {
|
|
67
|
+
0xdc, 0x88, 0xd2, 0xd5, 0x1d, 0xa5, 0xed, 0x67, 0xfc, 0x46, 0x16,
|
|
68
|
+
0x35, 0x6b, 0xc8, 0xca, 0x74, 0xef, 0x9e, 0xbe, 0x8b, 0x38, 0x7e,
|
|
69
|
+
0x62, 0x3a, 0x36, 0x0b, 0xa4, 0x80, 0xb9, 0xb2, 0x9d, 0x1c,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
static const uint8_t C_R[] = { 24 };
|
|
73
|
+
|
|
74
|
+
static const uint8_t H_message_1[] = {
|
|
75
|
+
0xc1, 0x65, 0xd6, 0xa9, 0x9d, 0x1b, 0xca, 0xfa, 0xac, 0x8d, 0xbf,
|
|
76
|
+
0x2b, 0x35, 0x2a, 0x6f, 0x7d, 0x71, 0xa3, 0x0b, 0x43, 0x9c, 0x9d,
|
|
77
|
+
0x64, 0xd3, 0x49, 0xa2, 0x38, 0x48, 0x03, 0x8e, 0xd1, 0x6b,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
static const uint8_t TH_2[] = {
|
|
81
|
+
0xc6, 0x40, 0x5c, 0x15, 0x4c, 0x56, 0x74, 0x66, 0xab, 0x1d, 0xf2,
|
|
82
|
+
0x03, 0x69, 0x50, 0x0e, 0x54, 0x0e, 0x9f, 0x14, 0xbd, 0x3a, 0x79,
|
|
83
|
+
0x6a, 0x06, 0x52, 0xca, 0xe6, 0x6c, 0x90, 0x61, 0x68, 0x8d,
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
static const uint8_t G_XY[] = {
|
|
87
|
+
0xe5, 0xcd, 0xf3, 0xa9, 0x86, 0xcd, 0xac, 0x5b, 0x7b, 0xf0, 0x46,
|
|
88
|
+
0x91, 0xe2, 0xb0, 0x7c, 0x08, 0xe7, 0x1f, 0x53, 0x99, 0x8d, 0x8f,
|
|
89
|
+
0x84, 0x2b, 0x7c, 0x3f, 0xb4, 0xd8, 0x39, 0xcf, 0x7b, 0x28,
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
static const uint8_t PRK_2e[] = {
|
|
93
|
+
0xd5, 0x84, 0xac, 0x2e, 0x5d, 0xad, 0x5a, 0x77, 0xd1, 0x4b, 0x53,
|
|
94
|
+
0xeb, 0xe7, 0x2e, 0xf1, 0xd5, 0xda, 0xa8, 0x86, 0x0d, 0x39, 0x93,
|
|
95
|
+
0x73, 0xbf, 0x2c, 0x24, 0x0a, 0xfa, 0x7b, 0xa8, 0x04, 0xda,
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
static const uint8_t SK_R[] = {
|
|
99
|
+
0xef, 0x14, 0x0f, 0xf9, 0x00, 0xb0, 0xab, 0x03, 0xf0, 0xc0, 0x8d,
|
|
100
|
+
0x87, 0x9c, 0xbb, 0xd4, 0xb3, 0x1e, 0xa7, 0x1e, 0x6e, 0x7e, 0xe7,
|
|
101
|
+
0xff, 0xcb, 0x7e, 0x79, 0x55, 0x77, 0x7a, 0x33, 0x27, 0x99,
|
|
102
|
+
|
|
103
|
+
0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c,
|
|
104
|
+
0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2, 0xc6,
|
|
105
|
+
0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59,
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
static const uint8_t PK_R[] = {
|
|
109
|
+
0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c,
|
|
110
|
+
0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2, 0xc6,
|
|
111
|
+
0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59,
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
static const uint8_t PRK_3e2m[] = {
|
|
115
|
+
0xd5, 0x84, 0xac, 0x2e, 0x5d, 0xad, 0x5a, 0x77, 0xd1, 0x4b, 0x53,
|
|
116
|
+
0xeb, 0xe7, 0x2e, 0xf1, 0xd5, 0xda, 0xa8, 0x86, 0x0d, 0x39, 0x93,
|
|
117
|
+
0x73, 0xbf, 0x2c, 0x24, 0x0a, 0xfa, 0x7b, 0xa8, 0x04, 0xda,
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
static const uint8_t ID_CRED_R_cborised[] = {
|
|
121
|
+
0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0x79,
|
|
122
|
+
0xf2, 0xa4, 0x1b, 0x51, 0x0c, 0x1f, 0x9b,
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
static const uint8_t CRED_R[] = {
|
|
126
|
+
0x30, 0x81, 0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02,
|
|
127
|
+
0x04, 0x62, 0x31, 0x9e, 0xc4, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
128
|
+
0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
|
|
129
|
+
0x12, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20,
|
|
130
|
+
0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32,
|
|
131
|
+
0x32, 0x30, 0x33, 0x31, 0x36, 0x30, 0x38, 0x32, 0x34, 0x33, 0x36, 0x5a,
|
|
132
|
+
0x17, 0x0d, 0x32, 0x39, 0x31, 0x32, 0x33, 0x31, 0x32, 0x33, 0x30, 0x30,
|
|
133
|
+
0x30, 0x30, 0x5a, 0x30, 0x22, 0x31, 0x20, 0x30, 0x1e, 0x06, 0x03, 0x55,
|
|
134
|
+
0x04, 0x03, 0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x65,
|
|
135
|
+
0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x20, 0x45, 0x64, 0x32, 0x35,
|
|
136
|
+
0x35, 0x31, 0x39, 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
137
|
+
0x03, 0x21, 0x00, 0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1,
|
|
138
|
+
0x2a, 0x0c, 0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2,
|
|
139
|
+
0xc6, 0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59, 0x30,
|
|
140
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x41, 0x00, 0xb7, 0x23, 0xbc,
|
|
141
|
+
0x01, 0xea, 0xb0, 0x92, 0x8e, 0x8b, 0x2b, 0x6c, 0x98, 0xde, 0x19, 0xcc,
|
|
142
|
+
0x38, 0x23, 0xd4, 0x6e, 0x7d, 0x69, 0x87, 0xb0, 0x32, 0x47, 0x8f, 0xec,
|
|
143
|
+
0xfa, 0xf1, 0x45, 0x37, 0xa1, 0xaf, 0x14, 0xcc, 0x8b, 0xe8, 0x29, 0xc6,
|
|
144
|
+
0xb7, 0x30, 0x44, 0x10, 0x18, 0x37, 0xeb, 0x4a, 0xbc, 0x94, 0x95, 0x65,
|
|
145
|
+
0xd8, 0x6d, 0xce, 0x51, 0xcf, 0xae, 0x52, 0xab, 0x82, 0xc1, 0x52, 0xcb,
|
|
146
|
+
0x02,
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
static const uint8_t CRED_R_cborised[] = {
|
|
150
|
+
0x58, 0xf1, 0x30, 0x81, 0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01,
|
|
151
|
+
0x02, 0x02, 0x04, 0x62, 0x31, 0x9e, 0xc4, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
152
|
+
0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04,
|
|
153
|
+
0x03, 0x0c, 0x12, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f,
|
|
154
|
+
0x74, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x1e, 0x17,
|
|
155
|
+
0x0d, 0x32, 0x32, 0x30, 0x33, 0x31, 0x36, 0x30, 0x38, 0x32, 0x34, 0x33,
|
|
156
|
+
0x36, 0x5a, 0x17, 0x0d, 0x32, 0x39, 0x31, 0x32, 0x33, 0x31, 0x32, 0x33,
|
|
157
|
+
0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x22, 0x31, 0x20, 0x30, 0x1e, 0x06,
|
|
158
|
+
0x03, 0x55, 0x04, 0x03, 0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20,
|
|
159
|
+
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x20, 0x45, 0x64,
|
|
160
|
+
0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
161
|
+
0x65, 0x70, 0x03, 0x21, 0x00, 0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85,
|
|
162
|
+
0x4a, 0xd1, 0x2a, 0x0c, 0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a,
|
|
163
|
+
0xa0, 0xf2, 0xc6, 0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93,
|
|
164
|
+
0x59, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x41, 0x00, 0xb7,
|
|
165
|
+
0x23, 0xbc, 0x01, 0xea, 0xb0, 0x92, 0x8e, 0x8b, 0x2b, 0x6c, 0x98, 0xde,
|
|
166
|
+
0x19, 0xcc, 0x38, 0x23, 0xd4, 0x6e, 0x7d, 0x69, 0x87, 0xb0, 0x32, 0x47,
|
|
167
|
+
0x8f, 0xec, 0xfa, 0xf1, 0x45, 0x37, 0xa1, 0xaf, 0x14, 0xcc, 0x8b, 0xe8,
|
|
168
|
+
0x29, 0xc6, 0xb7, 0x30, 0x44, 0x10, 0x18, 0x37, 0xeb, 0x4a, 0xbc, 0x94,
|
|
169
|
+
0x95, 0x65, 0xd8, 0x6d, 0xce, 0x51, 0xcf, 0xae, 0x52, 0xab, 0x82, 0xc1,
|
|
170
|
+
0x52, 0xcb, 0x02,
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
static const uint8_t context_2[] = {
|
|
174
|
+
0x41, 0x18, 0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0x79, 0xf2, 0xa4, 0x1b,
|
|
175
|
+
0x51, 0x0c, 0x1f, 0x9b, 0x58, 0x20, 0xc6, 0x40, 0x5c, 0x15, 0x4c, 0x56,
|
|
176
|
+
0x74, 0x66, 0xab, 0x1d, 0xf2, 0x03, 0x69, 0x50, 0x0e, 0x54, 0x0e, 0x9f,
|
|
177
|
+
0x14, 0xbd, 0x3a, 0x79, 0x6a, 0x06, 0x52, 0xca, 0xe6, 0x6c, 0x90, 0x61,
|
|
178
|
+
0x68, 0x8d, 0x58, 0xf1, 0x30, 0x81, 0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03,
|
|
179
|
+
0x02, 0x01, 0x02, 0x02, 0x04, 0x62, 0x31, 0x9e, 0xc4, 0x30, 0x05, 0x06,
|
|
180
|
+
0x03, 0x2b, 0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03,
|
|
181
|
+
0x55, 0x04, 0x03, 0x0c, 0x12, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52,
|
|
182
|
+
0x6f, 0x6f, 0x74, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30,
|
|
183
|
+
0x1e, 0x17, 0x0d, 0x32, 0x32, 0x30, 0x33, 0x31, 0x36, 0x30, 0x38, 0x32,
|
|
184
|
+
0x34, 0x33, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x39, 0x31, 0x32, 0x33, 0x31,
|
|
185
|
+
0x32, 0x33, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x22, 0x31, 0x20, 0x30,
|
|
186
|
+
0x1e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f,
|
|
187
|
+
0x43, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x20,
|
|
188
|
+
0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x2a, 0x30, 0x05, 0x06,
|
|
189
|
+
0x03, 0x2b, 0x65, 0x70, 0x03, 0x21, 0x00, 0xa1, 0xdb, 0x47, 0xb9, 0x51,
|
|
190
|
+
0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c, 0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac,
|
|
191
|
+
0xe3, 0x3a, 0xa0, 0xf2, 0xc6, 0x62, 0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9,
|
|
192
|
+
0x2f, 0x93, 0x59, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x41,
|
|
193
|
+
0x00, 0xb7, 0x23, 0xbc, 0x01, 0xea, 0xb0, 0x92, 0x8e, 0x8b, 0x2b, 0x6c,
|
|
194
|
+
0x98, 0xde, 0x19, 0xcc, 0x38, 0x23, 0xd4, 0x6e, 0x7d, 0x69, 0x87, 0xb0,
|
|
195
|
+
0x32, 0x47, 0x8f, 0xec, 0xfa, 0xf1, 0x45, 0x37, 0xa1, 0xaf, 0x14, 0xcc,
|
|
196
|
+
0x8b, 0xe8, 0x29, 0xc6, 0xb7, 0x30, 0x44, 0x10, 0x18, 0x37, 0xeb, 0x4a,
|
|
197
|
+
0xbc, 0x94, 0x95, 0x65, 0xd8, 0x6d, 0xce, 0x51, 0xcf, 0xae, 0x52, 0xab,
|
|
198
|
+
0x82, 0xc1, 0x52, 0xcb, 0x02,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
static const uint8_t MAC_2_info_cborised[] = {
|
|
202
|
+
0x02, 0x59, 0x01, 0x25, 0x41, 0x18, 0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48,
|
|
203
|
+
0x79, 0xf2, 0xa4, 0x1b, 0x51, 0x0c, 0x1f, 0x9b, 0x58, 0x20, 0xc6, 0x40,
|
|
204
|
+
0x5c, 0x15, 0x4c, 0x56, 0x74, 0x66, 0xab, 0x1d, 0xf2, 0x03, 0x69, 0x50,
|
|
205
|
+
0x0e, 0x54, 0x0e, 0x9f, 0x14, 0xbd, 0x3a, 0x79, 0x6a, 0x06, 0x52, 0xca,
|
|
206
|
+
0xe6, 0x6c, 0x90, 0x61, 0x68, 0x8d, 0x58, 0xf1, 0x30, 0x81, 0xee, 0x30,
|
|
207
|
+
0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x62, 0x31, 0x9e,
|
|
208
|
+
0xc4, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b,
|
|
209
|
+
0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x12, 0x45, 0x44, 0x48,
|
|
210
|
+
0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x45, 0x64, 0x32, 0x35,
|
|
211
|
+
0x35, 0x31, 0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x32, 0x30, 0x33, 0x31,
|
|
212
|
+
0x36, 0x30, 0x38, 0x32, 0x34, 0x33, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x39,
|
|
213
|
+
0x31, 0x32, 0x33, 0x31, 0x32, 0x33, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30,
|
|
214
|
+
0x22, 0x31, 0x20, 0x30, 0x1e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x17,
|
|
215
|
+
0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
216
|
+
0x64, 0x65, 0x72, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30,
|
|
217
|
+
0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x21, 0x00, 0xa1,
|
|
218
|
+
0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c, 0x1a, 0x35,
|
|
219
|
+
0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2, 0xc6, 0x62, 0xc0, 0x0b,
|
|
220
|
+
0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
221
|
+
0x65, 0x70, 0x03, 0x41, 0x00, 0xb7, 0x23, 0xbc, 0x01, 0xea, 0xb0, 0x92,
|
|
222
|
+
0x8e, 0x8b, 0x2b, 0x6c, 0x98, 0xde, 0x19, 0xcc, 0x38, 0x23, 0xd4, 0x6e,
|
|
223
|
+
0x7d, 0x69, 0x87, 0xb0, 0x32, 0x47, 0x8f, 0xec, 0xfa, 0xf1, 0x45, 0x37,
|
|
224
|
+
0xa1, 0xaf, 0x14, 0xcc, 0x8b, 0xe8, 0x29, 0xc6, 0xb7, 0x30, 0x44, 0x10,
|
|
225
|
+
0x18, 0x37, 0xeb, 0x4a, 0xbc, 0x94, 0x95, 0x65, 0xd8, 0x6d, 0xce, 0x51,
|
|
226
|
+
0xcf, 0xae, 0x52, 0xab, 0x82, 0xc1, 0x52, 0xcb, 0x02, 0x18, 0x20,
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
static const uint8_t MAC_2[] = {
|
|
230
|
+
0x86, 0x2a, 0x7e, 0x5e, 0xf1, 0x47, 0xf9, 0xa5, 0xf4, 0xc5, 0x12,
|
|
231
|
+
0xe1, 0xb6, 0x62, 0x3c, 0xd6, 0x6c, 0xd1, 0x7a, 0x72, 0x72, 0x07,
|
|
232
|
+
0x2b, 0xfe, 0x5b, 0x60, 0x2f, 0xfe, 0x30, 0x7e, 0xe0, 0xe9,
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
static const uint8_t Signature_or_MAC_2_input[] = {
|
|
236
|
+
0x84, 0x6a, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x31,
|
|
237
|
+
0x4e, 0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0x79, 0xf2, 0xa4, 0x1b, 0x51,
|
|
238
|
+
0x0c, 0x1f, 0x9b, 0x59, 0x01, 0x15, 0x58, 0x20, 0xc6, 0x40, 0x5c, 0x15,
|
|
239
|
+
0x4c, 0x56, 0x74, 0x66, 0xab, 0x1d, 0xf2, 0x03, 0x69, 0x50, 0x0e, 0x54,
|
|
240
|
+
0x0e, 0x9f, 0x14, 0xbd, 0x3a, 0x79, 0x6a, 0x06, 0x52, 0xca, 0xe6, 0x6c,
|
|
241
|
+
0x90, 0x61, 0x68, 0x8d, 0x58, 0xf1, 0x30, 0x81, 0xee, 0x30, 0x81, 0xa1,
|
|
242
|
+
0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x62, 0x31, 0x9e, 0xc4, 0x30,
|
|
243
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19,
|
|
244
|
+
0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x12, 0x45, 0x44, 0x48, 0x4f, 0x43,
|
|
245
|
+
0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31,
|
|
246
|
+
0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x32, 0x30, 0x33, 0x31, 0x36, 0x30,
|
|
247
|
+
0x38, 0x32, 0x34, 0x33, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x39, 0x31, 0x32,
|
|
248
|
+
0x33, 0x31, 0x32, 0x33, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x22, 0x31,
|
|
249
|
+
0x20, 0x30, 0x1e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x17, 0x45, 0x44,
|
|
250
|
+
0x48, 0x4f, 0x43, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65,
|
|
251
|
+
0x72, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x2a, 0x30,
|
|
252
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x21, 0x00, 0xa1, 0xdb, 0x47,
|
|
253
|
+
0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c, 0x1a, 0x35, 0x4e, 0x41,
|
|
254
|
+
0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2, 0xc6, 0x62, 0xc0, 0x0b, 0x3a, 0xc5,
|
|
255
|
+
0x5d, 0xe9, 0x2f, 0x93, 0x59, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
256
|
+
0x03, 0x41, 0x00, 0xb7, 0x23, 0xbc, 0x01, 0xea, 0xb0, 0x92, 0x8e, 0x8b,
|
|
257
|
+
0x2b, 0x6c, 0x98, 0xde, 0x19, 0xcc, 0x38, 0x23, 0xd4, 0x6e, 0x7d, 0x69,
|
|
258
|
+
0x87, 0xb0, 0x32, 0x47, 0x8f, 0xec, 0xfa, 0xf1, 0x45, 0x37, 0xa1, 0xaf,
|
|
259
|
+
0x14, 0xcc, 0x8b, 0xe8, 0x29, 0xc6, 0xb7, 0x30, 0x44, 0x10, 0x18, 0x37,
|
|
260
|
+
0xeb, 0x4a, 0xbc, 0x94, 0x95, 0x65, 0xd8, 0x6d, 0xce, 0x51, 0xcf, 0xae,
|
|
261
|
+
0x52, 0xab, 0x82, 0xc1, 0x52, 0xcb, 0x02, 0x58, 0x20, 0x86, 0x2a, 0x7e,
|
|
262
|
+
0x5e, 0xf1, 0x47, 0xf9, 0xa5, 0xf4, 0xc5, 0x12, 0xe1, 0xb6, 0x62, 0x3c,
|
|
263
|
+
0xd6, 0x6c, 0xd1, 0x7a, 0x72, 0x72, 0x07, 0x2b, 0xfe, 0x5b, 0x60, 0x2f,
|
|
264
|
+
0xfe, 0x30, 0x7e, 0xe0, 0xe9,
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
static const uint8_t Signature_or_MAC_2[] = {
|
|
268
|
+
0xc3, 0xb5, 0xbd, 0x44, 0xd1, 0xe4, 0x4a, 0x08, 0x5c, 0x03, 0xd3,
|
|
269
|
+
0xae, 0xde, 0x4e, 0x1e, 0x6c, 0x11, 0xc5, 0x72, 0xa1, 0x96, 0x8c,
|
|
270
|
+
0xc3, 0x62, 0x9b, 0x50, 0x5f, 0x98, 0xc6, 0x81, 0x60, 0x8d, 0x3d,
|
|
271
|
+
0x1d, 0xe7, 0x93, 0xd1, 0xc4, 0x0e, 0xb5, 0xdd, 0x5d, 0x89, 0xac,
|
|
272
|
+
0xf1, 0x96, 0x6a, 0xea, 0x07, 0x02, 0x2b, 0x48, 0xcd, 0xc9, 0x98,
|
|
273
|
+
0x70, 0xeb, 0xc4, 0x03, 0x74, 0xe8, 0xfa, 0x6e, 0x09,
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
static const uint8_t PLAINTEXT_2[] = {
|
|
277
|
+
0x41, 0x18, 0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0x79, 0xf2, 0xa4, 0x1b,
|
|
278
|
+
0x51, 0x0c, 0x1f, 0x9b, 0x58, 0x40, 0xc3, 0xb5, 0xbd, 0x44, 0xd1, 0xe4,
|
|
279
|
+
0x4a, 0x08, 0x5c, 0x03, 0xd3, 0xae, 0xde, 0x4e, 0x1e, 0x6c, 0x11, 0xc5,
|
|
280
|
+
0x72, 0xa1, 0x96, 0x8c, 0xc3, 0x62, 0x9b, 0x50, 0x5f, 0x98, 0xc6, 0x81,
|
|
281
|
+
0x60, 0x8d, 0x3d, 0x1d, 0xe7, 0x93, 0xd1, 0xc4, 0x0e, 0xb5, 0xdd, 0x5d,
|
|
282
|
+
0x89, 0xac, 0xf1, 0x96, 0x6a, 0xea, 0x07, 0x02, 0x2b, 0x48, 0xcd, 0xc9,
|
|
283
|
+
0x98, 0x70, 0xeb, 0xc4, 0x03, 0x74, 0xe8, 0xfa, 0x6e, 0x09,
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
static const uint8_t KEYSTREAM_2_info[] = {
|
|
287
|
+
0x00, 0x58, 0x20, 0xc6, 0x40, 0x5c, 0x15, 0x4c, 0x56, 0x74,
|
|
288
|
+
0x66, 0xab, 0x1d, 0xf2, 0x03, 0x69, 0x50, 0x0e, 0x54, 0x0e,
|
|
289
|
+
0x9f, 0x14, 0xbd, 0x3a, 0x79, 0x6a, 0x06, 0x52, 0xca, 0xe6,
|
|
290
|
+
0x6c, 0x90, 0x61, 0x68, 0x8d, 0x18, 0x52,
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
static const uint8_t KEYSTERAM_2[] = {
|
|
294
|
+
0xfd, 0x3e, 0x7c, 0x3f, 0x2d, 0x6b, 0xee, 0x64, 0x3d, 0x3c, 0x9d, 0x2f,
|
|
295
|
+
0x28, 0x47, 0x03, 0x5d, 0x73, 0xe2, 0xec, 0xb0, 0xf8, 0xdb, 0x5c, 0xd1,
|
|
296
|
+
0xc6, 0x85, 0x4e, 0x24, 0x89, 0x6a, 0xf2, 0x11, 0x88, 0xb2, 0xc4, 0x34,
|
|
297
|
+
0x4e, 0x68, 0x9e, 0xc2, 0x98, 0x42, 0x83, 0xd9, 0xfb, 0xc6, 0x9c, 0xe1,
|
|
298
|
+
0xc5, 0xdb, 0x10, 0xdc, 0xff, 0xf2, 0x4d, 0xf9, 0xa4, 0x9a, 0x04, 0xa9,
|
|
299
|
+
0x40, 0x58, 0x27, 0x7b, 0xc7, 0xfa, 0x9a, 0xd6, 0xc6, 0xb1, 0x94, 0xab,
|
|
300
|
+
0x32, 0x8b, 0x44, 0x5e, 0xb0, 0x80, 0x49, 0x0c, 0xd7, 0x86,
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
static const uint8_t CIPHERTEXT_2[] = {
|
|
304
|
+
0xbc, 0x26, 0xdd, 0x27, 0x0f, 0xe9, 0xc0, 0x2c, 0x44, 0xce, 0x39, 0x34,
|
|
305
|
+
0x79, 0x4b, 0x1c, 0xc6, 0x2b, 0xa2, 0x2f, 0x05, 0x45, 0x9f, 0x8d, 0x35,
|
|
306
|
+
0x8c, 0x8d, 0x12, 0x27, 0x5a, 0xc4, 0x2c, 0x5f, 0x96, 0xde, 0xd5, 0xf1,
|
|
307
|
+
0x3c, 0xc9, 0x08, 0x4e, 0x5b, 0x20, 0x18, 0x89, 0xa4, 0x5e, 0x5a, 0x60,
|
|
308
|
+
0xa5, 0x56, 0x2d, 0xc1, 0x18, 0x61, 0x9c, 0x3d, 0xaa, 0x2f, 0xd9, 0xf4,
|
|
309
|
+
0xc9, 0xf4, 0xd6, 0xed, 0xad, 0x10, 0x9d, 0xd4, 0xed, 0xf9, 0x59, 0x62,
|
|
310
|
+
0xaa, 0xfb, 0xaf, 0x9a, 0xb3, 0xf4, 0xa1, 0xf6, 0xb9, 0x8f,
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
static const uint8_t message_2[] = {
|
|
314
|
+
0x58, 0x72, 0xdc, 0x88, 0xd2, 0xd5, 0x1d, 0xa5, 0xed, 0x67, 0xfc, 0x46,
|
|
315
|
+
0x16, 0x35, 0x6b, 0xc8, 0xca, 0x74, 0xef, 0x9e, 0xbe, 0x8b, 0x38, 0x7e,
|
|
316
|
+
0x62, 0x3a, 0x36, 0x0b, 0xa4, 0x80, 0xb9, 0xb2, 0x9d, 0x1c, 0xbc, 0x26,
|
|
317
|
+
0xdd, 0x27, 0x0f, 0xe9, 0xc0, 0x2c, 0x44, 0xce, 0x39, 0x34, 0x79, 0x4b,
|
|
318
|
+
0x1c, 0xc6, 0x2b, 0xa2, 0x2f, 0x05, 0x45, 0x9f, 0x8d, 0x35, 0x8c, 0x8d,
|
|
319
|
+
0x12, 0x27, 0x5a, 0xc4, 0x2c, 0x5f, 0x96, 0xde, 0xd5, 0xf1, 0x3c, 0xc9,
|
|
320
|
+
0x08, 0x4e, 0x5b, 0x20, 0x18, 0x89, 0xa4, 0x5e, 0x5a, 0x60, 0xa5, 0x56,
|
|
321
|
+
0x2d, 0xc1, 0x18, 0x61, 0x9c, 0x3d, 0xaa, 0x2f, 0xd9, 0xf4, 0xc9, 0xf4,
|
|
322
|
+
0xd6, 0xed, 0xad, 0x10, 0x9d, 0xd4, 0xed, 0xf9, 0x59, 0x62, 0xaa, 0xfb,
|
|
323
|
+
0xaf, 0x9a, 0xb3, 0xf4, 0xa1, 0xf6, 0xb9, 0x8f,
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* \brief EDHOC message 3.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
static const uint8_t SK_I[] = {
|
|
331
|
+
0x4c, 0x5b, 0x25, 0x87, 0x8f, 0x50, 0x7c, 0x6b, 0x9d, 0xae, 0x68,
|
|
332
|
+
0xfb, 0xd4, 0xfd, 0x3f, 0xf9, 0x97, 0x53, 0x3d, 0xb0, 0xaf, 0x00,
|
|
333
|
+
0xb2, 0x5d, 0x32, 0x4e, 0xa2, 0x8e, 0x6c, 0x21, 0x3b, 0xc8,
|
|
334
|
+
|
|
335
|
+
0xed, 0x06, 0xa8, 0xae, 0x61, 0xa8, 0x29, 0xba, 0x5f, 0xa5, 0x45,
|
|
336
|
+
0x25, 0xc9, 0xd0, 0x7f, 0x48, 0xdd, 0x44, 0xa3, 0x02, 0xf4, 0x3e,
|
|
337
|
+
0x0f, 0x23, 0xd8, 0xcc, 0x20, 0xb7, 0x30, 0x85, 0x14, 0x1e,
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
static const uint8_t PK_I[] = {
|
|
341
|
+
0xed, 0x06, 0xa8, 0xae, 0x61, 0xa8, 0x29, 0xba, 0x5f, 0xa5, 0x45,
|
|
342
|
+
0x25, 0xc9, 0xd0, 0x7f, 0x48, 0xdd, 0x44, 0xa3, 0x02, 0xf4, 0x3e,
|
|
343
|
+
0x0f, 0x23, 0xd8, 0xcc, 0x20, 0xb7, 0x30, 0x85, 0x14, 0x1e,
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
static const uint8_t TH_3_input[] = {
|
|
347
|
+
0x58, 0x20, 0xc6, 0x40, 0x5c, 0x15, 0x4c, 0x56, 0x74, 0x66, 0xab, 0x1d,
|
|
348
|
+
0xf2, 0x03, 0x69, 0x50, 0x0e, 0x54, 0x0e, 0x9f, 0x14, 0xbd, 0x3a, 0x79,
|
|
349
|
+
0x6a, 0x06, 0x52, 0xca, 0xe6, 0x6c, 0x90, 0x61, 0x68, 0x8d, 0x41, 0x18,
|
|
350
|
+
0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0x79, 0xf2, 0xa4, 0x1b, 0x51, 0x0c,
|
|
351
|
+
0x1f, 0x9b, 0x58, 0x40, 0xc3, 0xb5, 0xbd, 0x44, 0xd1, 0xe4, 0x4a, 0x08,
|
|
352
|
+
0x5c, 0x03, 0xd3, 0xae, 0xde, 0x4e, 0x1e, 0x6c, 0x11, 0xc5, 0x72, 0xa1,
|
|
353
|
+
0x96, 0x8c, 0xc3, 0x62, 0x9b, 0x50, 0x5f, 0x98, 0xc6, 0x81, 0x60, 0x8d,
|
|
354
|
+
0x3d, 0x1d, 0xe7, 0x93, 0xd1, 0xc4, 0x0e, 0xb5, 0xdd, 0x5d, 0x89, 0xac,
|
|
355
|
+
0xf1, 0x96, 0x6a, 0xea, 0x07, 0x02, 0x2b, 0x48, 0xcd, 0xc9, 0x98, 0x70,
|
|
356
|
+
0xeb, 0xc4, 0x03, 0x74, 0xe8, 0xfa, 0x6e, 0x09, 0x58, 0xf1, 0x30, 0x81,
|
|
357
|
+
0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x62,
|
|
358
|
+
0x31, 0x9e, 0xc4, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x30, 0x1d,
|
|
359
|
+
0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x12, 0x45,
|
|
360
|
+
0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x45, 0x64,
|
|
361
|
+
0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x32, 0x30,
|
|
362
|
+
0x33, 0x31, 0x36, 0x30, 0x38, 0x32, 0x34, 0x33, 0x36, 0x5a, 0x17, 0x0d,
|
|
363
|
+
0x32, 0x39, 0x31, 0x32, 0x33, 0x31, 0x32, 0x33, 0x30, 0x30, 0x30, 0x30,
|
|
364
|
+
0x5a, 0x30, 0x22, 0x31, 0x20, 0x30, 0x1e, 0x06, 0x03, 0x55, 0x04, 0x03,
|
|
365
|
+
0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x65, 0x73, 0x70,
|
|
366
|
+
0x6f, 0x6e, 0x64, 0x65, 0x72, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31,
|
|
367
|
+
0x39, 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x21,
|
|
368
|
+
0x00, 0xa1, 0xdb, 0x47, 0xb9, 0x51, 0x84, 0x85, 0x4a, 0xd1, 0x2a, 0x0c,
|
|
369
|
+
0x1a, 0x35, 0x4e, 0x41, 0x8a, 0xac, 0xe3, 0x3a, 0xa0, 0xf2, 0xc6, 0x62,
|
|
370
|
+
0xc0, 0x0b, 0x3a, 0xc5, 0x5d, 0xe9, 0x2f, 0x93, 0x59, 0x30, 0x05, 0x06,
|
|
371
|
+
0x03, 0x2b, 0x65, 0x70, 0x03, 0x41, 0x00, 0xb7, 0x23, 0xbc, 0x01, 0xea,
|
|
372
|
+
0xb0, 0x92, 0x8e, 0x8b, 0x2b, 0x6c, 0x98, 0xde, 0x19, 0xcc, 0x38, 0x23,
|
|
373
|
+
0xd4, 0x6e, 0x7d, 0x69, 0x87, 0xb0, 0x32, 0x47, 0x8f, 0xec, 0xfa, 0xf1,
|
|
374
|
+
0x45, 0x37, 0xa1, 0xaf, 0x14, 0xcc, 0x8b, 0xe8, 0x29, 0xc6, 0xb7, 0x30,
|
|
375
|
+
0x44, 0x10, 0x18, 0x37, 0xeb, 0x4a, 0xbc, 0x94, 0x95, 0x65, 0xd8, 0x6d,
|
|
376
|
+
0xce, 0x51, 0xcf, 0xae, 0x52, 0xab, 0x82, 0xc1, 0x52, 0xcb, 0x02,
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
static const uint8_t TH_3[] = {
|
|
380
|
+
0x5b, 0x7d, 0xf9, 0xb4, 0xf5, 0x8f, 0x24, 0x0c, 0xe0, 0x41, 0x8e,
|
|
381
|
+
0x48, 0x19, 0x1b, 0x5f, 0xff, 0x3a, 0x22, 0xb5, 0xca, 0x57, 0xf6,
|
|
382
|
+
0x69, 0xb1, 0x67, 0x77, 0x99, 0x65, 0x92, 0xe9, 0x28, 0xbc,
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
static const uint8_t PRK_4e3m[] = {
|
|
386
|
+
0xd5, 0x84, 0xac, 0x2e, 0x5d, 0xad, 0x5a, 0x77, 0xd1, 0x4b, 0x53,
|
|
387
|
+
0xeb, 0xe7, 0x2e, 0xf1, 0xd5, 0xda, 0xa8, 0x86, 0x0d, 0x39, 0x93,
|
|
388
|
+
0x73, 0xbf, 0x2c, 0x24, 0x0a, 0xfa, 0x7b, 0xa8, 0x04, 0xda,
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
static const uint8_t ID_CRED_I_cborised[] = {
|
|
392
|
+
0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0xc2,
|
|
393
|
+
0x4a, 0xb2, 0xfd, 0x76, 0x43, 0xc7, 0x9f,
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
static const uint8_t CRED_I[] = {
|
|
397
|
+
0x30, 0x81, 0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02,
|
|
398
|
+
0x04, 0x62, 0x31, 0x9e, 0xa0, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
399
|
+
0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
|
|
400
|
+
0x12, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20,
|
|
401
|
+
0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32,
|
|
402
|
+
0x32, 0x30, 0x33, 0x31, 0x36, 0x30, 0x38, 0x32, 0x34, 0x30, 0x30, 0x5a,
|
|
403
|
+
0x17, 0x0d, 0x32, 0x39, 0x31, 0x32, 0x33, 0x31, 0x32, 0x33, 0x30, 0x30,
|
|
404
|
+
0x30, 0x30, 0x5a, 0x30, 0x22, 0x31, 0x20, 0x30, 0x1e, 0x06, 0x03, 0x55,
|
|
405
|
+
0x04, 0x03, 0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x49, 0x6e,
|
|
406
|
+
0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x45, 0x64, 0x32, 0x35,
|
|
407
|
+
0x35, 0x31, 0x39, 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
408
|
+
0x03, 0x21, 0x00, 0xed, 0x06, 0xa8, 0xae, 0x61, 0xa8, 0x29, 0xba, 0x5f,
|
|
409
|
+
0xa5, 0x45, 0x25, 0xc9, 0xd0, 0x7f, 0x48, 0xdd, 0x44, 0xa3, 0x02, 0xf4,
|
|
410
|
+
0x3e, 0x0f, 0x23, 0xd8, 0xcc, 0x20, 0xb7, 0x30, 0x85, 0x14, 0x1e, 0x30,
|
|
411
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x41, 0x00, 0x52, 0x12, 0x41,
|
|
412
|
+
0xd8, 0xb3, 0xa7, 0x70, 0x99, 0x6b, 0xcf, 0xc9, 0xb9, 0xea, 0xd4, 0xe7,
|
|
413
|
+
0xe0, 0xa1, 0xc0, 0xdb, 0x35, 0x3a, 0x3b, 0xdf, 0x29, 0x10, 0xb3, 0x92,
|
|
414
|
+
0x75, 0xae, 0x48, 0xb7, 0x56, 0x01, 0x59, 0x81, 0x85, 0x0d, 0x27, 0xdb,
|
|
415
|
+
0x67, 0x34, 0xe3, 0x7f, 0x67, 0x21, 0x22, 0x67, 0xdd, 0x05, 0xee, 0xff,
|
|
416
|
+
0x27, 0xb9, 0xe7, 0xa8, 0x13, 0xfa, 0x57, 0x4b, 0x72, 0xa0, 0x0b, 0x43,
|
|
417
|
+
0x0b,
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
static const uint8_t CRED_I_cborised[] = {
|
|
421
|
+
0x58, 0xf1, 0x30, 0x81, 0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01,
|
|
422
|
+
0x02, 0x02, 0x04, 0x62, 0x31, 0x9e, 0xa0, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
423
|
+
0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04,
|
|
424
|
+
0x03, 0x0c, 0x12, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f,
|
|
425
|
+
0x74, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x1e, 0x17,
|
|
426
|
+
0x0d, 0x32, 0x32, 0x30, 0x33, 0x31, 0x36, 0x30, 0x38, 0x32, 0x34, 0x30,
|
|
427
|
+
0x30, 0x5a, 0x17, 0x0d, 0x32, 0x39, 0x31, 0x32, 0x33, 0x31, 0x32, 0x33,
|
|
428
|
+
0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x22, 0x31, 0x20, 0x30, 0x1e, 0x06,
|
|
429
|
+
0x03, 0x55, 0x04, 0x03, 0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20,
|
|
430
|
+
0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x45, 0x64,
|
|
431
|
+
0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
432
|
+
0x65, 0x70, 0x03, 0x21, 0x00, 0xed, 0x06, 0xa8, 0xae, 0x61, 0xa8, 0x29,
|
|
433
|
+
0xba, 0x5f, 0xa5, 0x45, 0x25, 0xc9, 0xd0, 0x7f, 0x48, 0xdd, 0x44, 0xa3,
|
|
434
|
+
0x02, 0xf4, 0x3e, 0x0f, 0x23, 0xd8, 0xcc, 0x20, 0xb7, 0x30, 0x85, 0x14,
|
|
435
|
+
0x1e, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x41, 0x00, 0x52,
|
|
436
|
+
0x12, 0x41, 0xd8, 0xb3, 0xa7, 0x70, 0x99, 0x6b, 0xcf, 0xc9, 0xb9, 0xea,
|
|
437
|
+
0xd4, 0xe7, 0xe0, 0xa1, 0xc0, 0xdb, 0x35, 0x3a, 0x3b, 0xdf, 0x29, 0x10,
|
|
438
|
+
0xb3, 0x92, 0x75, 0xae, 0x48, 0xb7, 0x56, 0x01, 0x59, 0x81, 0x85, 0x0d,
|
|
439
|
+
0x27, 0xdb, 0x67, 0x34, 0xe3, 0x7f, 0x67, 0x21, 0x22, 0x67, 0xdd, 0x05,
|
|
440
|
+
0xee, 0xff, 0x27, 0xb9, 0xe7, 0xa8, 0x13, 0xfa, 0x57, 0x4b, 0x72, 0xa0,
|
|
441
|
+
0x0b, 0x43, 0x0b,
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
static const uint8_t context_3[] = {
|
|
445
|
+
0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0xc2, 0x4a, 0xb2, 0xfd, 0x76, 0x43,
|
|
446
|
+
0xc7, 0x9f, 0x58, 0x20, 0x5b, 0x7d, 0xf9, 0xb4, 0xf5, 0x8f, 0x24, 0x0c,
|
|
447
|
+
0xe0, 0x41, 0x8e, 0x48, 0x19, 0x1b, 0x5f, 0xff, 0x3a, 0x22, 0xb5, 0xca,
|
|
448
|
+
0x57, 0xf6, 0x69, 0xb1, 0x67, 0x77, 0x99, 0x65, 0x92, 0xe9, 0x28, 0xbc,
|
|
449
|
+
0x58, 0xf1, 0x30, 0x81, 0xee, 0x30, 0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01,
|
|
450
|
+
0x02, 0x02, 0x04, 0x62, 0x31, 0x9e, 0xa0, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
451
|
+
0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04,
|
|
452
|
+
0x03, 0x0c, 0x12, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f,
|
|
453
|
+
0x74, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x1e, 0x17,
|
|
454
|
+
0x0d, 0x32, 0x32, 0x30, 0x33, 0x31, 0x36, 0x30, 0x38, 0x32, 0x34, 0x30,
|
|
455
|
+
0x30, 0x5a, 0x17, 0x0d, 0x32, 0x39, 0x31, 0x32, 0x33, 0x31, 0x32, 0x33,
|
|
456
|
+
0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x22, 0x31, 0x20, 0x30, 0x1e, 0x06,
|
|
457
|
+
0x03, 0x55, 0x04, 0x03, 0x0c, 0x17, 0x45, 0x44, 0x48, 0x4f, 0x43, 0x20,
|
|
458
|
+
0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x45, 0x64,
|
|
459
|
+
0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
460
|
+
0x65, 0x70, 0x03, 0x21, 0x00, 0xed, 0x06, 0xa8, 0xae, 0x61, 0xa8, 0x29,
|
|
461
|
+
0xba, 0x5f, 0xa5, 0x45, 0x25, 0xc9, 0xd0, 0x7f, 0x48, 0xdd, 0x44, 0xa3,
|
|
462
|
+
0x02, 0xf4, 0x3e, 0x0f, 0x23, 0xd8, 0xcc, 0x20, 0xb7, 0x30, 0x85, 0x14,
|
|
463
|
+
0x1e, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x41, 0x00, 0x52,
|
|
464
|
+
0x12, 0x41, 0xd8, 0xb3, 0xa7, 0x70, 0x99, 0x6b, 0xcf, 0xc9, 0xb9, 0xea,
|
|
465
|
+
0xd4, 0xe7, 0xe0, 0xa1, 0xc0, 0xdb, 0x35, 0x3a, 0x3b, 0xdf, 0x29, 0x10,
|
|
466
|
+
0xb3, 0x92, 0x75, 0xae, 0x48, 0xb7, 0x56, 0x01, 0x59, 0x81, 0x85, 0x0d,
|
|
467
|
+
0x27, 0xdb, 0x67, 0x34, 0xe3, 0x7f, 0x67, 0x21, 0x22, 0x67, 0xdd, 0x05,
|
|
468
|
+
0xee, 0xff, 0x27, 0xb9, 0xe7, 0xa8, 0x13, 0xfa, 0x57, 0x4b, 0x72, 0xa0,
|
|
469
|
+
0x0b, 0x43, 0x0b,
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
static const uint8_t MAC_3_info[] = {
|
|
473
|
+
0x06, 0x59, 0x01, 0x23, 0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0xc2, 0x4a,
|
|
474
|
+
0xb2, 0xfd, 0x76, 0x43, 0xc7, 0x9f, 0x58, 0x20, 0x5b, 0x7d, 0xf9, 0xb4,
|
|
475
|
+
0xf5, 0x8f, 0x24, 0x0c, 0xe0, 0x41, 0x8e, 0x48, 0x19, 0x1b, 0x5f, 0xff,
|
|
476
|
+
0x3a, 0x22, 0xb5, 0xca, 0x57, 0xf6, 0x69, 0xb1, 0x67, 0x77, 0x99, 0x65,
|
|
477
|
+
0x92, 0xe9, 0x28, 0xbc, 0x58, 0xf1, 0x30, 0x81, 0xee, 0x30, 0x81, 0xa1,
|
|
478
|
+
0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x62, 0x31, 0x9e, 0xa0, 0x30,
|
|
479
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19,
|
|
480
|
+
0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x12, 0x45, 0x44, 0x48, 0x4f, 0x43,
|
|
481
|
+
0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31,
|
|
482
|
+
0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x32, 0x30, 0x33, 0x31, 0x36, 0x30,
|
|
483
|
+
0x38, 0x32, 0x34, 0x30, 0x30, 0x5a, 0x17, 0x0d, 0x32, 0x39, 0x31, 0x32,
|
|
484
|
+
0x33, 0x31, 0x32, 0x33, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x22, 0x31,
|
|
485
|
+
0x20, 0x30, 0x1e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x17, 0x45, 0x44,
|
|
486
|
+
0x48, 0x4f, 0x43, 0x20, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f,
|
|
487
|
+
0x72, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x2a, 0x30,
|
|
488
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x21, 0x00, 0xed, 0x06, 0xa8,
|
|
489
|
+
0xae, 0x61, 0xa8, 0x29, 0xba, 0x5f, 0xa5, 0x45, 0x25, 0xc9, 0xd0, 0x7f,
|
|
490
|
+
0x48, 0xdd, 0x44, 0xa3, 0x02, 0xf4, 0x3e, 0x0f, 0x23, 0xd8, 0xcc, 0x20,
|
|
491
|
+
0xb7, 0x30, 0x85, 0x14, 0x1e, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
492
|
+
0x03, 0x41, 0x00, 0x52, 0x12, 0x41, 0xd8, 0xb3, 0xa7, 0x70, 0x99, 0x6b,
|
|
493
|
+
0xcf, 0xc9, 0xb9, 0xea, 0xd4, 0xe7, 0xe0, 0xa1, 0xc0, 0xdb, 0x35, 0x3a,
|
|
494
|
+
0x3b, 0xdf, 0x29, 0x10, 0xb3, 0x92, 0x75, 0xae, 0x48, 0xb7, 0x56, 0x01,
|
|
495
|
+
0x59, 0x81, 0x85, 0x0d, 0x27, 0xdb, 0x67, 0x34, 0xe3, 0x7f, 0x67, 0x21,
|
|
496
|
+
0x22, 0x67, 0xdd, 0x05, 0xee, 0xff, 0x27, 0xb9, 0xe7, 0xa8, 0x13, 0xfa,
|
|
497
|
+
0x57, 0x4b, 0x72, 0xa0, 0x0b, 0x43, 0x0b, 0x18, 0x20,
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
static const uint8_t MAC_3[] = {
|
|
501
|
+
0x39, 0xb1, 0x27, 0xc1, 0x30, 0x12, 0x9a, 0xfa, 0x30, 0x61, 0x8c,
|
|
502
|
+
0x75, 0x13, 0x29, 0xe6, 0x37, 0xcc, 0x37, 0x34, 0x27, 0x0d, 0x4b,
|
|
503
|
+
0x01, 0x25, 0x84, 0x45, 0xa8, 0xee, 0x02, 0xda, 0xa3, 0xbd,
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
static const uint8_t Signature_or_MAC_3_input[] = {
|
|
507
|
+
0x84, 0x6a, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x31,
|
|
508
|
+
0x4e, 0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0xc2, 0x4a, 0xb2, 0xfd, 0x76,
|
|
509
|
+
0x43, 0xc7, 0x9f, 0x59, 0x01, 0x15, 0x58, 0x20, 0x5b, 0x7d, 0xf9, 0xb4,
|
|
510
|
+
0xf5, 0x8f, 0x24, 0x0c, 0xe0, 0x41, 0x8e, 0x48, 0x19, 0x1b, 0x5f, 0xff,
|
|
511
|
+
0x3a, 0x22, 0xb5, 0xca, 0x57, 0xf6, 0x69, 0xb1, 0x67, 0x77, 0x99, 0x65,
|
|
512
|
+
0x92, 0xe9, 0x28, 0xbc, 0x58, 0xf1, 0x30, 0x81, 0xee, 0x30, 0x81, 0xa1,
|
|
513
|
+
0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x62, 0x31, 0x9e, 0xa0, 0x30,
|
|
514
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b, 0x30, 0x19,
|
|
515
|
+
0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x12, 0x45, 0x44, 0x48, 0x4f, 0x43,
|
|
516
|
+
0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31,
|
|
517
|
+
0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x32, 0x30, 0x33, 0x31, 0x36, 0x30,
|
|
518
|
+
0x38, 0x32, 0x34, 0x30, 0x30, 0x5a, 0x17, 0x0d, 0x32, 0x39, 0x31, 0x32,
|
|
519
|
+
0x33, 0x31, 0x32, 0x33, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x22, 0x31,
|
|
520
|
+
0x20, 0x30, 0x1e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x17, 0x45, 0x44,
|
|
521
|
+
0x48, 0x4f, 0x43, 0x20, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f,
|
|
522
|
+
0x72, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30, 0x2a, 0x30,
|
|
523
|
+
0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x21, 0x00, 0xed, 0x06, 0xa8,
|
|
524
|
+
0xae, 0x61, 0xa8, 0x29, 0xba, 0x5f, 0xa5, 0x45, 0x25, 0xc9, 0xd0, 0x7f,
|
|
525
|
+
0x48, 0xdd, 0x44, 0xa3, 0x02, 0xf4, 0x3e, 0x0f, 0x23, 0xd8, 0xcc, 0x20,
|
|
526
|
+
0xb7, 0x30, 0x85, 0x14, 0x1e, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70,
|
|
527
|
+
0x03, 0x41, 0x00, 0x52, 0x12, 0x41, 0xd8, 0xb3, 0xa7, 0x70, 0x99, 0x6b,
|
|
528
|
+
0xcf, 0xc9, 0xb9, 0xea, 0xd4, 0xe7, 0xe0, 0xa1, 0xc0, 0xdb, 0x35, 0x3a,
|
|
529
|
+
0x3b, 0xdf, 0x29, 0x10, 0xb3, 0x92, 0x75, 0xae, 0x48, 0xb7, 0x56, 0x01,
|
|
530
|
+
0x59, 0x81, 0x85, 0x0d, 0x27, 0xdb, 0x67, 0x34, 0xe3, 0x7f, 0x67, 0x21,
|
|
531
|
+
0x22, 0x67, 0xdd, 0x05, 0xee, 0xff, 0x27, 0xb9, 0xe7, 0xa8, 0x13, 0xfa,
|
|
532
|
+
0x57, 0x4b, 0x72, 0xa0, 0x0b, 0x43, 0x0b, 0x58, 0x20, 0x39, 0xb1, 0x27,
|
|
533
|
+
0xc1, 0x30, 0x12, 0x9a, 0xfa, 0x30, 0x61, 0x8c, 0x75, 0x13, 0x29, 0xe6,
|
|
534
|
+
0x37, 0xcc, 0x37, 0x34, 0x27, 0x0d, 0x4b, 0x01, 0x25, 0x84, 0x45, 0xa8,
|
|
535
|
+
0xee, 0x02, 0xda, 0xa3, 0xbd,
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
static const uint8_t Signature_or_MAC_3[] = {
|
|
539
|
+
0x96, 0xe1, 0xcd, 0x5f, 0xce, 0xad, 0xfa, 0xc1, 0xb5, 0xaf, 0x81,
|
|
540
|
+
0x94, 0x43, 0xf7, 0x09, 0x24, 0xf5, 0x71, 0x99, 0x55, 0x95, 0x7f,
|
|
541
|
+
0xd0, 0x26, 0x55, 0xbe, 0xb4, 0x77, 0x5e, 0x1a, 0x73, 0x18, 0x6a,
|
|
542
|
+
0x0d, 0x1d, 0x3e, 0xa6, 0x83, 0xf0, 0x8f, 0x8d, 0x03, 0xdc, 0xec,
|
|
543
|
+
0xb9, 0xcf, 0x15, 0x4e, 0x1c, 0x6f, 0x55, 0x5a, 0x1e, 0x12, 0xca,
|
|
544
|
+
0x11, 0x8c, 0xe4, 0x2b, 0xdb, 0xa6, 0x87, 0x89, 0x07,
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
static const uint8_t PLAINTET_3[] = {
|
|
548
|
+
0xa1, 0x18, 0x22, 0x82, 0x2e, 0x48, 0xc2, 0x4a, 0xb2, 0xfd, 0x76, 0x43,
|
|
549
|
+
0xc7, 0x9f, 0x58, 0x40, 0x96, 0xe1, 0xcd, 0x5f, 0xce, 0xad, 0xfa, 0xc1,
|
|
550
|
+
0xb5, 0xaf, 0x81, 0x94, 0x43, 0xf7, 0x09, 0x24, 0xf5, 0x71, 0x99, 0x55,
|
|
551
|
+
0x95, 0x7f, 0xd0, 0x26, 0x55, 0xbe, 0xb4, 0x77, 0x5e, 0x1a, 0x73, 0x18,
|
|
552
|
+
0x6a, 0x0d, 0x1d, 0x3e, 0xa6, 0x83, 0xf0, 0x8f, 0x8d, 0x03, 0xdc, 0xec,
|
|
553
|
+
0xb9, 0xcf, 0x15, 0x4e, 0x1c, 0x6f, 0x55, 0x5a, 0x1e, 0x12, 0xca, 0x11,
|
|
554
|
+
0x8c, 0xe4, 0x2b, 0xdb, 0xa6, 0x87, 0x89, 0x07,
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
static const uint8_t A_3[] = {
|
|
558
|
+
0x83, 0x68, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x30, 0x40, 0x58,
|
|
559
|
+
0x20, 0x5b, 0x7d, 0xf9, 0xb4, 0xf5, 0x8f, 0x24, 0x0c, 0xe0, 0x41, 0x8e,
|
|
560
|
+
0x48, 0x19, 0x1b, 0x5f, 0xff, 0x3a, 0x22, 0xb5, 0xca, 0x57, 0xf6, 0x69,
|
|
561
|
+
0xb1, 0x67, 0x77, 0x99, 0x65, 0x92, 0xe9, 0x28, 0xbc,
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
static const uint8_t K_3_info[] = {
|
|
565
|
+
0x03, 0x58, 0x20, 0x5b, 0x7d, 0xf9, 0xb4, 0xf5, 0x8f, 0x24, 0x0c, 0xe0,
|
|
566
|
+
0x41, 0x8e, 0x48, 0x19, 0x1b, 0x5f, 0xff, 0x3a, 0x22, 0xb5, 0xca, 0x57,
|
|
567
|
+
0xf6, 0x69, 0xb1, 0x67, 0x77, 0x99, 0x65, 0x92, 0xe9, 0x28, 0xbc, 0x10,
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
static const uint8_t K_3[] = {
|
|
571
|
+
0xda, 0x19, 0x5e, 0x5f, 0x64, 0x8a, 0xc6, 0x3b,
|
|
572
|
+
0x0e, 0x8f, 0xb0, 0xc4, 0x55, 0x20, 0x51, 0x39,
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
static const uint8_t IV_3_info[] = {
|
|
576
|
+
0x04, 0x58, 0x20, 0x5b, 0x7d, 0xf9, 0xb4, 0xf5, 0x8f, 0x24, 0x0c, 0xe0,
|
|
577
|
+
0x41, 0x8e, 0x48, 0x19, 0x1b, 0x5f, 0xff, 0x3a, 0x22, 0xb5, 0xca, 0x57,
|
|
578
|
+
0xf6, 0x69, 0xb1, 0x67, 0x77, 0x99, 0x65, 0x92, 0xe9, 0x28, 0xbc, 0x0d,
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
static const uint8_t IV_3[] = {
|
|
582
|
+
0x38, 0xd8, 0xc6, 0x4c, 0x56, 0x25, 0x5a,
|
|
583
|
+
0xff, 0xa4, 0x49, 0xf4, 0xbe, 0xd7,
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
static const uint8_t CIPHERTEXT_3[] = {
|
|
587
|
+
0x25, 0xc3, 0x45, 0x88, 0x4a, 0xaa, 0xeb, 0x22, 0xc5, 0x27, 0xf9,
|
|
588
|
+
0xb1, 0xd2, 0xb6, 0x78, 0x72, 0x07, 0xe0, 0x16, 0x3c, 0x69, 0xb6,
|
|
589
|
+
0x2a, 0x0d, 0x43, 0x92, 0x81, 0x50, 0x42, 0x72, 0x03, 0xc3, 0x16,
|
|
590
|
+
0x74, 0xe4, 0x51, 0x4e, 0xa6, 0xe3, 0x83, 0xb5, 0x66, 0xeb, 0x29,
|
|
591
|
+
0x76, 0x3e, 0xfe, 0xb0, 0xaf, 0xa5, 0x18, 0x77, 0x6a, 0xe1, 0xc6,
|
|
592
|
+
0x5f, 0x85, 0x6d, 0x84, 0xbf, 0x32, 0xaf, 0x3a, 0x78, 0x36, 0x97,
|
|
593
|
+
0x04, 0x66, 0xdc, 0xb7, 0x1f, 0x76, 0x74, 0x5d, 0x39, 0xd3, 0x02,
|
|
594
|
+
0x5e, 0x77, 0x03, 0xe0, 0xc0, 0x32, 0xeb, 0xad, 0x51, 0x94, 0x7c,
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
static const uint8_t message_3[] = {
|
|
598
|
+
0x58, 0x58, 0x25, 0xc3, 0x45, 0x88, 0x4a, 0xaa, 0xeb, 0x22, 0xc5, 0x27,
|
|
599
|
+
0xf9, 0xb1, 0xd2, 0xb6, 0x78, 0x72, 0x07, 0xe0, 0x16, 0x3c, 0x69, 0xb6,
|
|
600
|
+
0x2a, 0x0d, 0x43, 0x92, 0x81, 0x50, 0x42, 0x72, 0x03, 0xc3, 0x16, 0x74,
|
|
601
|
+
0xe4, 0x51, 0x4e, 0xa6, 0xe3, 0x83, 0xb5, 0x66, 0xeb, 0x29, 0x76, 0x3e,
|
|
602
|
+
0xfe, 0xb0, 0xaf, 0xa5, 0x18, 0x77, 0x6a, 0xe1, 0xc6, 0x5f, 0x85, 0x6d,
|
|
603
|
+
0x84, 0xbf, 0x32, 0xaf, 0x3a, 0x78, 0x36, 0x97, 0x04, 0x66, 0xdc, 0xb7,
|
|
604
|
+
0x1f, 0x76, 0x74, 0x5d, 0x39, 0xd3, 0x02, 0x5e, 0x77, 0x03, 0xe0, 0xc0,
|
|
605
|
+
0x32, 0xeb, 0xad, 0x51, 0x94, 0x7c,
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
static const uint8_t TH_4_input[] = {
|
|
609
|
+
0x58, 0x20, 0x5b, 0x7d, 0xf9, 0xb4, 0xf5, 0x8f, 0x24, 0x0c, 0xe0, 0x41,
|
|
610
|
+
0x8e, 0x48, 0x19, 0x1b, 0x5f, 0xff, 0x3a, 0x22, 0xb5, 0xca, 0x57, 0xf6,
|
|
611
|
+
0x69, 0xb1, 0x67, 0x77, 0x99, 0x65, 0x92, 0xe9, 0x28, 0xbc, 0xa1, 0x18,
|
|
612
|
+
0x22, 0x82, 0x2e, 0x48, 0xc2, 0x4a, 0xb2, 0xfd, 0x76, 0x43, 0xc7, 0x9f,
|
|
613
|
+
0x58, 0x40, 0x96, 0xe1, 0xcd, 0x5f, 0xce, 0xad, 0xfa, 0xc1, 0xb5, 0xaf,
|
|
614
|
+
0x81, 0x94, 0x43, 0xf7, 0x09, 0x24, 0xf5, 0x71, 0x99, 0x55, 0x95, 0x7f,
|
|
615
|
+
0xd0, 0x26, 0x55, 0xbe, 0xb4, 0x77, 0x5e, 0x1a, 0x73, 0x18, 0x6a, 0x0d,
|
|
616
|
+
0x1d, 0x3e, 0xa6, 0x83, 0xf0, 0x8f, 0x8d, 0x03, 0xdc, 0xec, 0xb9, 0xcf,
|
|
617
|
+
0x15, 0x4e, 0x1c, 0x6f, 0x55, 0x5a, 0x1e, 0x12, 0xca, 0x11, 0x8c, 0xe4,
|
|
618
|
+
0x2b, 0xdb, 0xa6, 0x87, 0x89, 0x07, 0x58, 0xf1, 0x30, 0x81, 0xee, 0x30,
|
|
619
|
+
0x81, 0xa1, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x62, 0x31, 0x9e,
|
|
620
|
+
0xa0, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x30, 0x1d, 0x31, 0x1b,
|
|
621
|
+
0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x12, 0x45, 0x44, 0x48,
|
|
622
|
+
0x4f, 0x43, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x45, 0x64, 0x32, 0x35,
|
|
623
|
+
0x35, 0x31, 0x39, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x32, 0x30, 0x33, 0x31,
|
|
624
|
+
0x36, 0x30, 0x38, 0x32, 0x34, 0x30, 0x30, 0x5a, 0x17, 0x0d, 0x32, 0x39,
|
|
625
|
+
0x31, 0x32, 0x33, 0x31, 0x32, 0x33, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30,
|
|
626
|
+
0x22, 0x31, 0x20, 0x30, 0x1e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x17,
|
|
627
|
+
0x45, 0x44, 0x48, 0x4f, 0x43, 0x20, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61,
|
|
628
|
+
0x74, 0x6f, 0x72, 0x20, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x30,
|
|
629
|
+
0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x21, 0x00, 0xed,
|
|
630
|
+
0x06, 0xa8, 0xae, 0x61, 0xa8, 0x29, 0xba, 0x5f, 0xa5, 0x45, 0x25, 0xc9,
|
|
631
|
+
0xd0, 0x7f, 0x48, 0xdd, 0x44, 0xa3, 0x02, 0xf4, 0x3e, 0x0f, 0x23, 0xd8,
|
|
632
|
+
0xcc, 0x20, 0xb7, 0x30, 0x85, 0x14, 0x1e, 0x30, 0x05, 0x06, 0x03, 0x2b,
|
|
633
|
+
0x65, 0x70, 0x03, 0x41, 0x00, 0x52, 0x12, 0x41, 0xd8, 0xb3, 0xa7, 0x70,
|
|
634
|
+
0x99, 0x6b, 0xcf, 0xc9, 0xb9, 0xea, 0xd4, 0xe7, 0xe0, 0xa1, 0xc0, 0xdb,
|
|
635
|
+
0x35, 0x3a, 0x3b, 0xdf, 0x29, 0x10, 0xb3, 0x92, 0x75, 0xae, 0x48, 0xb7,
|
|
636
|
+
0x56, 0x01, 0x59, 0x81, 0x85, 0x0d, 0x27, 0xdb, 0x67, 0x34, 0xe3, 0x7f,
|
|
637
|
+
0x67, 0x21, 0x22, 0x67, 0xdd, 0x05, 0xee, 0xff, 0x27, 0xb9, 0xe7, 0xa8,
|
|
638
|
+
0x13, 0xfa, 0x57, 0x4b, 0x72, 0xa0, 0x0b, 0x43, 0x0b,
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
static const uint8_t TH_4[] = {
|
|
642
|
+
0x0e, 0xb8, 0x68, 0xf2, 0x63, 0xcf, 0x35, 0x55, 0xdc, 0xcd, 0x39,
|
|
643
|
+
0x6d, 0xd8, 0xde, 0xc2, 0x9d, 0x37, 0x50, 0xd5, 0x99, 0xbe, 0x42,
|
|
644
|
+
0xd5, 0xa4, 0x1a, 0x5a, 0x37, 0xc8, 0x96, 0xf2, 0x94, 0xac,
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* \brief EDHOC message 4.
|
|
649
|
+
*/
|
|
650
|
+
|
|
651
|
+
static const uint8_t A_4[] = {
|
|
652
|
+
0x83, 0x68, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x30, 0x40, 0x58,
|
|
653
|
+
0x20, 0x0e, 0xb8, 0x68, 0xf2, 0x63, 0xcf, 0x35, 0x55, 0xdc, 0xcd, 0x39,
|
|
654
|
+
0x6d, 0xd8, 0xde, 0xc2, 0x9d, 0x37, 0x50, 0xd5, 0x99, 0xbe, 0x42, 0xd5,
|
|
655
|
+
0xa4, 0x1a, 0x5a, 0x37, 0xc8, 0x96, 0xf2, 0x94, 0xac,
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
static const uint8_t K_4_info[] = {
|
|
659
|
+
0x08, 0x58, 0x20, 0x0e, 0xb8, 0x68, 0xf2, 0x63, 0xcf, 0x35, 0x55, 0xdc,
|
|
660
|
+
0xcd, 0x39, 0x6d, 0xd8, 0xde, 0xc2, 0x9d, 0x37, 0x50, 0xd5, 0x99, 0xbe,
|
|
661
|
+
0x42, 0xd5, 0xa4, 0x1a, 0x5a, 0x37, 0xc8, 0x96, 0xf2, 0x94, 0xac, 0x10,
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
static const uint8_t K_4[] = {
|
|
665
|
+
0xdf, 0x8c, 0xb5, 0x86, 0x1e, 0x1f, 0xdf, 0xed,
|
|
666
|
+
0xd3, 0xb2, 0x30, 0x15, 0xa3, 0x9d, 0x1e, 0x2e,
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
static const uint8_t IV_4_info[] = {
|
|
670
|
+
|
|
671
|
+
0x09, 0x58, 0x20, 0x0e, 0xb8, 0x68, 0xf2, 0x63, 0xcf, 0x35, 0x55, 0xdc,
|
|
672
|
+
0xcd, 0x39, 0x6d, 0xd8, 0xde, 0xc2, 0x9d, 0x37, 0x50, 0xd5, 0x99, 0xbe,
|
|
673
|
+
0x42, 0xd5, 0xa4, 0x1a, 0x5a, 0x37, 0xc8, 0x96, 0xf2, 0x94, 0xac, 0x0d,
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
static const uint8_t IV_4[] = {
|
|
677
|
+
0x12, 0x8e, 0xc6, 0x58, 0xd9, 0x70, 0xd7,
|
|
678
|
+
0x38, 0x0f, 0x74, 0xfc, 0x6c, 0x27,
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
static const uint8_t CIPHERTEXT_4[] = {
|
|
682
|
+
0x4f, 0x0e, 0xde, 0xe3, 0x66, 0xe5, 0xc8, 0x83,
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
static const uint8_t message_4[] = {
|
|
686
|
+
0x48, 0x4f, 0x0e, 0xde, 0xe3, 0x66, 0xe5, 0xc8, 0x83,
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* \brief PRK_out
|
|
691
|
+
*/
|
|
692
|
+
|
|
693
|
+
static const uint8_t PRK_out_info[] = {
|
|
694
|
+
0x07, 0x58, 0x20, 0x0e, 0xb8, 0x68, 0xf2, 0x63, 0xcf, 0x35,
|
|
695
|
+
0x55, 0xdc, 0xcd, 0x39, 0x6d, 0xd8, 0xde, 0xc2, 0x9d, 0x37,
|
|
696
|
+
0x50, 0xd5, 0x99, 0xbe, 0x42, 0xd5, 0xa4, 0x1a, 0x5a, 0x37,
|
|
697
|
+
0xc8, 0x96, 0xf2, 0x94, 0xac, 0x18, 0x20,
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
static const uint8_t PRK_out[] = {
|
|
701
|
+
0xb7, 0x44, 0xcb, 0x7d, 0x8a, 0x87, 0xcc, 0x04, 0x47, 0xc3, 0x35,
|
|
702
|
+
0x0e, 0x16, 0x5b, 0x25, 0x0d, 0xab, 0x12, 0xec, 0x45, 0x33, 0x25,
|
|
703
|
+
0xab, 0xb9, 0x22, 0xb3, 0x03, 0x07, 0xe5, 0xc3, 0x68, 0xf0,
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
static const uint8_t PRK_exporter_info[] = {
|
|
707
|
+
0x0a,
|
|
708
|
+
0x40,
|
|
709
|
+
0x18,
|
|
710
|
+
0x20,
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
static const uint8_t PRK_exporter[] = {
|
|
714
|
+
0x2a, 0xae, 0xc8, 0xfc, 0x4a, 0xb3, 0xbc, 0x32, 0x95, 0xde, 0xf6,
|
|
715
|
+
0xb5, 0x51, 0x05, 0x1a, 0x2f, 0xa5, 0x61, 0x42, 0x4d, 0xb3, 0x01,
|
|
716
|
+
0xfa, 0x84, 0xf6, 0x42, 0xf5, 0x57, 0x8a, 0x6d, 0xf5, 0x1a,
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* \brief OSCORE security session.
|
|
721
|
+
*/
|
|
722
|
+
|
|
723
|
+
static const uint8_t OSCORE_Master_Secret_info[] = {
|
|
724
|
+
0x00,
|
|
725
|
+
0x40,
|
|
726
|
+
0x10,
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
static const uint8_t OSCORE_Master_Secret[] = {
|
|
730
|
+
0x1e, 0x1c, 0x6b, 0xea, 0xc3, 0xa8, 0xa1, 0xca,
|
|
731
|
+
0xc4, 0x35, 0xde, 0x7e, 0x2f, 0x9a, 0xe7, 0xff,
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
static const uint8_t OSCORE_Master_Salt_info[] = {
|
|
735
|
+
0x01,
|
|
736
|
+
0x40,
|
|
737
|
+
0x08,
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
static const uint8_t OSCORE_Master_Salt[] = {
|
|
741
|
+
0xce, 0x7a, 0xb8, 0x44, 0xc0, 0x10, 0x6d, 0x73,
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* \brief OSCORE security session after EDHOC key update.
|
|
746
|
+
*/
|
|
747
|
+
|
|
748
|
+
static const uint8_t keyUpdate_context[] = {
|
|
749
|
+
0xd6, 0xbe, 0x16, 0x96, 0x02, 0xb8, 0xbc, 0xea,
|
|
750
|
+
0xa0, 0x11, 0x58, 0xfd, 0xb8, 0x20, 0x89, 0x0c,
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
static const uint8_t keyUpdate_PRK_out[] = {
|
|
754
|
+
0xda, 0x6e, 0xac, 0xd9, 0xa9, 0x85, 0xf4, 0xfb, 0xa9, 0xae, 0xc2,
|
|
755
|
+
0xa9, 0x29, 0x90, 0x22, 0x97, 0x6b, 0x25, 0xb1, 0x4e, 0x89, 0xfa,
|
|
756
|
+
0x15, 0x97, 0x94, 0xf2, 0x8d, 0x82, 0xfa, 0xf2, 0xda, 0xad,
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
static const uint8_t keyUpdate_PRK_exporter[] = {
|
|
760
|
+
0x00, 0x14, 0xd2, 0x52, 0x5e, 0xe0, 0xd8, 0xe2, 0x13, 0xea, 0x59,
|
|
761
|
+
0x08, 0x02, 0x8e, 0x9a, 0x1c, 0xe9, 0xa0, 0x1c, 0x30, 0x54, 0x6f,
|
|
762
|
+
0x09, 0x30, 0xc0, 0x44, 0xd3, 0x8d, 0xb5, 0x36, 0x2c, 0x05,
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
static const uint8_t keyUpdate_OSCORE_Master_Secret[] = {
|
|
766
|
+
0xee, 0x0f, 0xf5, 0x42, 0xc4, 0x7e, 0xb0, 0xe0,
|
|
767
|
+
0x9c, 0x69, 0x30, 0x76, 0x49, 0xbd, 0xbb, 0xe5,
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
static const uint8_t keyUpdate_OSCORE_Master_Salt[] = {
|
|
771
|
+
0x80, 0xce, 0xde, 0x2a, 0x1e, 0x5a, 0xab, 0x48,
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* \brief Root X.509 public key.
|
|
776
|
+
*/
|
|
777
|
+
static const uint8_t PK_CA[] = {
|
|
778
|
+
0x2b, 0x7b, 0x3e, 0x80, 0x57, 0xc8, 0x64, 0x29, 0x44, 0xd0, 0x6a,
|
|
779
|
+
0xfe, 0x7a, 0x71, 0xd1, 0xc9, 0xbf, 0x96, 0x1b, 0x62, 0x92, 0xba,
|
|
780
|
+
0xc4, 0xb0, 0x4f, 0x91, 0x66, 0x9b, 0xbb, 0x71, 0x3b, 0xe4,
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
/* Extern variables and constant declarations ------------------------------ */
|
|
784
|
+
/* Module interface function declarations ---------------------------------- */
|
|
785
|
+
|
|
786
|
+
#endif /* TEST_VECTOR_RFC9529_CHAPTER_2_H */
|