Lines Matching refs:msg_len

478 	size_t         msg_len;  in PHP_FUNCTION()  local
481 &msg, &msg_len, in PHP_FUNCTION()
492 (unsigned long long) msg_len, key) != 0) { in PHP_FUNCTION()
509 size_t msg_len; in PHP_FUNCTION() local
513 &msg, &msg_len, in PHP_FUNCTION()
527 if (SIZE_MAX - msg_len <= crypto_secretbox_MACBYTES) { in PHP_FUNCTION()
531 ciphertext = zend_string_alloc((size_t) msg_len + crypto_secretbox_MACBYTES, 0); in PHP_FUNCTION()
533 msg, (unsigned long long) msg_len, in PHP_FUNCTION()
539 ZSTR_VAL(ciphertext)[msg_len + crypto_secretbox_MACBYTES] = 0; in PHP_FUNCTION()
592 size_t msg_len; in PHP_FUNCTION() local
595 &msg, &msg_len, in PHP_FUNCTION()
614 msg, (unsigned long long) msg_len, in PHP_FUNCTION()
671 size_t msg_len; in PHP_FUNCTION() local
675 &state_zv, &msg, &msg_len) == FAILURE) { in PHP_FUNCTION()
693 (unsigned long long) msg_len) != 0) { in PHP_FUNCTION()
921 size_t msg_len; in PHP_FUNCTION() local
925 &msg, &msg_len, in PHP_FUNCTION()
941 if (SIZE_MAX - msg_len <= crypto_box_MACBYTES) { in PHP_FUNCTION()
945 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_MACBYTES, 0); in PHP_FUNCTION()
947 (unsigned long long) msg_len, in PHP_FUNCTION()
953 ZSTR_VAL(ciphertext)[msg_len + crypto_box_MACBYTES] = 0; in PHP_FUNCTION()
1007 size_t msg_len; in PHP_FUNCTION() local
1011 &msg, &msg_len, in PHP_FUNCTION()
1020 if (SIZE_MAX - msg_len <= crypto_box_SEALBYTES) { in PHP_FUNCTION()
1024 ciphertext = zend_string_alloc((size_t) msg_len + crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
1026 (unsigned long long) msg_len, publickey) != 0) { in PHP_FUNCTION()
1031 ZSTR_VAL(ciphertext)[msg_len + crypto_box_SEALBYTES] = 0; in PHP_FUNCTION()
1240 size_t msg_len; in PHP_FUNCTION() local
1245 &msg, &msg_len, in PHP_FUNCTION()
1254 if (SIZE_MAX - msg_len <= crypto_sign_BYTES) { in PHP_FUNCTION()
1258 msg_signed_len = msg_len + crypto_sign_BYTES; in PHP_FUNCTION()
1262 (unsigned long long) msg_len, secretkey) != 0) { in PHP_FUNCTION()
1284 size_t msg_len; in PHP_FUNCTION() local
1298 msg_len = msg_signed_len; in PHP_FUNCTION()
1299 if (msg_len >= SIZE_MAX) { in PHP_FUNCTION()
1303 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1327 size_t msg_len; in PHP_FUNCTION() local
1331 &msg, &msg_len, in PHP_FUNCTION()
1344 (unsigned long long) msg_len, secretkey) != 0) { in PHP_FUNCTION()
1365 size_t msg_len; in PHP_FUNCTION() local
1371 &msg, &msg_len, in PHP_FUNCTION()
1385 msg, (unsigned long long) msg_len, in PHP_FUNCTION()
1440 size_t msg_len; in PHP_FUNCTION() local
1444 &msg, &msg_len, in PHP_FUNCTION()
1458 ciphertext_len = msg_len; in PHP_FUNCTION()
1461 (unsigned long long) msg_len, nonce, key) != 0) { in PHP_FUNCTION()
1816 size_t msg_len; in PHP_FUNCTION() local
1821 &msg, &msg_len, in PHP_FUNCTION()
1836 if (SIZE_MAX - msg_len <= crypto_aead_aes256gcm_ABYTES) { in PHP_FUNCTION()
1840 …if ((unsigned long long) msg_len > (16ULL * ((1ULL << 32) - 2ULL)) - crypto_aead_aes256gcm_ABYTES)… in PHP_FUNCTION()
1844 ciphertext_len = msg_len + crypto_aead_aes256gcm_ABYTES; in PHP_FUNCTION()
1848 (unsigned long long) msg_len, in PHP_FUNCTION()
1876 size_t msg_len; in PHP_FUNCTION() local
1903 msg_len = ciphertext_len; in PHP_FUNCTION()
1904 if (msg_len >= SIZE_MAX) { in PHP_FUNCTION()
1908 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1916 if (msg_real_len >= SIZE_MAX || msg_real_len > msg_len) { in PHP_FUNCTION()
1938 size_t msg_len; in PHP_FUNCTION() local
1943 &msg, &msg_len, in PHP_FUNCTION()
1958 if (SIZE_MAX - msg_len <= crypto_aead_chacha20poly1305_ABYTES) { in PHP_FUNCTION()
1962 ciphertext_len = msg_len + crypto_aead_chacha20poly1305_ABYTES; in PHP_FUNCTION()
1966 (unsigned long long) msg_len, in PHP_FUNCTION()
1994 size_t msg_len; in PHP_FUNCTION() local
2017 msg_len = ciphertext_len; in PHP_FUNCTION()
2018 if (msg_len >= SIZE_MAX) { in PHP_FUNCTION()
2022 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2030 if (msg_real_len >= SIZE_MAX || msg_real_len > msg_len) { in PHP_FUNCTION()
2051 size_t msg_len; in PHP_FUNCTION() local
2056 &msg, &msg_len, in PHP_FUNCTION()
2071 if (SIZE_MAX - msg_len <= crypto_aead_chacha20poly1305_IETF_ABYTES) { in PHP_FUNCTION()
2075 if ((unsigned long long) msg_len > 64ULL * (1ULL << 32) - 64ULL) { in PHP_FUNCTION()
2079 ciphertext_len = msg_len + crypto_aead_chacha20poly1305_IETF_ABYTES; in PHP_FUNCTION()
2083 (unsigned long long) msg_len, in PHP_FUNCTION()
2111 size_t msg_len; in PHP_FUNCTION() local
2131 msg_len = ciphertext_len; in PHP_FUNCTION()
2132 if (msg_len >= SIZE_MAX) { in PHP_FUNCTION()
2144 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2152 if (msg_real_len >= SIZE_MAX || msg_real_len > msg_len) { in PHP_FUNCTION()
2174 size_t msg_len; in PHP_FUNCTION() local
2179 &msg, &msg_len, in PHP_FUNCTION()
2194 if (SIZE_MAX - msg_len <= crypto_aead_xchacha20poly1305_IETF_ABYTES) { in PHP_FUNCTION()
2198 ciphertext_len = msg_len + crypto_aead_xchacha20poly1305_IETF_ABYTES; in PHP_FUNCTION()
2202 (unsigned long long) msg_len, in PHP_FUNCTION()
2230 size_t msg_len; in PHP_FUNCTION() local
2253 msg_len = ciphertext_len; in PHP_FUNCTION()
2254 if (msg_len - crypto_aead_xchacha20poly1305_IETF_ABYTES >= SIZE_MAX) { in PHP_FUNCTION()
2263 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2271 if (msg_real_len >= SIZE_MAX || msg_real_len > msg_len) { in PHP_FUNCTION()
2654 size_t msg_len; in PHP_FUNCTION() local
2658 &msg, &msg_len, in PHP_FUNCTION()
2669 (const unsigned char *) msg, msg_len, in PHP_FUNCTION()
2685 size_t msg_len; in PHP_FUNCTION() local
2690 &msg, &msg_len, in PHP_FUNCTION()
2704 (const unsigned char *) msg, msg_len, in PHP_FUNCTION()
3160 size_t msg_len; in PHP_FUNCTION() local
3165 &msg, &msg_len, &ad, &ad_len, &tag) == FAILURE) { in PHP_FUNCTION()
3181 if (msg_len > crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX || in PHP_FUNCTION()
3182 msg_len > SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES) { in PHP_FUNCTION()
3190 c_len = msg_len + crypto_secretstream_xchacha20poly1305_ABYTES; in PHP_FUNCTION()
3194 msg, (unsigned long long) msg_len, ad, (unsigned long long) ad_len, in PHP_FUNCTION()
3250 size_t msg_len; in PHP_FUNCTION() local
3276 msg_len = c_len - crypto_secretstream_xchacha20poly1305_ABYTES; in PHP_FUNCTION()
3277 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
3284 if (msg_real_len >= SIZE_MAX || msg_real_len > msg_len) { in PHP_FUNCTION()