/uoscore-uedhoc-3.4.0/src/edhoc/ |
D | plaintext_encode.c | 27 enum err id_cred2kid(const uint8_t *id_cred, uint32_t id_cred_len, in id_cred2kid() argument 33 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred, id_cred_len, &map, in id_cred2kid() 72 enum err plaintext_encode(const uint8_t *id_cred, uint32_t id_cred_len, in plaintext_encode() argument 81 TRY(id_cred2kid(id_cred, id_cred_len, kid_buf, &kid_len)); in plaintext_encode() 89 TRY(_memcpy_s(plaintext, *plaintext_len, id_cred, id_cred_len)); in plaintext_encode() 90 l = id_cred_len; in plaintext_encode()
|
D | signature_or_mac_msg.c | 61 uint32_t th_len, const uint8_t *id_cred, uint32_t id_cred_len, in mac() argument 66 uint32_t context_mac_len = id_cred_len + cred_len + ead_len; in mac() 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() 72 (context_mac_len - id_cred_len), cred, cred_len)); in mac() 74 TRY(_memcpy_s((context_mac + id_cred_len + cred_len), in mac() 75 (context_mac_len - id_cred_len - cred_len), ead, in mac() 96 uint32_t id_cred_len, const uint8_t *cred, in signature_struct_gen() argument 123 id_cred_len, tmp, tmp_len, mac, mac_len, out, out_len)); in signature_struct_gen() 133 uint32_t id_cred_len, const uint8_t *cred, uint32_t cred_len, in signature_or_mac() argument [all …]
|
D | ciphertext.c | 127 uint8_t *id_cred, uint32_t *id_cred_len, in ciphertext_decrypt_split() argument 183 id_cred_len, signature_or_mac, in ciphertext_decrypt_split() 185 PRINT_ARRAY("ID_CRED", id_cred, *id_cred_len); in ciphertext_decrypt_split() 197 uint8_t *id_cred, uint32_t id_cred_len, in ciphertext_gen() argument 219 TRY(id_cred2kid(id_cred, id_cred_len, kid_buf, &kid_len)); in ciphertext_gen() 237 id_cred_len)); in ciphertext_gen() 239 TRY(_memcpy_s(plaintext + id_cred_len, in ciphertext_gen() 240 plaintext_len - id_cred_len, in ciphertext_gen() 244 plaintext_len = id_cred_len + signature_or_mac_enc_len; in ciphertext_gen()
|
D | retrieve_cred.c | 101 uint32_t id_cred_len, uint8_t *cred, in get_local_cred() argument 106 if ((cred_array[i].id_cred.len == id_cred_len) && in get_local_cred() 108 memcmp(cred_array[i].id_cred.ptr, id_cred, id_cred_len))) { in get_local_cred() 147 uint32_t id_cred_len, uint8_t *cred, uint32_t *cred_len, in retrieve_cred() argument 154 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred, id_cred_len, &map, in retrieve_cred() 165 id_cred, id_cred_len, cred, cred_len, pk, in retrieve_cred()
|
/uoscore-uedhoc-3.4.0/inc/edhoc/ |
D | plaintext.h | 25 enum err id_cred2kid(const uint8_t *id_cred, uint32_t id_cred_len, 55 enum err plaintext_encode(const uint8_t *id_cred, uint32_t id_cred_len,
|
D | signature_or_mac_msg.h | 64 const uint8_t id_cred_len, const uint8_t *cred, const uint16_t cred_len, 69 uint32_t th_len, const uint8_t *id_cred, uint32_t id_cred_len, 79 uint32_t id_cred_len, const uint8_t *cred, uint32_t cred_len,
|
D | ciphertext.h | 36 uint8_t *id_cred, uint32_t id_cred_len, 64 uint8_t *id_cred, uint32_t *id_cred_len,
|
D | retrieve_cred.h | 62 uint32_t id_cred_len, uint8_t *cred, uint32_t *cred_len,
|