NAME
Crypt::HSM::Verify - A PKCS11 ongoing verification operation.
VERSION
version 0.016
SYNOPSIS
my $stream = $session->open_verify('rsa-pkcs-pss', $key, $iv);
for my $chunk (@chunks) {
$stream->add_data($chunk);
}
my $success = $stream->finish($signature);
DESCRIPTION
This class represents a verification stream.
METHODS
add_data($plaintext)
This adds data to the verification.
finalize($signature)
This finished the verification and returns true if the calculated signature matches $signature
, or false otherwise.
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.