/uoscore-uedhoc-3.5.0/src/common/ |
D | crypto_wrapper.c | 286 TRY_EXPECT(tc_aes128_set_encrypt_key(&sched, key), 1); in aead() 287 TRY_EXPECT(tc_ccm_config(&c, &sched, nonce, nonce_len, tag_len), 1); in aead() 290 TRY_EXPECT(tc_ccm_decryption_verification( in aead() 295 TRY_EXPECT(tc_ccm_generation_encryption( in aead() 337 TRY_EXPECT(psa_destroy_key(key_id), PSA_SUCCESS); in aead() 392 TRY_EXPECT(tc_sha256_init(&ctx_sha256), 1); in sign() 393 TRY_EXPECT(tc_sha256_update(&ctx_sha256, msg, msg_len), 1); in sign() 394 TRY_EXPECT(tc_sha256_final(hash, &ctx_sha256), 1); in sign() 396 TRY_EXPECT(uECC_sign(sk, hash, in sign() 437 TRY_EXPECT(psa_destroy_key(key_id), PSA_SUCCESS); in sign() [all …]
|
/uoscore-uedhoc-3.5.0/src/edhoc/ |
D | int_encode_decode.c | 16 TRY_EXPECT(cbor_encode_int_type_i(out, *out_len, in, &payload_len_out), in encode_int() 25 TRY_EXPECT(cbor_decode_int_type_i(in, in_len, out, &decode_len), true); in decode_int()
|
D | bstr_encode_decode.c | 21 TRY_EXPECT(cbor_encode_bstr_type_b_str(out, *out_len, &tmp, in encode_byte_string() 34 TRY_EXPECT(cbor_decode_bstr_type_b_str(in, in_len, &str, &decode_len), in decode_byte_string()
|
D | plaintext_encode.c | 34 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred, id_cred_len, &map, in id_cred2kid() 39 TRY_EXPECT( in id_cred2kid()
|
D | edhoc_cose.c | 59 TRY_EXPECT(cbor_encode_edhoc_enc_structure(out, *out_len, &enc_structure, in cose_enc_structure_encode() 86 TRY_EXPECT(cbor_encode_sig_structure(out, *out_len, &sig_structure, in cose_sig_structure_encode()
|
D | plaintext_decode.c | 69 TRY_EXPECT(cbor_encode_id_cred_x_map(id_cred_x, *id_cred_x_len, &map, in id_cred_x_encode() 86 TRY_EXPECT(cbor_decode_plaintext(ptxt, ptxt_len, &p, &decode_len), in plaintext_split()
|
D | cert.c | 219 …TRY_EXPECT(mbedtls_x509_crt_parse_der_nocopy(&m_cert, cred_array[i].ca.ptr, cred_array[i].ca.len),… in ca_pk_get() 257 TRY_EXPECT(cbor_decode_cert(cert, cert_len, &c, &decode_len), true); in cert_c509_verify() 308 TRY_EXPECT(mbedtls_x509_crt_parse_der_nocopy(&m_cert, cert, cert_len), in cert_x509_verify() 474 TRY_EXPECT( (cursor + len) <= end, 1 ); in cert_x509_verify() 481 TRY_EXPECT( (cursor + len) <= end, 1 ); in cert_x509_verify()
|
D | hkdf_info.c | 57 TRY_EXPECT(cbor_encode_info(out, *out_len, &info, &payload_len_out), in create_hkdf_info()
|
D | th.c | 65 TRY_EXPECT(cbor_encode_th2(th2_input, *th2_input_len, &th2, in th2_input_encode()
|
D | retrieve_cred.c | 154 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred, id_cred_len, &map, in retrieve_cred()
|
D | initiator.c | 55 TRY_EXPECT(cbor_decode_m2(msg2, msg2_len, &m, &decode_len), true); in msg2_parse() 127 TRY_EXPECT(cbor_encode_message_1(rc->msg, rc->msg_len, &m1, in msg1_gen()
|
D | responder.c | 72 TRY_EXPECT(cbor_decode_message_1(msg1, msg1_len, &m, &decode_len), in msg1_parse() 192 TRY_EXPECT(cbor_encode_m2(msg2, *msg2_len, &m, &payload_len_out), true); in msg2_encode()
|
/uoscore-uedhoc-3.5.0/samples/zephyr_edhoc/initiator/src/ |
D | main.c | 52 TRY_EXPECT(coap_packet_init(&request, _data, sizeof(_data), 1, in tx() 58 TRY_EXPECT(coap_packet_append_option(&request, URI_PATH, in tx() 63 TRY_EXPECT(coap_packet_append_payload_marker(&request), 0); in tx() 66 TRY_EXPECT(coap_packet_append_payload(&request, data, data_len), 0); in tx() 101 TRY_EXPECT(coap_packet_parse(&reply, buffer, n, NULL, 0), 0); in rx()
|
/uoscore-uedhoc-3.5.0/inc/common/ |
D | oscore_edhoc_error.h | 92 #define TRY_EXPECT(x, expected_result) \ macro
|
/uoscore-uedhoc-3.5.0/src/oscore/ |
D | aad.c | 50 TRY_EXPECT(cbor_encode_aad_array(out->ptr, out->len, &aad_array, in create_aad()
|
D | oscore_hkdf_info.c | 82 TRY_EXPECT(cbor_encode_oscore_info(out->ptr, out->len, &info_struct, in oscore_create_hkdf_info()
|
D | oscore_cose.c | 52 TRY_EXPECT(cbor_encode_oscore_enc_structure(out->ptr, out->len, in create_enc_structure()
|
D | oscore2coap.c | 418 TRY_EXPECT(c->rrc.echo_state_machine, in oscore2coap()
|
/uoscore-uedhoc-3.5.0/samples/zephyr_edhoc/responder/src/ |
D | main.c | 112 TRY_EXPECT(coap_packet_parse(&cp_req, buffer, n, NULL, 0), 0); in rx()
|
/uoscore-uedhoc-3.5.0/samples/linux_edhoc/initiator/src/ |
D | main.cpp | 224 TRY_EXPECT(start_coap_client(&sockfd), 0); in main()
|
/uoscore-uedhoc-3.5.0/samples/linux_edhoc/responder/src/ |
D | main.cpp | 187 TRY_EXPECT(start_coap_server(&sockfd), 0); in main()
|
/uoscore-uedhoc-3.5.0/samples/linux_edhoc_oscore/initiator_client/src/ |
D | main.cpp | 161 TRY_EXPECT(start_coap_client(&sockfd), 0); in main()
|
/uoscore-uedhoc-3.5.0/samples/linux_edhoc_oscore/responder_server/src/ |
D | main.cpp | 235 TRY_EXPECT(start_coap_server(&sockfd), 0); in main()
|