class

PoseidonParams

Inherits Reference < Object

Constructors

Class methods

str16a_to_big_int(a : Array(String))

Convert an array of 64 bits elements, represented as hexa string, into a big integer with LDS (first element of the array are the least significant bits) Horizen big int representation

Source
u64a_to_big_int(a : Array(UInt64))

Convert an array of 64 bits elements, into a big integer with LDS (first element of the array are the least significant bits) Horizen big int representation

Source
zero_pad(input : String, len : Int32)
Source

Instance methods

calc_final_numbers_fixed(prime, t, alpha, m_bits, security_margin)
Source
compute_best_params(prime : BigInt, t : Int32, security)
Source
find_FD_round_numbers(prime, t, alpha, m_bits, security_margin)
Source
generate_constants(field, n, t, r_ff, r_pp, prime_number)

Generate round constants parameters are: 1 (0 for binary fields), field size, number of cells, rf, rp, prime

Source
generate_grain
Source
get_sbox_cost(r_F, r_P, t)
Source
grain_random_bits(num_bits)
Source
init_generator
Source
mds_matrix
Source
round_constants
Source
sat_inequiv_alpha(prime, t, r_F, r_P, alpha, m_bits)

from https://extgit.iaik.tugraz.at/krypto/hadeshash/-/blob/master/code/calc_round_numbers.py

Source
set_horizen_params
Source
set_mds_matrix(matrix)
Source
set_params(prime : BigInt, alpha : Int32, rf : Int32, rp : Int32, t : Int32)
Source
set_round_constants(array)
Source