Lines Matching refs:size_t
41 static zend_always_inline zend_string *zend_string_checked_alloc(size_t len, int persistent) in zend_string_checked_alloc()
209 size_t buf_len = Z_STRLEN(*buf_zv); in PHP_FUNCTION()
211 sodium_memzero(buf, (size_t) buf_len); in PHP_FUNCTION()
221 size_t val_len; in PHP_FUNCTION()
245 size_t val_len; in PHP_FUNCTION()
246 size_t addv_len; in PHP_FUNCTION()
273 size_t len1; in PHP_FUNCTION()
274 size_t len2; in PHP_FUNCTION()
294 size_t key_len; in PHP_FUNCTION()
295 size_t msg_len; in PHP_FUNCTION()
325 size_t key_len; in PHP_FUNCTION()
326 size_t msg_len; in PHP_FUNCTION()
327 size_t nonce_len; in PHP_FUNCTION()
348 ciphertext = zend_string_alloc((size_t) msg_len + crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
367 size_t key_len; in PHP_FUNCTION()
368 size_t ciphertext_len; in PHP_FUNCTION()
369 size_t nonce_len; in PHP_FUNCTION()
390 ((size_t) ciphertext_len - crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
408 size_t key_len = 0; in PHP_FUNCTION()
409 size_t msg_len; in PHP_FUNCTION()
430 if (crypto_generichash((unsigned char *) ZSTR_VAL(hash), (size_t) hash_len, in PHP_FUNCTION()
432 key, (size_t) key_len) != 0) { in PHP_FUNCTION()
447 size_t state_len = sizeof (crypto_generichash_state); in PHP_FUNCTION()
449 size_t key_len = 0; in PHP_FUNCTION()
469 if (crypto_generichash_init((void *) &state_tmp, key, (size_t) key_len, in PHP_FUNCTION()
470 (size_t) hash_len) != 0) { in PHP_FUNCTION()
488 size_t msg_len; in PHP_FUNCTION()
489 size_t state_len; in PHP_FUNCTION()
527 size_t state_len; in PHP_FUNCTION()
556 (size_t) hash_len) != 0) { in PHP_FUNCTION()
573 size_t keypair_len; in PHP_FUNCTION()
596 size_t keypair_len; in PHP_FUNCTION()
597 size_t seed_len; in PHP_FUNCTION()
628 size_t keypair_len; in PHP_FUNCTION()
629 size_t publickey_len; in PHP_FUNCTION()
630 size_t secretkey_len; in PHP_FUNCTION()
660 size_t keypair_len; in PHP_FUNCTION()
683 size_t keypair_len; in PHP_FUNCTION()
707 size_t secretkey_len; in PHP_FUNCTION()
737 size_t keypair_len; in PHP_FUNCTION()
738 size_t msg_len; in PHP_FUNCTION()
739 size_t nonce_len; in PHP_FUNCTION()
762 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_MACBYTES, 0); in PHP_FUNCTION()
783 size_t ciphertext_len; in PHP_FUNCTION()
784 size_t keypair_len; in PHP_FUNCTION()
785 size_t nonce_len; in PHP_FUNCTION()
807 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_MACBYTES, 0); in PHP_FUNCTION()
824 size_t msg_len; in PHP_FUNCTION()
825 size_t publickey_len; in PHP_FUNCTION()
841 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
860 size_t ciphertext_len; in PHP_FUNCTION()
861 size_t keypair_len; in PHP_FUNCTION()
878 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
893 size_t keypair_len; in PHP_FUNCTION()
916 size_t keypair_len; in PHP_FUNCTION()
917 size_t seed_len; in PHP_FUNCTION()
948 size_t keypair_len; in PHP_FUNCTION()
949 size_t publickey_len; in PHP_FUNCTION()
950 size_t secretkey_len; in PHP_FUNCTION()
980 size_t secretkey_len; in PHP_FUNCTION()
1009 size_t keypair_len; in PHP_FUNCTION()
1032 size_t keypair_len; in PHP_FUNCTION()
1058 size_t msg_len; in PHP_FUNCTION()
1059 size_t msg_signed_len; in PHP_FUNCTION()
1060 size_t secretkey_len; in PHP_FUNCTION()
1077 msg_signed = zend_string_alloc((size_t) msg_signed_len, 0); in PHP_FUNCTION()
1090 PHP_SODIUM_ZSTR_TRUNCATE(msg_signed, (size_t) msg_signed_real_len); in PHP_FUNCTION()
1102 size_t msg_len; in PHP_FUNCTION()
1103 size_t msg_signed_len; in PHP_FUNCTION()
1104 size_t publickey_len; in PHP_FUNCTION()
1121 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1133 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1145 size_t msg_len; in PHP_FUNCTION()
1146 size_t secretkey_len; in PHP_FUNCTION()
1158 signature = zend_string_alloc((size_t) crypto_sign_BYTES, 0); in PHP_FUNCTION()
1159 memset(ZSTR_VAL(signature), 0, (size_t) crypto_sign_BYTES); in PHP_FUNCTION()
1172 PHP_SODIUM_ZSTR_TRUNCATE(signature, (size_t) signature_real_len); in PHP_FUNCTION()
1183 size_t msg_len; in PHP_FUNCTION()
1184 size_t publickey_len; in PHP_FUNCTION()
1185 size_t signature_len; in PHP_FUNCTION()
1216 size_t key_len; in PHP_FUNCTION()
1217 size_t nonce_len; in PHP_FUNCTION()
1238 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1256 size_t ciphertext_len; in PHP_FUNCTION()
1257 size_t key_len; in PHP_FUNCTION()
1258 size_t msg_len; in PHP_FUNCTION()
1259 size_t nonce_len; in PHP_FUNCTION()
1277 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1296 size_t key_len; in PHP_FUNCTION()
1297 size_t nonce_len; in PHP_FUNCTION()
1318 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1336 size_t ciphertext_len; in PHP_FUNCTION()
1337 size_t key_len; in PHP_FUNCTION()
1338 size_t msg_len; in PHP_FUNCTION()
1339 size_t nonce_len; in PHP_FUNCTION()
1357 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1377 size_t ciphertext_len; in PHP_FUNCTION()
1378 size_t key_len; in PHP_FUNCTION()
1379 size_t msg_len; in PHP_FUNCTION()
1380 size_t nonce_len; in PHP_FUNCTION()
1399 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1423 size_t passwd_len; in PHP_FUNCTION()
1424 size_t salt_len; in PHP_FUNCTION()
1478 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
1485 (unsigned long long) opslimit, (size_t) memlimit, (int) alg); in PHP_FUNCTION()
1492 (unsigned long long) opslimit, (size_t) memlimit, (int) alg); in PHP_FUNCTION()
1510 size_t passwd_len; in PHP_FUNCTION()
1511 size_t len; in PHP_FUNCTION()
1543 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
1562 size_t hash_str_len; in PHP_FUNCTION()
1579 size_t hash_str_len; in PHP_FUNCTION()
1580 size_t passwd_len; in PHP_FUNCTION()
1612 size_t passwd_len; in PHP_FUNCTION()
1613 size_t salt_len; in PHP_FUNCTION()
1648 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
1652 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
1668 size_t passwd_len; in PHP_FUNCTION()
1697 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
1711 size_t hash_str_len; in PHP_FUNCTION()
1712 size_t passwd_len; in PHP_FUNCTION()
1756 size_t ad_len; in PHP_FUNCTION()
1757 size_t ciphertext_len; in PHP_FUNCTION()
1758 size_t msg_len; in PHP_FUNCTION()
1759 size_t npub_len; in PHP_FUNCTION()
1760 size_t secretkey_len; in PHP_FUNCTION()
1787 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1802 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
1816 size_t ad_len; in PHP_FUNCTION()
1817 size_t ciphertext_len; in PHP_FUNCTION()
1818 size_t msg_len; in PHP_FUNCTION()
1819 size_t npub_len; in PHP_FUNCTION()
1820 size_t secretkey_len; in PHP_FUNCTION()
1850 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1863 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1878 size_t ad_len; in PHP_FUNCTION()
1879 size_t ciphertext_len; in PHP_FUNCTION()
1880 size_t msg_len; in PHP_FUNCTION()
1881 size_t npub_len; in PHP_FUNCTION()
1882 size_t secretkey_len; in PHP_FUNCTION()
1905 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1920 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
1934 size_t ad_len; in PHP_FUNCTION()
1935 size_t ciphertext_len; in PHP_FUNCTION()
1936 size_t msg_len; in PHP_FUNCTION()
1937 size_t npub_len; in PHP_FUNCTION()
1938 size_t secretkey_len; in PHP_FUNCTION()
1964 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1977 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1991 size_t ad_len; in PHP_FUNCTION()
1992 size_t ciphertext_len; in PHP_FUNCTION()
1993 size_t msg_len; in PHP_FUNCTION()
1994 size_t npub_len; in PHP_FUNCTION()
1995 size_t secretkey_len; in PHP_FUNCTION()
2022 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2037 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2051 size_t ad_len; in PHP_FUNCTION()
2052 size_t ciphertext_len; in PHP_FUNCTION()
2053 size_t msg_len; in PHP_FUNCTION()
2054 size_t npub_len; in PHP_FUNCTION()
2055 size_t secretkey_len; in PHP_FUNCTION()
2086 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2099 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2114 size_t ad_len; in PHP_FUNCTION()
2115 size_t ciphertext_len; in PHP_FUNCTION()
2116 size_t msg_len; in PHP_FUNCTION()
2117 size_t npub_len; in PHP_FUNCTION()
2118 size_t secretkey_len; in PHP_FUNCTION()
2141 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2156 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2170 size_t ad_len; in PHP_FUNCTION()
2171 size_t ciphertext_len; in PHP_FUNCTION()
2172 size_t msg_len; in PHP_FUNCTION()
2173 size_t npub_len; in PHP_FUNCTION()
2174 size_t secretkey_len; in PHP_FUNCTION()
2205 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2218 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2229 size_t bin_len; in PHP_FUNCTION()
2230 size_t hex_len; in PHP_FUNCTION()
2242 hex = zend_string_alloc((size_t) hex_len, 0); in PHP_FUNCTION()
2255 size_t bin_real_len; in PHP_FUNCTION()
2256 size_t bin_len; in PHP_FUNCTION()
2257 size_t hex_len; in PHP_FUNCTION()
2258 size_t ignore_len = 0; in PHP_FUNCTION()
2280 PHP_SODIUM_ZSTR_TRUNCATE(bin, (size_t) bin_real_len); in PHP_FUNCTION()
2292 size_t bin_len; in PHP_FUNCTION()
2293 size_t b64_len; in PHP_FUNCTION()
2309 b64 = zend_string_alloc((size_t) b64_len - 1U, 0); in PHP_FUNCTION()
2322 size_t bin_real_len; in PHP_FUNCTION()
2323 size_t bin_len; in PHP_FUNCTION()
2324 size_t b64_len; in PHP_FUNCTION()
2325 size_t ignore_len = 0; in PHP_FUNCTION()
2352 PHP_SODIUM_ZSTR_TRUNCATE(bin, (size_t) bin_real_len); in PHP_FUNCTION()
2364 size_t n_len; in PHP_FUNCTION()
2365 size_t p_len; in PHP_FUNCTION()
2397 size_t n_len; in PHP_FUNCTION()
2398 size_t p_len; in PHP_FUNCTION()
2430 size_t n_len; in PHP_FUNCTION()
2459 size_t seed_len; in PHP_FUNCTION()
2513 size_t keypair_len; in PHP_FUNCTION()
2536 size_t keypair_len; in PHP_FUNCTION()
2565 size_t keypair_len; in PHP_FUNCTION()
2566 size_t server_pk_len; in PHP_FUNCTION()
2615 size_t keypair_len; in PHP_FUNCTION()
2616 size_t client_pk_len; in PHP_FUNCTION()
2661 size_t msg_len; in PHP_FUNCTION()
2662 size_t key_len; in PHP_FUNCTION()
2692 size_t mac_len; in PHP_FUNCTION()
2693 size_t msg_len; in PHP_FUNCTION()
2694 size_t key_len; in PHP_FUNCTION()
2723 size_t eddsakey_len; in PHP_FUNCTION()
2751 size_t eddsakey_len; in PHP_FUNCTION()
2779 size_t len1; in PHP_FUNCTION()
2780 size_t len2; in PHP_FUNCTION()
2793 (const unsigned char *) buf2, (size_t) len1)); in PHP_FUNCTION()
2934 size_t ctx_len; in PHP_FUNCTION()
2935 size_t key_len; in PHP_FUNCTION()
2967 subkey = zend_string_alloc((size_t) subkey_len, 0); in PHP_FUNCTION()
2970 (size_t) subkey_len, (uint64_t) subkey_id, in PHP_FUNCTION()
2983 (size_t) subkey_len, in PHP_FUNCTION()
2999 volatile size_t st; in PHP_FUNCTION()
3000 size_t i, j, k; in PHP_FUNCTION()
3001 size_t unpadded_len; in PHP_FUNCTION()
3002 size_t xpadlen; in PHP_FUNCTION()
3003 size_t xpadded_len; in PHP_FUNCTION()
3020 xpadlen -= unpadded_len & ((size_t) blocksize - 1U); in PHP_FUNCTION()
3022 xpadlen -= unpadded_len % (size_t) blocksize; in PHP_FUNCTION()
3024 if ((size_t) SIZE_MAX - unpadded_len <= xpadlen) { in PHP_FUNCTION()
3037 st = (size_t) (~(((( (((uint64_t) k) >> 48) | (((uint64_t) k) >> 32) | in PHP_FUNCTION()
3044 (size_t) blocksize, xpadded_len + 1U) != 0) { in PHP_FUNCTION()
3059 (((i ^ xpadlen) - 1U) >> ((sizeof(size_t) - 1U) * CHAR_BIT)); in PHP_FUNCTION()
3074 size_t padded_len; in PHP_FUNCTION()
3075 size_t unpadded_len; in PHP_FUNCTION()
3099 padded_len, (size_t) blocksize); in PHP_FUNCTION()
3106 volatile size_t pad_len = 0U; in PHP_FUNCTION()
3107 size_t i; in PHP_FUNCTION()
3108 size_t is_barrier; in PHP_FUNCTION()
3112 for (i = 0U; i < (size_t) blocksize; i++) { in PHP_FUNCTION()
3151 size_t key_len; in PHP_FUNCTION()
3181 size_t ad_len = (size_t) 0U; in PHP_FUNCTION()
3182 size_t c_len; in PHP_FUNCTION()
3183 size_t msg_len; in PHP_FUNCTION()
3184 size_t state_len; in PHP_FUNCTION()
3214 c = zend_string_alloc((size_t) c_len, 0); in PHP_FUNCTION()
3228 PHP_SODIUM_ZSTR_TRUNCATE(c, (size_t) c_real_len); in PHP_FUNCTION()
3239 size_t header_len; in PHP_FUNCTION()
3240 size_t key_len; in PHP_FUNCTION()
3272 size_t ad_len = (size_t) 0U; in PHP_FUNCTION()
3273 size_t msg_len; in PHP_FUNCTION()
3274 size_t c_len; in PHP_FUNCTION()
3275 size_t state_len; in PHP_FUNCTION()
3300 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
3312 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
3323 size_t state_len; in PHP_FUNCTION()
3351 size_t p_len; in PHP_FUNCTION()
3352 size_t q_len; in PHP_FUNCTION()
3383 size_t s_len; in PHP_FUNCTION()
3408 size_t s_len; in PHP_FUNCTION()
3441 size_t p_len; in PHP_FUNCTION()
3442 size_t q_len; in PHP_FUNCTION()
3469 size_t s_len; in PHP_FUNCTION()
3491 size_t s_len; in PHP_FUNCTION()
3518 size_t x_len; in PHP_FUNCTION()
3519 size_t y_len; in PHP_FUNCTION()
3546 size_t s_len; in PHP_FUNCTION()
3581 size_t s_len; in PHP_FUNCTION()
3604 size_t p_len; in PHP_FUNCTION()
3605 size_t q_len; in PHP_FUNCTION()
3633 size_t p_len; in PHP_FUNCTION()
3634 size_t q_len; in PHP_FUNCTION()