1Net::SSH::Perl::Cipher:U:sDeErS3C(o3n)tributed Perl DocuNmeetn:t:aStSiHo:n:Perl::Cipher::DES3(3)
2
3
4

NAME

6       Net::SSH::Perl::Cipher::DES3 - Wrapper for SSH 3DES support
7

SYNOPSIS

9           use Net::SSH::Perl::Cipher;
10           my $cipher = Net::SSH::Perl::Cipher->new('DES3', $key);
11           print $cipher->encrypt($plaintext);
12

DESCRIPTION

14       Net::SSH::Perl::Cipher::DES3 provides 3DES encryption support for
15       Net::SSH::Perl. To do so it wraps around Crypt::Cipher::DES, the CryptX
16       implementation of the DES algorithm.
17
18       The 3DES (three-key triple-DES) algorithm used here differs based on
19       the SSH protocol being used. SSH1 uses 3DES in inner CBC mode, meaning
20       that there are three CBC objects, and each CBC object is paired with a
21       DES object and key.
22
23       SSH2 uses 3DES in outer CBC mode; this uses one CBC object wrapped
24       around a DES-EDE3 object (also included in this library); that object
25       contains three DES ciphers with three different keys. Each encrypt
26       operation is actually encrypt-decrypt-encrypt with the three DES keys;
27       decrypt is actually decrypt-encrypt-decrypt with the DES keys.
28
29       The key length for both implementations is 24 bytes.  The first 8 bytes
30       of the key are used as the first DES key, the second 8 bytes for the
31       second key, etc. If the key $key that you pass to new is only 16 bytes,
32       the first 8 bytes of $key will be used as the key for both the first
33       and third DES ciphers.
34

AUTHOR & COPYRIGHTS

36       Please see the Net::SSH::Perl manpage for author, copyright, and
37       license information.
38
39
40
41perl v5.28.0                      2017-08-24   Net::SSH::Perl::Cipher::DES3(3)
Impressum