1IDEA(3)               User Contributed Perl Documentation              IDEA(3)
2
3
4

NAME

6       IDEA - Perl interface to IDEA block cipher
7

SYNOPSIS

9           use Crypt::IDEA;
10

DESCRIPTION

12       This perl extension is an implementation of the IDEA block cipher
13       algorithm.  The module implements the Crypt::BlockCipher interface,
14       which has the following methods
15
16       blocksize =item keysize =item encrypt =item decrypt
17

FUNCTIONS

19       blocksize
20           Returns the size (in bytes) of the block cipher.
21
22       keysize
23           Returns the size (in bytes) of the key.
24
25       new
26                   my $cipher = new IDEA $key;
27
28           This creates a new IDEA BlockCipher object, using $key, where $key
29           is a key of "keysize()" bytes.
30
31       encrypt
32                   my $cipher = new IDEA $key;
33                   my $ciphertext = $cipher->encrypt($plaintext);
34
35           This function encrypts $plaintext and returns the $ciphertext where
36           $plaintext and $ciphertext should be of "blocksize()" bytes.
37
38       decrypt
39                   my $cipher = new IDEA $key;
40                   my $plaintext = $cipher->decrypt($ciphertext);
41
42           This function decrypts $ciphertext and returns the $plaintext where
43           $plaintext and $ciphertext should be of "blocksize()" bytes.
44

EXAMPLE

46               my $key = pack("H32", "0123456789ABCDEF0123456789ABCDEF");
47               my $cipher = new IDEA $key;
48               my $ciphertext = $cipher->encrypt("plaintex");  # NB - 8 bytes
49               print unpack("H16", $ciphertext), "\n";
50

SEE ALSO

52       Crypt::CBD, Crypt::DES, Crypt::Blowfish
53
54       Bruce Schneier, Applied Cryptography, 1995, Second Edition, published
55       by John Wiley & Sons, Inc.
56
58       This implementation is copyright Systemics Ltd (
59       http://www.systemics.com/ ).
60
61       The IDEA algorithm is patented in Europe and the United States by
62       Ascom-Tech AG.
63
64       Module altered between 1999 and 2005  to allow added functionality with
65       perl -MCPAN, Changes by Dave Paris  (edited lib paths, endian issues,
66       new tests).
67
68       Thank you to contributors for endian patches and new test suite!
69
70
71
72perl v5.32.0                      2020-07-28                           IDEA(3)
Impressum