Lines Matching refs:sodium_exception_ce

35 static zend_class_entry *sodium_exception_ce;  variable
422 sodium_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception); in PHP_MINIT_FUNCTION()
423 sodium_exception_ce->create_object = sodium_exception_create_object; in PHP_MINIT_FUNCTION()
663 zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0); in PHP_FUNCTION()
689 zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0); in PHP_FUNCTION()
714 zend_throw_exception(sodium_exception_ce, "PHP strings are required", 0); in PHP_FUNCTION()
722 zend_throw_exception(sodium_exception_ce, "values must have the same length", 0); in PHP_FUNCTION()
742 zend_throw_exception(sodium_exception_ce, "arguments have different sizes", 0); in PHP_FUNCTION()
763 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
772 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
798 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
804 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
810 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
818 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
844 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
850 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
889 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
895 zend_throw_exception(sodium_exception_ce, "unsupported key length", 0); in PHP_FUNCTION()
903 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
928 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
934 zend_throw_exception(sodium_exception_ce, "unsupported key length", 0); in PHP_FUNCTION()
940 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
967 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
974 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
981 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1006 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
1013 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
1018 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
1028 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1053 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1074 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1086 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1110 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1116 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1144 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1169 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1194 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1230 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1236 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1244 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1252 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1280 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1286 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1323 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1329 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1336 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1361 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1397 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1418 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1430 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1454 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1460 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1487 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1496 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1518 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1543 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1573 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1579 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1588 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1593 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1619 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1626 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1638 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1663 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1674 zend_throw_exception(sodium_exception_ce, "signature creation failed", 0); in PHP_FUNCTION()
1679 zend_throw_exception(sodium_exception_ce, "signature has a bogus size", 0); in PHP_FUNCTION()
1705 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1711 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1741 zend_throw_exception(sodium_exception_ce, "ciphertext length must be greater than 0", 0); in PHP_FUNCTION()
1745 …zend_throw_exception(sodium_exception_ce, "nonce should be SODIUM_CRYPTO_STREAM_NONCEBYTES bytes",… in PHP_FUNCTION()
1749 zend_throw_exception(sodium_exception_ce, "key should be SODIUM_CRYPTO_STREAM_KEYBYTES bytes", 0); in PHP_FUNCTION()
1756 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1783 …zend_throw_exception(sodium_exception_ce, "nonce should be SODIUM_CRYPTO_STREAM_NONCEBYTES bytes",… in PHP_FUNCTION()
1787 zend_throw_exception(sodium_exception_ce, "key should be SODIUM_CRYPTO_STREAM_KEYBYTES bytes", 0); in PHP_FUNCTION()
1795 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1827 zend_throw_exception(sodium_exception_ce, "hash length must be greater than 0", 0); in PHP_FUNCTION()
1831 zend_throw_exception(sodium_exception_ce, "unsupported password length", 0); in PHP_FUNCTION()
1835 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
1839 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
1847 zend_throw_exception(sodium_exception_ce, "unsupported password hashing algorithm", 0); in PHP_FUNCTION()
1854 …zend_throw_exception(sodium_exception_ce, "salt should be SODIUM_CRYPTO_PWHASH_SALTBYTES bytes", 0… in PHP_FUNCTION()
1858 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1863 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1884 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1908 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
1912 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
1916 zend_throw_exception(sodium_exception_ce, "unsupported password length", 0); in PHP_FUNCTION()
1923 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1927 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1935 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1956 zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0); in PHP_FUNCTION()
1980 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2016 zend_throw_exception(sodium_exception_ce, "hash length must be greater than 0", 0); in PHP_FUNCTION()
2020 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
2024 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
2031 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2037 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2041 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2050 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2073 zend_throw_exception(sodium_exception_ce, "ops limit must be greater than 0", 0); in PHP_FUNCTION()
2077 zend_throw_exception(sodium_exception_ce, "memory limit must be greater than 0", 0); in PHP_FUNCTION()
2084 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2088 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2097 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2169 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2176 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2183 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2187 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2197 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2203 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2235 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2242 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2252 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2257 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2270 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2303 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2310 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2317 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2327 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2333 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2365 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2372 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2383 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2396 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2428 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2435 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2442 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2446 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2456 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2462 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2494 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2501 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2509 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2517 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2530 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2563 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2570 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2577 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2587 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2593 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2625 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2632 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2643 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2648 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2661 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2684 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2718 zend_throw_exception(sodium_exception_ce, "invalid hex string", 0); in PHP_FUNCTION()
2723 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2747 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2752 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2781 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2792 zend_throw_exception(sodium_exception_ce, "invalid base64 string", 0); in PHP_FUNCTION()
2797 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2822 zend_throw_exception(sodium_exception_ce, "scalar and point must be " in PHP_FUNCTION()
2830 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2852 zend_throw_exception(sodium_exception_ce, "seed must be SODIUM_CRYPTO_KX_SEEDBYTES bytes", 0); in PHP_FUNCTION()
2863 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2884 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2903 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2928 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
2960 …zend_throw_exception(sodium_exception_ce, "keypair must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes", 0… in PHP_FUNCTION()
2964 …zend_throw_exception(sodium_exception_ce, "public keys must be SODIUM_CRYPTO_KX_PUBLICKEYBYTES byt… in PHP_FUNCTION()
2972 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3010 …zend_throw_exception(sodium_exception_ce, "keypair must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes", 0… in PHP_FUNCTION()
3014 …zend_throw_exception(sodium_exception_ce, "public keys must be SODIUM_CRYPTO_KX_PUBLICKEYBYTES byt… in PHP_FUNCTION()
3022 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3056 zend_throw_exception(sodium_exception_ce, "key must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes", 0); in PHP_FUNCTION()
3063 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3088 zend_throw_exception(sodium_exception_ce, "key must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes", 0); in PHP_FUNCTION()
3092 …zend_throw_exception(sodium_exception_ce, "authentication tag must be SODIUM_CRYPTO_AUTH_BYTES byt… in PHP_FUNCTION()
3115 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3124 zend_throw_exception(sodium_exception_ce, "conversion failed", 0); in PHP_FUNCTION()
3144 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3153 zend_throw_exception(sodium_exception_ce, "conversion failed", 0); in PHP_FUNCTION()
3175 zend_throw_exception(sodium_exception_ce, "arguments have different sizes", 0); in PHP_FUNCTION()
3320 …zend_throw_exception(sodium_exception_ce, "subkey cannot be smaller than SODIUM_CRYPTO_KDF_BYTES_M… in PHP_FUNCTION()
3324 …zend_throw_exception(sodium_exception_ce, "subkey cannot be larger than SODIUM_CRYPTO_KDF_BYTES_MA… in PHP_FUNCTION()
3328 zend_throw_exception(sodium_exception_ce, "subkey_id cannot be negative", 0); in PHP_FUNCTION()
3332 …zend_throw_exception(sodium_exception_ce, "context should be SODIUM_CRYPTO_KDF_CONTEXTBYTES bytes"… in PHP_FUNCTION()
3336 zend_throw_exception(sodium_exception_ce, "key should be SODIUM_CRYPTO_KDF_KEYBYTES bytes", 0); in PHP_FUNCTION()
3385 zend_throw_exception(sodium_exception_ce, "block size cannot be less than 1", 0); in PHP_FUNCTION()
3389 zend_throw_exception(sodium_exception_ce, "block size is too large", 0); in PHP_FUNCTION()
3399 zend_throw_exception(sodium_exception_ce, "input is too large", 0); in PHP_FUNCTION()
3419 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3458 zend_throw_exception(sodium_exception_ce, "block size cannot be less than 1", 0); in PHP_FUNCTION()
3462 zend_throw_exception(sodium_exception_ce, "block size is too large", 0); in PHP_FUNCTION()
3466 zend_throw_exception(sodium_exception_ce, "invalid padding", 0); in PHP_FUNCTION()
3498 zend_throw_exception(sodium_exception_ce, "invalid padding", 0); in PHP_FUNCTION()
3532 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3539 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3569 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
3576 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
3581 …zend_throw_exception(sodium_exception_ce, "message cannot be larger than SODIUM_CRYPTO_SECRETSTREA… in PHP_FUNCTION()
3585 zend_throw_exception(sodium_exception_ce, "unsupported value for the tag", 0); in PHP_FUNCTION()
3595 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3600 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
3624 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3630 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
3637 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3665 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
3672 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
3688 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
3710 zend_throw_exception(sodium_exception_ce, "a reference to a state is required", 0); in PHP_FUNCTION()
3717 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()