Crypt::OpenSSH::ChachaPoly - Wrapper for OpenSSH Chacha20 and Poly1305 crypto functions
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)
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.
None by default.
Git Hub home for this module: https://github.com/lkinley/Crypt-OpenSSH-ChachaPoly
Lance Kinley, E<email@example.comE>
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<firstname.lastname@example.orgE>