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