yubihsm 0.20.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 crate::error::Error;

/// `Algorithm`-related errors
pub type AlgorithmError = Error<AlgorithmErrorKind>;

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