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