1 /* $Id: TestSHA384.java,v 1.2 2001/06/25 15:41:13 gelderen Exp $
2  *
3  * Copyright (C) 1995-1999 The Cryptix Foundation Limited.
4  * All rights reserved.
5  *
6  * Use, modification, copying and distribution of this software is subject
7  * the terms and conditions of the Cryptix General Licence. You should have
8  * received a copy of the Cryptix General Licence along with this library;
9  * if not, you can download a copy from http://www.cryptix.org/ .
10  */
11 package cryptix.jce.test;
12 
13 
14 /*package*/ final class TestSHA384 extends MessageDigestTest {
15 
16     private static final String NAME="SHA-384";
17 
18     private static final String[][] TEST_VALUES = {
19         {"abc",
20          "cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed"+
21          "8086072ba1e7cc2358baeca134c825a7"},
22         {"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmno"+
23          "ijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
24          "09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712"+
25          "fcc7c71a557e2db966c3e9fa91746039"}
26     };
27 
28 
TestSHA384()29     protected TestSHA384() {
30         super(NAME);
31     }
32 
33 
doIt()34     protected void doIt() throws Exception {
35         testExistence(NAME);
36         testValues(NAME, TEST_VALUES);
37         testCloning(NAME);
38     }
39 }
40