1-Wire API for .NET Version 4.00
Static Public Member Functions

SHA Class Reference

Utility methods for performing SHA calculations. More...

List of all members.

Static Public Member Functions

static synchronized final byte[] ComputeSHA (byte[] MT, byte[] result, int offset)
 Does Dallas SHA, as specified in DS1963S datasheet.
static synchronized final void ComputeSHA (byte[] MT, int[] ABCDE)
 Does Dallas SHA, as specified in DS1963S datasheet.

Detailed Description

Utility methods for performing SHA calculations.


Member Function Documentation

static synchronized final void ComputeSHA ( byte[]  MT,
int[]  ABCDE 
) [static]

Does Dallas SHA, as specified in DS1963S datasheet.

result is in intel Endian format, starting with the LSB of E to the MSB of E followed by the LSB of D.

Parameters:
MTThe message block (padded if necessary).
ABCDEThe result will be copied into this 5-int array.
static synchronized final byte [] ComputeSHA ( byte[]  MT,
byte[]  result,
int  offset 
) [static]

Does Dallas SHA, as specified in DS1963S datasheet.

result is in intel Endian format, starting with the LSB of E to the MSB of E followed by the LSB of D. result array should be at least 20 bytes long, after the offset.

Parameters:
MTThe message block (padded if necessary).
resultThe byte[] into which the result will be copied.
offsetThe starting location in 'result' to start copying.

The documentation for this class was generated from the following file: