1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//! Objects within the `YubiHSM 2` (keys, certificates, or other opaque data)
//!
//! For more information, see:
//! <https://developers.yubico.com/YubiHSM2/Concepts/Object.html>

pub(crate) mod commands;
mod entry;
mod error;
mod filter;
pub(crate) mod generate;
mod handle;
mod info;
mod label;
mod origins;
pub mod put;
mod types;

pub use self::{
    entry::Entry,
    error::{Error, ErrorKind},
    filter::Filter,
    handle::Handle,
    info::Info,
    label::{Label, LABEL_SIZE},
    origins::Origin,
    types::Type,
};

/// Object identifiers
pub type Id = u16;

/// Sequence identifiers: number of times an object with a given ID has been
/// created in this `YubiHSM` (with all previous versions having been deleted)
pub type SequenceId = u8;