-
-
24 Aug 2017 05:51:41 UTC
- Distribution: Net-SSH-Perl
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Issues (62)
- Testers (2207 / 0 / 0)
- Kwalitee
Bus factor: 2- 47.96% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (250.94KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Crypt::Curve25519
- Crypt::IDEA
- CryptX
- IO::Socket
- Math::GMP
- Scalar::Util
- String::CRC32
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::SSH::Perl::Cipher::ChachaPoly - provides Chacha20 encryption with Poly1305 Authentication support for Net::SSH::Perl.
SYNOPSIS
use Net::SSH::Perl::Cipher; my $eight_byte_iv = pack('N',0) . pack('N',1); my $eight_byte_counter = chr(1) . 7 x "\0"; # little endian my $cipher = Net::SSH::Perl::Cipher->new('ChachaPoly', $key); # generate poly key $cipher->ivsetup($eight_byte_iv,undef); my $poly_key = "\0" x POLY1305_KEYLEN; # 32 byte key $poly_key = $ciph->encrypt($poly_key); $cipher->ivsetup($eight_byte_iv,$eight_byte_counter); my $enc = $cipher->encrypt($plaintext); my $tag = $cipher->poly1305($enc,$poly_key);
DESCRIPTION
Net::SSH::Perl::Cipher::Chacha provides Chacha20 encryption with Poly1305 support for Net::SSH::Perl.
This module requires Crypt::OpenSSH::ChachaPoly which provides a wrapper to the OpenSSH Chacha and Poly1305 functions.
AUTHOR & COPYRIGHTS
Lance Kinley E<lkinley@loyaltymethods.com>
Copyright (c) 2015 Loyalty Methods, Inc.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 149:
Unknown E content in E<lkinley@loyaltymethods.com>
Module Install Instructions
To install Net::SSH::Perl, copy and paste the appropriate command in to your terminal.
cpanm Net::SSH::Perl
perl -MCPAN -e shell install Net::SSH::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.