Lines Matching refs:sodium_exception_ce

33 static zend_class_entry *sodium_exception_ce;  variable
139 sodium_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception); in PHP_MINIT_FUNCTION()
140 sodium_exception_ce->create_object = sodium_exception_create_object; in PHP_MINIT_FUNCTION()
387 zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0); in PHP_FUNCTION()
413 zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0); in PHP_FUNCTION()
438 zend_throw_exception(sodium_exception_ce, "PHP strings are required", 0); in PHP_FUNCTION()
446 …zend_argument_error(sodium_exception_ce, 1, "and argument #2 ($string_2) must have the same length… in PHP_FUNCTION()
466 …zend_argument_error(sodium_exception_ce, 1, "and argument #2 ($string_2) must have the same length… in PHP_FUNCTION()
487 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SHORTHASH_KEYBYTES bytes long"); in PHP_FUNCTION()
494 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
520 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SECRETBOX_NONCEBYTES bytes long… in PHP_FUNCTION()
524 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_SECRETBOX_KEYBYTES bytes long"); in PHP_FUNCTION()
528 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
536 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
562 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SECRETBOX_NONCEBYTES bytes long… in PHP_FUNCTION()
566 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_SECRETBOX_KEYBYTES bytes long"); in PHP_FUNCTION()
603 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
609 zend_throw_exception(sodium_exception_ce, "unsupported key length", 0); in PHP_FUNCTION()
617 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
642 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
648 zend_throw_exception(sodium_exception_ce, "unsupported key length", 0); in PHP_FUNCTION()
654 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
681 zend_argument_error(sodium_exception_ce, 1, "must be a reference to a state"); in PHP_FUNCTION()
688 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
695 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
720 zend_argument_error(sodium_exception_ce, 1, "must be a reference to a state"); in PHP_FUNCTION()
727 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
732 zend_throw_exception(sodium_exception_ce, "unsupported output length", 0); in PHP_FUNCTION()
742 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
767 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
788 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_BOX_SEEDBYTES bytes long"); in PHP_FUNCTION()
798 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
822 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_BOX_SECRETKEYBYTES bytes long"); in PHP_FUNCTION()
826 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_BOX_PUBLICKEYBYTES bytes long"); in PHP_FUNCTION()
852 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_BOX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
875 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_BOX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
898 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_BOX_SECRETKEYBYTES bytes long"); in PHP_FUNCTION()
932 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_BOX_NONCEBYTES bytes long"); in PHP_FUNCTION()
936 zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_BOX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
942 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
950 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
978 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_BOX_NONCEBYTES bytes long"); in PHP_FUNCTION()
982 zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_BOX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
1017 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_BOX_PUBLICKEYBYTES bytes long"); in PHP_FUNCTION()
1021 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1028 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1053 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_BOX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
1087 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1108 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_SEEDBYTES bytes long"); in PHP_FUNCTION()
1118 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1142 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes long"… in PHP_FUNCTION()
1146 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES bytes long"… in PHP_FUNCTION()
1171 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes long"… in PHP_FUNCTION()
1178 zend_throw_exception(sodium_exception_ce, in PHP_FUNCTION()
1200 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
1223 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
1251 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes long"… in PHP_FUNCTION()
1255 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1264 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1269 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1295 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES bytes long"… in PHP_FUNCTION()
1300 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1312 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1337 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes long"… in PHP_FUNCTION()
1346 zend_throw_exception(sodium_exception_ce, "signature creation failed", 0); in PHP_FUNCTION()
1351 zend_throw_exception(sodium_exception_ce, "signature has a bogus size", 0); in PHP_FUNCTION()
1377 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_BYTES bytes long"); in PHP_FUNCTION()
1381 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES bytes long"… in PHP_FUNCTION()
1409 zend_argument_error(sodium_exception_ce, 1, "must be greater than 0"); in PHP_FUNCTION()
1413 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_STREAM_NONCEBYTES bytes long"); in PHP_FUNCTION()
1417 zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_STREAM_KEYBYTES bytes long"); in PHP_FUNCTION()
1424 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1451 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_STREAM_NONCEBYTES bytes long"); in PHP_FUNCTION()
1455 zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_STREAM_KEYBYTES bytes long"); in PHP_FUNCTION()
1463 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1495 zend_argument_error(sodium_exception_ce, 1, "must be greater than 0"); in PHP_FUNCTION()
1499 zend_argument_error(sodium_exception_ce, 1, "is too large"); in PHP_FUNCTION()
1503 zend_argument_error(sodium_exception_ce, 2, "is too long"); in PHP_FUNCTION()
1507 zend_argument_error(sodium_exception_ce, 4, "must be greater than 0"); in PHP_FUNCTION()
1511 zend_argument_error(sodium_exception_ce, 5, "must be greater than 0"); in PHP_FUNCTION()
1519 zend_throw_exception(sodium_exception_ce, "unsupported password hashing algorithm", 0); in PHP_FUNCTION()
1526 zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_PWHASH_SALTBYTES bytes long"); in PHP_FUNCTION()
1530 …zend_argument_error(sodium_exception_ce, 4, "must be greater than or equal to %d", crypto_pwhash_O… in PHP_FUNCTION()
1534 …zend_argument_error(sodium_exception_ce, 5, "must be greater than or equal to %d", crypto_pwhash_M… in PHP_FUNCTION()
1554 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1578 zend_argument_error(sodium_exception_ce, 2, "must be greater than 0"); in PHP_FUNCTION()
1582 zend_argument_error(sodium_exception_ce, 3, "must be greater than 0"); in PHP_FUNCTION()
1586 zend_argument_error(sodium_exception_ce, 1, "is too long"); in PHP_FUNCTION()
1593 …zend_argument_error(sodium_exception_ce, 2, "must be greater than or equal to %d", crypto_pwhash_O… in PHP_FUNCTION()
1596 …zend_argument_error(sodium_exception_ce, 3, "must be greater than or equal to %d", crypto_pwhash_M… in PHP_FUNCTION()
1603 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1647 zend_argument_error(sodium_exception_ce, 2, "is too long"); in PHP_FUNCTION()
1682 zend_argument_error(sodium_exception_ce, 1, "must be greater than 0"); in PHP_FUNCTION()
1686 zend_argument_error(sodium_exception_ce, 4, "must be greater than 0"); in PHP_FUNCTION()
1690 zend_argument_error(sodium_exception_ce, 5, "must be greater than 0"); in PHP_FUNCTION()
1697 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SAL… in PHP_FUNCTION()
1701 …zend_argument_error(sodium_exception_ce, 4, "must be greater than or equal to %d", crypto_pwhash_s… in PHP_FUNCTION()
1704 …zend_argument_error(sodium_exception_ce, 5, "must be greater than or equal to %d", crypto_pwhash_s… in PHP_FUNCTION()
1712 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1735 zend_argument_error(sodium_exception_ce, 2, "must be greater than 0"); in PHP_FUNCTION()
1739 zend_argument_error(sodium_exception_ce, 3, "must be greater than 0"); in PHP_FUNCTION()
1746 …zend_argument_error(sodium_exception_ce, 2, "must be greater than or equal to %d", crypto_pwhash_s… in PHP_FUNCTION()
1749 …zend_argument_error(sodium_exception_ce, 3, "must be greater than or equal to %d", crypto_pwhash_s… in PHP_FUNCTION()
1757 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1829 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES bytes … in PHP_FUNCTION()
1833 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES bytes l… in PHP_FUNCTION()
1837 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1841 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
1851 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1857 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1889 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES bytes … in PHP_FUNCTION()
1893 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES bytes l… in PHP_FUNCTION()
1900 zend_argument_error(sodium_exception_ce, 1, "is too long"); in PHP_FUNCTION()
1905 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1918 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1951 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES… in PHP_FUNCTION()
1955 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES … in PHP_FUNCTION()
1959 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
1969 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
1975 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2007 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES… in PHP_FUNCTION()
2011 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES … in PHP_FUNCTION()
2019 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2032 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2064 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUB… in PHP_FUNCTION()
2068 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYB… in PHP_FUNCTION()
2072 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2076 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2086 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2092 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2124 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUB… in PHP_FUNCTION()
2128 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYB… in PHP_FUNCTION()
2133 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2141 zend_throw_exception(sodium_exception_ce, "message too long for a single key", 0); in PHP_FUNCTION()
2154 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2187 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPU… in PHP_FUNCTION()
2191 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEY… in PHP_FUNCTION()
2195 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2205 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2211 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2243 …zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPU… in PHP_FUNCTION()
2247 …zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEY… in PHP_FUNCTION()
2255 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2260 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2273 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2296 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2330 zend_argument_error(sodium_exception_ce, 1, "must be a valid hexadecimal string"); in PHP_FUNCTION()
2335 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2359 zend_argument_error(sodium_exception_ce, 2, "must be a valid base64 variant identifier"); in PHP_FUNCTION()
2363 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2392 zend_argument_error(sodium_exception_ce, 2, "must be a valid base64 variant identifier"); in PHP_FUNCTION()
2402 zend_argument_error(sodium_exception_ce, 1, "must be a valid base64 string"); in PHP_FUNCTION()
2407 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
2431 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SCALARMULT_SCALARBYTES bytes lo… in PHP_FUNCTION()
2435 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SCALARMULT_SCALARBYTES bytes lo… in PHP_FUNCTION()
2441 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2463 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_KX_SEEDBYTES bytes long"); in PHP_FUNCTION()
2474 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2495 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2515 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
2538 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
2568 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
2572 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_KX_PUBLICKEYBYTES bytes long"); in PHP_FUNCTION()
2580 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2618 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes long"); in PHP_FUNCTION()
2622 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_KX_PUBLICKEYBYTES bytes long"); in PHP_FUNCTION()
2630 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2664 zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes long"); in PHP_FUNCTION()
2671 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
2696 zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes long"); in PHP_FUNCTION()
2700 zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_AUTH_BYTES bytes long"); in PHP_FUNCTION()
2723 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes long"… in PHP_FUNCTION()
2730 zend_throw_exception(sodium_exception_ce, "conversion failed", 0); in PHP_FUNCTION()
2750 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES bytes long"… in PHP_FUNCTION()
2757 zend_throw_exception(sodium_exception_ce, "conversion failed", 0); in PHP_FUNCTION()
2779 …zend_argument_error(sodium_exception_ce, 1, "and argument #2 ($string_2) must have the same length… in PHP_FUNCTION()
2924 …zend_argument_error(sodium_exception_ce, 1, "must be greater than or equal to SODIUM_CRYPTO_KDF_BY… in PHP_FUNCTION()
2928 …zend_argument_error(sodium_exception_ce, 1, "must be less than or equal to SODIUM_CRYPTO_KDF_BYTES… in PHP_FUNCTION()
2932 zend_argument_error(sodium_exception_ce, 2, "must be greater than or equal to 0"); in PHP_FUNCTION()
2936 zend_argument_error(sodium_exception_ce, 3, "must be SODIUM_CRYPTO_KDF_CONTEXTBYTES bytes long"); in PHP_FUNCTION()
2940 zend_argument_error(sodium_exception_ce, 4, "must be SODIUM_CRYPTO_KDF_BYTES_MIN bytes long"); in PHP_FUNCTION()
2989 zend_argument_error(sodium_exception_ce, 2, "must be greater than 0"); in PHP_FUNCTION()
2993 zend_argument_error(sodium_exception_ce, 2, "is too large"); in PHP_FUNCTION()
3003 zend_throw_exception(sodium_exception_ce, "input is too large", 0); in PHP_FUNCTION()
3023 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3062 zend_argument_error(sodium_exception_ce, 2, "must be greater than 0"); in PHP_FUNCTION()
3066 zend_argument_error(sodium_exception_ce, 2, "is too large"); in PHP_FUNCTION()
3070 zend_argument_error(sodium_exception_ce, 1, "must be at least as long as the block size"); in PHP_FUNCTION()
3102 zend_throw_exception(sodium_exception_ce, "invalid padding", 0); in PHP_FUNCTION()
3136 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_… in PHP_FUNCTION()
3141 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3171 zend_argument_error(sodium_exception_ce, 1, "must be a reference to a state"); in PHP_FUNCTION()
3178 zend_argument_error(sodium_exception_ce, 1, "must have a correct length"); in PHP_FUNCTION()
3183 …zend_argument_error(sodium_exception_ce, 2, "must be at most SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20P… in PHP_FUNCTION()
3187 zend_argument_error(sodium_exception_ce, 4, "must be in the range of 0-255"); in PHP_FUNCTION()
3197 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3202 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
3226 …zend_argument_error(sodium_exception_ce, 1, "must be SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_… in PHP_FUNCTION()
3230 …zend_argument_error(sodium_exception_ce, 2, "must be SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_… in PHP_FUNCTION()
3235 zend_throw_exception(sodium_exception_ce, "internal error", 0); in PHP_FUNCTION()
3263 zend_argument_error(sodium_exception_ce, 1, "must be a reference to a state"); in PHP_FUNCTION()
3270 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()
3286 zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0); in PHP_FUNCTION()
3308 zend_argument_error(sodium_exception_ce, 1, "must be a reference to a state"); in PHP_FUNCTION()
3315 zend_throw_exception(sodium_exception_ce, "incorrect state length", 0); in PHP_FUNCTION()