Lines Matching refs:state_len
630 size_t state_len = sizeof (crypto_generichash_state); in PHP_FUNCTION() local
657 state = zend_string_alloc(state_len, 0); in PHP_FUNCTION()
658 memcpy(ZSTR_VAL(state), &state_tmp, state_len); in PHP_FUNCTION()
660 ZSTR_VAL(state)[state_len] = 0; in PHP_FUNCTION()
672 size_t state_len; in PHP_FUNCTION() local
686 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
687 if (state_len != sizeof (crypto_generichash_state)) { in PHP_FUNCTION()
698 memcpy(state, &state_tmp, state_len); in PHP_FUNCTION()
710 size_t state_len; in PHP_FUNCTION() local
725 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
726 if (state_len != sizeof (crypto_generichash_state)) { in PHP_FUNCTION()
746 sodium_memzero(state, state_len); in PHP_FUNCTION()
3161 size_t state_len; in PHP_FUNCTION() local
3176 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3177 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()
3252 size_t state_len; in PHP_FUNCTION() local
3268 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3269 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()
3300 size_t state_len; in PHP_FUNCTION() local
3313 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3314 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()