Lines Matching refs:msg

293 	unsigned char *msg;  in PHP_FUNCTION()  local
298 &msg, &msg_len, in PHP_FUNCTION()
308 if (crypto_shorthash((unsigned char *) ZSTR_VAL(hash), msg, in PHP_FUNCTION()
323 unsigned char *msg; in PHP_FUNCTION() local
330 &msg, &msg_len, in PHP_FUNCTION()
350 msg, (unsigned long long) msg_len, in PHP_FUNCTION()
363 zend_string *msg; in PHP_FUNCTION() local
389 msg = zend_string_alloc in PHP_FUNCTION()
391 if (crypto_secretbox_open_easy((unsigned char *) ZSTR_VAL(msg), ciphertext, in PHP_FUNCTION()
394 zend_string_efree(msg); in PHP_FUNCTION()
397 ZSTR_VAL(msg)[ciphertext_len - crypto_secretbox_MACBYTES] = 0; in PHP_FUNCTION() local
398 RETURN_NEW_STR(msg); in PHP_FUNCTION()
406 unsigned char *msg; in PHP_FUNCTION() local
412 &msg, &msg_len, in PHP_FUNCTION()
431 msg, (unsigned long long) msg_len, in PHP_FUNCTION()
486 unsigned char *msg; in PHP_FUNCTION() local
492 &state_zv, &msg, &msg_len) == FAILURE) { in PHP_FUNCTION()
509 if (crypto_generichash_update((void *) &state_tmp, msg, in PHP_FUNCTION()
733 unsigned char *msg; in PHP_FUNCTION() local
742 &msg, &msg_len, in PHP_FUNCTION()
763 if (crypto_box_easy((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
777 zend_string *msg; in PHP_FUNCTION() local
807 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_MACBYTES, 0); in PHP_FUNCTION()
808 if (crypto_box_open_easy((unsigned char *) ZSTR_VAL(msg), ciphertext, in PHP_FUNCTION()
811 zend_string_efree(msg); in PHP_FUNCTION()
814 ZSTR_VAL(msg)[ciphertext_len - crypto_box_MACBYTES] = 0; in PHP_FUNCTION() local
815 RETURN_NEW_STR(msg); in PHP_FUNCTION()
822 unsigned char *msg; in PHP_FUNCTION() local
828 &msg, &msg_len, in PHP_FUNCTION()
842 if (crypto_box_seal((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
855 zend_string *msg; in PHP_FUNCTION() local
878 msg = zend_string_alloc((size_t) ciphertext_len - crypto_box_SEALBYTES, 0); in PHP_FUNCTION()
879 if (crypto_box_seal_open((unsigned char *) ZSTR_VAL(msg), ciphertext, in PHP_FUNCTION()
882 zend_string_efree(msg); in PHP_FUNCTION()
885 ZSTR_VAL(msg)[ciphertext_len - crypto_box_SEALBYTES] = 0; in PHP_FUNCTION() local
886 RETURN_NEW_STR(msg); in PHP_FUNCTION()
1054 unsigned char *msg; in PHP_FUNCTION() local
1062 &msg, &msg_len, in PHP_FUNCTION()
1078 &msg_signed_real_len, msg, in PHP_FUNCTION()
1097 zend_string *msg; in PHP_FUNCTION() local
1120 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1121 if (crypto_sign_open((unsigned char *) ZSTR_VAL(msg), &msg_real_len, in PHP_FUNCTION()
1124 zend_string_efree(msg); in PHP_FUNCTION()
1128 zend_string_efree(msg); in PHP_FUNCTION()
1132 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1133 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
1135 RETURN_NEW_STR(msg); in PHP_FUNCTION()
1141 unsigned char *msg; in PHP_FUNCTION() local
1148 &msg, &msg_len, in PHP_FUNCTION()
1160 &signature_real_len, msg, in PHP_FUNCTION()
1179 unsigned char *msg; in PHP_FUNCTION() local
1188 &msg, &msg_len, in PHP_FUNCTION()
1202 msg, (unsigned long long) msg_len, in PHP_FUNCTION()
1253 unsigned char *msg; in PHP_FUNCTION() local
1261 &msg, &msg_len, in PHP_FUNCTION()
1277 if (crypto_stream_xor((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
1333 unsigned char *msg; in PHP_FUNCTION() local
1341 &msg, &msg_len, in PHP_FUNCTION()
1357 if (crypto_stream_xchacha20_xor((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
1372 unsigned char *msg; in PHP_FUNCTION() local
1382 &msg, &msg_len, in PHP_FUNCTION()
1399 if (crypto_stream_xchacha20_xor_ic((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
1751 unsigned char *msg; in PHP_FUNCTION() local
1762 &msg, &msg_len, in PHP_FUNCTION()
1788 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
1809 zend_string *msg; in PHP_FUNCTION() local
1849 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1851 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
1854 zend_string_efree(msg); in PHP_FUNCTION()
1858 zend_string_efree(msg); in PHP_FUNCTION()
1862 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1863 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
1865 RETURN_NEW_STR(msg); in PHP_FUNCTION()
1874 unsigned char *msg; in PHP_FUNCTION() local
1885 &msg, &msg_len, in PHP_FUNCTION()
1907 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
1928 zend_string *msg; in PHP_FUNCTION() local
1964 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1966 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
1969 zend_string_efree(msg); in PHP_FUNCTION()
1973 zend_string_efree(msg); in PHP_FUNCTION()
1977 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1978 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
1980 RETURN_NEW_STR(msg); in PHP_FUNCTION()
1989 unsigned char *msg; in PHP_FUNCTION() local
2000 &msg, &msg_len, in PHP_FUNCTION()
2022 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
2043 zend_string *msg; in PHP_FUNCTION() local
2079 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2081 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
2084 zend_string_efree(msg); in PHP_FUNCTION()
2088 zend_string_efree(msg); in PHP_FUNCTION()
2092 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2093 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
2095 RETURN_NEW_STR(msg); in PHP_FUNCTION()
2103 unsigned char *msg; in PHP_FUNCTION() local
2114 &msg, &msg_len, in PHP_FUNCTION()
2136 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
2157 zend_string *msg; in PHP_FUNCTION() local
2193 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2195 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
2198 zend_string_efree(msg); in PHP_FUNCTION()
2202 zend_string_efree(msg); in PHP_FUNCTION()
2206 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2207 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
2209 RETURN_NEW_STR(msg); in PHP_FUNCTION()
2216 unsigned char *msg; in PHP_FUNCTION() local
2227 &msg, &msg_len, in PHP_FUNCTION()
2253 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
2274 zend_string *msg; in PHP_FUNCTION() local
2315 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2317 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
2320 zend_string_efree(msg); in PHP_FUNCTION()
2324 zend_string_efree(msg); in PHP_FUNCTION()
2328 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2329 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
2331 RETURN_NEW_STR(msg); in PHP_FUNCTION()
2339 unsigned char *msg; in PHP_FUNCTION() local
2350 &msg, &msg_len, in PHP_FUNCTION()
2372 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
2393 zend_string *msg; in PHP_FUNCTION() local
2434 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2436 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
2439 zend_string_efree(msg); in PHP_FUNCTION()
2443 zend_string_efree(msg); in PHP_FUNCTION()
2447 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2448 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
2450 RETURN_NEW_STR(msg); in PHP_FUNCTION()
2887 char *msg; in PHP_FUNCTION() local
2892 &msg, &msg_len, in PHP_FUNCTION()
2903 (const unsigned char *) msg, msg_len, in PHP_FUNCTION()
2917 char *msg; in PHP_FUNCTION() local
2924 &msg, &msg_len, in PHP_FUNCTION()
2938 (const unsigned char *) msg, msg_len, in PHP_FUNCTION()
3426 unsigned char *msg; in PHP_FUNCTION() local
3437 &msg, &msg_len, &ad, &ad_len, &tag) == FAILURE) { in PHP_FUNCTION()
3466 msg, (unsigned long long) msg_len, ad, (unsigned long long) ad_len, in PHP_FUNCTION()
3516 zend_string *msg; in PHP_FUNCTION() local
3549 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
3551 ((void *) state, (unsigned char *) ZSTR_VAL(msg), &msg_real_len, &tag, in PHP_FUNCTION()
3553 zend_string_efree(msg); in PHP_FUNCTION()
3557 zend_string_efree(msg); in PHP_FUNCTION()
3561 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
3562 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
3564 add_next_index_str(return_value, msg); in PHP_FUNCTION()