I search for Twofish Zero Keying implementation code example

242 views Asked by At

I am looking for a implementation of Twofish without using the large tables, without precomputing the round keys.

I need a clean code example showing all that in the mathematical/bitwise way. I mean I want to understand the operations. Most examples are too complex for me due a lot of functions and work done regard of things like testing the number and version of compiler, the machine architecture etc. I need it as clean as possible. I just can't deal with all the extra work done in examples because I am not a C programmer. I can read it if its simple, but I'm not a C coder. Like the AES code examples in the official reference.

Maybe I need some pseudo code example.

1

There are 1 answers

5
Maarten Bodewes On

Try the pedagogical reference implementation. It's the first implementation on the Twofish web site. Hint: use an IDE with a good debugger. Getting some code to compile should be a skill you should have to do cryptography, at least for code that is not too dependent on other libraries.