Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Rijndael Algorithm

Sun Nov 09, 2008 4:39 pm

Hi Guys! can anyone give me a pseudocode for the rijndael algorithm?Need it as soon as possible tnx



Re: Rijndael Algorithm

Sun Nov 09, 2008 8:07 pm

here it is
Code:

KeyExpansion(CipherKey, ExpandedKey);
   ...

   Rijndael(State, ExpandedKey)
   {
       AddRoundKey(State, ExpandedKey[0]);
       for(i=1; i<Nr; i++)
      Round(State, ExpandedKey[i]);
       FinalRound(State, ExpandedKey[Nr]);
   }

   ...

   Round(State, RoundKey)
   {
       ByteSub(State);
       ShiftRow(State);
       MixColumn(State);
       AddRoundKey(State, RoundKey);
   }

   ...

   FinalRound(State, RoundKey)
   {
       ByteSub(State);
       ShiftRow(State);
       /*no MixColumn*/
       AddRoundKey(State, RoundKey);
   }      


Post a reply
  Related Posts  to : Rijndael Algorithm
 id3 algorithm     -  
 Dijkstra Algorithm     -  
 Generic Algorithm     -  
 genetic algorithm example     -  
 Data set for ID3 algorithm     -  
 CPU priority algorithm...     -  
 expectation-maximization (EM) algorithm     -  
 Mid-point Algorithm using j2me     -  
 apriori algorithm c code     -  
 Shortest Job First Preemptive algorithm     -