Struct yubihsm::session::Session [] [src]

pub struct Session<C = DefaultConnector> where
    C: Connector
{ /* fields omitted */ }

Encrypted session with the YubiHSM2

Generic over connector types in case a different one needs to be swapped in

Methods

impl Session<DefaultConnector>
[src]

Methods which are only available on the default connector

[src]

Open a new session to the HSM, authenticating with the given keypair

[src]

Open a new session to the HSM, authenticating with a given password

impl<C: Connector> Session<C>
[src]

[src]

Create a new encrypted session using the given connector, YubiHSM2 auth key ID, and static identity keys

[src]

Request current yubihsm-connector status

Blink the YubiHSM2's LEDs (to identify it) for the given number of seconds

[src]

Delete an object of the given ID and type

[src]

Have the card echo an input message

[src]

Generate a new asymmetric key within the YubiHSM2

[src]

Get information about an object

[src]

Get the public key for an asymmetric key stored on the device

See GetPubKeyResponse for more information about public key formats

[src]

Get the current session ID

[src]

List objects visible from the current session

[src]

Compute an Ed25519 signature with the given key ID

Trait Implementations

Auto Trait Implementations

impl<C> Send for Session<C>

impl<C> Sync for Session<C> where
    C: Sync