ebbf043bc9
This commit contains a "big bang" refactor/rewrite which does the following: - Replaces all `SCard*` FFI calls with the `pcsc` crate, which provides a safe, portable PC/SC API across Windows, macOS, and Linux - Refactors the `util` module into modules representing the various device functions and concepts, e.g. `certificate`, `key`, `mgm` - Replaces all usage of `libc` with `std` functionality, and in many places rewriting functionality to use safe code. - Removes `ykpiv_` from all function names, and `Piv*` from type names. In 20/20 hindsight I wish I had done this commit more incrementally so as to make it easier to review. Que sera sera. However, realistically we need to test all functionality on the device to ensure that it actually works. Going forward I would like to put pretty much all of the current code behind an `untested` cargo feature, and then remove it for each bit of functionality we test.
29 lines
854 B
TOML
29 lines
854 B
TOML
[package]
|
|
name = "yubikey-piv"
|
|
version = "0.0.1" # Also update html_root_url in lib.rs when bumping this
|
|
description = """
|
|
Pure Rust host-side driver for the YubiKey Personal Identity Verification (PIV)
|
|
CCID application providing general-purpose public-key signing and encryption
|
|
with hardware-backed private keys for RSA (2048/1024) and ECC (P-256/P-384)
|
|
algorithms (e.g, PKCS#1v1.5, ECDSA)
|
|
"""
|
|
|
|
authors = ["Tony Arcieri <bascule@gmail.com>", "Yubico AB"]
|
|
edition = "2018"
|
|
license = "BSD-2-Clause"
|
|
repository = "https://github.com/tarcieri/yubikey-piv.rs"
|
|
readme = "README.md"
|
|
categories = ["api-bindings", "cryptography", "hardware-support"]
|
|
keywords = ["ccid", "ecdsa", "rsa", "piv", "yubikey"]
|
|
|
|
[dependencies]
|
|
des = "0.3"
|
|
getrandom = "0.1"
|
|
hmac = "0.7"
|
|
log = "0.4"
|
|
pbkdf2 = "0.3"
|
|
pcsc = "2"
|
|
sha-1 = "0.8"
|
|
subtle = "2"
|
|
zeroize = "1"
|