Skip to content

how get middle value data for sm3 instance #304

Closed
@weihualiu

Description

@weihualiu

I want to get a SM3 instance's data to binary data.
example:

    let mut hasher = Sm3::new();
    let result1: Vec<u8> = hasher.to_vec();
    // update
   hasher.update(b"hello world");
    let result2: Vec<u8> = haser.to_vec();
   // result1 vs result2 is not same. because result2 is execute update function operation.

What I use or write code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions