The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Crypt::HSM::Digest - A PKCS11 ongoing digesting operation.

VERSION

version 0.016

SYNOPSIS

 my $stream = $session->open_digest('aes-gcm', $key, $iv);
 for my $chunk (@chunks) {
   $stream->add_data($chunk);
 }
 my $digest = $stream->finish;

DESCRIPTION

This class represents a digestion stream.

METHODS

add_data($plaintext)

This adds data to the digestion.

add_key($key)

This adds the value of the identifier $key to the digest.

finalize()

This finished the digestion and returns the digest.

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.