Lines Matching refs:state_len
446 size_t state_len = sizeof (crypto_generichash_state); in PHP_FUNCTION() local
473 state = zend_string_alloc(state_len, 0); in PHP_FUNCTION()
474 memcpy(ZSTR_VAL(state), &state_tmp, state_len); in PHP_FUNCTION()
476 ZSTR_VAL(state)[state_len] = 0; in PHP_FUNCTION()
488 size_t state_len; in PHP_FUNCTION() local
502 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
503 if (state_len != sizeof (crypto_generichash_state)) { in PHP_FUNCTION()
514 memcpy(state, &state_tmp, state_len); in PHP_FUNCTION()
526 size_t state_len; in PHP_FUNCTION() local
541 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
542 if (state_len != sizeof (crypto_generichash_state)) { in PHP_FUNCTION()
562 sodium_memzero(state, state_len); in PHP_FUNCTION()
3439 size_t state_len; in PHP_FUNCTION() local
3454 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3455 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()
3530 size_t state_len; in PHP_FUNCTION() local
3546 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3547 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()
3578 size_t state_len; in PHP_FUNCTION() local
3591 state_len = Z_STRLEN(*state_zv); in PHP_FUNCTION()
3592 if (state_len != sizeof (crypto_secretstream_xchacha20poly1305_state)) { in PHP_FUNCTION()