Replace PKCS5_PBKDF2_HMAC_SHA1 with crates

Also tidies up ykpiv_util_get_derived_mgm (which was the only consumer
of the function) and fixes some porting bugs.
This commit is contained in:
Jack Grigg
2019-11-20 21:18:03 +00:00
parent 87c00a9b61
commit c5a486cb4b
3 changed files with 13 additions and 56 deletions
+3
View File
@@ -18,6 +18,9 @@ keywords = ["ccid", "ecdsa", "rsa", "piv", "yubikey"]
[dependencies]
getrandom = "0.1"
hmac = "0.7"
libc = "0.2"
log = "0.4"
pbkdf2 = "0.3"
sha-1 = "0.8"
zeroize = "1"