Home Manual Reference Source

Function

Static Public Summary
public

add64(a: *, b: *): undefined[]

public

and64(a: *, b: *)

public

big64(a: Array, o: Number): Array

Converts a 8-bytes big endian array to a 64-bit integer (also big endian).

public

compare(a: *, b: *): *

public

get64(hi: *, lo: *)

public

mul64(a: *, b: *): *

Multiplies two uint64 into one uint64.

public

not64(a: *)

public

Left rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

public

Right rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

public

shl64(a: Array, s: Number): Array

Left shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

public

shr64(a: Array, s: Number): Array

Right shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

public

xor64(a: *, b: *)

Static Public

public add64(a: *, b: *): undefined[] source

Params:

NameTypeAttributeDescription
a *
b *

Return:

undefined[]

public and64(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *

public big64(a: Array, o: Number): Array source

Converts a 8-bytes big endian array to a 64-bit integer (also big endian).

Params:

NameTypeAttributeDescription
a Array

Input big endian array.

o Number

Offset in the input array.

Return:

Array

The 64-bit integer.

public compare(a: *, b: *): * source

Params:

NameTypeAttributeDescription
a *
b *

Return:

*

public get64(hi: *, lo: *) source

Params:

NameTypeAttributeDescription
hi *
lo *

public mul64(a: *, b: *): * source

Multiplies two uint64 into one uint64.

Params:

NameTypeAttributeDescription
a *
b *

Return:

*

public not64(a: *) source

Params:

NameTypeAttributeDescription
a *

public rotl64(a: Array, s: Number): Array source

Left rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

Params:

NameTypeAttributeDescription
a Array
s Number

0 <= s <= 64

Return:

Array

public rotr64(a: Array, s: Number): Array source

Right rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

NB: used in the sha2 family

Params:

NameTypeAttributeDescription
a Array
s Number

0 <= s <= 64

Return:

Array

public shl64(a: Array, s: Number): Array source

Left shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

Params:

NameTypeAttributeDescription
a Array
s Number

s >= 0

Return:

Array

public shr64(a: Array, s: Number): Array source

Right shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.

Params:

NameTypeAttributeDescription
a Array
s Number

s >= 0

Return:

Array

public xor64(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *