TOC 
Network Working GroupJ. Strömbergson
Internet-DraftInformAsic AB
Intended status: InformationalS. Josefsson
Expires: November 5, 2010Simon Josefsson Datakonsult AB
 May 4, 2010


Test vectors for the stream cipher RC4
draft-josefsson-rc4-test-vectors-00

Abstract

This document contains test vectors for the stream cipher RC4.

Status of this Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress.”

This Internet-Draft will expire on November 5, 2010.

Copyright Notice

Copyright (c) 2010 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.



Table of Contents

1.  Introduction
2.  Test vectors for RC4
3.  Security Considerations
4.  IANA Considerations
5.  Copying conditions
6.  References
    6.1.  Normative References
    6.2.  Informative References
§  Authors' Addresses




 TOC 

1.  Introduction

The RC4 (Schneier, B., “Applied Cryptography, second edition, section 17.1, page 397,” .) [RC4] algorithm is a widely used stream cipher. Test vectors for algorithms are useful for implementers. The RC4 cipher can use different key lengths. Advances in crypto-analysis [FMcG] (Fluhrer, S. and D. McGrew, “Statistical Analysis of the Alleged RC4 Keystream Generator,” .) [MANTIN01] (Mantin, I., “Analysis of the Stream Cipher RC4,” .) [MIRONOV] (Mantin, I., “(Not So) Random Shuffles of RC4,” .) [MANTIN05] (Mantin, I., “Predicting and Distinguishing Attacks on RC4 Keystream Generator,” .) suggests that initial parts of the stream output needs to be discarded. This document contains several test vectors for different key lengths and for different offsets in the stream.

Motivation for this document arose from implementation of [RFC4345] (Harris, B., “Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer Protocol,” January 2006.).

The test vectors provided in this document has been collected by generating keystream output from three separate implementations and comparing the streams: Libgcrypt 1.4.4 [LIBGCRYPT] (Koch, W., “Libgcrypt, version 1.4.4,” .), Nettle [NETTLE] (Möller, N., “Nettle, version 2.0,” .), and a custom implementation.

The document contains test vectors for two different keys:

Key 1: The key byte index (starting on one), that is: 0x01, 0x02, 0x03, 0x04,...

Key 2: Generated by hashing the string "Internet Engineering Task Force" with the SHA-256 [FIPS.180‑2.2002] (National Institute of Standards and Technology, “Secure Hash Standard,” August 2002.) [RFC4634] (Eastlake, D. and T. Hansen, “US Secure Hash Algorithms (SHA and HMAC-SHA),” July 2006.) hash function, using the following command:

   $ echo "Internet Engineering Task Force" | sha256sum
   449c0c9595aadff9cc800a045e1939260b3a34df2f6f5e3d901df7cd5694817d

The digest generated is then truncated to the appropriate length.

The key lengths used in this document are 40, 56, 64, 80, 128, 192 and 256 bits respectively. The stream offsets used in this document are 0, 256, 512, 768, 1024, 1536, 2048, 3072 and 4096 Bytes respectively.



 TOC 

2.  Test vectors for RC4

Key length: 40 bits.
key: 0x0102030405

DEC    0 HEX    0:  b2 39 63 05  f0 3d c0 27   cc c3 52 4a  0a 11 18 a8
DEC   16 HEX   10:  69 82 94 4f  18 fc 82 d5   89 c4 03 a4  7a 0d 09 19
DEC  240 HEX   f0:  28 cb 11 32  c9 6c e2 86   42 1d ca ad  b8 b6 9e ae
DEC  256 HEX  100:  1c fc f6 2b  03 ed db 64   1d 77 df cf  7f 8d 8c 93
DEC  496 HEX  1f0:  42 b7 d0 cd  d9 18 a8 a3   3d d5 17 81  c8 1f 40 41
DEC  512 HEX  200:  64 59 84 44  32 a7 da 92   3c fb 3e b4  98 06 61 f6
DEC  752 HEX  2f0:  ec 10 32 7b  de 2b ee fd   18 f9 27 76  80 45 7e 22
DEC  768 HEX  300:  eb 62 63 8d  4f 0b a1 fe   9f ca 20 e0  5b f8 ff 2b
DEC 1008 HEX  3f0:  45 12 90 48  e6 a0 ed 0b   56 b4 90 33  8f 07 8d a5
DEC 1024 HEX  400:  30 ab bc c7  c2 0b 01 60   9f 23 ee 2d  5f 6b b7 df
DEC 1520 HEX  5f0:  32 94 f7 44  d8 f9 79 05   07 e7 0f 62  e5 bb ce ea
DEC 1536 HEX  600:  d8 72 9d b4  18 82 25 9b   ee 4f 82 53  25 f5 a1 30
DEC 2032 HEX  7f0:  1e b1 4a 0c  13 b3 bf 47   fa 2a 0b a9  3a d4 5b 8b
DEC 2048 HEX  800:  cc 58 2f 8b  a9 f2 65 e2   b1 be 91 12  e9 75 d2 d7
DEC 3056 HEX  bf0:  f2 e3 0f 9b  d1 02 ec bf   75 aa ad e9  bc 35 c4 3c
DEC 3072 HEX  c00:  ec 0e 11 c4  79 dc 32 9d   c8 da 79 68  fe 96 56 81
Key length: 56 bits.
key: 0x01020304050607

DEC    0 HEX    0:  29 3f 02 d4  7f 37 c9 b6   33 f2 af 52  85 fe b4 6b
DEC   16 HEX   10:  e6 20 f1 39  0d 19 bd 84   e2 e0 fd 75  20 31 af c1
DEC  240 HEX   f0:  91 4f 02 53  1c 92 18 81   0d f6 0f 67  e3 38 15 4c
DEC  256 HEX  100:  d0 fd b5 83  07 3c e8 5a   b8 39 17 74  0e c0 11 d5
DEC  496 HEX  1f0:  75 f8 14 11  e8 71 cf fa   70 b9 0c 74  c5 92 e4 54
DEC  512 HEX  200:  0b b8 72 02  93 8d ad 60   9e 87 a5 a1  b0 79 e5 e4
DEC  752 HEX  2f0:  c2 91 12 46  b6 12 e7 e7   b9 03 df ed  a1 da d8 66
DEC  768 HEX  300:  32 82 8f 91  50 2b 62 91   36 8d e8 08  1d e3 6f c2
DEC 1008 HEX  3f0:  f3 b9 a7 e3  b2 97 bf 9a   d8 04 51 2f  90 63 ef f1
DEC 1024 HEX  400:  8e cb 67 a9  ba 1f 55 a5   a0 67 e2 b0  26 a3 67 6f
DEC 1520 HEX  5f0:  d2 aa 90 2b  d4 2d 0d 7c   fd 34 0c d4  58 10 52 9f
DEC 1536 HEX  600:  78 b2 72 c9  6e 42 ea b4   c6 0b d9 14  e3 9d 06 e3
DEC 2032 HEX  7f0:  f4 33 2f d3  1a 07 93 96   ee 3c ee 3f  2a 4f f0 49
DEC 2048 HEX  800:  05 45 97 81  d4 1f da 7f   30 c1 be 7e  12 46 c6 23
DEC 3056 HEX  bf0:  ad fd 38 68  b8 e5 14 85   d5 e6 10 01  7e 3d d6 09
DEC 3072 HEX  c00:  ad 26 58 1c  0c 5b e4 5f   4c ea 01 db  2f 38 05 d5
Key length: 64 bits.
key: 0x0102030405060708

DEC    0 HEX    0:  97 ab 8a 1b  f0 af b9 61   32 f2 f6 72  58 da 15 a8
DEC   16 HEX   10:  82 63 ef db  45 c4 a1 86   84 ef 87 e6  b1 9e 5b 09
DEC  240 HEX   f0:  96 36 eb c9  84 19 26 f4   f7 d1 f3 62  bd df 6e 18
DEC  256 HEX  100:  d0 a9 90 ff  2c 05 fe f5   b9 03 73 c9  ff 4b 87 0a
DEC  496 HEX  1f0:  73 23 9f 1d  b7 f4 1d 80   b6 43 c0 c5  25 18 ec 63
DEC  512 HEX  200:  16 3b 31 99  23 a6 bd b4   52 7c 62 61  26 70 3c 0f
DEC  752 HEX  2f0:  49 d6 c8 af  0f 97 14 4a   87 df 21 d9  14 72 f9 66
DEC  768 HEX  300:  44 17 3a 10  3b 66 16 c5   d5 ad 1c ee  40 c8 63 d0
DEC 1008 HEX  3f0:  27 3c 9c 4b  27 f3 22 e4   e7 16 ef 53  a4 7d e7 a4
DEC 1024 HEX  400:  c6 d0 e7 b2  26 25 9f a9   02 34 90 b2  61 67 ad 1d
DEC 1520 HEX  5f0:  1f e8 98 67  13 f0 7c 3d   9a e1 c1 63  ff 8c f9 d3
DEC 1536 HEX  600:  83 69 e1 a9  65 61 0b e8   87 fb d0 c7  91 62 aa fb
DEC 2032 HEX  7f0:  0a 01 27 ab  b4 44 84 b9   fb ef 5a bc  ae 1b 57 9f
DEC 2048 HEX  800:  c2 cd ad c6  40 2e 8e e8   66 e1 f3 7b  db 47 e4 2c
DEC 3056 HEX  bf0:  26 b5 1e a3  7d f8 e1 d6   f7 6f c3 b6  6a 74 29 b3
DEC 3072 HEX  c00:  bc 76 83 20  5d 4f 44 3d   c1 f2 9d da  33 15 c8 7b
Key length: 80 bits.
key: 0x0102030405060708090a

DEC    0 HEX    0:  ed e3 b0 46  43 e5 86 cc   90 7d c2 18  51 70 99 02
DEC   16 HEX   10:  03 51 6b a7  8f 41 3b eb   22 3a a5 d4  d2 df 67 11
DEC  240 HEX   f0:  3c fd 6c b5  8e e0 fd de   64 01 76 ad  00 00 04 4d
DEC  256 HEX  100:  48 53 2b 21  fb 60 79 c9   11 4c 0f fd  9c 04 a1 ad
DEC  496 HEX  1f0:  3e 8c ea 98  01 71 09 97   90 84 b1 ef  92 f9 9d 86
DEC  512 HEX  200:  e2 0f b4 9b  db 33 7e e4   8b 8d 8d c0  f4 af ef fe
DEC  752 HEX  2f0:  5c 25 21 ea  cd 79 66 f1   5e 05 65 44  be a0 d3 15
DEC  768 HEX  300:  e0 67 a7 03  19 31 a2 46   a6 c3 87 5d  2f 67 8a cb
DEC 1008 HEX  3f0:  a6 4f 70 af  88 ae 56 b6   f8 75 81 c0  e2 3e 6b 08
DEC 1024 HEX  400:  f4 49 03 1d  e3 12 81 4e   c6 f3 19 29  1f 4a 05 16
DEC 1520 HEX  5f0:  bd ae 85 92  4b 3c b1 d0   a2 e3 3a 30  c6 d7 95 99
DEC 1536 HEX  600:  8a 0f ed db  ac 86 5a 09   bc d1 27 fb  56 2e d6 0a
DEC 2032 HEX  7f0:  b5 5a 0a 5b  51 a1 2a 8b   e3 48 99 c3  e0 47 51 1a
DEC 2048 HEX  800:  d9 a0 9c ea  3c e7 5f e3   96 98 07 03  17 a7 13 39
DEC 3056 HEX  bf0:  55 22 25 ed  11 77 f4 45   84 ac 8c fa  6c 4e b5 fc
DEC 3072 HEX  c00:  7e 82 cb ab  fc 95 38 1b   08 09 98 44  21 29 c2 f8
Key length: 128 bits.
key: 0x0102030405060708090a0b0c0d0e0f10

DEC    0 HEX    0:  9a c7 cc 9a  60 9d 1e f7   b2 93 28 99  cd e4 1b 97
DEC   16 HEX   10:  52 48 c4 95  90 14 12 6a   6e 8a 84 f1  1d 1a 9e 1c
DEC  240 HEX   f0:  06 59 02 e4  b6 20 f6 cc   36 c8 58 9f  66 43 2f 2b
DEC  256 HEX  100:  d3 9d 56 6b  c6 bc e3 01   07 68 15 15  49 f3 87 3f
DEC  496 HEX  1f0:  b6 d1 e6 c4  a5 e4 77 1c   ad 79 53 8d  f2 95 fb 11
DEC  512 HEX  200:  c6 8c 1d 5c  55 9a 97 41   23 df 1d bc  52 a4 3b 89
DEC  752 HEX  2f0:  c5 ec f8 8d  e8 97 fd 57   fe d3 01 70  1b 82 a2 59
DEC  768 HEX  300:  ec cb e1 3d  e1 fc c9 1c   11 a0 b2 6c  0b c8 fa 4d
DEC 1008 HEX  3f0:  e7 a7 25 74  f8 78 2a e2   6a ab cf 9e  bc d6 60 65
DEC 1024 HEX  400:  bd f0 32 4e  60 83 dc c6   d3 ce dd 3c  a8 c5 3c 16
DEC 1520 HEX  5f0:  b4 01 10 c4  19 0b 56 22   a9 61 16 b0  01 7e d2 97
DEC 1536 HEX  600:  ff a0 b5 14  64 7e c0 4f   63 06 b8 92  ae 66 11 81
DEC 2032 HEX  7f0:  d0 3d 1b c0  3c d3 3d 70   df f9 fa 5d  71 96 3e bd
DEC 2048 HEX  800:  8a 44 12 64  11 ea a7 8b   d5 1e 8d 87  a8 87 9b f5
DEC 3056 HEX  bf0:  fa be b7 60  28 ad e2 d0   e4 87 22 e4  6c 46 15 a3
DEC 3072 HEX  c00:  c0 5d 88 ab  d5 03 57 f9   35 a6 3c 59  ee 53 76 23
Key length: 192 bits.
key: 0x0102030405060708090a0b0c0d0e0f101112131415161718

DEC    0 HEX    0:  05 95 e5 7f  e5 f0 bb 3c   70 6e da c8  a4 b2 db 11
DEC   16 HEX   10:  df de 31 34  4a 1a f7 69   c7 4f 07 0a  ee 9e 23 26
DEC  240 HEX   f0:  b0 6b 9b 1e  19 5d 13 d8   f4 a7 99 5c  45 53 ac 05
DEC  256 HEX  100:  6b d2 37 8e  c3 41 c9 a4   2f 37 ba 79  f8 8a 32 ff
DEC  496 HEX  1f0:  e7 0b ce 1d  f7 64 5a db   5d 2c 41 30  21 5c 35 22
DEC  512 HEX  200:  9a 57 30 c7  fc b4 c9 af   51 ff da 89  c7 f1 ad 22
DEC  752 HEX  2f0:  04 85 05 5f  d4 f6 f0 d9   63 ef 5a b9  a5 47 69 82
DEC  768 HEX  300:  59 1f c6 6b  cd a1 0e 45   2b 03 d4 55  1f 6b 62 ac
DEC 1008 HEX  3f0:  27 53 cc 83  98 8a fa 3e   16 88 a1 d3  b4 2c 9a 02
DEC 1024 HEX  400:  93 61 0d 52  3d 1d 3f 00   62 b3 c2 a3  bb c7 c7 f0
DEC 1520 HEX  5f0:  96 c2 48 61  0a ad ed fe   af 89 78 c0  3d e8 20 5a
DEC 1536 HEX  600:  0e 31 7b 3d  1c 73 b9 e9   a4 68 8f 29  6d 13 3a 19
DEC 2032 HEX  7f0:  bd f0 e6 c3  cc a5 b5 b9   d5 33 b6 9c  56 ad a1 20
DEC 2048 HEX  800:  88 a2 18 b6  e2 ec e1 e6   24 6d 44 c7  59 d1 9b 10
DEC 3056 HEX  bf0:  68 66 39 7e  95 c1 40 53   4f 94 26 34  21 00 6e 40
DEC 3072 HEX  c00:  32 cb 0a 1e  95 42 c6 b3   b8 b3 98 ab  c3 b0 f1 d5
Key length: 256 bits.
key: 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20

DEC    0 HEX    0:  ea a6 bd 25  88 0b f9 3d   3f 5d 1e 4c  a2 61 1d 91
DEC   16 HEX   10:  cf a4 5c 9f  7e 71 4b 54   bd fa 80 02  7c b1 43 80
DEC  240 HEX   f0:  11 4a e3 44  de d7 1b 35   f2 e6 0f eb  ad 72 7f d8
DEC  256 HEX  100:  02 e1 e7 05  6b 0f 62 39   00 49 64 22  94 3e 97 b6
DEC  496 HEX  1f0:  91 cb 93 c7  87 96 4e 10   d9 52 7d 99  9c 6f 93 6b
DEC  512 HEX  200:  49 b1 8b 42  f8 e8 36 7c   be b5 ef 10  4b a1 c7 cd
DEC  752 HEX  2f0:  87 08 4b 3b  a7 00 ba de   95 56 10 67  27 45 b3 74
DEC  768 HEX  300:  e7 a7 b9 e9  ec 54 0d 5f   f4 3b db 12  79 2d 1b 35
DEC 1008 HEX  3f0:  c7 99 b5 96  73 8f 6b 01   8c 76 c7 4b  17 59 bd 90
DEC 1024 HEX  400:  7f ec 5b fd  9f 9b 89 ce   65 48 30 90  92 d7 e9 58
DEC 1520 HEX  5f0:  40 f2 50 b2  6d 1f 09 6a   4a fd 4c 34  0a 58 88 15
DEC 1536 HEX  600:  3e 34 13 5c  79 db 01 02   00 76 76 51  cf 26 30 73
DEC 2032 HEX  7f0:  f6 56 ab cc  f8 8d d8 27   02 7b 2c e9  17 d4 64 ec
DEC 2048 HEX  800:  18 b6 25 03  bf bc 07 7f   ba bb 98 f2  0d 98 ab 34
DEC 3056 HEX  bf0:  8a ed 95 ee  5b 0d cb fb   ef 4e b2 1d  3a 3f 52 f9
DEC 3072 HEX  c00:  62 5a 1a b0  0e e3 9a 53   27 34 6b dd  b0 1a 9c 18
Key length: 40 bits.
key: 0xcd5694817d

DEC    0 HEX    0:  cc d9 d7 ab  e9 33 73 1c   ed d0 6f 5a  c4 ee 47 d0
DEC   16 HEX   10:  9d 04 1f 30  6c 16 9d 55   11 f9 85 44  81 da 70 11
DEC  240 HEX   f0:  90 00 07 85  d7 8c 43 2d   4f d7 fa 5c  ca da 9f a7
DEC  256 HEX  100:  76 b6 91 10  12 89 d0 83   72 60 c4 aa  89 18 fb d3
DEC  496 HEX  1f0:  30 e9 3e 42  53 92 f4 b7   07 16 c2 e6  c3 be ff 2e
DEC  512 HEX  200:  58 59 8a 50  e6 95 b6 5f   57 ce 0b db  65 18 ed 29
DEC  752 HEX  2f0:  c1 37 a6 5e  82 2c 3c 18   15 81 1c b4  ee aa ef ff
DEC  768 HEX  300:  3c 65 c9 21  39 54 59 15   4e 63 94 18  51 f5 c8 90
DEC 1008 HEX  3f0:  36 87 59 42  a9 11 f1 3e   06 44 b9 60  e7 11 25 19
DEC 1024 HEX  400:  1b fb 23 f5  d1 ce 51 9f   83 72 43 b3  d8 89 88 a4
DEC 1520 HEX  5f0:  ce 43 2a e6  c6 f0 2c 3a   6f 77 5e 46  43 d8 af ac
DEC 1536 HEX  600:  02 d4 54 53  98 01 a9 5c   0e 2f 99 ad  a5 c6 15 df
DEC 2032 HEX  7f0:  86 d9 e4 00  6c e6 54 fe   83 47 67 89  71 67 7d 80
DEC 2048 HEX  800:  ed b6 c3 d8  ab 7e 9d 41   e4 a9 52 f2  27 dd b1 89
DEC 3056 HEX  bf0:  1e 95 d5 80  09 a7 f6 8e   2e a7 f2 13  2e 91 31 e9
DEC 3072 HEX  c00:  61 2d 5b 1e  29 55 be 69   41 3d c4 a0  5d 19 d1 b1
Key length: 56 bits.
key: 0x1df7cd5694817d

DEC    0 HEX    0:  2d de 3a 4c  40 9c 5a bf   ec 11 d2 f4  5f 85 44 ce
DEC   16 HEX   10:  ee 48 3e c3  87 b4 ee ac   c0 83 d5 79  c6 0c 35 32
DEC  240 HEX   f0:  a9 2b cb 37  dd e8 c0 41   f2 41 39 23  2a af 1e 4d
DEC  256 HEX  100:  e5 30 a1 ce  54 2f c4 87   50 d4 b9 b3  e2 b0 0e 69
DEC  496 HEX  1f0:  2d 7e b4 1d  f8 5e e6 3c   f6 97 96 d1  f3 12 6a cb
DEC  512 HEX  200:  39 01 95 f1  2c b4 91 77   27 10 c6 15  e6 ef d0 d8
DEC  752 HEX  2f0:  0a 75 79 66  46 42 c1 af   c4 44 5a c6  e3 eb f4 67
DEC  768 HEX  300:  0f aa 3c ae  4a 25 85 e2   23 32 80 82  b5 8b aa 90
DEC 1008 HEX  3f0:  ac b9 1e 11  e8 e9 af 45   da 57 de c8  7d 6f 6e 2c
DEC 1024 HEX  400:  57 d4 65 57  7a 5c a8 01   2b a9 15 91  a8 6c cc da
DEC 1520 HEX  5f0:  01 31 6f 4e  fe d6 5b 73   41 aa 87 d0  48 d4 bc 13
DEC 1536 HEX  600:  0e a3 19 a9  f5 03 08 1e   bc 92 e3 b4  f4 95 10 35
DEC 2032 HEX  7f0:  4d da 00 62  4f 58 8b c6   24 19 3c ad  67 fd 08 b1
DEC 2048 HEX  800:  06 22 0a 5a  0d cb f5 cf   0c 2c 60 82  24 4b 61 64
DEC 3056 HEX  bf0:  27 c1 79 b7  8c 45 90 7e   2a 94 89 a8  23 ab 77 bb
DEC 3072 HEX  c00:  7a 78 24 69  05 87 88 e3   95 7c 4c 76  40 59 ec 86
Key length: 64 bits.
key: 0x901df7cd5694817d

DEC    0 HEX    0:  78 40 29 b6  d1 cf bd 0d   10 78 a9 b1  cf 09 3e d4
DEC   16 HEX   10:  81 d0 25 4a  fd 1f 79 74   a0 1b 73 8b  36 5c 56 80
DEC  240 HEX   f0:  6b b7 38 7c  dc dd 0c 19   99 28 a5 76  de 9b e6 e2
DEC  256 HEX  100:  47 55 f3 b5  3b 01 5a 8c   58 53 c4 35  53 fe 94 95
DEC  496 HEX  1f0:  90 5d 9c c7  ba 4a 1c ae   c5 99 59 fd  88 39 9c 57
DEC  512 HEX  200:  16 a1 e5 a8  c9 d8 17 b0   a4 bd 73 27  83 7e 22 f6
DEC  752 HEX  2f0:  f6 54 0c dd  fb 46 16 08   b8 74 b9 f2  70 6c 20 9c
DEC  768 HEX  300:  64 24 c8 e7  46 99 c9 16   e8 21 52 00  b0 e7 b7 c5
DEC 1008 HEX  3f0:  59 a2 a3 9a  5a 89 63 2d   45 df a2 8a  5d 87 6a 38
DEC 1024 HEX  400:  53 0b 2e b7  2c 30 54 38   47 e3 61 10  fa 1d 1f 0a
DEC 1520 HEX  5f0:  37 ae 3d 36  9d da d3 c5   c8 29 e1 32  bb ab 49 c0
DEC 1536 HEX  600:  f5 ee 2a b8  32 97 b7 a2   26 44 cd 82  aa 84 19 d6
DEC 2032 HEX  7f0:  3d 8b be 2e  3e 3e 89 f3   2a c3 4a 24  63 c8 35 38
DEC 2048 HEX  800:  55 30 03 4a  55 12 c5 86   14 62 08 2b  66 26 60 19
DEC 3056 HEX  bf0:  04 e2 19 8b  00 c0 69 11   fb ec ff 6b  c8 44 92 b6
DEC 3072 HEX  c00:  ad 0f 25 51  b9 34 c4 e1   48 94 6c 40  d9 55 bc 6a
Key length: 80 bits.
key: 0x5e3d901df7cd5694817d

DEC    0 HEX    0:  1f 02 89 f1  9b db 86 3d   f4 1f d5 3d  63 bc a3 bc
DEC   16 HEX   10:  07 3e 63 28  14 f8 7d 92   12 90 e7 86  66 15 c1 c3
DEC  240 HEX   f0:  d8 8b 6a 78  21 18 b2 3f   33 20 a0 e2  11 7a 82 00
DEC  256 HEX  100:  32 8b f5 a9  ce e3 c1 46   9e af 11 a2  f7 b9 31 a9
DEC  496 HEX  1f0:  72 94 d1 b7  fa a8 7e 20   68 91 54 02  4e a1 65 31
DEC  512 HEX  200:  34 68 6d 2d  0a a5 68 79   ac e3 06 a7  5c fa fd 80
DEC  752 HEX  2f0:  e2 f0 87 69  c9 56 a9 58   99 f8 06 bf  36 e4 f5 ea
DEC  768 HEX  300:  79 dd ef e5  cc 15 bf 7c   77 7f a1 b9  14 45 1e 67
DEC 1008 HEX  3f0:  ce fd 05 26  5a 3f a1 94   ff ff e6 4c  82 11 04 ac
DEC 1024 HEX  400:  f3 c9 87 5a  1a 34 90 84   4d 80 eb 36  2f 0e 73 d7
DEC 1520 HEX  5f0:  a2 cb ce cc  e3 be a9 00   c3 19 5e 7e  5b ce 3a 14
DEC 1536 HEX  600:  49 4b e3 2e  92 01 c1 e6   ea b6 04 88  b6 e3 c3 10
DEC 2032 HEX  7f0:  4a c7 d3 b0  7b bc b8 9a   6f 81 89 9f  9c 86 d3 73
DEC 2048 HEX  800:  44 84 b9 84  4e ad 68 e2   6a 3c ec ee  e6 24 e6 a9
DEC 3056 HEX  bf0:  54 68 b7 3f  bd b7 5b 2f   02 c4 0a cd  75 b0 6b 86
DEC 3072 HEX  c00:  53 a1 56 54  2f ee 0f ba   45 41 05 48  9d 9f cc 6e
Key length: 128 bits.
key: 0x0b3a34df2f6f5e3d901df7cd5694817d

DEC    0 HEX    0:  b9 9c 43 20  9c 4b ae 0b   c0 34 d4 98  ac 44 92 e9
DEC   16 HEX   10:  fa cf ae b7  62 50 d6 42   74 f4 a1 c3  af 52 90 c6
DEC  240 HEX   f0:  23 2f ee 3d  ca 44 3e 5e   a5 e6 99 2f  da 2f e8 a2
DEC  256 HEX  100:  8e 74 ae 36  27 5c 91 02   6c 2d e4 a0  17 53 62 fc
DEC  496 HEX  1f0:  01 d6 a0 d2  3c a1 74 be   87 76 5a e5  cf fa ab 26
DEC  512 HEX  200:  37 71 30 8b  5b 49 61 20   01 d7 0d 5e  fd ac b4 ff
DEC  752 HEX  2f0:  90 ec d9 1f  30 41 96 fa   7d 81 76 b6  9b dc 81 5f
DEC  768 HEX  300:  96 f5 ef 13  5a d8 21 e5   18 e4 13 31  a7 ae 9d 04
DEC 1008 HEX  3f0:  be 38 cf e0  1f d3 19 20   7b e9 35 9b  b8 64 ab 7a
DEC 1024 HEX  400:  8b 6d 27 23  04 40 5f cf   22 28 08 45  e9 04 bf 44
DEC 1520 HEX  5f0:  65 94 cb 38  8e 9c 5d 49   ac 8e bb a9  7a b6 2d 27
DEC 1536 HEX  600:  55 fb ee b6  d1 39 60 09   a9 73 d2 03  00 63 96 68
DEC 2032 HEX  7f0:  8d 05 6a 32  d6 bf 28 34   6d 58 a8 22  be 87 93 e0
DEC 2048 HEX  800:  6d 5c 26 36  82 27 55 78   0b da 8f ba  35 d8 a3 be
DEC 3056 HEX  bf0:  cc 2c 43 87  b2 d0 fd 31   60 d8 9d 75  f6 4f 30 97
DEC 3072 HEX  c00:  98 7f 15 f6  e9 3f 0d c1   11 5b 85 d5  d4 13 69 c1
Key length: 192 bits.
key: 0xcc800a045e1939260b3a34df2f6f5e3d901df7cd5694817d

DEC    0 HEX    0:  3f 9f da 77  95 46 b3 07   79 44 e8 04  3d ba f8 e2
DEC   16 HEX   10:  5d ba 2a ef  b1 da b3 36   0a f5 14 33  40 fb ed 86
DEC  240 HEX   f0:  54 0f b6 e1  4f 8b 8f 9c   9f a5 4c da  54 28 50 59
DEC  256 HEX  100:  40 aa d3 02  7d bd 5d d8   af 2e 43 bc  db a1 d0 87
DEC  496 HEX  1f0:  11 93 3a 8c  82 0a 45 0e   ff 0c ee d9  9d 22 3d cc
DEC  512 HEX  200:  03 5c bc 54  e7 ca 2a 85   73 12 b9 c4  b5 c5 10 96
DEC  752 HEX  2f0:  09 d9 a4 75  d2 27 e7 6f   47 22 52 e1  0c 7b c8 b8
DEC  768 HEX  300:  72 9d 42 5d  fd ee be 39   1f 81 ad 76  37 83 e0 15
DEC 1008 HEX  3f0:  fe e5 81 1f  2c 4a 5e 30   d2 65 30 ca  62 f0 c3 c1
DEC 1024 HEX  400:  24 dc 2a f9  d7 7c c1 94   1a 9d 69 ad  77 06 1c 4d
DEC 1520 HEX  5f0:  d6 ba be 8e  00 b6 e3 c6   90 3e 9f 5d  19 d0 6a a8
DEC 1536 HEX  600:  cc ac 74 55  50 bf ba b5   ce 37 aa 21  96 66 d5 42
DEC 2032 HEX  7f0:  cc a6 8e e0  b9 31 61 64   16 dd 17 e7  5b d4 49 33
DEC 2048 HEX  800:  c1 48 70 a1  3e b6 16 10   e6 cd 31 b2  7b b9 85 28
DEC 3056 HEX  bf0:  54 0e e8 79  a1 3d f7 f3   81 f1 1e 2b  15 39 74 af
DEC 3072 HEX  c00:  f6 04 d2 2e  99 3e a1 19   76 20 c5 0f  2d 0d c0 c3
Key length: 256 bits.
key: 0x449c0c9595aadff9cc800a045e1939260b3a34df2f6f5e3d901df7cd5694817d

