/uoscore-uedhoc-3.5.0/src/edhoc/ |
D | ciphertext.c | 136 uint32_t ciphertext_len, uint8_t *plaintext, in ciphertext_decrypt_split() argument 176 iv_len, associated_data, associated_data_len, plaintext, in ciphertext_decrypt_split() 179 PRINT_ARRAY("plaintext", plaintext, plaintext_len); in ciphertext_decrypt_split() 182 TRY(decode_byte_string(plaintext, plaintext_len, ead, ead_len)); in ciphertext_decrypt_split() 189 TRY(plaintext_split(plaintext, plaintext_len, id_cred, in ciphertext_decrypt_split() 209 uint32_t *ciphertext_len, uint8_t *plaintext, in ciphertext_gen() argument 229 TRY(_memcpy_s(plaintext, *plaintext_len, kid_buf, in ciphertext_gen() 232 TRY(_memcpy_s(plaintext + kid_len, in ciphertext_gen() 240 TRY(_memcpy_s(plaintext, *plaintext_len, id_cred, in ciphertext_gen() 243 TRY(_memcpy_s(plaintext + id_cred_len, in ciphertext_gen() [all …]
|
D | plaintext_encode.c | 56 uint8_t *plaintext, uint32_t *plaintext_len) in plaintext_encode() argument 67 TRY(_memcpy_s(plaintext, *plaintext_len, kid_buf, kid_len)); in plaintext_encode() 70 TRY(_memcpy_s(plaintext, *plaintext_len, id_cred, id_cred_len)); in plaintext_encode() 74 TRY(encode_byte_string(sgn_or_mac, sgn_or_mac_len, plaintext + l, in plaintext_encode() 77 TRY(_memcpy_s(plaintext + l + enc_sgn_or_mac_len, in plaintext_encode()
|
D | initiator.c | 156 uint8_t plaintext[PLAINTEXT_DEFAULT_SIZE]; in msg3_gen() local 157 uint32_t plaintext_len = sizeof(plaintext); in msg3_gen() 213 plaintext, plaintext_len)); in msg3_gen() 249 plaintext, plaintext_len, cred_r, cred_r_len, th3)); in msg3_gen() 268 plaintext_len = sizeof(plaintext); in msg3_gen() 275 &ciphertext_len, plaintext, &plaintext_len)); in msg3_gen() 288 TRY(th4_calculate(rc->suite.edhoc_hash, th3, th3_len, plaintext, in msg3_gen()
|
D | plaintext_decode.c | 84 struct plaintext p; in plaintext_split()
|
/uoscore-uedhoc-3.5.0/src/oscore/ |
D | coap2oscore.c | 200 struct byte_array *plaintext) in plaintext_setup() argument 202 uint8_t *temp_plaintext_ptr = plaintext->ptr; in plaintext_setup() 221 uint32_t dest_size = (plaintext->len - (uint32_t)(temp_plaintext_ptr + in plaintext_setup() 222 1 - plaintext->ptr)); in plaintext_setup() 232 dest_size = (plaintext->len - (uint32_t)(temp_plaintext_ptr + in plaintext_setup() 233 1 - plaintext->ptr)); in plaintext_setup() 237 PRINT_ARRAY("Plain text", plaintext->ptr, plaintext->len); in plaintext_setup() 498 static enum err encrypt_wrapper(struct byte_array *plaintext, in encrypt_wrapper() argument 549 TRY(oscore_cose_encrypt(plaintext, ciphertext, &nonce, &aad, in encrypt_wrapper() 634 BYTE_ARRAY_NEW(plaintext, MAX_PLAINTEXT_LEN, plaintext_len); in coap2oscore() [all …]
|
D | oscore2coap.c | 254 decrypt_wrapper(struct byte_array *ciphertext, struct byte_array *plaintext, in decrypt_wrapper() argument 301 TRY(oscore_cose_decrypt(ciphertext, plaintext, &nonce, &aad, in decrypt_wrapper() 310 TRY(o_coap_pkg_generate(plaintext, input_oscore, output_coap)); in decrypt_wrapper() 357 BYTE_ARRAY_NEW(plaintext, MAX_PLAINTEXT_LEN, plaintext_bytes_len); in oscore2coap() 390 TRY(decrypt_wrapper(ciphertext, &plaintext, c, &oscore_option, in oscore2coap() 405 &plaintext)) { in oscore2coap() 438 TRY(decrypt_wrapper(ciphertext, &plaintext, c, in oscore2coap() 456 TRY(decrypt_wrapper(ciphertext, &plaintext, c, in oscore2coap() 462 TRY(decrypt_wrapper(ciphertext, &plaintext, c, in oscore2coap()
|
/uoscore-uedhoc-3.5.0/inc/edhoc/ |
D | ciphertext.h | 43 uint32_t *ciphertext_len, uint8_t *plaintext, 75 uint32_t ciphertext_len, uint8_t *plaintext,
|
D | plaintext.h | 58 uint8_t *plaintext, uint32_t *plaintext_len);
|
/uoscore-uedhoc-3.5.0/inc/cbor/ |
D | edhoc_decode_plaintext.h | 24 struct plaintext *result,
|
D | edhoc_decode_plaintext_types.h | 105 struct plaintext { struct
|
/uoscore-uedhoc-3.5.0/src/cbor/ |
D | edhoc_decode_plaintext.c | 176 zcbor_state_t *state, struct plaintext *result) in decode_plaintext() 197 struct plaintext *result, in cbor_decode_plaintext()
|
/uoscore-uedhoc-3.5.0/cddl_models/ |
D | edhoc_plaintext.cddl | 12 plaintext = ( ID_CRED_x: map / bstr / int, SGN_or_MAC_x: bstr, ? AD_x: bstr)
|
/uoscore-uedhoc-3.5.0/scripts/ |
D | cddl2c.sh | 79 python3 $ZCBOR -c $MODELS_PATH/edhoc_plaintext.cddl code -d -t plaintext --oc $SRC/edhoc_decode_pla…
|