Package util

Examples of util.ByteFromIntArray


            // subLength can't be more than 0x40
            if(subLength > 0x40)
                subLength = 0x40;

            // Copy this part of the hashdata into the int array
            ByteFromIntArray bfia = new ByteFromIntArray(true);
            for(int j = 0; j < subLength; j++){
                bfia.insertByte(hashBuffer, j + (4 * 5), hashData[j + i]);
            }

            // If we don't reach the end of the buffer, pad it
            if(subLength < 0x40){
                byte padNumber = (byte)(0x40 - subLength);

                for(int j = subLength; j < 0x40; j++)
                    bfia.insertByte(hashBuffer, j + (4 * 5), (byte) 0);
            }

            doHash(hashBuffer);
        }

View Full Code Here

TOP

Related Classes of util.ByteFromIntArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.