DEC    0 HEX    0:  b4 8d f6 33  9c ae 1b 47   22 9b 58 05  f4 d9 eb 51
DEC   16 HEX   10:  8a 81 90 35  e1 0a 1a 08   68 de 17 b9  0d 7c 40 04
DEC  240 HEX   f0:  31 af db ef  3f bf 1c 23   61 1d 5b 49  ad b7 97 fa
DEC  256 HEX  100:  0d 20 ff 85  d0 e4 d1 a3   86 e5 32 b6  f6 ce 81 a7
DEC  496 HEX  1f0:  79 4b 4f 4e  53 e6 e5 31   48 9c 27 6e  74 ae 54 7f
DEC  512 HEX  200:  2d eb 0d 2d  56 f6 63 60   a2 90 c6 42  39 cc 5c 3b
DEC  752 HEX  2f0:  19 4e 75 75  17 d6 bd 95   78 61 4c 84  5d db 1c 85
DEC  768 HEX  300:  57 df 30 1e  00 38 65 64   38 fd 1c 9a  bd de 89 b4
DEC 1008 HEX  3f0:  3e 51 46 94  23 23 92 70   39 95 1e 4a  c5 24 91 e1
DEC 1024 HEX  400:  8d 9d 62 d4  b3 3e 8b ed   a3 21 ef 18  6e 3a 6b 48
DEC 1520 HEX  5f0:  57 ca 8c ba  3c 86 65 0f   51 4f 61 eb  de 52 4d 88
DEC 1536 HEX  600:  55 e8 ef 35  80 1c 40 44   5a 2c 86 ca  2d 60 ef 64
DEC 2032 HEX  7f0:  f3 85 92 63  d5 5c d5 89   c6 f5 39 c7  20 a1 f4 82
DEC 2048 HEX  800:  b0 87 e3 4f  b1 1c 76 50   95 a4 2b 18  7d 04 54 36
DEC 3056 HEX  bf0:  c0 05 35 ae  8e 71 2b 67   c5 70 af e3  af 35 d1 b5
DEC 3072 HEX  c00:  57 c2 0a 08  5e 04 c1 6f   8e 51 d0 0c  b5 de 0b 2c


 TOC 

3.  Security Considerations

None.



 TOC 

4.  IANA Considerations

None.



 TOC 

5.  Copying conditions

This document is intended to be considered a Code Component, and is thus effectively available under the Simplified BSD license.



 TOC 

6.  References



 TOC 

6.1. Normative References

[RC4] Schneier, B., “Applied Cryptography, second edition, section 17.1, page 397.”


 TOC 

6.2. Informative References

[RFC4345] Harris, B., “Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer Protocol,” RFC 4345, January 2006 (TXT).
[RFC4634] Eastlake, D. and T. Hansen, “US Secure Hash Algorithms (SHA and HMAC-SHA),” RFC 4634, July 2006 (TXT).
[FMcG] Fluhrer, S. and D. McGrew, “Statistical Analysis of the Alleged RC4 Keystream Generator,” WWW http://www.mindspring.com/~dmcgrew/rc4-03.pdf.
[MANTIN01] Mantin, I., “Analysis of the Stream Cipher RC4,” WWW http://www.wisdom.weizmann.ac.il/~itsik/RC4/Papers/Mantin1.zip.
[MIRONOV] Mantin, I., “(Not So) Random Shuffles of RC4,” WWW http://eprint.iacr.org/2002/067.pdf.
[MANTIN05] Mantin, I., “Predicting and Distinguishing Attacks on RC4 Keystream Generator.”
[FIPS.180-2.2002] National Institute of Standards and Technology, “Secure Hash Standard,” FIPS PUB 180-2, August 2002.
[LIBGCRYPT] Koch, W., “Libgcrypt, version 1.4.4,” WWW http://directory.fsf.org/project/libgcrypt/.
[NETTLE] Möller, N., “Nettle, version 2.0,” WWW http://www.gnu.org/software/nettle/.


 TOC 

Authors' Addresses

  Joachim Strömbergson
  InformAsic AB
  Hugo Grauers gata 3B
  Gothenburg 411 33
  SE
Email:  Joachim.Strombergson@InformAsic.com
URI:  http://www.informasic.com/
  
  Simon Josefsson
  Simon Josefsson Datakonsult AB
  Hagagatan 24
  Stockholm 113 47
  SE
Email:  simon@josefsson.org
URI:  http://josefsson.org/