NAME

Crypt::Misty1

ABSTRACT

Misty1 is a 128-bit key, 64-bit block cipher. Designed by Mitsuru Matsui, the inventor of linear cryptanalysis, Misty1 is the first cipher that is provably secure against linear and differential cryptanalysis. Read RFC 2994 for more details.

In January of 2000, the 3GPP consortium selected a variant of Misty1, dubbed as KASUMI (the Japanese word for ``misty''), as the mandatory cipher in W-CDMA.

SYNOPSIS

1234567890123456789012345678901234567890123456789012345678901234567890

EXAMPLE

#!/usr/local/bin/perl

use diagnostics;
use strict;
use warnings;
use Crypt::Misty1;

my $key = "0123456789abcdef";   # key must be 16 bytes long
my $cipher = new Crypt::Misty1 $key;

print "blocksize = ", $cipher->blocksize, " bytes \n";
print "keysize = ", $cipher->keysize, " bytes \n";

my $plaintext1 = "Testing1";    # block must be 8 bytes long
my $ciphertext = $cipher->encrypt($plaintext1);
my $plaintext2 = $cipher->decrypt($ciphertext);

print "Decryption OK\n" if ($plaintext1 eq $plaintext2);

AUTHOR

Julius C. Duque, <jcduque (AT) lycos (DOT) com>

COPYRIGHT AND LICENSE

Copyright 2003 by Julius C. Duque

This library is free software; you can redistribute it and/or modify it under the same terms as the GNU General Public License.