NAME
Crypt::OpenSSH::ChachaPoly - Wrapper for OpenSSH Chacha20 and Poly1305 crypto functions
SYNOPSIS
use Crypt::OpenSSH::ChachaPoly;
my $c = Crypt::OpenSSH::ChachaPoly->new($key);
# set up IV with 8 byte IV and little endian 8 byte counter
$c->ivsetup($iv,$counter);
my $enc = $c->encrypt($plaintext);
# poly_key needs to be 32 bytes long
# in openssh, poly key is derived from encrypting a 32 byte zero value
# with chacha20 using the packet sequence number as IV and a NULL (undef) counter.
my $tag = $c->poly1305($enc,$poly_key)
DESCRIPTION
This module provides and interface to the OpenSSH Chacha20 and Poly1305 functions. It may not be very useful for anything other than its intended purpose of adding Chacha20-Poly1305 functionality to Net::SSH::Perl.
EXPORT
None by default.
SEE ALSO
Git Hub home for this module: https://github.com/lkinley/Crypt-OpenSSH-ChachaPoly
AUTHOR
Lance Kinley, E<lkinley@loyaltymethods.comE>
COPYRIGHT AND LICENSE
Copyright (C) 2015 by Lance Kinley/Loyalty Methods, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 71:
Unknown E content in E<lkinley@loyaltymethods.comE>