License:
BSD style: see doc/license.txt for detailsVersion:
Initial release: Feb 2006Author:
Regan Heath, Oskar Linde This module implements the MD4 Message Digest Algorithm as described by RFC 1320 The MD4 Message-Digest Algorithm. R. Rivest. April 1992.Remarks:
Returns the cipher state to it's initial valueReturns:
the digestRemarks:
Returns a digest of the current cipher state, this may be the final digest, or a digest of the state between calls to update()Returns:
the block sizeRemarks:
Specifies the size (in bytes) of the block of data to pass to each call to transform(). For MD4 the blockSize is 64.Returns:
the length padding sizeRemarks:
Specifies the size (in bytes) of the padding which uses the length of the data which has been ciphered, this padding is carried out by the padLength method. For MD4 the addSize is 8.Params:
data | a slice of the cipher buffer to fill with padding |
Remarks:
Fills the passed buffer slice with the appropriate padding for the final call to transform(). This padding will fill the cipher buffer up to blockSize()-addSize().Params:
data | the slice of the cipher buffer to fill with padding |
length | the length of the data which has been ciphered |
Remarks:
Fills the passed buffer slice with addSize() bytes of padding based on the length in bytes of the input data which has been ciphered.Params:
data | the block of data to cipher |
Remarks:
The actual cipher algorithm is carried out by this method on the passed block of data. This method is called for every blockSize() bytes of input data and once more with the remaining data padded to blockSize().