Click here to Skip to main content
11,790,904 members (65,621 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: programming cryptography , +
Expression for Galois Fiels(2^8) multiplication:-

Which of the following expression is the correct one? please suggest..

Exp[ ( Log A + Log B )Mod 255]
[Exp( Log A + Log B )] Mod 255
Posted 14-Feb-12 19:11pm
Edited 15-Feb-12 3:55am
digimanus at 15-Feb-12 1:16am
why don't you try it yourself?
Ratika Agarwal at 15-Feb-12 1:18am
try what?? Try to run? Above is a formula.
Ratika Agarwal at 15-Feb-12 10:01am
do you have an idea that how to store a very long stream of bits of about 2^256 length in any variable??
Varun Sareen at 15-Feb-12 1:32am
Try it to find it
Ratika Agarwal at 15-Feb-12 2:53am
I have come here to ask for help and discuss on its issues to the concerned peoples and experts, that I do not find in other sources. I request you that if you know the solution then please post here. If you do not know the solution then please do not down vote the question and let others help me.
Varun Sareen at 16-Feb-12 13:02pm
sorry dear ratika i accidentally down voted your question. I was trying to up vote it :)
Ratika Agarwal at 15-Feb-12 2:57am
I have already searched it on internet. But there is an issue. The formula given in 2-3 sources is that- the firth one is right...i.e.,
Exp have to be done after taking mod of addition.
Exp[ (Log A + Log B) Mod 255].

But Result of addition is so small that it doesn't need Mod, instead, result of Exponent is much long upto 2-4 bytes, which needs Mod.

What should be done in this case??
Ratika Agarwal at 15-Feb-12 3:00am
Now do you have any optimistic comments on my problem??
Varun Sareen at 16-Feb-12 13:04pm
have you tried any of the formulae atleast once??
Varun Sareen at 16-Feb-12 13:05pm
try this link might be helpful to you

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Ratika you can use Galois Field GF(2m) Calculator with this link

Galois Field GF(2m) Calculator
Ratika Agarwal at 15-Feb-12 4:50am
thanks. but I do not just want the calculated value.But I need to implement GF(2^8) multiplication for AES Mix Columns Operation. Therefore, to use GF(2^m) and to implement its code is compulsion.
krumia at 15-Feb-12 10:34am
Read more about GF's. Read more theory. Then you will be able to answer yourself. Ask yourself! What should happen when multiplying. Should you get the Exp after Mod, or vice versa.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 410
1 ppolymorphe 385
2 Richard MacCutchan 118
3 Jochen Arndt 80
4 Maciej Los 70
0 OriginalGriff 1,329
1 Maciej Los 835
2 ppolymorphe 780
3 KrunalRohit 686
4 CPallini 661

Advertise | Privacy | Mobile
Web03 | 2.8.1509028.1 | Last Updated 15 Feb 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100