equal
deleted
inserted
replaced
38 * @build jdk.test.lib.RandomFactory |
38 * @build jdk.test.lib.RandomFactory |
39 * @run main Offsets SUN NONEwithDSA |
39 * @run main Offsets SUN NONEwithDSA |
40 * @run main Offsets SUN SHA1withDSA |
40 * @run main Offsets SUN SHA1withDSA |
41 * @run main Offsets SUN SHA224withDSA |
41 * @run main Offsets SUN SHA224withDSA |
42 * @run main Offsets SUN SHA256withDSA |
42 * @run main Offsets SUN SHA256withDSA |
|
43 * @run main Offsets SunRsaSign SHA224withRSA |
|
44 * @run main Offsets SunRsaSign SHA256withRSA |
|
45 * @run main Offsets SunRsaSign SHA384withRSA |
43 * @run main Offsets SunRsaSign SHA512withRSA |
46 * @run main Offsets SunRsaSign SHA512withRSA |
44 * @run main Offsets SunRsaSign SHA512/224withRSA |
47 * @run main Offsets SunRsaSign SHA512/224withRSA |
45 * @run main Offsets SunRsaSign SHA512/256withRSA |
48 * @run main Offsets SunRsaSign SHA512/256withRSA |
46 */ |
49 */ |
47 public class Offsets { |
50 public class Offsets { |
53 private final byte[] signed; |
56 private final byte[] signed; |
54 |
57 |
55 private Offsets(Signature signature, PublicKey pubkey, PrivateKey privkey, |
58 private Offsets(Signature signature, PublicKey pubkey, PrivateKey privkey, |
56 int size, byte[] cleartext) throws InvalidKeyException, |
59 int size, byte[] cleartext) throws InvalidKeyException, |
57 SignatureException { |
60 SignatureException { |
58 System.out.println("Testing signature " + signature.getAlgorithm()); |
61 System.out.println("Testing signature " + signature.getAlgorithm()); |
59 this.pubkey = pubkey; |
62 this.pubkey = pubkey; |
60 this.signature = signature; |
63 this.signature = signature; |
61 this.size = size; |
64 this.size = size; |
62 this.cleartext = cleartext; |
65 this.cleartext = cleartext; |
63 |
66 |