[][src]Module yubikey_piv::key

PIV cryptographic keys stored in a YubiKey.

Supported algorithms:

  • Encryption: RSA1024, RSA2048, ECCP256, ECCP384
  • Signatures:
    • RSASSA-PKCS#1v1.5: RSA1024, RSA2048
    • ECDSA: ECCP256, ECCP384

Structs

Key

PIV cryptographic keys stored in a YubiKey

RsaKeyData

The key data that makes up an RSA key.

Enums

AlgorithmId

Algorithm identifiers

RetiredSlotId

Retired slot IDs.

SlotId

Slot identifiers. https://developers.yubico.com/PIV/Introduction/Certificate_slots.html

Constants

SLOTS

Personal Identity Verification (PIV) key slots

Functions

attest

Generate an attestation certificate for a stored key. https://developers.yubico.com/PIV/Introduction/PIV_attestation.html

decrypt_data

Decrypt data using a PIV key

generate

Generate key

import_ecc_key

Imports a private ECC encryption or signing key into the YubiKey.

import_rsa_key

Imports a private RSA encryption or signing key into the YubiKey.

sign_data

Sign data using a PIV key