package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/octez-libs.bls12-381-hash/Bls12_381_hash/Permutation/Anemoi/Parameters/index.html
Module Anemoi.Parameters
Source
Set of parameters for BLS12-381, and parameters for specific instantiations given in the reference paper
The type representing the set of parameters for a given instance
create security state_size linear_layer
creates a value of type t
. If the state_size
is 2
, 4
, 6
or 8
, an exception is raised. The library enforces the user to use the default security parameters and an optimised implementation is provided in these cases. Also, an exception is raised if the state size is not a multiple of 2
.
Exponent for the substitution box. For BLS12-381, it is 5
Inverse of the exponent for the substitution box. For BLS12-381, it is 20974350070050476191779096203274386335076221000211055129041463479975432473805
For BLS12-381, it is 14981678621464625851270783002338847382197300714436467949315331057125308909861
First generator of the scalar field of BLS12-381, i.e. 7
Same than g
Set to 0
for BLS12-381
compute_number_of_rounds state_size security
computes the minimal number of rounds for an instance of Anemoi with a state size of m = state_size
to reach a security level of security
bits. The computation follows the formula given in section 5.2
generate_constants nb_rounds l
generates the constants for the instance of Anemoi for a state size of m = 2 * l
. The output contains the C's followed by the D's as described in the paper in section 5.1
Parameters for the permutation Anemoi for a state size of m = 2
(i.e. l = 1
) and 128 bits of security given in the paper
Parameters for the permutation Anemoi for a state size of m = 2
(i.e. l = 1
) and 141 bits of security
Parameters for the permutation Anemoi for a state size of m = 4
(i.e. l = 2
) and 128 bits of security given in the paper
Parameters for the permutation Anemoi for a state size of m = 6
(i.e. l = 3
) and 128 bits of security given in the paper