latchset / kryoptic

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

Do not embed nulls in token info #84

Closed simo5 closed 1 month ago

simo5 commented 1 month ago

The copy function is filling token info fixed size strings with spaces However we failed to catch the trailing null that apparently comes in a &str type, ending up with embedding an illegal null in these token info strings.