class PoseidonParams
- PoseidonParams
- Reference
- Object
Defined in:
poseidon_parameters.crConstructors
Class Method Summary
-
.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)
Instance Method Summary
- #calc_final_numbers_fixed(prime, t, alpha, m_bits, security_margin)
- #compute_best_params(prime : BigInt, t : Int32, security)
- #find_FD_round_numbers(prime, t, alpha, m_bits, security_margin)
-
#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
- #generate_grain
- #get_sbox_cost(r_F, r_P, t)
- #grain_random_bits(num_bits)
- #init_generator
- #mds_matrix
- #round_constants
-
#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
- #set_horizen_params
- #set_mds_matrix(matrix)
- #set_params(prime : BigInt, alpha : Int32, rf : Int32, rp : Int32, t : Int32)
- #set_round_constants(array)
Constructor Detail
Class Method Detail
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
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
Instance Method Detail
Generate round constants parameters are: 1 (0 for binary fields), field size, number of cells, rf, rp, prime
from https://extgit.iaik.tugraz.at/krypto/hadeshash/-/blob/master/code/calc_round_numbers.py