[−][src]Module rustica_keys::yubikey
Functions for dealing with Yubikey signing. Also contains an SSH submodule containing helper functions to generate SSH encoded versions of it's normal functions.
Modules
ssh | The SSH submodule contains functions relevant to SSH uses that are backed by the Yubikey. This includes things like signing and SSH public key export. |
Enums
AlgorithmId | Algorithm identifiers |
Error | Errors when interacting with the Yubikey. |
RetiredSlotId | Retired slot IDs. |
SlotId | Slot identifiers. https://developers.yubico.com/PIV/Introduction/Certificate_slots.html |
Functions
configured | Check to see that a provided Yubikey and slot is configured for signing |
fetch_pubkey | Fetch a public key from the provided slot. If there is not exactly one Yubikey this will fail. |
provision | This provisions the YubiKey with a new certificate. It is generally not advisable to use as this means there is no backup of the key should it be lost. It is however provided as an easy method quickly get a YubiKey properly configured for use with Rustica. |
sign_data | Take an data, an algorithm, and a slot and attempt to sign the data field |