Skip to content

Commit d2b09c4

Browse files
Fixed issue where underlying derived key structs were being formed incorrectly
Because I was forgetting that the slice of Attributes within had to be converted to a slice of CK_ATTRIBUTEs! This need to convert internally (otherwise exposing end users to the internal CK_ATTRIBUTE type) meant that we needed to store this converted slice within each DerivedKey, so that the memory stayed valid. This meant playing around with a few changes to the standard "PKCS#11 struct wrapped in a Rust struct marked `transparent`" pattern that had been used for params Signed-off-by: Jacob Prud'homme <[email protected]>
1 parent 8258b7b commit d2b09c4

File tree

2 files changed

+182
-144
lines changed

2 files changed

+182
-144
lines changed

0 commit comments

Comments
 (0)