Home
last modified time | relevance | path

Searched refs:byte_array (Results 1 – 25 of 76) sorted by relevance

1234

/uoscore-uedhoc-3.7.0/inc/
Dedhoc.h33 struct byte_array id_cred; /*ID_CRED_x of the other party*/
34 struct byte_array cred; /*CBOR encoded credentials*/
35 struct byte_array pk; /*authentication pub key of the other party */
36 struct byte_array g; /*authentication static DH pub key of other party */
37 struct byte_array ca; /*use only when certificates are used*/
38 struct byte_array ca_pk; /*use only when certificates are used*/
47 struct byte_array c_r; /*connection identifier of the responder*/
48 struct byte_array suites_r;
49 struct byte_array g_y; /*ephemeral dh public key*/
50 struct byte_array y; /*ephemeral dh secret key*/
[all …]
/uoscore-uedhoc-3.7.0/inc/common/
Dcrypto_wrapper.h37 enum err aead(enum aes_operation op, const struct byte_array *in,
38 const struct byte_array *key, struct byte_array *nonce,
39 const struct byte_array *aad, struct byte_array *out,
40 struct byte_array *tag);
51 enum err shared_secret_derive(enum ecdh_alg alg, const struct byte_array *sk,
52 const struct byte_array *pk,
64 enum err hkdf_extract(enum hash_alg alg, const struct byte_array *salt,
65 struct byte_array *ikm, uint8_t *out);
76 enum err hkdf_expand(enum hash_alg alg, const struct byte_array *prk,
77 const struct byte_array *info, struct byte_array *out);
[all …]
Dbyte_array.h23 struct byte_array { struct
34 extern struct byte_array EMPTY_ARRAY; argument
37 extern struct byte_array NULL_ARRAY;
50 enum err byte_array_append(struct byte_array *dest,
51 const struct byte_array *source, uint32_t capacity);
61 bool array_equals(const struct byte_array *a, const struct byte_array *b);
71 enum err byte_array_cpy(struct byte_array *dest, const struct byte_array *src,
98 struct byte_array NAME; \
110 struct byte_array NAME; \
Dunit_test.h37 struct byte_array *in_ciphertext,
48 enum err oscore_option_generate(struct byte_array *piv, struct byte_array *kid,
49 struct byte_array *kid_context,
52 enum err derive(struct common_context *cc, struct byte_array *id,
53 enum derive_type type, struct byte_array *out);
/uoscore-uedhoc-3.7.0/inc/edhoc/
Dciphertext.h31 const struct byte_array *c_r,
32 const struct byte_array *id_cred,
33 struct byte_array *signature_or_mac,
34 const struct byte_array *ead, struct byte_array *prk,
35 struct byte_array *th, struct byte_array *ciphertext,
36 struct byte_array *plaintext);
57 enum ciphertext ctxt, struct suite *suite, struct byte_array *c_r,
58 struct byte_array *id_cred, struct byte_array *sig_or_mac,
59 struct byte_array *ead, struct byte_array *prk, struct byte_array *th,
60 struct byte_array *ciphertext, struct byte_array *plaintext);
Dmessages.h19 struct byte_array suites_i;
20 struct byte_array g_x;
21 struct byte_array c_i;
22 struct byte_array ead_1;
26 struct byte_array c_i;
27 struct byte_array g_y;
28 struct byte_array c_r;
29 struct byte_array ciphertext;
33 struct byte_array c_x;
34 struct byte_array diag_msg;
[all …]
Dedhoc_cose.h32 enum err cose_enc_structure_encode(const struct byte_array *context,
33 const struct byte_array *protected,
34 const struct byte_array *external_aad,
35 struct byte_array *out);
48 enum err cose_sig_structure_encode(const struct byte_array *context,
49 const struct byte_array *protected,
50 const struct byte_array *external_aad,
51 const struct byte_array *payload,
52 struct byte_array *out);
Dsignature_or_mac_msg.h41 const struct byte_array *sk, const struct byte_array *pk,
42 const struct byte_array *prk, const struct byte_array *c_r,
43 const struct byte_array *th, const struct byte_array *id_cred,
44 const struct byte_array *cred, const struct byte_array *ead,
45 enum info_label mac_label, struct byte_array *sig_or_mac);
Dplaintext.h25 enum err id_cred2kid(const struct byte_array *id_cred, struct byte_array *kid);
38 enum err plaintext_split(struct byte_array *ptxt, struct byte_array *c_r,
39 struct byte_array *id_cred_x,
40 struct byte_array *sign_or_mac, struct byte_array *ad);
Dth.h29 enum err th2_calculate(enum hash_alg alg, struct byte_array *msg1_hash,
30 struct byte_array *g_y,
31 struct byte_array *th2);
44 enum err th34_calculate(enum hash_alg alg, struct byte_array *th23,
45 struct byte_array *plaintext_23,
46 const struct byte_array *cred, struct byte_array *th34);
Druntime_context.h22 struct byte_array msg;
26 struct byte_array ead;
29 struct byte_array msg1_hash;
33 struct byte_array th4;
35 struct byte_array prk_4e3m;
40 struct byte_array th3;
42 struct byte_array prk_3e2m;
/uoscore-uedhoc-3.7.0/inc/oscore/
Doscore_cose.h27 enum err oscore_cose_decrypt(struct byte_array *in_ciphertext,
28 struct byte_array *out_plaintext,
29 struct byte_array *nonce, struct byte_array *aad,
30 struct byte_array *recipient_key);
41 enum err oscore_cose_encrypt(struct byte_array *in_plaintext,
42 struct byte_array *out_ciphertext,
43 struct byte_array *nonce,
44 struct byte_array *sender_aad,
45 struct byte_array *key);
Dsecurity_context.h52 struct byte_array master_secret;
53 struct byte_array master_salt; /*optional*/
54 struct byte_array id_context; /*optional*/
55 struct byte_array common_iv;
62 struct byte_array sender_id;
64 struct byte_array sender_key;
71 struct byte_array recipient_id;
72 struct byte_array recipient_key;
83 struct byte_array nonce;
88 struct byte_array echo_opt_val;
[all …]
Doscore_interactions.h110 enum o_coap_msg msg_type, struct byte_array *token,
112 struct byte_array *request_piv, struct byte_array *request_kid);
126 enum o_coap_msg msg_type, struct byte_array *token,
127 struct byte_array *uri_paths, struct oscore_interaction_t *interactions,
128 struct byte_array *request_piv, struct byte_array *request_kid);
Doption.h75 enum err decode_options(struct byte_array options, struct o_coap_option *out,
124 struct byte_array *output);
135 enum err cache_echo_val(struct byte_array *dest, struct o_coap_option *options,
146 enum err echo_val_is_fresh(struct byte_array *cache_val,
147 struct byte_array *decrypted_payload);
158 enum err oscore_decrypted_payload_parser(struct byte_array *in_payload,
162 struct byte_array *out_o_coap_payload);
Doscore_coap.h104 struct byte_array payload;
111 struct byte_array piv; /*same as sender sequence number*/
112 struct byte_array kid_context;
113 struct byte_array kid;
122 enum err coap_deserialize(struct byte_array *in, struct o_coap_packet *out);
143 struct byte_array *out_byte_string);
153 enum err options_deserialize(struct byte_array *in_data,
155 struct byte_array *payload);
/uoscore-uedhoc-3.7.0/src/edhoc/
Dciphertext.c35 static inline enum err xor_arrays(const struct byte_array *in1, in xor_arrays()
36 const struct byte_array *in2, in xor_arrays()
37 struct byte_array *out) in xor_arrays()
63 const struct byte_array *in, const struct byte_array *key, in ciphertext_encrypt_decrypt()
64 struct byte_array *nonce, const struct byte_array *aad, in ciphertext_encrypt_decrypt()
65 struct byte_array *out, struct byte_array *tag) in ciphertext_encrypt_decrypt()
89 struct byte_array *prk, struct byte_array *th, in key_gen()
90 struct byte_array *key, struct byte_array *iv) in key_gen()
120 enum ciphertext ctxt, struct suite *suite, struct byte_array *c_r, in ciphertext_decrypt_split()
121 struct byte_array *id_cred, struct byte_array *sig_or_mac, in ciphertext_decrypt_split()
[all …]
Dsignature_or_mac_msg.c47 static enum err mac(const struct byte_array *prk, const struct byte_array *c_r, in mac()
48 const struct byte_array *th, in mac()
49 const struct byte_array *id_cred, in mac()
50 const struct byte_array *cred, const struct byte_array *ead, in mac()
52 struct suite *suite, struct byte_array *mac) in mac()
109 static enum err signature_struct_gen(const struct byte_array *th, in signature_struct_gen()
110 const struct byte_array *id_cred, in signature_struct_gen()
111 const struct byte_array *cred, in signature_struct_gen()
112 const struct byte_array *ead, in signature_struct_gen()
113 const struct byte_array *mac, in signature_struct_gen()
[all …]
Dth.c35 static inline enum err th2_input_encode(struct byte_array *hash_msg1, in th2_input_encode()
36 struct byte_array *g_y, in th2_input_encode()
37 struct byte_array *th2_input) in th2_input_encode()
72 static enum err th34_input_encode(struct byte_array *th23, in th34_input_encode()
73 struct byte_array *plaintext_23, in th34_input_encode()
74 const struct byte_array *cred, in th34_input_encode()
75 struct byte_array *th34_input) in th34_input_encode()
112 enum err th34_calculate(enum hash_alg alg, struct byte_array *th23, in th34_calculate()
113 struct byte_array *plaintext_23, in th34_calculate()
114 const struct byte_array *cred, struct byte_array *th34) in th34_calculate()
[all …]
Dedhoc_exporter.c24 struct byte_array *prk_out, in prk_out2exporter()
25 struct byte_array *prk_exporter) in prk_out2exporter()
31 enum err prk_out_update(enum hash_alg app_hash_alg, struct byte_array *prk_out, in prk_out_update()
32 struct byte_array *context, in prk_out_update()
33 struct byte_array *prk_out_new) in prk_out_update()
40 struct byte_array *prk_exporter, struct byte_array *out) in edhoc_exporter()
Dedhoc_cose.c21 enum err cose_enc_structure_encode(const struct byte_array *context, in cose_enc_structure_encode()
22 const struct byte_array *protected, in cose_enc_structure_encode()
23 const struct byte_array *external_aad, in cose_enc_structure_encode()
24 struct byte_array *out) in cose_enc_structure_encode()
66 enum err cose_sig_structure_encode(const struct byte_array *context, in cose_sig_structure_encode()
67 const struct byte_array *protected, in cose_sig_structure_encode()
68 const struct byte_array *external_aad, in cose_sig_structure_encode()
69 const struct byte_array *payload, in cose_sig_structure_encode()
70 struct byte_array *out) in cose_sig_structure_encode()
Dresponder.c56 msg1_parse(struct byte_array *msg1, enum method_type *method, in msg1_parse()
57 struct byte_array *suites_i, struct byte_array *g_x, in msg1_parse()
58 struct byte_array *c_i, struct byte_array *ead1) in msg1_parse()
133 struct byte_array *suites_r) in selected_suite_is_supported()
152 static inline enum err msg2_encode(const struct byte_array *g_y, in msg2_encode()
153 struct byte_array *c_r, in msg2_encode()
154 const struct byte_array *ciphertext_2, in msg2_encode()
155 struct byte_array *msg2) in msg2_encode()
171 struct byte_array *c_i) in msg2_gen()
249 struct byte_array *prk_out, in msg3_process()
[all …]
Dretrieve_cred.c43 struct byte_array *cred, struct byte_array *pk, in verify_cert2cred()
44 struct byte_array *g) in verify_cert2cred()
47 TRY(encode_bstr((struct byte_array *)cert, cred)); in verify_cert2cred()
100 struct byte_array *ID_cred, in get_local_cred()
101 struct byte_array *cred, struct byte_array *pk, in get_local_cred()
102 struct byte_array *g) in get_local_cred()
148 struct byte_array *id_cred, struct byte_array *cred, in retrieve_cred()
149 struct byte_array *pk, struct byte_array *g) in retrieve_cred()
/uoscore-uedhoc-3.7.0/src/oscore/
Doscore_cose.c34 static enum err create_enc_structure(struct byte_array *external_aad, in create_enc_structure()
35 struct byte_array *out) in create_enc_structure()
61 enum err oscore_cose_decrypt(struct byte_array *in_ciphertext, in oscore_cose_decrypt()
62 struct byte_array *out_plaintext, in oscore_cose_decrypt()
63 struct byte_array *nonce, in oscore_cose_decrypt()
64 struct byte_array *recipient_aad, in oscore_cose_decrypt()
65 struct byte_array *key) in oscore_cose_decrypt()
72 struct byte_array tag = BYTE_ARRAY_INIT( in oscore_cose_decrypt()
85 enum err oscore_cose_encrypt(struct byte_array *in_plaintext, in oscore_cose_encrypt()
86 struct byte_array *out_ciphertext, in oscore_cose_encrypt()
[all …]
/uoscore-uedhoc-3.7.0/src/common/
Dbyte_array.c17 struct byte_array EMPTY_ARRAY = {
22 struct byte_array NULL_ARRAY = {
27 enum err byte_array_append(struct byte_array *dest, in byte_array_append()
28 const struct byte_array *source, uint32_t capacity) in byte_array_append()
39 enum err byte_array_cpy(struct byte_array *dest, const struct byte_array *src, in byte_array_cpy()
47 bool array_equals(const struct byte_array *left, const struct byte_array *right) in array_equals()

1234