Crypt::HSM::Mechanism - A PKCS11 mechanism
version 0.016
my @signers = grep { $_->has_flags('sign', 'verify') } $slot->mechanisms;
This represents a mechanism in a PKCS implementation.
This returns the name of the mechanism
This returns the minimum key size for this mechanism.
This returns the maximum key size for this mechanism.
This array lists properties of the mechanism. It may contain values like 'encrypt', 'decrypt', 'sign', 'verify', 'generate', 'wrap' and 'unwrap'.
'encrypt'
'decrypt'
'sign'
'verify'
'generate'
'wrap'
'unwrap'
This returns true the flags contain all of @flags.
@flags
This returns a hash with information about the mechanism. This includes the following fields.
min-key-size
The minimum key size
max-key-size
The maximum key size
flags
This contains the flags much like the flags method.
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.