1Crypt::Cipher::SkipjackU(s3e)r Contributed Perl DocumentaCtriyopnt::Cipher::Skipjack(3)
2
3
4

NAME

6       Crypt::Cipher::Skipjack - Symmetric cipher Skipjack, key size: 80 bits
7

SYNOPSIS

9         ### example 1
10         use Crypt::Mode::CBC;
11
12         my $key = '...'; # length has to be valid key size for this cipher
13         my $iv = '...';  # 16 bytes
14         my $cbc = Crypt::Mode::CBC->new('Skipjack');
15         my $ciphertext = $cbc->encrypt("secret data", $key, $iv);
16
17         ### example 2 (slower)
18         use Crypt::CBC;
19         use Crypt::Cipher::Skipjack;
20
21         my $key = '...'; # length has to be valid key size for this cipher
22         my $iv = '...';  # 16 bytes
23         my $cbc = Crypt::CBC->new( -cipher=>'Cipher::Skipjack', -key=>$key, -iv=>$iv );
24         my $ciphertext = $cbc->encrypt("secret data");
25

DESCRIPTION

27       This module implements the Skipjack cipher. Provided interface is
28       compliant with Crypt::CBC module.
29
30       BEWARE: This module implements just elementary
31       "one-block-(en|de)cryption" operation - if you want to encrypt/decrypt
32       generic data you have to use some of the cipher block modes - check for
33       example Crypt::Mode::CBC, Crypt::Mode::CTR or Crypt::CBC (which will be
34       slower).
35

METHODS

37   new
38        $c = Crypt::Cipher::Skipjack->new($key);
39        #or
40        $c = Crypt::Cipher::Skipjack->new($key, $rounds);
41
42   encrypt
43        $ciphertext = $c->encrypt($plaintext);
44
45   decrypt
46        $plaintext = $c->decrypt($ciphertext);
47
48   keysize
49         $c->keysize;
50         #or
51         Crypt::Cipher::Skipjack->keysize;
52         #or
53         Crypt::Cipher::Skipjack::keysize;
54
55   blocksize
56         $c->blocksize;
57         #or
58         Crypt::Cipher::Skipjack->blocksize;
59         #or
60         Crypt::Cipher::Skipjack::blocksize;
61
62   max_keysize
63         $c->max_keysize;
64         #or
65         Crypt::Cipher::Skipjack->max_keysize;
66         #or
67         Crypt::Cipher::Skipjack::max_keysize;
68
69   min_keysize
70         $c->min_keysize;
71         #or
72         Crypt::Cipher::Skipjack->min_keysize;
73         #or
74         Crypt::Cipher::Skipjack::min_keysize;
75
76   default_rounds
77         $c->default_rounds;
78         #or
79         Crypt::Cipher::Skipjack->default_rounds;
80         #or
81         Crypt::Cipher::Skipjack::default_rounds;
82

SEE ALSO

84       •   CryptX, Crypt::Cipher
85
86       •   <https://en.wikipedia.org/wiki/Skipjack_(cipher)>
87
88
89
90perl v5.34.0                      2022-02-14        Crypt::Cipher::Skipjack(3)
Impressum