PoseidonParams
Inherits Reference < Object
Constructors
new
SourceClass 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
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
zero_pad(input : String, len : Int32)
SourceInstance methods
calc_final_numbers_fixed(prime, t, alpha, m_bits, security_margin)
Sourcecompute_best_params(prime : BigInt, t : Int32, security)
Sourcefind_FD_round_numbers(prime, t, alpha, m_bits, security_margin)
Sourcegenerate_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
generate_grain
Sourceget_sbox_cost(r_F, r_P, t)
Sourcegrain_random_bits(num_bits)
Sourceinit_generator
Sourcemds_matrix
Sourceround_constants
Sourcesat_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
set_horizen_params
Sourceset_mds_matrix(matrix)
Sourceset_params(prime : BigInt, alpha : Int32, rf : Int32, rp : Int32, t : Int32)
Sourceset_round_constants(array)
Source