Struct mostinefficientsha::linopt::Linopt [] [src]

pub struct Linopt {
    // some fields omitted
}

Simple optimizer that tries to use the fuzzy Sha256 implementation to try to optimize to a target hash using a very simple linerarization algorithm.

Methods

impl Linopt
[src]

Uses len_input_bytes as the length of the input to the sha256 hash algorithm. target_hash is the hash it tries to optimize to.

Inits all input bits to 0.5.

Run optimization for rounds rounds.

Evaluate sha algorithm to u32s.

Evaluate sha algorithm to ascii representation.

Trait Implementations

impl Debug for Linopt
[src]

Formats the value using the given formatter.