package octez-libs
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
    
    
  sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
    
    
  doc/octez-libs.bls12-381-hash/Bls12_381_hash/Permutation/Anemoi/Parameters/index.html
Module Anemoi.ParametersSource
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