Universal Finite Field Multiplication on Logic Gates
Today i spent 3 hours sitting in the front of computer just to draw and test this circuit. This circuit is about implementing 8-bit universal finite field multiplication on discrete logic gates. This picture generalized my previous post about “How to implement AES (Rijndael) finite field multiplication on logic gates”. Here, the circuit works general, you way also implement part of “official” rijndael cipher (especially mix column) using this circuit. But you may also alter mix column process of “Official Rijndael Cipher” and create your own “unofficial” Rijndael Cipher. This is Nice and Fun! if any of you could draw me the PCB layout of this, i’ll appreciate much.
To open full-sized picture, just click on the picture (warning : large picture!)
You can freely use and redistribute this picture under the term of GNU Public License v3.0.
PROOFING AND BENCHMARK
Lets proof the circuit. The way is simple, just compare theoretical result and practical result. For the picture, lets define “1″ as RED and “0″ as BLUE and then color the wire bit by bit. Note that most significant bit located leftmost and least significant bit located rightmost.
Now, we are going to calculate (0xc5 x 0×67) mod (0×1b).
A = 0xc5 = 11000101
B = 0×67 = 01100111
N = 0×1b = 00011011
0xc5 = 11000101 = (0×80 + 0×40 + 0×04 + 0×01)
0xc5 x 0×67 = (0×67 x 0×80) + (0×67 x 0×40) + (0×67 x 0×04) + (0×67 x 0×01)
0×67 x 0×01 = 01100111 = 0×67
0×67 x 0×02 = 11001110 = 0xce
0×67 x 0×04 = 10011100 ^ 00011011 = 10000111 = 0×87
0×67 x 0×08 = 00001110 ^ 00011011 = 00010101 = 0×15
0×67 x 0×10 = 00101010 = 0×2a
0×67 x 0×20 = 01010100 = 0×54
0×67 x 0×40 = 10101000 = 0xa8
0×67 x 0×80 = 01010000 ^ 00011011 = 01001011 = 0×4b
0xc5 x 0×67 = (0×67 x 0×80) + (0×67 x 0×40) + (0×67 x 0×04) + (0×67 x 0×01)
0xc5 x 0×67 = 01001011 ^ 10101000 ^ 10000111 ^ 01100111 = 00000011 = 0×03
And now have a look at this picture below. I shows us 0×03 too. Isn’t it nice ha
. If you want to see full-sized picture, just click on it.
You can freely use and redistribute this picture under the term of GNU Public License v3.0.
RELATED STUFF
Download
Download picture source
References:
Rijndael
Advanced Encryption Standard
Finite Field
Links:
Finite Field in Hardware (pdf)
Finite Field
Abstract Math
AES (Rijndael) Simulator






