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:

  • hw

    True if the mechanism is performed by the device; false if the mechanism is performed in software.

  • encrypt

    true if the mechanism can be used with c<encrypt>.

  • decrypt

    True if the mechanism can be used with decrypt

  • digest

    True if the mechanism can be used with digest

  • sign

    True if the mechanism can be used with sign

  • sign-recover

    True if the mechanism can be used with sign_recover

  • verify

    True if the mechanism can be used with verify

  • verify-recover

    True if the mechanism can be used with verify_recover

  • generate

    True if the mechanism can be used with generate

  • generate-key-pair

    True if the mechanism can be used with generate_key_pair

  • wrap

    True if the mechanism can be used with wrap

  • unwrap

    True if the mechanism can be used with unwrap

  • derive

    True if the mechanism can be used with derive

  • extension

    True 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 flags method.

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.