yubihsm.rs
yubihsm.rs copied to clipboard
Compatibility fixes and a standalone mockhsm example
This branch contains a small series of compatibility fixes needed to create a standalone mockhsm
example application. I used this standalone application to test a Go based library I've developed.
There's four types of fixes:
- warnings from a newer
clippy
version (1.78) - correct the
key=value\n
in the HTTP /status endpoint - RSASSA-PSS signature support in mockhsm
- allow device-info outside an authenticated session
Additionally, I tested this using a new examples/mockhsm.rs which exports the mockhsm via HTTP. I thought it might be useful for others, but this commit could easily be reverted if not desired.
the rsa implementation partially reimplements https://github.com/iqlusioninc/yubihsm.rs/pull/493
I think this can be rebased and some commits should now conflict (I'm surprised github doesn't report conflicts).