Lines Matching refs:size_t
669 size_t buf_len = Z_STRLEN(*buf_zv); in PHP_FUNCTION()
671 sodium_memzero(buf, (size_t) buf_len); in PHP_FUNCTION()
681 size_t val_len; in PHP_FUNCTION()
705 size_t val_len; in PHP_FUNCTION()
706 size_t addv_len; in PHP_FUNCTION()
733 size_t len1; in PHP_FUNCTION()
734 size_t len2; in PHP_FUNCTION()
754 size_t key_len; in PHP_FUNCTION()
755 size_t msg_len; in PHP_FUNCTION()
787 size_t key_len; in PHP_FUNCTION()
788 size_t msg_len; in PHP_FUNCTION()
789 size_t nonce_len; in PHP_FUNCTION()
814 ciphertext = zend_string_alloc((size_t) msg_len + crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
833 size_t key_len; in PHP_FUNCTION()
834 size_t ciphertext_len; in PHP_FUNCTION()
835 size_t nonce_len; in PHP_FUNCTION()
860 ((size_t) ciphertext_len - crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
878 size_t key_len = 0; in PHP_FUNCTION()
879 size_t msg_len; in PHP_FUNCTION()
900 if (crypto_generichash((unsigned char *) ZSTR_VAL(hash), (size_t) hash_len, in PHP_FUNCTION()
902 key, (size_t) key_len) != 0) { in PHP_FUNCTION()
917 size_t state_len = sizeof (crypto_generichash_state); in PHP_FUNCTION()
919 size_t key_len = 0; in PHP_FUNCTION()
939 if (crypto_generichash_init((void *) &state_tmp, key, (size_t) key_len, in PHP_FUNCTION()
940 (size_t) hash_len) != 0) { in PHP_FUNCTION()
958 size_t msg_len; in PHP_FUNCTION()
959 size_t state_len; in PHP_FUNCTION()
997 size_t state_len; in PHP_FUNCTION()
1026 (size_t) hash_len) != 0) { in PHP_FUNCTION()
1043 size_t keypair_len; in PHP_FUNCTION()
1066 size_t keypair_len; in PHP_FUNCTION()
1067 size_t seed_len; in PHP_FUNCTION()
1100 size_t keypair_len; in PHP_FUNCTION()
1101 size_t publickey_len; in PHP_FUNCTION()
1102 size_t secretkey_len; in PHP_FUNCTION()
1136 size_t keypair_len; in PHP_FUNCTION()
1161 size_t keypair_len; in PHP_FUNCTION()
1187 size_t secretkey_len; in PHP_FUNCTION()
1219 size_t keypair_len; in PHP_FUNCTION()
1220 size_t msg_len; in PHP_FUNCTION()
1221 size_t nonce_len; in PHP_FUNCTION()
1248 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_MACBYTES, 0); in PHP_FUNCTION()
1269 size_t ciphertext_len; in PHP_FUNCTION()
1270 size_t keypair_len; in PHP_FUNCTION()
1271 size_t nonce_len; in PHP_FUNCTION()
1297 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_MACBYTES, 0); in PHP_FUNCTION()
1314 size_t msg_len; in PHP_FUNCTION()
1315 size_t publickey_len; in PHP_FUNCTION()
1333 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
1352 size_t ciphertext_len; in PHP_FUNCTION()
1353 size_t keypair_len; in PHP_FUNCTION()
1372 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
1387 size_t keypair_len; in PHP_FUNCTION()
1410 size_t keypair_len; in PHP_FUNCTION()
1411 size_t seed_len; in PHP_FUNCTION()
1444 size_t keypair_len; in PHP_FUNCTION()
1445 size_t publickey_len; in PHP_FUNCTION()
1446 size_t secretkey_len; in PHP_FUNCTION()
1480 size_t secretkey_len; in PHP_FUNCTION()
1510 size_t keypair_len; in PHP_FUNCTION()
1535 size_t keypair_len; in PHP_FUNCTION()
1563 size_t msg_len; in PHP_FUNCTION()
1564 size_t msg_signed_len; in PHP_FUNCTION()
1565 size_t secretkey_len; in PHP_FUNCTION()
1584 msg_signed = zend_string_alloc((size_t) msg_signed_len, 0); in PHP_FUNCTION()
1597 PHP_SODIUM_ZSTR_TRUNCATE(msg_signed, (size_t) msg_signed_real_len); in PHP_FUNCTION()
1609 size_t msg_len; in PHP_FUNCTION()
1610 size_t msg_signed_len; in PHP_FUNCTION()
1611 size_t publickey_len; in PHP_FUNCTION()
1630 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1642 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1654 size_t msg_len; in PHP_FUNCTION()
1655 size_t secretkey_len; in PHP_FUNCTION()
1669 signature = zend_string_alloc((size_t) crypto_sign_BYTES, 0); in PHP_FUNCTION()
1670 memset(ZSTR_VAL(signature), 0, (size_t) crypto_sign_BYTES); in PHP_FUNCTION()
1683 PHP_SODIUM_ZSTR_TRUNCATE(signature, (size_t) signature_real_len); in PHP_FUNCTION()
1694 size_t msg_len; in PHP_FUNCTION()
1695 size_t publickey_len; in PHP_FUNCTION()
1696 size_t signature_len; in PHP_FUNCTION()
1731 size_t key_len; in PHP_FUNCTION()
1732 size_t nonce_len; in PHP_FUNCTION()
1753 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1771 size_t ciphertext_len; in PHP_FUNCTION()
1772 size_t key_len; in PHP_FUNCTION()
1773 size_t msg_len; in PHP_FUNCTION()
1774 size_t nonce_len; in PHP_FUNCTION()
1792 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1814 size_t passwd_len; in PHP_FUNCTION()
1815 size_t salt_len; in PHP_FUNCTION()
1867 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
1874 (unsigned long long) opslimit, (size_t) memlimit, (int) alg); in PHP_FUNCTION()
1881 (unsigned long long) opslimit, (size_t) memlimit, (int) alg); in PHP_FUNCTION()
1899 size_t passwd_len; in PHP_FUNCTION()
1900 size_t len; in PHP_FUNCTION()
1934 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
1953 size_t hash_str_len; in PHP_FUNCTION()
1971 size_t hash_str_len; in PHP_FUNCTION()
1972 size_t passwd_len; in PHP_FUNCTION()
2005 size_t passwd_len; in PHP_FUNCTION()
2006 size_t salt_len; in PHP_FUNCTION()
2045 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
2049 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
2065 size_t passwd_len; in PHP_FUNCTION()
2096 (unsigned long long) opslimit, (size_t) memlimit) != 0) { in PHP_FUNCTION()
2110 size_t hash_str_len; in PHP_FUNCTION()
2111 size_t passwd_len; in PHP_FUNCTION()
2155 size_t ad_len; in PHP_FUNCTION()
2156 size_t ciphertext_len; in PHP_FUNCTION()
2157 size_t msg_len; in PHP_FUNCTION()
2158 size_t npub_len; in PHP_FUNCTION()
2159 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()
2261 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2274 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2289 size_t ad_len; in PHP_FUNCTION()
2290 size_t ciphertext_len; in PHP_FUNCTION()
2291 size_t msg_len; in PHP_FUNCTION()
2292 size_t npub_len; in PHP_FUNCTION()
2293 size_t secretkey_len; in PHP_FUNCTION()
2322 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2337 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2351 size_t ad_len; in PHP_FUNCTION()
2352 size_t ciphertext_len; in PHP_FUNCTION()
2353 size_t msg_len; in PHP_FUNCTION()
2354 size_t npub_len; in PHP_FUNCTION()
2355 size_t secretkey_len; in PHP_FUNCTION()
2387 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2400 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2414 size_t ad_len; in PHP_FUNCTION()
2415 size_t ciphertext_len; in PHP_FUNCTION()
2416 size_t msg_len; in PHP_FUNCTION()
2417 size_t npub_len; in PHP_FUNCTION()
2418 size_t secretkey_len; in PHP_FUNCTION()
2451 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2466 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2480 size_t ad_len; in PHP_FUNCTION()
2481 size_t ciphertext_len; in PHP_FUNCTION()
2482 size_t msg_len; in PHP_FUNCTION()
2483 size_t npub_len; in PHP_FUNCTION()
2484 size_t secretkey_len; in PHP_FUNCTION()
2521 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2534 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2549 size_t ad_len; in PHP_FUNCTION()
2550 size_t ciphertext_len; in PHP_FUNCTION()
2551 size_t msg_len; in PHP_FUNCTION()
2552 size_t npub_len; in PHP_FUNCTION()
2553 size_t secretkey_len; in PHP_FUNCTION()
2582 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2597 PHP_SODIUM_ZSTR_TRUNCATE(ciphertext, (size_t) ciphertext_real_len); in PHP_FUNCTION()
2611 size_t ad_len; in PHP_FUNCTION()
2612 size_t ciphertext_len; in PHP_FUNCTION()
2613 size_t msg_len; in PHP_FUNCTION()
2614 size_t npub_len; in PHP_FUNCTION()
2615 size_t secretkey_len; in PHP_FUNCTION()
2652 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2665 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2676 size_t bin_len; in PHP_FUNCTION()
2677 size_t hex_len; in PHP_FUNCTION()
2689 hex = zend_string_alloc((size_t) hex_len, 0); in PHP_FUNCTION()
2702 size_t bin_real_len; in PHP_FUNCTION()
2703 size_t bin_len; in PHP_FUNCTION()
2704 size_t hex_len; in PHP_FUNCTION()
2705 size_t ignore_len = 0; in PHP_FUNCTION()
2727 PHP_SODIUM_ZSTR_TRUNCATE(bin, (size_t) bin_real_len); in PHP_FUNCTION()
2739 size_t bin_len; in PHP_FUNCTION()
2740 size_t b64_len; in PHP_FUNCTION()
2757 b64 = zend_string_alloc((size_t) b64_len - 1U, 0); in PHP_FUNCTION()
2770 size_t bin_real_len; in PHP_FUNCTION()
2771 size_t bin_len; in PHP_FUNCTION()
2772 size_t b64_len; in PHP_FUNCTION()
2773 size_t ignore_len = 0; in PHP_FUNCTION()
2801 PHP_SODIUM_ZSTR_TRUNCATE(bin, (size_t) bin_real_len); in PHP_FUNCTION()
2813 size_t n_len; in PHP_FUNCTION()
2814 size_t p_len; in PHP_FUNCTION()
2844 size_t seed_len; in PHP_FUNCTION()
2896 size_t keypair_len; in PHP_FUNCTION()
2921 size_t keypair_len; in PHP_FUNCTION()
2952 size_t keypair_len; in PHP_FUNCTION()
2953 size_t server_pk_len; in PHP_FUNCTION()
3002 size_t keypair_len; in PHP_FUNCTION()
3003 size_t client_pk_len; in PHP_FUNCTION()
3048 size_t msg_len; in PHP_FUNCTION()
3049 size_t key_len; in PHP_FUNCTION()
3078 size_t mac_len; in PHP_FUNCTION()
3079 size_t msg_len; in PHP_FUNCTION()
3080 size_t key_len; in PHP_FUNCTION()
3109 size_t eddsakey_len; in PHP_FUNCTION()
3138 size_t eddsakey_len; in PHP_FUNCTION()
3167 size_t len1; in PHP_FUNCTION()
3168 size_t len2; in PHP_FUNCTION()
3181 (const unsigned char *) buf2, (size_t) len1)); in PHP_FUNCTION()
3310 size_t ctx_len; in PHP_FUNCTION()
3311 size_t key_len; in PHP_FUNCTION()
3343 subkey = zend_string_alloc((size_t) subkey_len, 0); in PHP_FUNCTION()
3346 (size_t) subkey_len, (uint64_t) subkey_id, in PHP_FUNCTION()
3359 (size_t) subkey_len, in PHP_FUNCTION()
3375 volatile size_t st; in PHP_FUNCTION()
3376 size_t i, j, k; in PHP_FUNCTION()
3377 size_t unpadded_len; in PHP_FUNCTION()
3378 size_t xpadlen; in PHP_FUNCTION()
3379 size_t xpadded_len; in PHP_FUNCTION()
3396 xpadlen -= unpadded_len & ((size_t) blocksize - 1U); in PHP_FUNCTION()
3398 xpadlen -= unpadded_len % (size_t) blocksize; in PHP_FUNCTION()
3400 if ((size_t) SIZE_MAX - unpadded_len <= xpadlen) { in PHP_FUNCTION()
3413 st = (size_t) (~(((( (((uint64_t) k) >> 48) | (((uint64_t) k) >> 32) | in PHP_FUNCTION()
3420 (size_t) blocksize, xpadded_len + 1U) != 0) { in PHP_FUNCTION()
3434 (((i ^ xpadlen) - 1U) >> ((sizeof(size_t) - 1U) * CHAR_BIT)); in PHP_FUNCTION()
3449 size_t padded_len; in PHP_FUNCTION()
3450 size_t unpadded_len; in PHP_FUNCTION()
3474 padded_len, (size_t) blocksize); in PHP_FUNCTION()
3481 volatile size_t pad_len = 0U; in PHP_FUNCTION()
3482 size_t i; in PHP_FUNCTION()
3483 size_t is_barrier; in PHP_FUNCTION()
3487 for (i = 0U; i < (size_t) blocksize; i++) { in PHP_FUNCTION()
3526 size_t key_len; in PHP_FUNCTION()
3558 size_t ad_len = (size_t) 0U; in PHP_FUNCTION()
3559 size_t c_len; in PHP_FUNCTION()
3560 size_t msg_len; in PHP_FUNCTION()
3561 size_t state_len; in PHP_FUNCTION()
3591 c = zend_string_alloc((size_t) c_len, 0); in PHP_FUNCTION()
3605 PHP_SODIUM_ZSTR_TRUNCATE(c, (size_t) c_real_len); in PHP_FUNCTION()
3616 size_t header_len; in PHP_FUNCTION()
3617 size_t key_len; in PHP_FUNCTION()
3653 size_t ad_len = (size_t) 0U; in PHP_FUNCTION()
3654 size_t msg_len; in PHP_FUNCTION()
3655 size_t c_len; in PHP_FUNCTION()
3656 size_t state_len; in PHP_FUNCTION()
3681 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
3693 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
3704 size_t state_len; in PHP_FUNCTION()