package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
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