Lines Matching refs:zend_throw_exception

664 		zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0);  in PHP_FUNCTION()
690 zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0); in PHP_FUNCTION()
715 zend_throw_exception(sodium_exception_ce, "PHP strings are required", 0); in PHP_FUNCTION()
723 zend_throw_exception(sodium_exception_ce, "values must have the same length", 0); in PHP_FUNCTION()
743 zend_throw_exception(sodium_exception_ce, "arguments have different sizes", 0); in PHP_FUNCTION()
764 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
773 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
799 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
805 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
811 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
819 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
845 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
851 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
890 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
896 zend_throw_exception(sodium_exception_ce, "unsupported key length", 0); in PHP_FUNCTION()
904 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
929 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
935 zend_throw_exception(sodium_exception_ce, "unsupported key length", 0); in PHP_FUNCTION()
941 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
968 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
975 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
982 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1007 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
1014 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
1019 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
1029 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1054 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1075 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1087 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1111 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1117 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1145 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1170 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1195 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1231 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1237 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1245 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1253 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1281 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1287 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1324 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1330 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1337 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1362 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1398 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1419 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1431 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1455 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1461 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1488 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1497 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1519 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1544 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1574 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1580 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1589 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1594 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1620 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1627 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1639 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1664 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1675 zend_throw_exception(sodium_exception_ce, "signature creation failed", 0); in PHP_FUNCTION()
1680 zend_throw_exception(sodium_exception_ce, "signature has a bogus size", 0); in PHP_FUNCTION()
1706 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1712 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1742 zend_throw_exception(sodium_exception_ce, "ciphertext length must be greater than 0", 0); in PHP_FUNCTION()
1746zend_throw_exception(sodium_exception_ce, "nonce should be SODIUM_CRYPTO_STREAM_NONCEBYTES bytes",… in PHP_FUNCTION()
1750 zend_throw_exception(sodium_exception_ce, "key should be SODIUM_CRYPTO_STREAM_KEYBYTES bytes", 0); in PHP_FUNCTION()
1757 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1784zend_throw_exception(sodium_exception_ce, "nonce should be SODIUM_CRYPTO_STREAM_NONCEBYTES bytes",… in PHP_FUNCTION()
1788 zend_throw_exception(sodium_exception_ce, "key should be SODIUM_CRYPTO_STREAM_KEYBYTES bytes", 0); in PHP_FUNCTION()
1796 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1828 zend_throw_exception(sodium_exception_ce, "hash length must be greater than 0", 0); in PHP_FUNCTION()
1832 zend_throw_exception(sodium_exception_ce, "unsupported password length", 0); in PHP_FUNCTION()
1836 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
1840 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
1848 zend_throw_exception(sodium_exception_ce, "unsupported password hashing algorithm", 0); in PHP_FUNCTION()
1855zend_throw_exception(sodium_exception_ce, "salt should be SODIUM_CRYPTO_PWHASH_SALTBYTES bytes", 0… in PHP_FUNCTION()
1859 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1864 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1885 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1909 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
1913 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
1917 zend_throw_exception(sodium_exception_ce, "unsupported password length", 0); in PHP_FUNCTION()
1924 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1928 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1936 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1957 zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0); in PHP_FUNCTION()
1981 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2017 zend_throw_exception(sodium_exception_ce, "hash length must be greater than 0", 0); in PHP_FUNCTION()
2021 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
2025 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
2032 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2038 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2042 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2051 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2074 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
2078 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
2085 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2089 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2098 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2170 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2177 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2184 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2188 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2198 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2204 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2236 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2243 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2253 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2258 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2271 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2304 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2311 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2318 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2328 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2334 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2366 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2373 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2384 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2397 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2429 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2436 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2443 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2447 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2457 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2463 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2495 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2502 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2510 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2518 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2531 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2564 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2571 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2578 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2588 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2594 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2626 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2633 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2644 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2649 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2662 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2685 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2719 zend_throw_exception(sodium_exception_ce, "invalid hex string", 0); in PHP_FUNCTION()
2724 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2748 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2753 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2782 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2793 zend_throw_exception(sodium_exception_ce, "invalid base64 string", 0); in PHP_FUNCTION()
2798 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2823 zend_throw_exception(sodium_exception_ce, "scalar and point must be " in PHP_FUNCTION()
2831 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2853 zend_throw_exception(sodium_exception_ce, "seed must be SODIUM_CRYPTO_KX_SEEDBYTES bytes", 0); in PHP_FUNCTION()
2864 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2885 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2905 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2930 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2962zend_throw_exception(sodium_exception_ce, "keypair must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes", 0… in PHP_FUNCTION()
2966zend_throw_exception(sodium_exception_ce, "public keys must be SODIUM_CRYPTO_KX_PUBLICKEYBYTES byt… in PHP_FUNCTION()
2974 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3012zend_throw_exception(sodium_exception_ce, "keypair must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes", 0… in PHP_FUNCTION()
3016zend_throw_exception(sodium_exception_ce, "public keys must be SODIUM_CRYPTO_KX_PUBLICKEYBYTES byt… in PHP_FUNCTION()
3024 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3058 zend_throw_exception(sodium_exception_ce, "key must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes", 0); in PHP_FUNCTION()
3065 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3090 zend_throw_exception(sodium_exception_ce, "key must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes", 0); in PHP_FUNCTION()
3094zend_throw_exception(sodium_exception_ce, "authentication tag must be SODIUM_CRYPTO_AUTH_BYTES byt… in PHP_FUNCTION()
3117 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3126 zend_throw_exception(sodium_exception_ce, "conversion failed", 0); in PHP_FUNCTION()
3146 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3155 zend_throw_exception(sodium_exception_ce, "conversion failed", 0); in PHP_FUNCTION()
3177 zend_throw_exception(sodium_exception_ce, "arguments have different sizes", 0); in PHP_FUNCTION()
3322zend_throw_exception(sodium_exception_ce, "subkey cannot be smaller than SODIUM_CRYPTO_KDF_BYTES_M… in PHP_FUNCTION()
3326zend_throw_exception(sodium_exception_ce, "subkey cannot be larger than SODIUM_CRYPTO_KDF_BYTES_MA… in PHP_FUNCTION()
3330 zend_throw_exception(sodium_exception_ce, "subkey_id cannot be negative", 0); in PHP_FUNCTION()
3334zend_throw_exception(sodium_exception_ce, "context should be SODIUM_CRYPTO_KDF_CONTEXTBYTES bytes"… in PHP_FUNCTION()
3338 zend_throw_exception(sodium_exception_ce, "key should be SODIUM_CRYPTO_KDF_KEYBYTES bytes", 0); in PHP_FUNCTION()
3387 zend_throw_exception(sodium_exception_ce, "block size cannot be less than 1", 0); in PHP_FUNCTION()
3391 zend_throw_exception(sodium_exception_ce, "block size is too large", 0); in PHP_FUNCTION()
3401 zend_throw_exception(sodium_exception_ce, "input is too large", 0); in PHP_FUNCTION()
3421 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3460 zend_throw_exception(sodium_exception_ce, "block size cannot be less than 1", 0); in PHP_FUNCTION()
3464 zend_throw_exception(sodium_exception_ce, "block size is too large", 0); in PHP_FUNCTION()
3468 zend_throw_exception(sodium_exception_ce, "invalid padding", 0); in PHP_FUNCTION()
3500 zend_throw_exception(sodium_exception_ce, "invalid padding", 0); in PHP_FUNCTION()
3534 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3541 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3571 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
3578 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
3583zend_throw_exception(sodium_exception_ce, "message cannot be larger than SODIUM_CRYPTO_SECRETSTREA… in PHP_FUNCTION()
3587 zend_throw_exception(sodium_exception_ce, "unsupported value for the tag", 0); in PHP_FUNCTION()
3597 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3602 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
3626 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3632 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3639 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3667 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
3674 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
3690 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
3712 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
3719 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()