fd77e9f844
Adds an extremely basic initial test to ensure that we are able to connect to a YubiKey. The test is marked `#[ignore]` in the hope that we can eventually start adding tests which run in CI, e.g. against a mock card. This also includes a fix for calculating the APDU size, since the ones we were sending originally were overly long.
32 lines
888 B
TOML
32 lines
888 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)
|
|
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"
|
|
|
|
[dev-dependencies]
|
|
env_logger = "0.7"
|