Lines Matching refs:hash_len
877 zend_long hash_len = crypto_generichash_BYTES; in PHP_FUNCTION() local
884 &hash_len) == FAILURE) { in PHP_FUNCTION()
888 if (hash_len < crypto_generichash_BYTES_MIN || in PHP_FUNCTION()
889 hash_len > crypto_generichash_BYTES_MAX) { in PHP_FUNCTION()
899 hash = zend_string_alloc(hash_len, 0); in PHP_FUNCTION()
900 if (crypto_generichash((unsigned char *) ZSTR_VAL(hash), (size_t) hash_len, in PHP_FUNCTION()
907 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION()
918 zend_long hash_len = crypto_generichash_BYTES; in PHP_FUNCTION() local
923 &hash_len) == FAILURE) { in PHP_FUNCTION()
927 if (hash_len < crypto_generichash_BYTES_MIN || in PHP_FUNCTION()
928 hash_len > crypto_generichash_BYTES_MAX) { in PHP_FUNCTION()
940 (size_t) hash_len) != 0) { in PHP_FUNCTION()
998 zend_long hash_len = crypto_generichash_BYTES; in PHP_FUNCTION() local
1001 &state_zv, &hash_len) == FAILURE) { in PHP_FUNCTION()
1017 if (hash_len < crypto_generichash_BYTES_MIN || in PHP_FUNCTION()
1018 hash_len > crypto_generichash_BYTES_MAX) { in PHP_FUNCTION()
1022 hash = zend_string_alloc(hash_len, 0); in PHP_FUNCTION()
1026 (size_t) hash_len) != 0) { in PHP_FUNCTION()
1035 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION()
1810 zend_long hash_len; in PHP_FUNCTION() local
1820 &hash_len, in PHP_FUNCTION()
1827 if (hash_len <= 0 || hash_len >= 0xffffffff) { in PHP_FUNCTION()
1867 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
1872 ((unsigned char *) ZSTR_VAL(hash), (unsigned long long) hash_len, in PHP_FUNCTION()
1879 ((unsigned char *) ZSTR_VAL(hash), (unsigned long long) hash_len, in PHP_FUNCTION()
1888 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION()
2002 zend_long hash_len; in PHP_FUNCTION() local
2009 &hash_len, in PHP_FUNCTION()
2016 if (hash_len <= 0 || hash_len >= SIZE_MAX || hash_len > 0x1fffffffe0ULL) { in PHP_FUNCTION()
2045 hash = zend_string_alloc((size_t) hash_len, 0); in PHP_FUNCTION()
2047 ((unsigned char *) ZSTR_VAL(hash), (unsigned long long) hash_len, in PHP_FUNCTION()
2054 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION()