crocs-muni / CryptoStreams

Tool for generation of data from cryptoprimitives (block and stream ciphers, hash functions). Cryptoprimitives are round-reduced and the data can be configured for multiple testing scenarios.
MIT License
13 stars 9 forks source link

Rotation generator #99

Open Bender250 opened 6 years ago

Bender250 commented 6 years ago

Idea of new generator (processing).

It has given bit-length l. It generates all l binary rotation of the input. Implement following "python pseudocode"...

next():
    while True:
        _data = _source.next()
        for _ in range(l):
            circular_rotation_left(_data, 1)
            yield _data
Bender250 commented 6 years ago

Source of idea: https://pdfs.semanticscholar.org/e494/3ec5d12156a6558b52312ed07bb8aee980b6.pdf