1Crypt::Stream::SosemanuUks(e3r)Contributed Perl DocumentCartyipotn::Stream::Sosemanuk(3)
2
3
4

NAME

6       Crypt::Stream::Sosemanuk - Stream cipher Sosemanuk
7

SYNOPSIS

9          use Crypt::Stream::Sosemanuk;
10
11          # encrypt
12          $key = "1234567890123456";
13          $iv  = "123456789012";
14          $stream = Crypt::Stream::Sosemanuk->new($key, $iv);
15          $ct = $stream->crypt("plain message");
16
17          # decrypt
18          $key = "1234567890123456";
19          $iv  = "123456789012";
20          $stream = Crypt::Stream::Sosemanuk->new($key, $iv);
21          $pt = $stream->crypt($ct);
22

DESCRIPTION

24       Provides an interface to the Sosemanuk stream cipher.
25

METHODS

27   new
28        $stream = Crypt::Stream::Sosemanuk->new($key, $iv);
29        # $key .. keylen must be multiple of 4 bytes
30        # $iv  .. ivlen must be multiple of 4 bytes (OPTIONAL)
31
32   crypt
33        $ciphertext = $stream->crypt($plaintext);
34        #or
35        $plaintext = $stream->crypt($ciphertext);
36
37   keystream
38        $random_key = $stream->keystream($length);
39
40   clone
41        $stream->clone();
42

SEE ALSO

44       •   Crypt::Stream::RC4, Crypt::Stream::ChaCha, Crypt::Stream::Salsa20,
45           Crypt::Stream::Sober128
46
47       •   <https://en.wikipedia.org/wiki/SOSEMANUK>
48
49
50
51perl v5.34.0                      2022-02-14       Crypt::Stream::Sosemanuk(3)
Impressum