Lines Matching defs:length
26 #define AAD_BUF_LEN 200 /* length of aad_buffer */
49 coap_prng(id_context->s, id_context->length);
171 uri.host.length,
182 if (uri.path.length) {
185 size_t buflen = uri.path.length + 1;
188 kbuf = buf = coap_malloc_type(COAP_STRING, uri.path.length + 1);
190 res = coap_split_path(uri.path.s, uri.path.length, buf, &buflen);
204 if (uri.query.length) {
206 size_t buflen = uri.query.length + 1;
209 buf = coap_malloc_type(COAP_STRING, uri.query.length + 1);
211 res = coap_split_query(uri.query.s, uri.query.length, buf, &buflen);
283 size_t length;
367 partial_iv.length = partial_iv_len;
390 nonce.length = 13;
469 external_aad.length = oscore_prepare_e_aad(osc_ctx,
480 aad.length = oscore_prepare_aad(external_aad_buffer,
481 external_aad.length,
484 assert(aad.length < AAD_BUF_LEN);
501 coap_add_token(osc_pdu, pdu_token.length, pdu_token.s);
566 if (coap_get_data(pdu, &length, &data)) {
567 if (!coap_add_data(plain_pdu, length, data))
659 coap_new_bin_const(cose->nonce.s, cose->nonce.length);
663 association->aad = coap_new_bin_const(cose->aad.s, cose->aad.length);
668 coap_new_bin_const(cose->partial_iv.s, cose->partial_iv.length);
677 pdu_token.length,
726 token.length + 2 + 8 +
730 coap_add_token(err_pdu, token.length, token.s);
841 coap_add_token(decrypt_pdu, pdu_token.length, pdu_token.s);
911 if (cose->kid_context.length > 0) {
913 size_t length;
921 length = cose->kid_context.length;
928 kid_context.length = oscore_cbor_get_element_size(&ptr, &length);
935 cose->kid_context.length);
1005 coap_decode_var_bytes8(cose->partial_iv.s, cose->partial_iv.length);
1029 size_t length = cose->kid_context.length;
1035 kid_context.length = oscore_cbor_get_element_size(&ptr, &length);
1042 coap_binary_t *kc = coap_new_binary(cose->kid_context.length +
1043 osc_ctx->id_context->length);
1052 memcpy(kc->s, cose->kid_context.s, cose->kid_context.length);
1053 memcpy(&kc->s[cose->kid_context.length],
1055 osc_ctx->id_context->length);
1105 external_aad.length = oscore_prepare_e_aad(osc_ctx,
1116 aad.length = oscore_prepare_aad(external_aad_buffer,
1117 external_aad.length,
1120 assert(aad.length < AAD_BUF_LEN);
1133 nonce.length = 13;
1144 coap_new_bin_const(cose->nonce.s, cose->nonce.length);
1149 coap_new_bin_const(cose->partial_iv.s, cose->partial_iv.length);
1153 association->aad = coap_new_bin_const(cose->aad.s, cose->aad.length);
1176 if (cose->partial_iv.length == 0) {
1188 coap_decode_var_bytes8(cose->partial_iv.s, cose->partial_iv.length);
1203 nonce.length = 13;
1241 external_aad.length = oscore_prepare_e_aad(osc_ctx,
1252 aad.length = oscore_prepare_aad(external_aad_buffer,
1253 external_aad.length,
1256 assert(aad.length < AAD_BUF_LEN);
1309 plain_pdu->actual_token.length = 1;
1343 coap_new_binary(sizeof(session->oscore_r2) + cose->kid_context.length);
1358 cose->kid_context.length);
1363 oscore_r2.length = sizeof(session->oscore_r2);
1388 if (opt_iter.length > 0 && opt_iter.next_option &&
1398 coap_binary_t *kc = coap_new_binary(cose->kid_context.length + 8);
1407 memcpy(kc->s, cose->kid_context.s, cose->kid_context.length);
1408 coap_prng(&kc->s[cose->kid_context.length], 8);
1491 bias = cose->partial_iv.length > 3 ? cose->partial_iv.length - 3 : 0;
1492 len = cose->partial_iv.length > 3 ? 3 : cose->partial_iv.length;
1527 if (opt_iter.length > 0 && opt_iter.next_option &&
1702 keyword->length = split - begin;
1751 value->u.value_str.length = end - begin;
1839 const char *end = start + conf_mem.length;
1869 if (value.u.value_bin->length > 7) {
1895 (int)keyword.length,
1921 (int)keyword.length,
1923 (int)value.u.value_str.length,
1939 (int)keyword.length,
1955 if (oscore_conf->sender_id->length > 7) {
1959 if (oscore_conf->recipient_id && oscore_conf->recipient_id[0]->length > 7) {
2070 (osc_ctx->id_context ? osc_ctx->id_context->length : 0) +
2072 osc_ctx->sender_context->sender_id->length;