Closed robin-nitrokey closed 1 year ago
I've implemented a second PIN type that wraps a key using the PIN in https://github.com/sosthene-nitrokey/trussed-auth/tree/ext-encryption, based on top of this PR.
I’ve changed it to use <client>/backend/auth/pin/<id>
. Let’s merge it like this. We can still change the paths before we release.
This patch implements a basic Auth extension and backend that provides PIN handling. Policies still have to be enforced by the client.
Fixes https://github.com/trussed-dev/trussed-auth/issues/1
Open tasks:
CheckPin
return an error orfalse
?SetPin
?SHORT_DATA_LEN
?zeroize
/secrecy
/...?secrecy
cannot be used withserde
in no-std environments.scrypt
scrypt
is too slow for us. We probably have to use a manual implementation.