Lines Matching refs:size_t

40 static zend_always_inline zend_string *zend_string_checked_alloc(size_t len, int persistent)  in zend_string_checked_alloc()
423 size_t buf_len = Z_STRLEN(*buf_zv); in PHP_FUNCTION()
425 sodium_memzero(buf, (size_t) buf_len); in PHP_FUNCTION()
435 size_t val_len; in PHP_FUNCTION()
459 size_t val_len; in PHP_FUNCTION()
460 size_t addv_len; in PHP_FUNCTION()
487 size_t len1; in PHP_FUNCTION()
488 size_t len2; in PHP_FUNCTION()
508 size_t key_len; in PHP_FUNCTION()
509 size_t msg_len; in PHP_FUNCTION()
539 size_t key_len; in PHP_FUNCTION()
540 size_t msg_len; in PHP_FUNCTION()
541 size_t nonce_len; in PHP_FUNCTION()
562 ciphertext = zend_string_alloc((size_t) msg_len + crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
581 size_t key_len; in PHP_FUNCTION()
582 size_t ciphertext_len; in PHP_FUNCTION()
583 size_t nonce_len; in PHP_FUNCTION()
604 ((size_t) ciphertext_len - crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
622 size_t key_len = 0; in PHP_FUNCTION()
623 size_t msg_len; in PHP_FUNCTION()
644 if (crypto_generichash((unsigned char *) ZSTR_VAL(hash), (size_t) hash_len, in PHP_FUNCTION()
646 key, (size_t) key_len) != 0) { in PHP_FUNCTION()
661 size_t state_len = sizeof (crypto_generichash_state); in PHP_FUNCTION()
663 size_t key_len = 0; in PHP_FUNCTION()
683 if (crypto_generichash_init((void *) &state_tmp, key, (size_t) key_len, in PHP_FUNCTION()
684 (size_t) hash_len) != 0) { in PHP_FUNCTION()
702 size_t msg_len; in PHP_FUNCTION()
703 size_t state_len; in PHP_FUNCTION()
741 size_t state_len; in PHP_FUNCTION()
770 (size_t) hash_len) != 0) { in PHP_FUNCTION()
787 size_t keypair_len; in PHP_FUNCTION()
810 size_t keypair_len; in PHP_FUNCTION()
811 size_t seed_len; in PHP_FUNCTION()
842 size_t keypair_len; in PHP_FUNCTION()
843 size_t publickey_len; in PHP_FUNCTION()
844 size_t secretkey_len; in PHP_FUNCTION()
874 size_t keypair_len; in PHP_FUNCTION()
897 size_t keypair_len; in PHP_FUNCTION()
921 size_t secretkey_len; in PHP_FUNCTION()
951 size_t keypair_len; in PHP_FUNCTION()
952 size_t msg_len; in PHP_FUNCTION()
953 size_t nonce_len; in PHP_FUNCTION()
976 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_MACBYTES, 0); in PHP_FUNCTION()
997 size_t ciphertext_len; in PHP_FUNCTION()
998 size_t keypair_len; in PHP_FUNCTION()
999 size_t nonce_len; in PHP_FUNCTION()
1021 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_MACBYTES, 0); in PHP_FUNCTION()
1038 size_t msg_len; in PHP_FUNCTION()
1039 size_t publickey_len; in PHP_FUNCTION()
1055 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
1074 size_t ciphertext_len; in PHP_FUNCTION()
1075 size_t keypair_len; in PHP_FUNCTION()
1092 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
1107 size_t keypair_len; in PHP_FUNCTION()
1130 size_t keypair_len; in PHP_FUNCTION()
1131 size_t seed_len; in PHP_FUNCTION()
1162 size_t keypair_len; in PHP_FUNCTION()
1163 size_t publickey_len; in PHP_FUNCTION()
1164 size_t secretkey_len; in PHP_FUNCTION()
1194 size_t secretkey_len; in PHP_FUNCTION()
1222 size_t keypair_len; in PHP_FUNCTION()
1245 size_t keypair_len; in PHP_FUNCTION()
1271 size_t msg_len; in PHP_FUNCTION()
1272 size_t msg_signed_len; in PHP_FUNCTION()
1273 size_t secretkey_len; in PHP_FUNCTION()
1290 msg_signed = zend_string_alloc((size_t) msg_signed_len, 0); in PHP_FUNCTION()
1303 PHP_SODIUM_ZSTR_TRUNCATE(msg_signed, (size_t) msg_signed_real_len); in PHP_FUNCTION()
1315 size_t msg_len; in PHP_FUNCTION()
1316 size_t msg_signed_len; in PHP_FUNCTION()
1317 size_t publickey_len; in PHP_FUNCTION()
1334 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1346 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1358 size_t msg_len; in PHP_FUNCTION()
1359 size_t secretkey_len; in PHP_FUNCTION()
1371 signature = zend_string_alloc((size_t) crypto_sign_BYTES, 0); in PHP_FUNCTION()
1372 memset(ZSTR_VAL(signature), 0, (size_t) crypto_sign_BYTES); in PHP_FUNCTION()
1385 PHP_SODIUM_ZSTR_TRUNCATE(signature, (size_t) signature_real_len); in PHP_FUNCTION()
1396 size_t msg_len; in PHP_FUNCTION()
1397 size_t publickey_len; in PHP_FUNCTION()
1398 size_t signature_len; in PHP_FUNCTION()
1429 size_t key_len; in PHP_FUNCTION()
1430 size_t nonce_len; in PHP_FUNCTION()
1451 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1469 size_t ciphertext_len; in PHP_FUNCTION()
1470 size_t key_len; in PHP_FUNCTION()
1471 size_t msg_len; in PHP_FUNCTION()
1472 size_t nonce_len; in PHP_FUNCTION()
1490 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1509 size_t key_len; in PHP_FUNCTION()
1510 size_t nonce_len; in PHP_FUNCTION()
1531 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1549 size_t ciphertext_len; in PHP_FUNCTION()
1550 size_t key_len; in PHP_FUNCTION()
1551 size_t msg_len; in PHP_FUNCTION()
1552 size_t nonce_len; in PHP_FUNCTION()
1570 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1593 size_t passwd_len; in PHP_FUNCTION()
1594 size_t salt_len; in PHP_FUNCTION()
1648 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
1655 (unsigned long long) opslimit, (size_t) memlimit, (int) alg); in PHP_FUNCTION()
1662 (unsigned long long) opslimit, (size_t) memlimit, (int) alg); in PHP_FUNCTION()
1680 size_t passwd_len; in PHP_FUNCTION()
1681 size_t len; in PHP_FUNCTION()
1713 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
1732 size_t hash_str_len; in PHP_FUNCTION()
1749 size_t hash_str_len; in PHP_FUNCTION()
1750 size_t passwd_len; in PHP_FUNCTION()
1782 size_t passwd_len; in PHP_FUNCTION()
1783 size_t salt_len; in PHP_FUNCTION()
1818 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
1822 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
1838 size_t passwd_len; in PHP_FUNCTION()
1867 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
1881 size_t hash_str_len; in PHP_FUNCTION()
1882 size_t passwd_len; in PHP_FUNCTION()
1926 size_t ad_len; in PHP_FUNCTION()
1927 size_t ciphertext_len; in PHP_FUNCTION()
1928 size_t msg_len; in PHP_FUNCTION()
1929 size_t npub_len; in PHP_FUNCTION()
1930 size_t secretkey_len; in PHP_FUNCTION()
1957 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1972 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
1986 size_t ad_len; in PHP_FUNCTION()
1987 size_t ciphertext_len; in PHP_FUNCTION()
1988 size_t msg_len; in PHP_FUNCTION()
1989 size_t npub_len; in PHP_FUNCTION()
1990 size_t secretkey_len; in PHP_FUNCTION()
2020 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2033 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2048 size_t ad_len; in PHP_FUNCTION()
2049 size_t ciphertext_len; in PHP_FUNCTION()
2050 size_t msg_len; in PHP_FUNCTION()
2051 size_t npub_len; in PHP_FUNCTION()
2052 size_t secretkey_len; in PHP_FUNCTION()
2075 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2090 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2104 size_t ad_len; in PHP_FUNCTION()
2105 size_t ciphertext_len; in PHP_FUNCTION()
2106 size_t msg_len; in PHP_FUNCTION()
2107 size_t npub_len; in PHP_FUNCTION()
2108 size_t secretkey_len; in PHP_FUNCTION()
2134 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2147 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2161 size_t ad_len; in PHP_FUNCTION()
2162 size_t ciphertext_len; in PHP_FUNCTION()
2163 size_t msg_len; in PHP_FUNCTION()
2164 size_t npub_len; in PHP_FUNCTION()
2165 size_t secretkey_len; in PHP_FUNCTION()
2192 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2207 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2221 size_t ad_len; in PHP_FUNCTION()
2222 size_t ciphertext_len; in PHP_FUNCTION()
2223 size_t msg_len; in PHP_FUNCTION()
2224 size_t npub_len; in PHP_FUNCTION()
2225 size_t secretkey_len; in PHP_FUNCTION()
2256 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2269 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2284 size_t ad_len; in PHP_FUNCTION()
2285 size_t ciphertext_len; in PHP_FUNCTION()
2286 size_t msg_len; in PHP_FUNCTION()
2287 size_t npub_len; in PHP_FUNCTION()
2288 size_t secretkey_len; in PHP_FUNCTION()
2311 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2326 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2340 size_t ad_len; in PHP_FUNCTION()
2341 size_t ciphertext_len; in PHP_FUNCTION()
2342 size_t msg_len; in PHP_FUNCTION()
2343 size_t npub_len; in PHP_FUNCTION()
2344 size_t secretkey_len; in PHP_FUNCTION()
2375 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2388 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2399 size_t bin_len; in PHP_FUNCTION()
2400 size_t hex_len; in PHP_FUNCTION()
2412 hex = zend_string_alloc((size_t) hex_len, 0); in PHP_FUNCTION()
2425 size_t bin_real_len; in PHP_FUNCTION()
2426 size_t bin_len; in PHP_FUNCTION()
2427 size_t hex_len; in PHP_FUNCTION()
2428 size_t ignore_len = 0; in PHP_FUNCTION()
2450 PHP_SODIUM_ZSTR_TRUNCATE(bin, (size_t) bin_real_len); in PHP_FUNCTION()
2462 size_t bin_len; in PHP_FUNCTION()
2463 size_t b64_len; in PHP_FUNCTION()
2479 b64 = zend_string_alloc((size_t) b64_len - 1U, 0); in PHP_FUNCTION()
2492 size_t bin_real_len; in PHP_FUNCTION()
2493 size_t bin_len; in PHP_FUNCTION()
2494 size_t b64_len; in PHP_FUNCTION()
2495 size_t ignore_len = 0; in PHP_FUNCTION()
2522 PHP_SODIUM_ZSTR_TRUNCATE(bin, (size_t) bin_real_len); in PHP_FUNCTION()
2534 size_t n_len; in PHP_FUNCTION()
2535 size_t p_len; in PHP_FUNCTION()
2567 size_t n_len; in PHP_FUNCTION()
2568 size_t p_len; in PHP_FUNCTION()
2600 size_t n_len; in PHP_FUNCTION()
2629 size_t seed_len; in PHP_FUNCTION()
2681 size_t keypair_len; in PHP_FUNCTION()
2704 size_t keypair_len; in PHP_FUNCTION()
2733 size_t keypair_len; in PHP_FUNCTION()
2734 size_t server_pk_len; in PHP_FUNCTION()
2783 size_t keypair_len; in PHP_FUNCTION()
2784 size_t client_pk_len; in PHP_FUNCTION()
2829 size_t msg_len; in PHP_FUNCTION()
2830 size_t key_len; in PHP_FUNCTION()
2859 size_t mac_len; in PHP_FUNCTION()
2860 size_t msg_len; in PHP_FUNCTION()
2861 size_t key_len; in PHP_FUNCTION()
2890 size_t eddsakey_len; in PHP_FUNCTION()
2917 size_t eddsakey_len; in PHP_FUNCTION()
2944 size_t len1; in PHP_FUNCTION()
2945 size_t len2; in PHP_FUNCTION()
2958 (const unsigned char *) buf2, (size_t) len1)); in PHP_FUNCTION()
3099 size_t ctx_len; in PHP_FUNCTION()
3100 size_t key_len; in PHP_FUNCTION()
3132 subkey = zend_string_alloc((size_t) subkey_len, 0); in PHP_FUNCTION()
3135 (size_t) subkey_len, (uint64_t) subkey_id, in PHP_FUNCTION()
3148 (size_t) subkey_len, in PHP_FUNCTION()
3164 volatile size_t st; in PHP_FUNCTION()
3165 size_t i, j, k; in PHP_FUNCTION()
3166 size_t unpadded_len; in PHP_FUNCTION()
3167 size_t xpadlen; in PHP_FUNCTION()
3168 size_t xpadded_len; in PHP_FUNCTION()
3185 xpadlen -= unpadded_len & ((size_t) blocksize - 1U); in PHP_FUNCTION()
3187 xpadlen -= unpadded_len % (size_t) blocksize; in PHP_FUNCTION()
3189 if ((size_t) SIZE_MAX - unpadded_len <= xpadlen) { in PHP_FUNCTION()
3202 st = (size_t) (~(((( (((uint64_t) k) >> 48) | (((uint64_t) k) >> 32) | in PHP_FUNCTION()
3209 (size_t) blocksize, xpadded_len + 1U) != 0) { in PHP_FUNCTION()
3223 (((i ^ xpadlen) - 1U) >> ((sizeof(size_t) - 1U) * CHAR_BIT)); in PHP_FUNCTION()
3238 size_t padded_len; in PHP_FUNCTION()
3239 size_t unpadded_len; in PHP_FUNCTION()
3263 padded_len, (size_t) blocksize); in PHP_FUNCTION()
3270 volatile size_t pad_len = 0U; in PHP_FUNCTION()
3271 size_t i; in PHP_FUNCTION()
3272 size_t is_barrier; in PHP_FUNCTION()
3276 for (i = 0U; i < (size_t) blocksize; i++) { in PHP_FUNCTION()
3315 size_t key_len; in PHP_FUNCTION()
3345 size_t ad_len = (size_t) 0U; in PHP_FUNCTION()
3346 size_t c_len; in PHP_FUNCTION()
3347 size_t msg_len; in PHP_FUNCTION()
3348 size_t state_len; in PHP_FUNCTION()
3378 c = zend_string_alloc((size_t) c_len, 0); in PHP_FUNCTION()
3392 PHP_SODIUM_ZSTR_TRUNCATE(c, (size_t) c_real_len); in PHP_FUNCTION()
3403 size_t header_len; in PHP_FUNCTION()
3404 size_t key_len; in PHP_FUNCTION()
3436 size_t ad_len = (size_t) 0U; in PHP_FUNCTION()
3437 size_t msg_len; in PHP_FUNCTION()
3438 size_t c_len; in PHP_FUNCTION()
3439 size_t state_len; in PHP_FUNCTION()
3464 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
3476 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
3487 size_t state_len; in PHP_FUNCTION()
3515 size_t p_len; in PHP_FUNCTION()
3516 size_t q_len; in PHP_FUNCTION()
3547 size_t s_len; in PHP_FUNCTION()
3572 size_t s_len; in PHP_FUNCTION()
3605 size_t p_len; in PHP_FUNCTION()
3606 size_t q_len; in PHP_FUNCTION()
3633 size_t s_len; in PHP_FUNCTION()
3655 size_t s_len; in PHP_FUNCTION()
3682 size_t x_len; in PHP_FUNCTION()
3683 size_t y_len; in PHP_FUNCTION()
3710 size_t s_len; in PHP_FUNCTION()
3745 size_t s_len; in PHP_FUNCTION()
3768 size_t p_len; in PHP_FUNCTION()
3769 size_t q_len; in PHP_FUNCTION()
3797 size_t p_len; in PHP_FUNCTION()
3798 size_t q_len; in PHP_FUNCTION()