jdk/src/share/classes/sun/security/provider/SHA2.java
changeset 16871 f8cfd245e458
parent 12685 8a448b5b9006
equal deleted inserted replaced
16870:f35b2bd19761 16871:f8cfd245e458
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2013, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    99 
    99 
   100         i2bBig4((int)(bitsProcessed >>> 32), buffer, 56);
   100         i2bBig4((int)(bitsProcessed >>> 32), buffer, 56);
   101         i2bBig4((int)bitsProcessed, buffer, 60);
   101         i2bBig4((int)bitsProcessed, buffer, 60);
   102         implCompress(buffer, 0);
   102         implCompress(buffer, 0);
   103 
   103 
   104         i2bBig(state, 0, out, ofs, 32);
   104         i2bBig(state, 0, out, ofs, engineGetDigestLength());
   105     }
   105     }
   106 
   106 
   107     /**
   107     /**
   108      * logical function ch(x,y,z) as defined in spec:
   108      * logical function ch(x,y,z) as defined in spec:
   109      * @return (x and y) xor ((complement x) and z)
   109      * @return (x and y) xor ((complement x) and z)