NAME
Crypt::HSM::Mechanism::Info - PKCS11 mechanism information
VERSION
version 0.025
METHODS
min_key_size()
This returns the minimum key size for this mechanism.
max_key_size()
This returns the maximum key size for this mechanism.
flags()
This hash with properties of the mechanism. It contains the following entries:
hwTrue if the mechanism is performed by the device; false if the mechanism is performed in software.
encrypttrue if the mechanism can be used with c<encrypt>.
decryptTrue if the mechanism can be used with
decryptdigestTrue if the mechanism can be used with
digestsignTrue if the mechanism can be used with
signsign-recoverTrue if the mechanism can be used with
sign_recoververifyTrue if the mechanism can be used with
verifyverify-recoverTrue if the mechanism can be used with
verify_recovergenerateTrue if the mechanism can be used with
generategenerate-key-pairTrue if the mechanism can be used with
generate_key_pairwrapTrue if the mechanism can be used with
wrapunwrapTrue if the mechanism can be used with
unwrapderiveTrue if the mechanism can be used with
deriveextensionTrue if there is an extension to the flags; false if no extensions.
has_flags(@flags)
This returns true the flags contain all of @flags.
hash()
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
flagsmethod.
AUTHOR
Leon Timmermans <fawaka@gmail.com>
COPYRIGHT AND LICENSE
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.