2362N/A * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * @summary Basic known-answer-test for RC2 and ARCFOUR 0N/A * @author Andreas Sterbenz 0N/A int k = b[i] &
0xff;
0N/A }
else if ((
ch >=
'0') && (
ch <=
'9')) {
0N/A }
else if ((
ch >=
'a') && (
ch <=
'f')) {
0N/A }
else if ((
ch >=
'A') && (
ch <=
'F')) {
0N/A t(
"RC4",
"00",
"74",
"0123456789abcdef"),
0N/A t(
"RC4",
"000102030405060708090a0b0c0d0e0f",
"74:95:c0:e4:14:4e:0e:7e:05:42:df:58:3e:82:10:f3",
"0123456789abcdef"),
0N/A t(
"RC4",
"000102030405060708090a0b0c0d0e0f",
"1b:34:61:29:05:0d:73:db:25:d0:dd:64:06:29:f6:8a",
"0123456789"),
// 40 bit 0N/A t(
"RC4",
"000102030405060708090a0b0c0d0e0f",
"ad:79:9d:98:d6:38:b1:f8:05:96:5c:e6:75:e7:82:24",
"0123456789abcdeffedcba9876543210"),
// 128 bit 0N/A t(
"RC4",
"74:95:c0:e4:14:4e:0e:7e:05:42:df:58:3e:82:10:f3 1b:34:61:29:05:0d:73:db:25:d0:dd:64:06:29:f6:8a ad:79:9d:98:d6:38:b1:f8:05:96:5c:e6:75:e7:82:24 ad:79:9d:98:d6:38:b1:f8:05:96:5c:e6:75:e7:82:24",
0N/A "e1:15:95:fc:79:da:5e:a4:e4:2a:a8:ce:cd:7d:1e:f3:f7:ef:19:a5:05:70:9f:f7:59:49:44:d6:fb:5a:b6:54:04:4d:f8:e6:60:a3:96:7d:40:33:09:78:f2:2e:de:25:fe:ad:54:dd:b9:65:97:d6:d4:4c:a8:a6:f2:2c:13:61",
0N/A "1b:34:61:29:05:0d:73:db:25:d0:dd:64:06:29:f6:8a"),
0N/A "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00"),
0N/A "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01"),
0N/A "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00"),
0N/A "00:01:02:03:04:05:06:07:08:09:0A:0B:0C:0D:0E:0F"),
0N/A "39:88:F7:B8:6C:14:D3:F8:BA:B8:12:73:3E:2E:B7:EE"),
0N/A "1d:b2:cb:09:7f:e8:ab:43"),