Sha01

Members

Functions

addSize
uint addSize()

Length padding size

blockSize
uint blockSize()

block size

createDigest
void createDigest(ubyte[] buf)

Obtain the digest

digestSize
uint digestSize()

The digest size of Sha-0 and Sha-1 is 20 bytes

padLength
void padLength(ubyte[] data, size_t length)

Performs the length padding

padMessage
void padMessage(ubyte[] data)

Pads the cipher data

reset
void reset()

Initialize the cipher

transform
void transform(ubyte[] data)

To be implemented

Static functions

f
uint f(uint t, uint B, uint C, uint D)

Static variables

K
const(uint[]) K;
mask
uint mask;
Undocumented in source.

Variables

context
uint[5] context;
Undocumented in source.

Inherited Members

From MerkleDamgard

createDigest
void createDigest(ubyte[] buf)

Constructs the digest

blockSize
uint blockSize()

Digest block size

addSize
uint addSize()

Length padding size

padMessage
void padMessage(ubyte[] data)

Pads the digest data

padLength
void padLength(ubyte[] data, size_t length)

Performs the length padding

transform
void transform(ubyte[] data)

Performs the digest on a block of data

extend
void extend()

Final processing of digest.

reset
void reset()

Initialize the digest

update
MerkleDamgard update(const(void)[] input)

Digest additional data

binaryDigest
ubyte[] binaryDigest(ubyte[] buf)

Complete the digest

littleEndian32
void littleEndian32(ubyte[] input, uint[] output)

Converts 8 bit to 32 bit Little Endian

bigEndian32
void bigEndian32(ubyte[] input, uint[] output)

Converts 8 bit to 32 bit Big Endian

littleEndian64
void littleEndian64(ubyte[] input, ulong[] output)

Converts 8 bit to 64 bit Little Endian

bigEndian64
void bigEndian64(ubyte[] input, ulong[] output)

Converts 8 bit to 64 bit Big Endian

rotateLeft
uint rotateLeft(uint x, uint n)

Rotate left by n

Meta