Skip to content

Commit 9bd548f

Browse files
committed
Improve digest handling in PKCS11 provider
This commit aims to improve our handling of digest data within the PKCS11 provider. Previously we had harcoded the prefix to the actual digest, assuming the digest was SHA256 - we are now generating a proper DigestInfo structure that can be serialized to a ASN.1 DER encoding. The reason for handling this data ourselves in the PKCS11 provider is because the PKCS11 interface expects users to provide the formatting. All other providers only take the digest data and generate the metadata themselves. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
1 parent aae746c commit 9bd548f

File tree

4 files changed

+326
-33
lines changed

4 files changed

+326
-33
lines changed

0 commit comments

Comments
 (0)