Skip to content

[Bug]: SM3 HMAC fails when using the EVP_DigestSign APIs because wolfSSL_HmacCopy doesn't consider SM3 #9187

@colmenero

Description

@colmenero

Contact Details

[email protected]

Version

5.8.2

Description

I'm using wolfSSL in combination with wolfSM and computing an SM3 HMAC fails because wolfSSL_HmacCopy doesn't consider SM3. See relevant code here.

Note that wolfSSL_EVP_DigestInit does consider SM3. So I think this is a bug.

Reproduction steps

I'm attaching a simple program, built statically, where you can reproduce the exact behavior.

hmac_sm3_wolfssl.zip

Relevant log output

No relevant output. `EVP_DigestSignFinal` Simply fails.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions