Home
last modified time | relevance | path

Searched refs:check_buffer_size (Results 1 – 14 of 14) sorted by relevance

/uoscore-uedhoc-3.4.0/src/common/
Dmemcpy_s.c18 enum err check_buffer_size(uint32_t is_size, uint32_t required_size) in check_buffer_size() function
30 TRY(check_buffer_size(dest_len, source_len)); in _memcpy_s()
Dcrypto_wrapper.c451 TRY_EXPECT_PSA(check_buffer_size(INFO_DEFAULT_SIZE, (uint32_t)combo_len), in hkdf_expand()
/uoscore-uedhoc-3.4.0/inc/common/
Dmemcpy_s.h25 enum err check_buffer_size(uint32_t is_size, uint32_t required_size);
/uoscore-uedhoc-3.4.0/src/edhoc/
Dciphertext.c143 TRY(check_buffer_size(CIPHERTEXT2_DEFAULT_SIZE, key_len)); in ciphertext_decrypt_split()
146 TRY(check_buffer_size(AEAD_IV_DEFAULT_SIZE, iv_len)); in ciphertext_decrypt_split()
165 TRY(check_buffer_size(PLAINTEXT_DEFAULT_SIZE, plaintext_len)); in ciphertext_decrypt_split()
208 TRY(check_buffer_size(SGN_OR_MAC_DEFAULT_SIZE, in ciphertext_gen()
267 TRY(check_buffer_size(CIPHERTEXT2_DEFAULT_SIZE, key_len)); in ciphertext_gen()
270 TRY(check_buffer_size(AEAD_IV_DEFAULT_SIZE, iv_len)); in ciphertext_gen()
280 TRY(check_buffer_size(MAC_DEFAULT_SIZE, tag_len)); in ciphertext_gen()
Dsignature_or_mac_msg.c67 TRY(check_buffer_size(CONTEXT_MAC_DEFAULT_SIZE, context_mac_len)); in mac()
109 TRY(check_buffer_size(CRED_DEFAULT_SIZE + SHA_DEFAULT_SIZE + in signature_struct_gen()
167 TRY(check_buffer_size(SHA_DEFAULT_SIZE, mac_buf_len)); in signature_or_mac()
Dth.c173 TRY(check_buffer_size(TH3_INPUT_DEFAULT_SIZE, th3_input_len)); in th3_calculate()
188 TRY(check_buffer_size(TH4_INPUT_DEFAULT_SIZE, th4_input_len)); in th4_calculate()
Dresponder.c156 TRY(check_buffer_size(G_Y_DEFAULT_SIZE + CIPHERTEXT2_DEFAULT_SIZE, in msg2_encode()
244 TRY(check_buffer_size(SIGNATURE_DEFAULT_SIZE, sign_or_mac_2_len)); in msg2_gen()
Dcert.c228 TRY(check_buffer_size(SIGNATURE_DEFAULT_SIZE, (uint32_t)sig_len)); in cert_x509_verify()
Dinitiator.c259 TRY(check_buffer_size(CIPHERTEXT3_DEFAULT_SIZE, in msg3_gen()
/uoscore-uedhoc-3.4.0/src/oscore/
Doscore_cose.c67 TRY(check_buffer_size(MAX_AAD_LEN, aad_len)); in oscore_cose_decrypt()
97 TRY(check_buffer_size(MAX_AAD_LEN, aad_len)); in oscore_cose_encrypt()
Daad.c41 TRY(check_buffer_size(MAX_I_OPTIONS, encoded_opt_i_len)); in create_aad()
Dcoap2oscore.c153 TRY(check_buffer_size(MAX_E_OPTIONS, temp_opt_bytes_len)); in plaintext_setup()
455 TRY(check_buffer_size(MAX_PLAINTEXT_LEN, plaintext_len)); in coap2oscore()
500 TRY(check_buffer_size(MAX_CIPHERTEXT_LEN, ciphertext_len)); in coap2oscore()
Doscore2coap.c176 TRY(check_buffer_size(MAX_OPTION_COUNT, o_coap_opt_cnt)); in options_from_oscore_reorder()
617 TRY(check_buffer_size(MAX_PLAINTEXT_LEN, plaintext_bytes_len)); in oscore2coap()
Doscore_coap.c338 TRY(check_buffer_size(MAX_COAP_OPTIONS_LEN, temp_opt_bytes_len)); in coap2buf()