Home
last modified time | relevance | path

Searched refs:add_len (Results 1 – 25 of 25) sorted by relevance

/third_party/mbedtls/library/
Dccm.c178 ctx->y[0] |= (ctx->add_len > 0) << 6; in ccm_calculate_first_block_if_ready()
259 ctx->add_len = total_ad_len; in mbedtls_ccm_set_lengths()
269 size_t add_len) in mbedtls_ccm_update_ad() argument
278 if (add_len > 0) { in mbedtls_ccm_update_ad()
284 if (add_len > ctx->add_len) { in mbedtls_ccm_update_ad()
288 ctx->y[0] ^= (unsigned char) ((ctx->add_len >> 8) & 0xFF); in mbedtls_ccm_update_ad()
289 ctx->y[1] ^= (unsigned char) ((ctx->add_len) & 0xFF); in mbedtls_ccm_update_ad()
292 } else if (ctx->processed + add_len > ctx->add_len) { in mbedtls_ccm_update_ad()
296 while (add_len > 0) { in mbedtls_ccm_update_ad()
301 if (use_len > add_len) { in mbedtls_ccm_update_ad()
[all …]
Dgcm.c280 ctx->add_len = 0; in mbedtls_gcm_starts()
333 const unsigned char *add, size_t add_len) in mbedtls_gcm_update_ad() argument
339 if ((uint64_t) add_len >> 61 != 0) { in mbedtls_gcm_update_ad()
343 offset = ctx->add_len % 16; in mbedtls_gcm_update_ad()
348 if (use_len > add_len) { in mbedtls_gcm_update_ad()
349 use_len = add_len; in mbedtls_gcm_update_ad()
358 ctx->add_len += use_len; in mbedtls_gcm_update_ad()
359 add_len -= use_len; in mbedtls_gcm_update_ad()
363 ctx->add_len += add_len; in mbedtls_gcm_update_ad()
365 while (add_len >= 16) { in mbedtls_gcm_update_ad()
[all …]
Dhmac_drbg.c57 size_t add_len) in mbedtls_hmac_drbg_update() argument
60 unsigned char rounds = (additional != NULL && add_len != 0) ? 2 : 1; in mbedtls_hmac_drbg_update()
80 additional, add_len)) != 0) { in mbedtls_hmac_drbg_update()
320 const unsigned char *additional, size_t add_len) in mbedtls_hmac_drbg_random_with_add() argument
334 if (add_len > MBEDTLS_HMAC_DRBG_MAX_INPUT) { in mbedtls_hmac_drbg_random_with_add()
342 if ((ret = mbedtls_hmac_drbg_reseed(ctx, additional, add_len)) != 0) { in mbedtls_hmac_drbg_random_with_add()
346 add_len = 0; /* VII.4 */ in mbedtls_hmac_drbg_random_with_add()
350 if (additional != NULL && add_len != 0) { in mbedtls_hmac_drbg_random_with_add()
352 additional, add_len)) != 0) { in mbedtls_hmac_drbg_random_with_add()
379 additional, add_len)) != 0) { in mbedtls_hmac_drbg_random_with_add()
Dctr_drbg.c308 size_t add_len) in mbedtls_ctr_drbg_update() argument
313 if (add_len == 0) { in mbedtls_ctr_drbg_update()
317 if ((ret = block_cipher_df(add_input, additional, add_len)) != 0) { in mbedtls_ctr_drbg_update()
496 const unsigned char *additional, size_t add_len) in mbedtls_ctr_drbg_random_with_add() argument
510 if (add_len > MBEDTLS_CTR_DRBG_MAX_INPUT) { in mbedtls_ctr_drbg_random_with_add()
518 if ((ret = mbedtls_ctr_drbg_reseed(ctx, additional, add_len)) != 0) { in mbedtls_ctr_drbg_random_with_add()
521 add_len = 0; in mbedtls_ctr_drbg_random_with_add()
524 if (add_len > 0) { in mbedtls_ctr_drbg_random_with_add()
525 if ((ret = block_cipher_df(add_input, additional, add_len)) != 0) { in mbedtls_ctr_drbg_random_with_add()
Dpem.c586 size_t len = 0, use_len, add_len = 0; in mbedtls_pem_write_buffer() local
589 add_len = strlen(header) + strlen(footer) + (use_len / 64) + 1; in mbedtls_pem_write_buffer()
591 if (use_len + add_len > buf_len) { in mbedtls_pem_write_buffer()
592 *olen = use_len + add_len; in mbedtls_pem_write_buffer()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dwpabuf.c47 int wpabuf_resize(struct wpabuf **_buf, size_t add_len) in wpabuf_resize() argument
55 *_buf = wpabuf_alloc(add_len); in wpabuf_resize()
69 if (buf->used + add_len > buf->size) { in wpabuf_resize()
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
81 buf->used + add_len); in wpabuf_resize()
88 add_len); in wpabuf_resize()
91 buf->used + add_len); in wpabuf_resize()
96 add_len); in wpabuf_resize()
101 buf->size = buf->used + add_len; in wpabuf_resize()
Dwpabuf.h29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dwpabuf.c47 int wpabuf_resize(struct wpabuf **_buf, size_t add_len) in wpabuf_resize() argument
55 *_buf = wpabuf_alloc(add_len); in wpabuf_resize()
69 if (buf->used + add_len > buf->size) { in wpabuf_resize()
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
81 buf->used + add_len); in wpabuf_resize()
88 add_len); in wpabuf_resize()
91 buf->used + add_len); in wpabuf_resize()
96 add_len); in wpabuf_resize()
101 buf->size = buf->used + add_len; in wpabuf_resize()
Dwpabuf.h29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
/third_party/mbedtls/include/mbedtls/
Dgcm.h65 …uint64_t MBEDTLS_PRIVATE(add_len); /*!< The total length of the additional dat…
170 size_t add_len,
214 size_t add_len,
260 size_t add_len);
Dhmac_drbg.h298 const unsigned char *additional, size_t add_len);
361 size_t add_len);
Dctr_drbg.h467 size_t add_len);
502 const unsigned char *additional, size_t add_len);
Dccm.h82 size_t MBEDTLS_PRIVATE(add_len); /*!< Total authentication data length */
/third_party/mbedtls/tests/scripts/
Dgen_gcm_encrypt.pl66 my $add_len = get_suite_val("AADlen");
79 print("GCM NIST Validation (AES-$key_len,$iv_len,$pt_len,$add_len,$tag_len) #$Count\n");
Dgen_gcm_decrypt.pl83 my $add_len = get_suite_val("AADlen");
96 print("GCM NIST Validation (AES-$key_len,$iv_len,$pt_len,$add_len,$tag_len) #$Count\n");
/third_party/mbedtls/tests/suites/
Dtest_suite_ccm.function97 void ccm_lengths(int msg_len, int iv_len, int add_len, int tag_len, int res)
110 ASSERT_ALLOC_WEAK(add, add_len);
120 TEST_ASSERT(mbedtls_ccm_encrypt_and_tag(&ctx, msg_len, iv, iv_len, add, add_len,
123 decrypt_ret = mbedtls_ccm_auth_decrypt(&ctx, msg_len, iv, iv_len, add, add_len,
139 void ccm_star_lengths(int msg_len, int iv_len, int add_len, int tag_len,
164 add, add_len, msg, out, tag, tag_len) == res);
167 add_len, msg, out, tag, tag_len);
/third_party/mesa3d/src/egl/main/
Deglapi.c561 const size_t add_len = sizeof(str); \ in _eglCreateAPIsString()
563 if (old_len + add_len <= max_len) \ in _eglCreateAPIsString()
/third_party/skia/third_party/externals/microhttpd/
Dltmain.sh4884 int add_len = strlen (add);
4885 new_value = XMALLOC (char, add_len + orig_value_len + 1);
4894 strcpy (new_value + add_len, orig_value);
/third_party/libabigail/
Dltmain.sh4864 int add_len = strlen (add);
4865 new_value = XMALLOC (char, add_len + orig_value_len + 1);
4874 strcpy (new_value + add_len, orig_value);
/third_party/libffi/
Dltmain.sh6262 size_t add_len = strlen (add);
6263 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6272 strcpy (new_value + add_len, orig_value);
/third_party/node/deps/cares/
Dltmain.sh6523 size_t add_len = strlen (add);
6524 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6533 strcpy (new_value + add_len, orig_value);
/third_party/libevdev/build-aux/
Dltmain.sh6255 size_t add_len = strlen (add);
6256 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6265 strcpy (new_value + add_len, orig_value);
/third_party/skia/third_party/externals/libpng/
Dltmain.sh6262 size_t add_len = strlen (add);
6263 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6272 strcpy (new_value + add_len, orig_value);
/third_party/curl/
Dltmain.sh6511 size_t add_len = strlen (add);
6512 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6521 strcpy (new_value + add_len, orig_value);
/third_party/mbedtls/
DChangeLog4102 add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).
4607 add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).