Lines Matching defs:nonce
258 oscore_log_hex_value(COAP_LOG_OSCORE, "nonce", &cose->nonce);
290 coap_bin_const_t nonce;
376 /* nonce (needs to have sender information correctly set up) */
382 * Compose the AEAD nonce
389 nonce.s = nonce_buffer;
390 nonce.length = 13;
392 cose_encrypt0_set_nonce(cose, &nonce);
406 * Use nonce from request
408 cose_encrypt0_set_nonce(cose, association->nonce);
582 * nonce (already set)
657 coap_delete_bin_const(association->nonce);
658 association->nonce =
659 coap_new_bin_const(cose->nonce.s, cose->nonce.length);
660 if (association->nonce == NULL)
692 &cose->nonce,
784 coap_bin_const_t nonce;
1125 * Compute the AEAD nonce.
1132 nonce.s = nonce_buffer;
1133 nonce.length = 13;
1135 cose_encrypt0_set_nonce(cose, &nonce);
1142 coap_delete_bin_const(association->nonce);
1143 association->nonce =
1144 coap_new_bin_const(cose->nonce.s, cose->nonce.length);
1145 if (association->nonce == NULL)
1162 &cose->nonce,
1170 /* Need to do nonce before AAD because of different partial_iv */
1173 * Compose the AEAD nonce.
1178 cose_encrypt0_set_nonce(cose, association->nonce);
1202 nonce.s = nonce_buffer;
1203 nonce.length = 13;
1204 cose_encrypt0_set_nonce(cose, &nonce);
1207 dump_cose(cose, "!req post set nonce");
1270 * nonce (already set)