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::HSM::Stream - A PKCS11 ongoing operation

VERSION

version 0.016

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.