jdk/test/sun/security/provider/MessageDigest/Offsets.java
changeset 12685 8a448b5b9006
parent 5506 202f599c92aa
child 37909 38b1efe33344
equal deleted inserted replaced
12676:3b7fae360d04 12685:8a448b5b9006
     1 /*
     1 /*
     2  * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    78 
    78 
    79     public static void main(String[] args) throws Exception {
    79     public static void main(String[] args) throws Exception {
    80         test("MD2", 0, 64, 0, 128);
    80         test("MD2", 0, 64, 0, 128);
    81         test("MD5", 0, 64, 0, 128);
    81         test("MD5", 0, 64, 0, 128);
    82         test("SHA1", 0, 64, 0, 128);
    82         test("SHA1", 0, 64, 0, 128);
       
    83         test("SHA-224", 0, 64, 0, 128);
    83         test("SHA-256", 0, 64, 0, 128);
    84         test("SHA-256", 0, 64, 0, 128);
    84         test("SHA-384", 0, 128, 0, 256);
    85         test("SHA-384", 0, 128, 0, 256);
    85         test("SHA-512", 0, 128, 0, 256);
    86         test("SHA-512", 0, 128, 0, 256);
    86     }
    87     }
    87 
    88