pub unsafe extern "C" fn Hacl_Streaming_SHA2_copy_512(
    s0: *mut Hacl_Streaming_MD_state_64
) -> *mut Hacl_Streaming_MD_state_64
Expand description

Copies the state passed as argument into a newly allocated state (deep copy). The state is to be freed by calling free_512. Cloning the state this way is useful, for instance, if your control-flow diverges and you need to feed more (different) data into the hash in each branch.