Lines Matching refs:state_len
447 size_t state_len = sizeof (crypto_generichash_state); in PHP_FUNCTION() local
474 state = zend_string_alloc(state_len, 0); in PHP_FUNCTION()
475 memcpy(ZSTR_VAL(state), &state_tmp, state_len); in PHP_FUNCTION()
477 ZSTR_VAL(state)[state_len] = 0; in PHP_FUNCTION()
489 size_t state_len; in PHP_FUNCTION() local
503 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
504 if (state_len != sizeof (crypto_generichash_state)) { in PHP_FUNCTION()
515 memcpy(state, &state_tmp, state_len); in PHP_FUNCTION()
527 size_t state_len; in PHP_FUNCTION() local
542 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
543 if (state_len != sizeof (crypto_generichash_state)) { in PHP_FUNCTION()
563 sodium_memzero(state, state_len); in PHP_FUNCTION()
3184 size_t state_len; in PHP_FUNCTION() local
3199 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3200 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()
3275 size_t state_len; in PHP_FUNCTION() local
3291 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3292 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()
3323 size_t state_len; in PHP_FUNCTION() local
3336 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3337 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()