< prev index next >

test/sun/security/ec/SignatureOffsets.java

Print this page
rev 17324 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


  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 import java.security.InvalidKeyException;
  25 import java.security.NoSuchAlgorithmException;
  26 import java.security.SignatureException;
  27 
  28 /*
  29  * @test
  30  * @bug 8050374
  31  * @key randomness
  32  * @summary This test validates signature verification
  33  *          Signature.verify(byte[], int, int). The test uses RandomFactory to
  34  *          get random set of clear text data to sign. After the signature
  35  *          generation, the test tries to verify signature with the above API
  36  *          and passing in different signature offset (0, 33, 66, 99).
  37  * @library /test/lib

  38  * @compile ../../../java/security/Signature/Offsets.java
  39  * @run main SignatureOffsets SunEC NONEwithECDSA
  40  * @run main SignatureOffsets SunEC SHA1withECDSA
  41  * @run main SignatureOffsets SunEC SHA256withECDSA
  42  * @run main SignatureOffsets SunEC SHA224withECDSA
  43  * @run main SignatureOffsets SunEC SHA384withECDSA
  44  * @run main SignatureOffsets SunEC SHA512withECDSA
  45  */
  46 public class SignatureOffsets {
  47 
  48     public static void main(String[] args) throws NoSuchAlgorithmException,
  49             InvalidKeyException, SignatureException {
  50         Offsets.main(args);
  51     }
  52 }


  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 import java.security.InvalidKeyException;
  25 import java.security.NoSuchAlgorithmException;
  26 import java.security.SignatureException;
  27 
  28 /*
  29  * @test
  30  * @bug 8050374
  31  * @key randomness
  32  * @summary This test validates signature verification
  33  *          Signature.verify(byte[], int, int). The test uses RandomFactory to
  34  *          get random set of clear text data to sign. After the signature
  35  *          generation, the test tries to verify signature with the above API
  36  *          and passing in different signature offset (0, 33, 66, 99).
  37  * @library /test/lib
  38  * @build jdk.test.lib.RandomFactory
  39  * @compile ../../../java/security/Signature/Offsets.java
  40  * @run main SignatureOffsets SunEC NONEwithECDSA
  41  * @run main SignatureOffsets SunEC SHA1withECDSA
  42  * @run main SignatureOffsets SunEC SHA256withECDSA
  43  * @run main SignatureOffsets SunEC SHA224withECDSA
  44  * @run main SignatureOffsets SunEC SHA384withECDSA
  45  * @run main SignatureOffsets SunEC SHA512withECDSA
  46  */
  47 public class SignatureOffsets {
  48 
  49     public static void main(String[] args) throws NoSuchAlgorithmException,
  50             InvalidKeyException, SignatureException {
  51         Offsets.main(args);
  52     }
  53 }
< prev index next >