Home
last modified time | relevance | path

Searched refs:plaintext (Results 1 – 13 of 13) sorted by relevance

/uoscore-uedhoc-3.5.0/src/edhoc/
Dciphertext.c136 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 …]
Dplaintext_encode.c56 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()
Dinitiator.c156 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()
Dplaintext_decode.c84 struct plaintext p; in plaintext_split()
/uoscore-uedhoc-3.5.0/src/oscore/
Dcoap2oscore.c200 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 …]
Doscore2coap.c254 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/
Dciphertext.h43 uint32_t *ciphertext_len, uint8_t *plaintext,
75 uint32_t ciphertext_len, uint8_t *plaintext,
Dplaintext.h58 uint8_t *plaintext, uint32_t *plaintext_len);
/uoscore-uedhoc-3.5.0/inc/cbor/
Dedhoc_decode_plaintext.h24 struct plaintext *result,
Dedhoc_decode_plaintext_types.h105 struct plaintext { struct
/uoscore-uedhoc-3.5.0/src/cbor/
Dedhoc_decode_plaintext.c176 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/
Dedhoc_plaintext.cddl12 plaintext = ( ID_CRED_x: map / bstr / int, SGN_or_MAC_x: bstr, ? AD_x: bstr)
/uoscore-uedhoc-3.5.0/scripts/
Dcddl2c.sh79 python3 $ZCBOR -c $MODELS_PATH/edhoc_plaintext.cddl code -d -t plaintext --oc $SRC/edhoc_decode_pla…