Home
last modified time | relevance | path

Searched refs:TRY_EXPECT (Results 1 – 23 of 23) sorted by relevance

/uoscore-uedhoc-3.5.0/src/common/
Dcrypto_wrapper.c286 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/
Dint_encode_decode.c16 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()
Dbstr_encode_decode.c21 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()
Dplaintext_encode.c34 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred, id_cred_len, &map, in id_cred2kid()
39 TRY_EXPECT( in id_cred2kid()
Dedhoc_cose.c59 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()
Dplaintext_decode.c69 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()
Dcert.c219TRY_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()
Dhkdf_info.c57 TRY_EXPECT(cbor_encode_info(out, *out_len, &info, &payload_len_out), in create_hkdf_info()
Dth.c65 TRY_EXPECT(cbor_encode_th2(th2_input, *th2_input_len, &th2, in th2_input_encode()
Dretrieve_cred.c154 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred, id_cred_len, &map, in retrieve_cred()
Dinitiator.c55 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()
Dresponder.c72 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/
Dmain.c52 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/
Doscore_edhoc_error.h92 #define TRY_EXPECT(x, expected_result) \ macro
/uoscore-uedhoc-3.5.0/src/oscore/
Daad.c50 TRY_EXPECT(cbor_encode_aad_array(out->ptr, out->len, &aad_array, in create_aad()
Doscore_hkdf_info.c82 TRY_EXPECT(cbor_encode_oscore_info(out->ptr, out->len, &info_struct, in oscore_create_hkdf_info()
Doscore_cose.c52 TRY_EXPECT(cbor_encode_oscore_enc_structure(out->ptr, out->len, in create_enc_structure()
Doscore2coap.c418 TRY_EXPECT(c->rrc.echo_state_machine, in oscore2coap()
/uoscore-uedhoc-3.5.0/samples/zephyr_edhoc/responder/src/
Dmain.c112 TRY_EXPECT(coap_packet_parse(&cp_req, buffer, n, NULL, 0), 0); in rx()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc/initiator/src/
Dmain.cpp224 TRY_EXPECT(start_coap_client(&sockfd), 0); in main()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc/responder/src/
Dmain.cpp187 TRY_EXPECT(start_coap_server(&sockfd), 0); in main()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc_oscore/initiator_client/src/
Dmain.cpp161 TRY_EXPECT(start_coap_client(&sockfd), 0); in main()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc_oscore/responder_server/src/
Dmain.cpp235 TRY_EXPECT(start_coap_server(&sockfd), 0); in main()