NAME

Crypt::HSM::Sign - A PKCS11 ongoing signing operation.

VERSION

version 0.011

SYNOPSIS

my $stream = $session->open_sign('rsa-pkcs-pss', $key);
for my $chunk (@chunks) {
  $stream->add_data($chunk);
}
my $signature = $stream->finish;

DESCRIPTION

This class represents a signing stream.

METHODS

add_data($plaintext)

This adds data to the signing.

finalize()

This finished the signing and returns the signature.

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.