1Crypt::DES_EDE3(3)    User Contributed Perl Documentation   Crypt::DES_EDE3(3)
2
3
4

NAME

6       Crypt::DES_EDE3 - Triple-DES EDE encryption/decryption
7

SYNOPSIS

9           use Crypt::DES_EDE3;
10           my $ede3 = Crypt::DES_EDE3->new($key);
11           $ede3->encrypt($block);
12

DESCRIPTION

14       Crypt::DES_EDE3 implements DES-EDE3 encryption. This is triple-DES
15       encryption where an encrypt operation is encrypt-decrypt-encrypt, and
16       decrypt is decrypt-encrypt-decrypt. This implementation uses Crypt::DES
17       to do its dirty DES work, and simply provides a wrapper around that
18       module: setting up the individual DES ciphers, initializing the keys,
19       and performing the encryption/decryption steps.
20
21       DES-EDE3 encryption requires a key size of 24 bytes.
22
23       You're probably best off not using this module directly, as the encrypt
24       and decrypt methods expect 8-octet blocks. You might want to use the
25       module in conjunction with Crypt::CBC, for example. This would be
26       DES-EDE3-CBC, or triple-DES in outer CBC mode.
27

USAGE

29       $ede3 = Crypt::DES_EDE3->new($key)
30
31       Creates a new Crypt::DES_EDE3 object (really, a collection of three DES
32       ciphers), and initializes each cipher with part of $key, which should
33       be at least 24 bytes. If it's longer than 24 bytes, the extra bytes
34       will be ignored.
35
36       Returns the new object.
37
38       $ede3->encrypt($block)
39
40       Encrypts an 8-byte block of data $block using the three DES ciphers in
41       an encrypt-decrypt-encrypt operation.
42
43       Returns the encrypted block.
44
45       $ede3->decrypt($block)
46
47       Decrypts an 8-byte block of data $block using the three DES ciphers in
48       a decrypt-encrypt-decrypt operation.
49
50       Returns the decrypted block.
51
52       $ede3->blocksize
53
54       Returns the block size (8).
55
56       $ede3->keysize
57
58       Returns the key size (24).
59

LICENSE

61       Crypt::DES_EDE3 is free software; you may redistribute it and/or modify
62       it under the same terms as Perl itself.
63

AUTHOR & COPYRIGHTS

65       Crypt::DES_EDE3 is Copyright 2001 Benjamin Trott, ben@rhumba.pair.com.
66       All rights reserved.
67
68
69
70perl v5.8.8                       2001-09-14                Crypt::DES_EDE3(3)
Impressum