10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4856966
27 * @summary basic test of SHA1withDSA and RawDSA signing/verifying
28 * @author Andreas Sterbenz
29 * @library ..
30 */
31
32 import java.io.*;
33 import java.util.*;
34 import java.math.BigInteger;
35
36 import java.security.*;
37 import java.security.spec.*;
38
39 public class TestDSA extends PKCS11Test {
40
41 // values of the keys we use for the tests
42
43 private final static String ps =
44 "fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b6512669" +
45 "455d402251fb593d8d58fabfc5f5ba30f6cb9b556cd7813b801d346ff26660b7" +
46 "6b9950a5a49f9fe8047b1022c24fbba9d7feb7c61bf83b57e7c6a8a6150f04fb" +
47 "83f6d3c51ec3023554135a169132f675f3ae2b61d72aeff22203199dd14801c7";
48
49 private final static String qs =
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4856966
27 * @summary basic test of SHA1withDSA and RawDSA signing/verifying
28 * @author Andreas Sterbenz
29 * @library ..
30 * @key randomness
31 */
32
33 import java.io.*;
34 import java.util.*;
35 import java.math.BigInteger;
36
37 import java.security.*;
38 import java.security.spec.*;
39
40 public class TestDSA extends PKCS11Test {
41
42 // values of the keys we use for the tests
43
44 private final static String ps =
45 "fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b6512669" +
46 "455d402251fb593d8d58fabfc5f5ba30f6cb9b556cd7813b801d346ff26660b7" +
47 "6b9950a5a49f9fe8047b1022c24fbba9d7feb7c61bf83b57e7c6a8a6150f04fb" +
48 "83f6d3c51ec3023554135a169132f675f3ae2b61d72aeff22203199dd14801c7";
49
50 private final static String qs =
|