Skip to content

refactor decrypt content with PKCS12 and fix for AES-256 + HMAC SHA25…#2868

Merged
toddouska merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:Certs
Mar 25, 2020
Merged

refactor decrypt content with PKCS12 and fix for AES-256 + HMAC SHA25…#2868
toddouska merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:Certs

Conversation

@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

ZD 9972

@JacobBarthelmeh JacobBarthelmeh self-assigned this Mar 25, 2020
Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jacob! Awesome work on this and thank you for updating/fixing the example (wolfSSL/wolfssl-examples#192)

Comment thread wolfcrypt/src/asn.c
}

ret = wc_CryptKey(password, passwordSz, salt, saltSz, iterations, id,
input + inOutIdx, length, version, cbcIv, 0, 0);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference the bug was here on the last arg of wc_CryptKey call, which was not providing shaOid on the last arg.

@dgarske dgarske assigned toddouska and unassigned JacobBarthelmeh Mar 25, 2020
@toddouska toddouska merged commit 083b8f6 into wolfSSL:master Mar 25, 2020
@dgarske dgarske mentioned this pull request Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants