The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Crypt::Cryptoki::Constant - PKCS#11 constants

SYNOPSIS

use Crypt::Cryptoki::Constant qw(:all);

is(CKR_OK, 0, 'CKR_OK');

(see also: t/constant.t)

DESCRIPTION

Crypt::Cryptoki::Constant can export all Cryptoki constants. These are organized by export tags.

FUNCTIONS

rv_to_str

Maps return codes (CKR_*) to the name of the constant

print "function returned: ", rv_to_str(CKR_OK), "\n";

EXPORT

None by default.

Exportable constants

certificates (CKC_*)
derivations (CKD_*)
return_codes (CKR_*) 
flags (CKF_*) 
roles (CKU_*) 
objects (CKO_*)
key_types (CKK_*)
states (CKS_*)
attributes (CKA_*)
mechanisms (CKM_*)
helper (rv_to_str)
all

SEE ALSO

Crypt::Cryptoki, Crypt::Cryptoki::Raw

AUTHOR

Markus Lauer, <mlarue@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2014 by Markus Lauer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.5 or, at your option, any later version of Perl 5 you may have available.