Crypt::HSM::Slot - A PKCS11 slot
version 0.016
my $session = $slot->open_session;
This represents a slot on a PKCS implementation.
This opens a session to this slot. $flag is an optional array that may currenlt contain the value 'rw-session' to enable writing to the token. This returns a Crypt::HSM::Session object.
$flag
'rw-session'
This returns all mechanisms supported by the token in the slot as Crypt::HSM::Mechanism objects.
This returns the named mechanism as a Crypt::HSM::Mechanism object.
This returns the identifier of this slot.
This closes all sessions on this slot.
This returns a hash with information about the slot.
This returns a hash with information about the token in the slot.
This initializes a token on the slot, with the associalted $pin and $label (max 32 characters).
$pin
$label
Leon Timmermans <leont@cpan.org>
This software is copyright (c) 2023 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Crypt::HSM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::HSM
CPAN shell
perl -MCPAN -e shell install Crypt::HSM
For more information on module installation, please visit the detailed CPAN module installation guide.