mikepound / feistel Goto Github PK
View Code? Open in Web Editor NEWA toy Feistel network implementation
A toy Feistel network implementation
I think there's an issue with the round_keys
prekey is generated successfully from 0 -> 64
postkey is successful from -64 -> end
but
roundkeys are defined as
roundkeys = []
for i in range(10):
temp = key_data[3 * half_block_size * i : 2 * half_block_size * i + half_block_size]
# same as temp = key_data[332i : 232i + 32]
roundkeys.append(temp)
I didn't understand what is happening here!
The above code doesn't produce 10 round keys, instead it produce only one for i = 0, and for the rest of iterations, the list slicing doesn't make sense.
Please kindly verify this section of code.
In modes.py, in the CTR mode encrypt function, the counter increments without checking the size. If the counter gets to be bigger than len(self.nonce), line 147 (xor_block = self._get_xor_block(counter)) will throw an error.
In file iterators.py, the block size has been hardcoded to 64 on line 16 (data = f.read(64)) instead of using the block_size input.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.