Home
last modified time | relevance | path

Searched refs:_memcpy_s (Results 1 – 17 of 17) sorted by relevance

/uoscore-uedhoc-3.4.0/test/edhoc_testvector_tests/
Dtxrx_wrapper.c23 static int _memcpy_s(uint8_t *dest, uint32_t destSize, const uint8_t *src, in _memcpy_s() function
48 TRY(_memcpy_s(data, *data_len, m.m2, m.m2_len)); in rx()
53 TRY(_memcpy_s(data, *data_len, m.m4, m.m4_len)); in rx()
63 TRY(_memcpy_s(data, *data_len, m.m1, m.m1_len)); in rx()
68 TRY(_memcpy_s(data, *data_len, m.m3, m.m3_len)); in rx()
/uoscore-uedhoc-3.4.0/src/oscore/
Dnonce.c26 TRY(_memcpy_s(&padded_piv[sizeof(padded_piv) - piv->len], piv->len, in create_nonce()
33 TRY(_memcpy_s(&padded_id_piv[sizeof(padded_id_piv) - id_piv->len], in create_nonce()
38 TRY(_memcpy_s(&nonce->ptr[1], padded_id_piv_len, padded_id_piv, in create_nonce()
41 TRY(_memcpy_s(&nonce->ptr[1 + sizeof(padded_id_piv)], in create_nonce()
Dsecurity_context.c113 TRY(_memcpy_s(c->rrc.piv.ptr, MAX_PIV_LEN, new_piv->ptr, in context_update()
127 TRY(_memcpy_s(c->rrc.kid_context.ptr, in context_update()
133 TRY(_memcpy_s( in context_update()
222 TRY(_memcpy_s(c->rrc.kid_context.ptr, c->rrc.kid_context.len, in oscore_context_init()
225 TRY(_memcpy_s(c->rrc.kid.ptr, c->rrc.kid.len, in oscore_context_init()
232 TRY(_memcpy_s(c->rrc.kid.ptr, c->rrc.kid.len, in oscore_context_init()
249 TRY(_memcpy_s(piv->ptr, MAX_PIV_LEN, p, in sender_seq_num2piv()
Dcoap2oscore.c168 TRY(_memcpy_s(++temp_plaintext_ptr, dest_size, temp_opt_bytes, in plaintext_setup()
179 TRY(_memcpy_s(++temp_plaintext_ptr, dest_size, in plaintext_setup()
267 TRY(_memcpy_s(++temp_ptr, dest_size, piv->ptr, in oscore_option_generate()
282 TRY(_memcpy_s(++temp_ptr, dest_size, kid_context->ptr, in oscore_option_generate()
297 TRY(_memcpy_s(temp_ptr, dest_size, kid->ptr, kid->len)); in oscore_option_generate()
430 return _memcpy_s(buf_oscore, buf_o_coap_len, buf_o_coap, in coap2oscore()
Doscore_coap.c112 TRY(_memcpy_s(temp_ptr, dest_size, options[i].value, in options_into_byte_string()
327 TRY(_memcpy_s(temp_out_ptr, dest_size, in->token, in coap2buf()
355 TRY(_memcpy_s(temp_out_ptr, dest_size, temp_opt_bytes, in coap2buf()
366 TRY(_memcpy_s(++temp_out_ptr, dest_size, in->payload, in coap2buf()
Doption.c130 TRY(_memcpy_s(&out[index], (out_buf_len - index), in encode_options()
/uoscore-uedhoc-3.4.0/src/edhoc/
Dplaintext_encode.c86 TRY(_memcpy_s(plaintext, *plaintext_len, kid_buf, kid_len)); in plaintext_encode()
89 TRY(_memcpy_s(plaintext, *plaintext_len, id_cred, id_cred_len)); in plaintext_encode()
96 TRY(_memcpy_s(plaintext + l + enc_sgn_or_mac_len, in plaintext_encode()
Dretrieve_cred.c110 TRY(_memcpy_s(cred, *cred_len, cred_array[i].cred.ptr, in get_local_cred()
120 TRY(_memcpy_s(&g[1], *g_len - 1, in get_local_cred()
126 TRY(_memcpy_s(g, *g_len, in get_local_cred()
134 TRY(_memcpy_s(pk, *pk_len, cred_array[i].pk.ptr, in get_local_cred()
Dc_x.c32 return _memcpy_s(out->mem.c_x_bstr.ptr, out->mem.c_x_bstr.len, in c_x_set()
Dsignature_or_mac_msg.c54 TRY(_memcpy_s(out, *out_len, str.value, (uint32_t) str.len)); in decode_byte_string()
69 TRY(_memcpy_s(context_mac, context_mac_len, id_cred, id_cred_len)); in mac()
71 TRY(_memcpy_s((context_mac + id_cred_len), in mac()
74 TRY(_memcpy_s((context_mac + id_cred_len + cred_len), in mac()
Dciphertext.c225 TRY(_memcpy_s(plaintext, plaintext_len, kid_buf, in ciphertext_gen()
228 TRY(_memcpy_s(plaintext + kid_len, in ciphertext_gen()
236 TRY(_memcpy_s(plaintext, plaintext_len, id_cred, in ciphertext_gen()
239 TRY(_memcpy_s(plaintext + id_cred_len, in ciphertext_gen()
250 TRY(_memcpy_s(plaintext + plaintext_len, in ciphertext_gen()
Dplaintext_decode.c128 TRY(_memcpy_s(sign_or_mac, *sign_or_mac_len, in plaintext_split()
134 TRY(_memcpy_s(ad, *ad_len, p._plaintext_AD_x.value, in plaintext_split()
Dcert.c156 TRY(_memcpy_s(pk, *pk_len, c._cert_pk.value, (uint32_t)c._cert_pk.len)); in cert_c509_verify()
267 TRY(_memcpy_s(pk, *pk_len, cpk, (uint32_t)cpk_len)); in cert_x509_verify()
Dinitiator.c55 TRY(_memcpy_s(g_y, g_y_len, m._m2_G_Y_CIPHERTEXT_2.value, g_y_len)); in msg2_parse()
58 TRY(_memcpy_s(ciphertext2, *ciphertext2_len, in msg2_parse()
Dresponder.c90 TRY(_memcpy_s(g_x, *g_x_len, m._message_1_G_X.value, in msg1_parse()
108 TRY(_memcpy_s(ad1, *ad1_len, m._message_1_ead_1.value, in msg1_parse()
/uoscore-uedhoc-3.4.0/inc/common/
Dmemcpy_s.h40 enum err _memcpy_s(uint8_t *dest, uint32_t dest_len, const uint8_t *source,
/uoscore-uedhoc-3.4.0/src/common/
Dmemcpy_s.c27 enum err _memcpy_s(uint8_t *dest, uint32_t dest_len, const uint8_t *source, in _memcpy_s() function