/uoscore-uedhoc-3.4.0/src/oscore/ |
D | oscore2coap.c | 39 struct compressed_oscore_option *out, bool *oscore_pkt) in oscore_option_parser() argument 57 out->h = 0; in oscore_option_parser() 58 out->k = 0; in oscore_option_parser() 59 out->n = 0; in oscore_option_parser() 70 out->h = ((*temp_current_option_value_ptr) & in oscore_option_parser() 73 out->k = ((*temp_current_option_value_ptr) & in oscore_option_parser() 76 out->n = ((*temp_current_option_value_ptr) & in oscore_option_parser() 83 switch (out->n) { in oscore_option_parser() 86 out->piv.ptr = NULL; in oscore_option_parser() 94 out->piv.ptr = in oscore_option_parser() [all …]
|
D | aad.c | 25 struct byte_array *piv, struct byte_array *out) in create_aad() argument 54 TRY_EXPECT(cbor_encode_aad_array(out->ptr, out->len, &aad_array, in create_aad() 58 out->len = (uint32_t) payload_len_out; in create_aad() 59 PRINT_ARRAY("AAD", out->ptr, out->len); in create_aad()
|
D | option.c | 78 enum option_class class, uint8_t *out, in encode_options() argument 106 out[index + 1] = (uint8_t)(delta - 13); in encode_options() 110 out[index + 1] = (uint8_t)(((delta - 269) >> 8) & 0xff); in encode_options() 111 out[index + 2] = (uint8_t)(((delta - 269) >> 0) & 0xff); in encode_options() 118 out[index + delta_len + 1] = (uint8_t)(length - 13); in encode_options() 122 out[index + delta_len + 1] = in encode_options() 124 out[index + delta_len + 2] = in encode_options() 127 out[index] = delta_length_field; in encode_options() 130 TRY(_memcpy_s(&out[index], (out_buf_len - index), in encode_options()
|
D | oscore_coap.c | 222 enum err buf2coap(struct byte_array *in, struct o_coap_packet *out) in buf2coap() argument 231 out->header.ver = in buf2coap() 233 out->header.type = ((*tmp_p) & HEADER_TYPE_MASK) >> HEADER_TYPE_OFFSET; in buf2coap() 234 out->header.TKL = ((*tmp_p) & HEADER_CODE_MASK) >> HEADER_CODE_OFFSET; in buf2coap() 235 out->header.code = *(tmp_p + 1); in buf2coap() 238 out->header.MID = (uint16_t)(mid_h << 8 | mid_l); in buf2coap() 246 if (out->header.TKL == 0) { in buf2coap() 247 out->token = NULL; in buf2coap() 248 } else if (out->header.TKL <= 8) { in buf2coap() 249 out->token = tmp_p; in buf2coap() [all …]
|
D | oscore_hkdf_info.c | 44 struct byte_array *out) in oscore_create_hkdf_info() argument 86 out->ptr, out->len, &info_struct, &payload_len_out); in oscore_create_hkdf_info() 91 out->len = (uint32_t) payload_len_out; in oscore_create_hkdf_info()
|
D | oscore_cose.c | 35 struct byte_array *out) in create_enc_structure() argument 51 out->ptr, out->len, &enc_structure, &payload_len_out); in create_enc_structure() 56 out->len = (uint32_t) payload_len_out; in create_enc_structure()
|
/uoscore-uedhoc-3.4.0/src/edhoc/ |
D | c_x.c | 23 uint32_t c_x_raw_buf_len, int c_x_int, struct c_x *out) in c_x_set() argument 26 out->type = INT; in c_x_set() 27 out->mem.c_x_int = c_x_int; in c_x_set() 30 out->type = BSTR; in c_x_set() 31 out->mem.c_x_bstr.len = c_x_raw_buf_len; in c_x_set() 32 return _memcpy_s(out->mem.c_x_bstr.ptr, out->mem.c_x_bstr.len, in c_x_set()
|
D | associated_data_encode.c | 22 uint8_t *out, uint32_t *out_len) in associated_data_encode() argument 27 NULL, 0, thX, thX_len, out, out_len); in associated_data_encode()
|
D | edhoc_exporter.c | 26 const char *label, uint8_t *out, in edhoc_exporter() argument 30 label, NULL, 0, out, out_len); in edhoc_exporter()
|
D | edhoc_cose.c | 25 uint32_t external_aad_len, uint8_t *out, in cose_enc_structure_encode() argument 38 TRY_EXPECT(cbor_encode_edhoc_enc_structure(out, *out_len, &enc_structure, in cose_enc_structure_encode() 51 uint8_t *out, uint32_t *out_len) in cose_sig_structure_encode() argument 65 TRY_EXPECT(cbor_encode_sig_structure(out, *out_len, &sig_structure, in cose_sig_structure_encode()
|
D | hkdf_info.c | 24 uint32_t okm_len, uint8_t *out, uint32_t *out_len) in create_hkdf_info() argument 40 TRY_EXPECT(cbor_encode_info(out, *out_len, &info, &payload_len_out), in create_hkdf_info()
|
D | signature_or_mac_msg.c | 31 enum err encode_byte_string(const uint8_t *in, uint32_t in_len, uint8_t *out, in encode_byte_string() argument 38 TRY_EXPECT(cbor_encode_bstr_type_b_str(out, *out_len, &tmp, in encode_byte_string() 46 uint8_t *out, uint32_t *out_len) in decode_byte_string() argument 54 TRY(_memcpy_s(out, *out_len, str.value, (uint32_t) str.len)); in decode_byte_string() 99 uint32_t mac_len, uint8_t *out, in signature_struct_gen() argument 123 id_cred_len, tmp, tmp_len, mac, mac_len, out, out_len)); in signature_struct_gen() 124 PRINT_ARRAY("COSE_Sign1 object to be signed", out, *out_len); in signature_struct_gen()
|
D | ciphertext.c | 34 uint32_t len, uint8_t *out) in xor_arrays() argument 37 out[i] = in1[i] ^ in2[i]; in xor_arrays() 64 const uint32_t aad_len, uint8_t *out, const uint32_t out_len, in ciphertext_encrypt_decrypt() argument 68 xor_arrays(in, key, key_len, out); in ciphertext_encrypt_decrypt() 72 aad_len, out, out_len, tag, tag_len)); in ciphertext_encrypt_decrypt()
|
/uoscore-uedhoc-3.4.0/samples/cert_hierarchy/ |
D | generate_ca_hierarchy.sh | 29 openssl ecparam -name prime256v1 -genkey -noout -out root_ca/root_priv_key.pem 34 -out root_ca/root_csr.pem 38 -in root_ca/root_csr.pem -out root_ca/root_cert.pem 47 -out intermediate_ca/intermediate_ca_priv_key.pem 53 -out intermediate_ca/intermediate_ca_csr.pem 58 -out intermediate_ca/intermediate_ca_cert.pem 67 -out initiator/initiator_device_priv_key.pem 74 -out initiator/initiator_device_csr.pem 79 -out initiator/initiator_device_cert.pem 87 -out responder/responder_device_priv_key.pem [all …]
|
/uoscore-uedhoc-3.4.0/inc/common/ |
D | crypto_wrapper.h | 45 const uint32_t aad_len, uint8_t *out, const uint32_t out_len, 73 uint8_t *ikm, uint32_t ikm_len, uint8_t *out); 88 const uint32_t info_len, uint8_t *out, uint32_t out_len); 99 uint8_t *out); 114 uint8_t *out); 142 struct byte_array *out);
|
/uoscore-uedhoc-3.4.0/src/common/ |
D | crypto_wrapper.c | 178 uint8_t *out, const uint32_t out_len, uint8_t *tag, const uint32_t tag_len) in aead() argument 188 out, out_len, aad, aad_len, in, in_len, &c), in aead() 193 out, (out_len + tag_len), aad, aad_len, in, in aead() 196 memcpy(tag, out + out_len, tag_len); in aead() 221 aad_len, in, in_len, out, out_len, in aead() 227 aad_len, in, in_len, out, in aead() 231 memcpy(tag, out + out_len_re - tag_len, tag_len); in aead() 242 uint8_t *out) in sign() argument 246 edsign_sign(out, pk, sk, msg, msg_len); in sign() 276 TRY_EXPECT_PSA(psa_sign_message(key_id, psa_alg, msg, msg_len, out, in sign() [all …]
|
/uoscore-uedhoc-3.4.0/inc/edhoc/ |
D | edhoc_cose.h | 38 uint32_t external_aad_len, uint8_t *out, 61 uint8_t *out, uint32_t *out_len);
|
D | associated_data_encode.h | 27 uint8_t *out, uint32_t *out_len);
|
D | hkdf_info.h | 35 uint32_t okm_len, uint8_t *out, uint32_t *out_len);
|
D | signature_or_mac_msg.h | 30 enum err encode_byte_string(const uint8_t *in, uint32_t in_len, uint8_t *out, 34 uint8_t *out, uint32_t *out_len);
|
D | c_x.h | 49 uint32_t c_x_raw_buf_len, int c_x_int, struct c_x *out);
|
/uoscore-uedhoc-3.4.0/inc/oscore/ |
D | option.h | 81 enum err decode_options(struct byte_array options, struct o_coap_option *out, 108 enum option_class class, uint8_t *out,
|
D | oscore_hkdf_info.h | 36 struct byte_array *out);
|
D | aad.h | 36 struct byte_array *piv, struct byte_array *out);
|
D | oscore_coap.h | 119 enum err buf2coap(struct byte_array *in, struct o_coap_packet *out);
|