Crypt-Sodium-XS
view release on metacpan or search on metacpan
lib/Crypt/Sodium/XS/OO/secretstream.pm view on Meta::CPAN
Ratcheting: at any point in the stream, it is possible to "forget" the key used
to encrypt the previous messages, and switch to a new key.
=back
L<Crypt::Sodium::XS::secretstream> can be used to securely send an ordered
sequence of messages to a peer. Since the length of the stream is not limited,
it can also be used to encrypt files regardless of their size.
It transparently generates nonces and automatically handles key rotation.
=head1 CONSTRUCTOR
=head2 new
my $sstream
= Crypt::Sodium::XS::OO::secretstream->new(primitive => 'xchacha20poly1305');
my $sstream
= Crypt::Sodium::XS->secretstream(primitive => 'xchacha20poly1305');
lib/Crypt/Sodium/XS/secretstream.pm view on Meta::CPAN
Ratcheting: at any point in the stream, it is possible to "forget" the key used
to encrypt the previous messages, and switch to a new key.
=back
L<Crypt::Sodium::XS::secretstream> can be used to securely send an ordered
sequence of messages to a peer. Since the length of the stream is not limited,
it can also be used to encrypt files regardless of their size.
It transparently generates nonces and automatically handles key rotation.
=head1 FUNCTIONS
Nothing is exported by default. L<Crypt::Sodium::XS::secretstream>, like
libsodium, supports only the primitive-specific functions for one primitive.
There is a single C<:xchacha20poly1305> import tag for the functions and
constants listed below.
=head2 secretstream_xchacha20poly1305_init_decrypt
( run in 0.397 second using v1.01-cache-2.11-cpan-0a6323c29d9 )