latchset / kryoptic

a pkcs#11 software token written in Rust
GNU General Public License v3.0
10 stars 4 forks source link

Improve use of CK_ATTRIBUTE arrays #81

Closed simo5 closed 1 month ago

simo5 commented 1 month ago

This code improves usage of CK_ATTRIBUTE arrays by creating a structure partially inspired by OsslParam, but using better methods to deal with lifetimes and avoiding copies where not needed.