Class: Kupyna

Kupyna

Kupyna class allows for calculating Kupyna type digest as defined in Ukrainian DSTU 7564:2014 standard.

Constructor

(private) new Kupyna(hashBits)

Creates kupyna hashing object
Parameters:
Name Type Description
hashBits Number number of kupyna hash output bits
Source:

Methods

(private) _extractHash() → {Array}

Extracts hash from internal state table.
Source:
Returns:
extracted hash
Type
Array

(private) _extractHash() → {Array}

Extracts hash from internal state table.
Source:
Returns:
extracted hash
Type
Array

(private) _outputTransform()

Applies final state transformation.
Source:

(private) _outputTransform()

Applies final state transformation.
Source:

(private) _P(x, y, round)

Calculates value of P transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _P(x, y, round)

Calculates value of P transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _Q(x, y, round)

Calculates value of Q transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _Q(x, y, round)

Calculates value of Q transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _transform()

Applies internal state transformations
Source:

(private) _transform()

Applies internal state transformations
Source:

digest() → {Array}

Calculates final result of complete data provided to update method.
Source:
Returns:
calculated final hash
Type
Array

digest() → {Array}

Calculates final result of complete data provided to update method.
Source:
Returns:
calculated final hash
Type
Array

init()

Reinitialize hashing object to its clear state. Allows to digest new data.
Source:

init()

Reinitialize hashing object to its clear state. Allows to digest new data.
Source:

update(data)

Updates the digest with new piece of dat.
Parameters:
Name Type Description
data Array bunch of data to update hash with
Source:

update(data)

Updates the digest with new piece of dat.
Parameters:
Name Type Description
data Array bunch of data to update hash with
Source:

Kupyna

Kupyna class allows for calculating Kupyna type digest as defined in Ukrainian DSTU 7564:2014 standard.

Constructor

(private) new Kupyna(hashBits)

Creates kupyna hashing object
Parameters:
Name Type Description
hashBits Number number of kupyna hash output bits
Source:

Methods

(private) _extractHash() → {Array}

Extracts hash from internal state table.
Source:
Returns:
extracted hash
Type
Array

(private) _extractHash() → {Array}

Extracts hash from internal state table.
Source:
Returns:
extracted hash
Type
Array

(private) _outputTransform()

Applies final state transformation.
Source:

(private) _outputTransform()

Applies final state transformation.
Source:

(private) _P(x, y, round)

Calculates value of P transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _P(x, y, round)

Calculates value of P transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _Q(x, y, round)

Calculates value of Q transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _Q(x, y, round)

Calculates value of Q transformation
Parameters:
Name Type Description
x Number first argument to transform
y Number second argument to transform
round Number number of transformation round
Source:

(private) _transform()

Applies internal state transformations
Source:

(private) _transform()

Applies internal state transformations
Source:

digest() → {Array}

Calculates final result of complete data provided to update method.
Source:
Returns:
calculated final hash
Type
Array

digest() → {Array}

Calculates final result of complete data provided to update method.
Source:
Returns:
calculated final hash
Type
Array

init()

Reinitialize hashing object to its clear state. Allows to digest new data.
Source:

init()

Reinitialize hashing object to its clear state. Allows to digest new data.
Source:

update(data)

Updates the digest with new piece of dat.
Parameters:
Name Type Description
data Array bunch of data to update hash with
Source:

update(data)

Updates the digest with new piece of dat.
Parameters:
Name Type Description
data Array bunch of data to update hash with
Source: