Org.BouncyCastle.Crypto.Digests.Sha3Digest.Iota C# (CSharp) Method

Iota() private static method

private static Iota ( ulong A, int indexRound ) : void
A ulong
indexRound int
return void
        private static void Iota(ulong[] A, int indexRound)
        {
            A[(((0) % 5) + 5 * ((0) % 5))] ^= KeccakRoundConstants[indexRound];
        }

Usage Example

Example #1
0
 private void KeccakPermutationOnWords(ulong[] state)
 {
     for (int i = 0; i < 24; i++)
     {
         this.Theta(state);
         this.Rho(state);
         this.Pi(state);
         this.Chi(state);
         Sha3Digest.Iota(state, i);
     }
 }