NAME

Crypt::HSM::Stream - A PKCS11 ongoing operation

VERSION

version 0.012

SYNOPSIS

my $stream = $session->open_encrypt('aes-cbc', $key, $iv);
my $ciphertext;
for my $chunk (@chunks) {
  $ciphertext .= $stream->add_data($chunk);
}
$ciphertext .= $stream->finish;

DESCRIPTION

This is a base-class for streaming actions.

METHODS

get_state()

Get a copy of the cryptographic operations state of this operation

set_state($state)

Set a the cryptographic operations state of this operation.

AUTHOR

Leon Timmermans <leont@cpan.org>

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.