Lines Matching refs:ciphertext_len

367 	size_t         ciphertext_len;  in PHP_FUNCTION()  local
371 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
385 if (ciphertext_len < crypto_secretbox_MACBYTES) { in PHP_FUNCTION()
389 ((size_t) ciphertext_len - crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
391 (unsigned long long) ciphertext_len, in PHP_FUNCTION()
396 ZSTR_VAL(msg)[ciphertext_len - crypto_secretbox_MACBYTES] = 0; in PHP_FUNCTION()
782 size_t ciphertext_len; in PHP_FUNCTION() local
787 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
803 if (ciphertext_len < crypto_box_MACBYTES) { in PHP_FUNCTION()
806 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_MACBYTES, 0); in PHP_FUNCTION()
808 (unsigned long long) ciphertext_len, in PHP_FUNCTION()
813 ZSTR_VAL(msg)[ciphertext_len - crypto_box_MACBYTES] = 0; in PHP_FUNCTION()
859 size_t ciphertext_len; in PHP_FUNCTION() local
863 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
874 if (ciphertext_len < crypto_box_SEALBYTES) { in PHP_FUNCTION()
877 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
879 (unsigned long long) ciphertext_len, in PHP_FUNCTION()
884 ZSTR_VAL(msg)[ciphertext_len - crypto_box_SEALBYTES] = 0; in PHP_FUNCTION()
1214 zend_long ciphertext_len; in PHP_FUNCTION() local
1219 &ciphertext_len, in PHP_FUNCTION()
1225 if (ciphertext_len <= 0 || ciphertext_len >= SIZE_MAX) { in PHP_FUNCTION()
1237 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1239 (unsigned long long) ciphertext_len, nonce, key) != 0) { in PHP_FUNCTION()
1244 ZSTR_VAL(ciphertext)[ciphertext_len] = 0; in PHP_FUNCTION()
1255 size_t ciphertext_len; in PHP_FUNCTION() local
1275 ciphertext_len = msg_len; in PHP_FUNCTION()
1276 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1283 ZSTR_VAL(ciphertext)[ciphertext_len] = 0; in PHP_FUNCTION()
1294 zend_long ciphertext_len; in PHP_FUNCTION() local
1299 &ciphertext_len, in PHP_FUNCTION()
1305 if (ciphertext_len <= 0 || ciphertext_len >= SIZE_MAX) { in PHP_FUNCTION()
1317 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1319 (unsigned long long) ciphertext_len, nonce, key) != 0) { in PHP_FUNCTION()
1324 ZSTR_VAL(ciphertext)[ciphertext_len] = 0; in PHP_FUNCTION()
1335 size_t ciphertext_len; in PHP_FUNCTION() local
1355 ciphertext_len = msg_len; in PHP_FUNCTION()
1356 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1363 ZSTR_VAL(ciphertext)[ciphertext_len] = 0; in PHP_FUNCTION()
1376 size_t ciphertext_len; in PHP_FUNCTION() local
1397 ciphertext_len = msg_len; in PHP_FUNCTION()
1398 ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1406 ZSTR_VAL(ciphertext)[ciphertext_len] = 0; in PHP_FUNCTION()
1756 size_t ciphertext_len; in PHP_FUNCTION() local
1785 ciphertext_len = msg_len + crypto_aead_aes256gcm_ABYTES; in PHP_FUNCTION()
1786 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1796 ciphertext_real_len > ciphertext_len) { in PHP_FUNCTION()
1816 size_t ciphertext_len; in PHP_FUNCTION() local
1822 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
1837 if (ciphertext_len < crypto_aead_aes256gcm_ABYTES) { in PHP_FUNCTION()
1840 if (ciphertext_len - crypto_aead_aes256gcm_ABYTES > 16ULL * ((1ULL << 32) - 2ULL)) { in PHP_FUNCTION()
1844 msg_len = ciphertext_len; in PHP_FUNCTION()
1852 ciphertext, (unsigned long long) ciphertext_len, in PHP_FUNCTION()
1879 size_t ciphertext_len; in PHP_FUNCTION() local
1904 ciphertext_len = msg_len + crypto_aead_aegis128l_ABYTES; in PHP_FUNCTION()
1905 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
1915 ciphertext_real_len > ciphertext_len) { in PHP_FUNCTION()
1935 size_t ciphertext_len; in PHP_FUNCTION() local
1941 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
1956 if (ciphertext_len < crypto_aead_aegis128l_ABYTES) { in PHP_FUNCTION()
1959 msg_len = ciphertext_len; in PHP_FUNCTION()
1967 ciphertext, (unsigned long long) ciphertext_len, in PHP_FUNCTION()
1994 size_t ciphertext_len; in PHP_FUNCTION() local
2019 ciphertext_len = msg_len + crypto_aead_aegis256_ABYTES; in PHP_FUNCTION()
2020 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2030 ciphertext_real_len > ciphertext_len) { in PHP_FUNCTION()
2050 size_t ciphertext_len; in PHP_FUNCTION() local
2056 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
2071 if (ciphertext_len < crypto_aead_aegis256_ABYTES) { in PHP_FUNCTION()
2074 msg_len = ciphertext_len; in PHP_FUNCTION()
2082 ciphertext, (unsigned long long) ciphertext_len, in PHP_FUNCTION()
2108 size_t ciphertext_len; in PHP_FUNCTION() local
2133 ciphertext_len = msg_len + crypto_aead_chacha20poly1305_ABYTES; in PHP_FUNCTION()
2134 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2144 ciphertext_real_len > ciphertext_len) { in PHP_FUNCTION()
2164 size_t ciphertext_len; in PHP_FUNCTION() local
2170 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
2185 if (ciphertext_len < crypto_aead_chacha20poly1305_ABYTES) { in PHP_FUNCTION()
2188 msg_len = ciphertext_len; in PHP_FUNCTION()
2196 ciphertext, (unsigned long long) ciphertext_len, in PHP_FUNCTION()
2221 size_t ciphertext_len; in PHP_FUNCTION() local
2250 ciphertext_len = msg_len + crypto_aead_chacha20poly1305_IETF_ABYTES; in PHP_FUNCTION()
2251 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2261 ciphertext_real_len > ciphertext_len) { in PHP_FUNCTION()
2281 size_t ciphertext_len; in PHP_FUNCTION() local
2287 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
2302 msg_len = ciphertext_len; in PHP_FUNCTION()
2307 if (ciphertext_len < crypto_aead_chacha20poly1305_IETF_ABYTES) { in PHP_FUNCTION()
2310 if ((unsigned long long) ciphertext_len - in PHP_FUNCTION()
2318 ciphertext, (unsigned long long) ciphertext_len, in PHP_FUNCTION()
2344 size_t ciphertext_len; in PHP_FUNCTION() local
2369 ciphertext_len = msg_len + crypto_aead_xchacha20poly1305_IETF_ABYTES; in PHP_FUNCTION()
2370 ciphertext = zend_string_alloc((size_t) ciphertext_len, 0); in PHP_FUNCTION()
2380 ciphertext_real_len > ciphertext_len) { in PHP_FUNCTION()
2400 size_t ciphertext_len; in PHP_FUNCTION() local
2406 &ciphertext, &ciphertext_len, in PHP_FUNCTION()
2421 if (ciphertext_len < crypto_aead_xchacha20poly1305_IETF_ABYTES) { in PHP_FUNCTION()
2424 msg_len = ciphertext_len; in PHP_FUNCTION()
2429 if ((unsigned long long) ciphertext_len - in PHP_FUNCTION()
2437 ciphertext, (unsigned long long) ciphertext_len, in PHP_FUNCTION()