Use secrecy crate for storing CachedPin

The `SecretVec` type automatically handles zeroing and may prevent
accidental exposure of the cached PIN via `Debug`.
This commit is contained in:
Tony Arcieri
2019-11-30 12:08:21 -08:00
parent 8e38cf6c4e
commit 6a16c59567
2 changed files with 15 additions and 7 deletions
+1
View File
@@ -25,6 +25,7 @@ hmac = "0.7"
log = "0.4"
pbkdf2 = "0.3"
pcsc = "2"
secrecy = "0.5"
sha-1 = "0.8"
subtle = "2"
zeroize = "1"