yubihsm 0.26.0

Pure Rust client for YubiHSM2 devices with support for HTTP and USB-based access to the device. Supports most HSM functionality including ECDSA, Ed25519, HMAC, and RSA.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `Algorithm`-related errors

use failure::Fail;

/// `Algorithm`-related errors
pub type Error = crate::Error<ErrorKind>;

/// Kinds of `Algorithm`-related errors
#[derive(Copy, Clone, Eq, PartialEq, Debug, Fail)]
pub enum ErrorKind {
    /// Invalid algorithm tag
    #[fail(display = "invalid tag")]
    TagInvalid,
}