Skip to content

Project SHA3 (configuration)_eac3

Karel Kubicek edited this page Feb 13, 2017 · 1 revision

Configuration settings for SHA-3 project in EACirc:

  • SHA3
    • USAGE_TYPE
      determines how to use SHA-3 project
      201: distinguisher mode - tries to evaluate distinguisher between 2 streams of data

    • PLAINTEXT_TYPE
      210: counter mode - hash random counters incremented by 1

    • USE_FIXED_SEED
      0: begin counters from random value
      1: begin counters from the value set by SEED directive

    • SEED
      initial value for counters - taken only if USE_FIXED_SEED=1

    • ALGORITHM_1
      algorithm to use (see table of hash functions)
      99: random input

    • ALGORITHM_2
      2nd algorithm to use (if 2 are needed; table of hash functions)
      99: random input

    • HASHLENGTH_ALG_1
      length of the output hash in bits for algorithm1 (for supported length see table of hash functions)

    • HASHLENGTH_ALG_2
      length of the output hash in bits for algorithm2 (for supported length see table of hash functions)

    • BALANCED_TEST_VECTORS
      1: test vectors are balanced (50% algorithm_1, 50% algorithm_2)
      0: test vectors may not be balanced (ratio of test vector sources determined randomly, changes every test set)

    • LIMIT_NUM_OF_ROUNDS
      1: algorithms will run only a limited number of rounds
      0: algorithms will run unrestrained, i.e. as originally designed

    • ROUNDS_ALG_1
      number of rounds for the 1. algorithm (if limited)

    • ROUNDS_ALG_2
      number of rounds for the 2. algorithm (if limited)

    • GENERATE_STREAM
      0: normal mode
      1: data stream generation mode - generate stream of hashes according to settings (used for statistical testing, e.g. Dieharder) Data will be saved to file.
      Note: This mode breaks the consistency of generators and therefore prevents the evolution from starting after finishing stream generation.

    • STREAM_SIZE
      0: generate unlimited stream (is sent to cout instead of file)
      n: minimal size of generated stream (in bytes, saved to file)
      Note: This directive is considered only if GENERATE_STREAM=1.

Clone this wiki locally