Crypt::HSM::Decrypt - A PKCS11 ongoing decryption operation.
version 0.011
my $stream = $session->open_decrypt('aes-gcm', $key, $iv); my $plaintext; for my $chunk (@chunks) { $plaintext .= $stream->add_data($chunk); } $plaintext .= $stream->finish;
This class represents a decrypting stream.
This adds data to the decryption, and returns plaintext.
This finished the decryption, and returns and remaining plaintext.
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.