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()
1055 unsigned char *msg; in PHP_FUNCTION() local
1063 &msg, &msg_len, in PHP_FUNCTION()
1079 &msg_signed_real_len, msg, in PHP_FUNCTION()
1098 zend_string *msg; in PHP_FUNCTION() local
1121 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1122 if (crypto_sign_open((unsigned char *) ZSTR_VAL(msg), &msg_real_len, in PHP_FUNCTION()
1125 zend_string_efree(msg); in PHP_FUNCTION()
1129 zend_string_efree(msg); in PHP_FUNCTION()
1133 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1134 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
1136 RETURN_NEW_STR(msg); in PHP_FUNCTION()
1142 unsigned char *msg; in PHP_FUNCTION() local
1149 &msg, &msg_len, in PHP_FUNCTION()
1161 &signature_real_len, msg, in PHP_FUNCTION()
1180 unsigned char *msg; in PHP_FUNCTION() local
1189 &msg, &msg_len, in PHP_FUNCTION()
1203 msg, (unsigned long long) msg_len, in PHP_FUNCTION()
1254 unsigned char *msg; in PHP_FUNCTION() local
1262 &msg, &msg_len, in PHP_FUNCTION()
1278 if (crypto_stream_xor((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
1334 unsigned char *msg; in PHP_FUNCTION() local
1342 &msg, &msg_len, in PHP_FUNCTION()
1358 if (crypto_stream_xchacha20_xor((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
1373 unsigned char *msg; in PHP_FUNCTION() local
1383 &msg, &msg_len, in PHP_FUNCTION()
1400 if (crypto_stream_xchacha20_xor_ic((unsigned char *) ZSTR_VAL(ciphertext), msg, in PHP_FUNCTION()
1752 unsigned char *msg; in PHP_FUNCTION() local
1763 &msg, &msg_len, in PHP_FUNCTION()
1789 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
1810 zend_string *msg; in PHP_FUNCTION() local
1850 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
1852 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
1855 zend_string_efree(msg); in PHP_FUNCTION()
1859 zend_string_efree(msg); in PHP_FUNCTION()
1863 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
1864 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
1866 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()
1987 unsigned char *msg; in PHP_FUNCTION() local
1998 &msg, &msg_len, in PHP_FUNCTION()
2024 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
2045 zend_string *msg; in PHP_FUNCTION() local
2086 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2088 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
2091 zend_string_efree(msg); in PHP_FUNCTION()
2095 zend_string_efree(msg); in PHP_FUNCTION()
2099 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2100 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
2102 RETURN_NEW_STR(msg); in PHP_FUNCTION()
2110 unsigned char *msg; in PHP_FUNCTION() local
2121 &msg, &msg_len, in PHP_FUNCTION()
2143 ((unsigned char *) ZSTR_VAL(ciphertext), &ciphertext_real_len, msg, in PHP_FUNCTION()
2164 zend_string *msg; in PHP_FUNCTION() local
2205 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
2207 ((unsigned char *) ZSTR_VAL(msg), &msg_real_len, NULL, in PHP_FUNCTION()
2210 zend_string_efree(msg); in PHP_FUNCTION()
2214 zend_string_efree(msg); in PHP_FUNCTION()
2218 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
2219 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
2221 RETURN_NEW_STR(msg); in PHP_FUNCTION()
2660 char *msg; in PHP_FUNCTION() local
2665 &msg, &msg_len, in PHP_FUNCTION()
2676 (const unsigned char *) msg, msg_len, in PHP_FUNCTION()
2691 char *msg; in PHP_FUNCTION() local
2698 &msg, &msg_len, in PHP_FUNCTION()
2712 (const unsigned char *) msg, msg_len, in PHP_FUNCTION()
3177 unsigned char *msg; in PHP_FUNCTION() local
3188 &msg, &msg_len, &ad, &ad_len, &tag) == FAILURE) { in PHP_FUNCTION()
3217 msg, (unsigned long long) msg_len, ad, (unsigned long long) ad_len, in PHP_FUNCTION()
3267 zend_string *msg; in PHP_FUNCTION() local
3300 msg = zend_string_alloc((size_t) msg_len, 0); in PHP_FUNCTION()
3302 ((void *) state, (unsigned char *) ZSTR_VAL(msg), &msg_real_len, &tag, in PHP_FUNCTION()
3304 zend_string_efree(msg); in PHP_FUNCTION()
3308 zend_string_efree(msg); in PHP_FUNCTION()
3312 PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len); in PHP_FUNCTION()
3313 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() local
3315 add_next_index_str(return_value, msg); in PHP_FUNCTION()