round 4
theta rho pi chi iota




round 4: before theta
A[0] = 0x1b5987c233e51db2
A[1] = 0x71a543dace654e5f
A[2] = 0xe963b9215caeed87
A[3] = 0x1a8e5a83171119c8
A[4] = 0x4d000fc2c3c69514
A[5] = 0x0d62fd9930eb2897
A[6] = 0xf3f9cb25e6d520fa
A[7] = 0xf013606caecd1024
A[8] = 0xf9506f53e66cab45
A[9] = 0x22f09026aa99dc60
A[10] = 0xb1ad09b245fa4f00
A[11] = 0x392b7402f048967b
A[12] = 0xc96bef2766a3a8e5
A[13] = 0x89546486c9508cbd
A[14] = 0x5a2a7119fc693815
A[15] = 0xcffd422654742f5e
A[16] = 0x68102e42850746cf
A[17] = 0x039ad1667c7a5143
A[18] = 0x6cc907a27084c791
A[19] = 0xd17130dc35b0f220
A[20] = 0xa278dcbffe6c124c
A[21] = 0xb5c385519aa3eaf9
A[22] = 0x585c1cd80acbaf6f
A[23] = 0x55b17f1f014c9f9f
A[24] = 0x51857d8b12c49875



round 4: theta
C[0] = A[0] ^ A[5] ^ A[10] ^ A[15] ^ A[20]
= 0x1b5987c233e51db2 ^ 0x0d62fd9930eb2897 ^ 0xb1ad09b245fa4f00 ^ 0xcffd422654742f5e ^ 0xa278dcbffe6c124c
= 0xca13ed70ecec4737
C[1] = A[1] ^ A[6] ^ A[11] ^ A[16] ^ A[21]
= 0x71a543dace654e5f ^ 0xf3f9cb25e6d520fa ^ 0x392b7402f048967b ^ 0x68102e42850746cf ^ 0xb5c385519aa3eaf9
= 0x66a457eec75c54e8
C[2] = A[2] ^ A[7] ^ A[12] ^ A[17] ^ A[22]
= 0xe963b9215caeed87 ^ 0xf013606caecd1024 ^ 0xc96bef2766a3a8e5 ^ 0x039ad1667c7a5143 ^ 0x585c1cd80acbaf6f
= 0x8bddfbd4e271ab6a
C[3] = A[3] ^ A[8] ^ A[13] ^ A[18] ^ A[23]
= 0x1a8e5a83171119c8 ^ 0xf9506f53e66cab45 ^ 0x89546486c9508cbd ^ 0x6cc907a27084c791 ^ 0x55b17f1f014c9f9f
= 0x53f229eb49e5663e
C[4] = A[4] ^ A[9] ^ A[14] ^ A[19] ^ A[24]
= 0x4d000fc2c3c69514 ^ 0x22f09026aa99dc60 ^ 0x5a2a7119fc693815 ^ 0xd17130dc35b0f220 ^ 0x51857d8b12c49875
= 0xb52ea3aab2421b34
D[0] = LeftRotation(C[1], 1) ^ C[4]
= LeftRotation(0x66a457eec75c54e8, 1) ^ 0xb52ea3aab2421b34
= 0xcd48afdd8eb8a9d0 ^ 0xb52ea3aab2421b34
= 0x78660c773cfab2e4
D[1] = LeftRotation(C[2], 1) ^ C[0]
= LeftRotation(0x8bddfbd4e271ab6a, 1) ^ 0xca13ed70ecec4737
= 0x17bbf7a9c4e356d5 ^ 0xca13ed70ecec4737
= 0xdda81ad9280f11e2
D[2] = LeftRotation(C[3], 1) ^ C[1]
= LeftRotation(0x53f229eb49e5663e, 1) ^ 0x66a457eec75c54e8
= 0xa7e453d693cacc7c ^ 0x66a457eec75c54e8
= 0xc140043854969894
D[3] = LeftRotation(C[4], 1) ^ C[2]
= LeftRotation(0xb52ea3aab2421b34, 1) ^ 0x8bddfbd4e271ab6a
= 0x6a5d475564843669 ^ 0x8bddfbd4e271ab6a
= 0xe180bc8186f59d03
D[4] = LeftRotation(C[0], 1) ^ C[3]
= LeftRotation(0xca13ed70ecec4737, 1) ^ 0x53f229eb49e5663e
= 0x9427dae1d9d88e6f ^ 0x53f229eb49e5663e
= 0xc7d5f30a903de851
A[0] = A[0] ^ D[0]
= 0x1b5987c233e51db2 ^ 0x78660c773cfab2e4
= 0x633f8bb50f1faf56
A[5] = A[5] ^ D[0]
= 0x0d62fd9930eb2897 ^ 0x78660c773cfab2e4
= 0x7504f1ee0c119a73
A[10] = A[10] ^ D[0]
= 0xb1ad09b245fa4f00 ^ 0x78660c773cfab2e4
= 0xc9cb05c57900fde4
A[15] = A[15] ^ D[0]
= 0xcffd422654742f5e ^ 0x78660c773cfab2e4
= 0xb79b4e51688e9dba
A[20] = A[20] ^ D[0]
= 0xa278dcbffe6c124c ^ 0x78660c773cfab2e4
= 0xda1ed0c8c296a0a8
A[1] = A[1] ^ D[1]
= 0x71a543dace654e5f ^ 0xdda81ad9280f11e2
= 0xac0d5903e66a5fbd
A[6] = A[6] ^ D[1]
= 0xf3f9cb25e6d520fa ^ 0xdda81ad9280f11e2
= 0x2e51d1fcceda3118
A[11] = A[11] ^ D[1]
= 0x392b7402f048967b ^ 0xdda81ad9280f11e2
= 0xe4836edbd8478799
A[16] = A[16] ^ D[1]
= 0x68102e42850746cf ^ 0xdda81ad9280f11e2
= 0xb5b8349bad08572d
A[21] = A[21] ^ D[1]
= 0xb5c385519aa3eaf9 ^ 0xdda81ad9280f11e2
= 0x686b9f88b2acfb1b
A[2] = A[2] ^ D[2]
= 0xe963b9215caeed87 ^ 0xc140043854969894
= 0x2823bd1908387513
A[7] = A[7] ^ D[2]
= 0xf013606caecd1024 ^ 0xc140043854969894
= 0x31536454fa5b88b0
A[12] = A[12] ^ D[2]
= 0xc96bef2766a3a8e5 ^ 0xc140043854969894
= 0x082beb1f32353071
A[17] = A[17] ^ D[2]
= 0x039ad1667c7a5143 ^ 0xc140043854969894
= 0xc2dad55e28ecc9d7
A[22] = A[22] ^ D[2]
= 0x585c1cd80acbaf6f ^ 0xc140043854969894
= 0x991c18e05e5d37fb
A[3] = A[3] ^ D[3]
= 0x1a8e5a83171119c8 ^ 0xe180bc8186f59d03
= 0xfb0ee60291e484cb
A[8] = A[8] ^ D[3]
= 0xf9506f53e66cab45 ^ 0xe180bc8186f59d03
= 0x18d0d3d260993646
A[13] = A[13] ^ D[3]
= 0x89546486c9508cbd ^ 0xe180bc8186f59d03
= 0x68d4d8074fa511be
A[18] = A[18] ^ D[3]
= 0x6cc907a27084c791 ^ 0xe180bc8186f59d03
= 0x8d49bb23f6715a92
A[23] = A[23] ^ D[3]
= 0x55b17f1f014c9f9f ^ 0xe180bc8186f59d03
= 0xb431c39e87b9029c
A[4] = A[4] ^ D[4]
= 0x4d000fc2c3c69514 ^ 0xc7d5f30a903de851
= 0x8ad5fcc853fb7d45
A[9] = A[9] ^ D[4]
= 0x22f09026aa99dc60 ^ 0xc7d5f30a903de851
= 0xe525632c3aa43431
A[14] = A[14] ^ D[4]
= 0x5a2a7119fc693815 ^ 0xc7d5f30a903de851
= 0x9dff82136c54d044
A[19] = A[19] ^ D[4]
= 0xd17130dc35b0f220 ^ 0xc7d5f30a903de851
= 0x16a4c3d6a58d1a71
A[24] = A[24] ^ D[4]
= 0x51857d8b12c49875 ^ 0xc7d5f30a903de851
= 0x96508e8182f97024



round 4: after theta
A[0] = 0x633f8bb50f1faf56
A[1] = 0xac0d5903e66a5fbd
A[2] = 0x2823bd1908387513
A[3] = 0xfb0ee60291e484cb
A[4] = 0x8ad5fcc853fb7d45
A[5] = 0x7504f1ee0c119a73
A[6] = 0x2e51d1fcceda3118
A[7] = 0x31536454fa5b88b0
A[8] = 0x18d0d3d260993646
A[9] = 0xe525632c3aa43431
A[10] = 0xc9cb05c57900fde4
A[11] = 0xe4836edbd8478799
A[12] = 0x082beb1f32353071
A[13] = 0x68d4d8074fa511be
A[14] = 0x9dff82136c54d044
A[15] = 0xb79b4e51688e9dba
A[16] = 0xb5b8349bad08572d
A[17] = 0xc2dad55e28ecc9d7
A[18] = 0x8d49bb23f6715a92
A[19] = 0x16a4c3d6a58d1a71
A[20] = 0xda1ed0c8c296a0a8
A[21] = 0x686b9f88b2acfb1b
A[22] = 0x991c18e05e5d37fb
A[23] = 0xb431c39e87b9029c
A[24] = 0x96508e8182f97024



round 4: rho
A[0] = LeftRotation(A[0] , 0)
= LeftRotation(0x633f8bb50f1faf56, 0)
= 0x633f8bb50f1faf56
A[1] = LeftRotation(A[1] , 1)
= LeftRotation(0xac0d5903e66a5fbd, 1)
= 0x581ab207ccd4bf7b
A[2] = LeftRotation(A[2] , 62)
= LeftRotation(0x2823bd1908387513, 62)
= 0xca08ef46420e1d44
A[3] = LeftRotation(A[3] , 28)
= LeftRotation(0xfb0ee60291e484cb, 28)
= 0x291e484cbfb0ee60
A[4] = LeftRotation(A[4] , 27)
= LeftRotation(0x8ad5fcc853fb7d45, 27)
= 0x429fdbea2c56afe6
A[5] = LeftRotation(A[5] , 36)
= LeftRotation(0x7504f1ee0c119a73, 36)
= 0xc119a737504f1ee0
A[6] = LeftRotation(A[6] , 44)
= LeftRotation(0x2e51d1fcceda3118, 44)
= 0xa31182e51d1fcced
A[7] = LeftRotation(A[7] , 6)
= LeftRotation(0x31536454fa5b88b0, 6)
= 0x54d9153e96e22c0c
A[8] = LeftRotation(A[8] , 55)
= LeftRotation(0x18d0d3d260993646, 55)
= 0x230c6869e9304c9b
A[9] = LeftRotation(A[9] , 20)
= LeftRotation(0xe525632c3aa43431, 20)
= 0x32c3aa43431e5256
A[10] = LeftRotation(A[10] , 3)
= LeftRotation(0xc9cb05c57900fde4, 3)
= 0x4e582e2bc807ef26
A[11] = LeftRotation(A[11] , 10)
= LeftRotation(0xe4836edbd8478799, 10)
= 0x0dbb6f611e1e6792
A[12] = LeftRotation(A[12] , 43)
= LeftRotation(0x082beb1f32353071, 43)
= 0xa98388415f58f991
A[13] = LeftRotation(A[13] , 25)
= LeftRotation(0x68d4d8074fa511be, 25)
= 0x0e9f4a237cd1a9b0
A[14] = LeftRotation(A[14] , 39)
= LeftRotation(0x9dff82136c54d044, 39)
= 0x2a68224effc109b6
A[15] = LeftRotation(A[15] , 41)
= LeftRotation(0xb79b4e51688e9dba, 41)
= 0x1d3b756f369ca2d1
A[16] = LeftRotation(A[16] , 45)
= LeftRotation(0xb5b8349bad08572d, 45)
= 0x0ae5b6b7069375a1
A[17] = LeftRotation(A[17] , 15)
= LeftRotation(0xc2dad55e28ecc9d7, 15)
= 0x6aaf147664ebe16d
A[18] = LeftRotation(A[18] , 21)
= LeftRotation(0x8d49bb23f6715a92, 21)
= 0x647ece2b5251a937
A[19] = LeftRotation(A[19] , 8)
= LeftRotation(0x16a4c3d6a58d1a71, 8)
= 0xa4c3d6a58d1a7116
A[20] = LeftRotation(A[20] , 18)
= LeftRotation(0xda1ed0c8c296a0a8, 18)
= 0x43230a5a82a3687b
A[21] = LeftRotation(A[21] , 2)
= LeftRotation(0x686b9f88b2acfb1b, 2)
= 0xa1ae7e22cab3ec6d
A[22] = LeftRotation(A[22] , 61)
= LeftRotation(0x991c18e05e5d37fb, 61)
= 0x7323831c0bcba6ff
A[23] = LeftRotation(A[23] , 56)
= LeftRotation(0xb431c39e87b9029c, 56)
= 0x9cb431c39e87b902



round 4: after rho
A[0] = 0x633f8bb50f1faf56
A[1] = 0x581ab207ccd4bf7b
A[2] = 0xca08ef46420e1d44
A[3] = 0x291e484cbfb0ee60
A[4] = 0x429fdbea2c56afe6
A[5] = 0xc119a737504f1ee0
A[6] = 0xa31182e51d1fcced
A[7] = 0x54d9153e96e22c0c
A[8] = 0x230c6869e9304c9b
A[9] = 0x32c3aa43431e5256
A[10] = 0x4e582e2bc807ef26
A[11] = 0x0dbb6f611e1e6792
A[12] = 0xa98388415f58f991
A[13] = 0x0e9f4a237cd1a9b0
A[14] = 0x2a68224effc109b6
A[15] = 0x1d3b756f369ca2d1
A[16] = 0x0ae5b6b7069375a1
A[17] = 0x6aaf147664ebe16d
A[18] = 0x647ece2b5251a937
A[19] = 0xa4c3d6a58d1a7116
A[20] = 0x43230a5a82a3687b
A[21] = 0xa1ae7e22cab3ec6d
A[22] = 0x7323831c0bcba6ff
A[23] = 0x9cb431c39e87b902
A[24] = 0x23a060be5c092594



round 4: pi
A1temp = A[1]
= 0x581ab207ccd4bf7b
A[1] = A[6]
= 0xa31182e51d1fcced
A[6] = A[9]
= 0x32c3aa43431e5256
A[9] = A[22]
= 0x7323831c0bcba6ff
A[22] = A[14]
= 0x2a68224effc109b6
A[14] = A[20]
= 0x43230a5a82a3687b
A[20] = A[2]
= 0xca08ef46420e1d44
A[2] = A[12]
= 0xa98388415f58f991
A[12] = A[13]
= 0x0e9f4a237cd1a9b0
A[13] = A[19]
= 0xa4c3d6a58d1a7116
A[19] = A[23]
= 0x9cb431c39e87b902
A[23] = A[15]
= 0x1d3b756f369ca2d1
A[15] = A[4]
= 0x429fdbea2c56afe6
A[4] = A[24]
= 0x23a060be5c092594
A[24] = A[21]
= 0xa1ae7e22cab3ec6d
A[21] = A[8]
= 0x230c6869e9304c9b
A[8] = A[16]
= 0x0ae5b6b7069375a1
A[16] = A[5]
= 0xc119a737504f1ee0
A[5] = A[3]
= 0x291e484cbfb0ee60
A[3] = A[18]
= 0x647ece2b5251a937
A[18] = A[17]
= 0x6aaf147664ebe16d
A[17] = A[11]
= 0x0dbb6f611e1e6792
A[11] = A[7]
= 0x54d9153e96e22c0c
A[7] = A[10]
= 0x4e582e2bc807ef26
A[10] = A1temp
= 0x581ab207ccd4bf7b



round 4: after pi
A[0] = 0x633f8bb50f1faf56
A[1] = 0xa31182e51d1fcced
A[2] = 0xa98388415f58f991
A[3] = 0x647ece2b5251a937
A[4] = 0x23a060be5c092594
A[5] = 0x291e484cbfb0ee60
A[6] = 0x32c3aa43431e5256
A[7] = 0x4e582e2bc807ef26
A[8] = 0x0ae5b6b7069375a1
A[9] = 0x7323831c0bcba6ff
A[10] = 0x581ab207ccd4bf7b
A[11] = 0x54d9153e96e22c0c
A[12] = 0x0e9f4a237cd1a9b0
A[13] = 0xa4c3d6a58d1a7116
A[14] = 0x43230a5a82a3687b
A[15] = 0x429fdbea2c56afe6
A[16] = 0xc119a737504f1ee0
A[17] = 0x0dbb6f611e1e6792
A[18] = 0x6aaf147664ebe16d
A[19] = 0x9cb431c39e87b902
A[20] = 0xca08ef46420e1d44
A[21] = 0x230c6869e9304c9b
A[22] = 0x2a68224effc109b6
A[23] = 0x1d3b756f369ca2d1
A[24] = 0xa1ae7e22cab3ec6d



round 4: chi
A0temp = A[0]
= 0x633f8bb50f1faf56
A1temp = A[1]
= 0xa31182e51d1fcced
A[0] = A[0] ^ (~A1temp & A[2])
= 0x633f8bb50f1faf56 ^ (~0xa31182e51d1fcced & 0xa98388415f58f991)
= 0x633f8bb50f1faf56 ^ (0x5cee7d1ae2e03312 & 0xa98388415f58f991)
= 0x633f8bb50f1faf56 ^ 0x0882080042403110
= 0x6bbd83b54d5f9e46
A[1] = A[1] ^ (~A[2] & A[3])
= 0xa31182e51d1fcced ^ (~0xa98388415f58f991 & 0x647ece2b5251a937)
= 0xa31182e51d1fcced ^ (0x567c77bea0a7066e & 0x647ece2b5251a937)
= 0xa31182e51d1fcced ^ 0x447c462a00010026
= 0xa31182e51d1fcced
A[2] = A[2] ^ (~A[3] & A[4])
= 0xa98388415f58f991 ^ (~0x647ece2b5251a937 & 0x23a060be5c092594)
= 0xa98388415f58f991 ^ (0x9b8131d4adae56c8 & 0x23a060be5c092594)
= 0xa98388415f58f991 ^ 0x038020940c080480
= 0x200288015250a911
A[3] = A[3] ^ (~A[4] & A0temp)
= 0x647ece2b5251a937 ^ (~0x23a060be5c092594 & 0x633f8bb50f1faf56)
= 0x647ece2b5251a937 ^ (0xdc5f9f41a3f6da6b & 0x633f8bb50f1faf56)
= 0x647ece2b5251a937 ^ 0x401f8b0103168a42
= 0xec7d466a51017136
A[4] = A[4] ^ (~A0temp & A1temp)
= 0x23a060be5c092594 ^ (~0x633f8bb50f1faf56 & 0xa31182e51d1fcced)
= 0x23a060be5c092594 ^ (0x9cc0744af0e050a9 & 0xa31182e51d1fcced)
= 0x23a060be5c092594 ^ 0x80000040100040a9
= 0xab2060fe0c497515
A5temp = A[5]
= 0x291e484cbfb0ee60
A6temp = A[6]
= 0x32c3aa43431e5256
A[5] = A[5] ^ (~A6temp & A[7])
= 0x291e484cbfb0ee60 ^ (~0x32c3aa43431e5256 & 0x4e582e2bc807ef26)
= 0x291e484cbfb0ee60 ^ (0xcd3c55bcbce1ada9 & 0x4e582e2bc807ef26)
= 0x291e484cbfb0ee60 ^ 0x4c1804288801ad20
= 0x65064c6437b14340
A[6] = A[6] ^ (~A[7] & A[8])
= 0x32c3aa43431e5256 ^ (~0x4e582e2bc807ef26 & 0x0ae5b6b7069375a1)
= 0x32c3aa43431e5256 ^ (0xb1a7d1d437f810d9 & 0x0ae5b6b7069375a1)
= 0x32c3aa43431e5256 ^ 0x00a5909406901081
= 0x32c3aa43431e5256
A[7] = A[7] ^ (~A[8] & A[9])
= 0x4e582e2bc807ef26 ^ (~0x0ae5b6b7069375a1 & 0x7323831c0bcba6ff)
= 0x4e582e2bc807ef26 ^ (0xf51a4948f96c8a5e & 0x7323831c0bcba6ff)
= 0x4e582e2bc807ef26 ^ 0x710201080948825e
= 0x0a40262300036520
A[8] = A[8] ^ (~A[9] & A5temp)
= 0x0ae5b6b7069375a1 ^ (~0x7323831c0bcba6ff & 0x291e484cbfb0ee60)
= 0x0ae5b6b7069375a1 ^ (0x8cdc7ce3f4345900 & 0x291e484cbfb0ee60)
= 0x0ae5b6b7069375a1 ^ 0x081c4840b4304800
= 0x06bd9a94c6973ca1
A[9] = A[9] ^ (~A5temp & A6temp)
= 0x7323831c0bcba6ff ^ (~0x291e484cbfb0ee60 & 0x32c3aa43431e5256)
= 0x7323831c0bcba6ff ^ (0xd6e1b7b3404f119f & 0x32c3aa43431e5256)
= 0x7323831c0bcba6ff ^ 0x12c1a203400e1016
= 0x3563a53f4bcca7f9
A10temp = A[10]
= 0x581ab207ccd4bf7b
A11temp = A[11]
= 0x54d9153e96e22c0c
A[10] = A[10] ^ (~A11temp & A[12])
= 0x581ab207ccd4bf7b ^ (~0x54d9153e96e22c0c & 0x0e9f4a237cd1a9b0)
= 0x581ab207ccd4bf7b ^ (0xab26eac1691dd3f3 & 0x0e9f4a237cd1a9b0)
= 0x581ab207ccd4bf7b ^ 0x0a064a01681181b0
= 0x521cf806a4c53ecb
A[11] = A[11] ^ (~A[12] & A[13])
= 0x54d9153e96e22c0c ^ (~0x0e9f4a237cd1a9b0 & 0xa4c3d6a58d1a7116)
= 0x54d9153e96e22c0c ^ (0xf160b5dc832e564f & 0xa4c3d6a58d1a7116)
= 0x54d9153e96e22c0c ^ 0xa0409484810a5006
= 0x54d9153e96e22c0c
A[12] = A[12] ^ (~A[13] & A[14])
= 0x0e9f4a237cd1a9b0 ^ (~0xa4c3d6a58d1a7116 & 0x43230a5a82a3687b)
= 0x0e9f4a237cd1a9b0 ^ (0x5b3c295a72e58ee9 & 0x43230a5a82a3687b)
= 0x0e9f4a237cd1a9b0 ^ 0x4320085a02a10869
= 0x048342210c102110
A[13] = A[13] ^ (~A[14] & A10temp)
= 0xa4c3d6a58d1a7116 ^ (~0x43230a5a82a3687b & 0x581ab207ccd4bf7b)
= 0xa4c3d6a58d1a7116 ^ (0xbcdcf5a57d5c9784 & 0x581ab207ccd4bf7b)
= 0xa4c3d6a58d1a7116 ^ 0x1818b0054c549700
= 0xa85f9684f14af096
A[14] = A[14] ^ (~A10temp & A11temp)
= 0x43230a5a82a3687b ^ (~0x581ab207ccd4bf7b & 0x54d9153e96e22c0c)
= 0x43230a5a82a3687b ^ (0xa7e54df8332b4084 & 0x54d9153e96e22c0c)
= 0x43230a5a82a3687b ^ 0x04c1053812220004
= 0x45a6427ab2a268fb
A15temp = A[15]
= 0x429fdbea2c56afe6
A16temp = A[16]
= 0xc119a737504f1ee0
A[15] = A[15] ^ (~A16temp & A[17])
= 0x429fdbea2c56afe6 ^ (~0xc119a737504f1ee0 & 0x0dbb6f611e1e6792)
= 0x429fdbea2c56afe6 ^ (0x3ee658c8afb0e11f & 0x0dbb6f611e1e6792)
= 0x429fdbea2c56afe6 ^ 0x0ca248400e106112
= 0x4e3d93aa2246cef4
A[16] = A[16] ^ (~A[17] & A[18])
= 0xc119a737504f1ee0 ^ (~0x0dbb6f611e1e6792 & 0x6aaf147664ebe16d)
= 0xc119a737504f1ee0 ^ (0xf244909ee1e1986d & 0x6aaf147664ebe16d)
= 0xc119a737504f1ee0 ^ 0x6204101660e1806d
= 0xc119a737504f1ee0
A[17] = A[17] ^ (~A[18] & A[19])
= 0x0dbb6f611e1e6792 ^ (~0x6aaf147664ebe16d & 0x9cb431c39e87b902)
= 0x0dbb6f611e1e6792 ^ (0x9550eb899b141e92 & 0x9cb431c39e87b902)
= 0x0dbb6f611e1e6792 ^ 0x941021819a041802
= 0x08ab0460040a6100
A[18] = A[18] ^ (~A[19] & A15temp)
= 0x6aaf147664ebe16d ^ (~0x9cb431c39e87b902 & 0x429fdbea2c56afe6)
= 0x6aaf147664ebe16d ^ (0x634bce3c617846fd & 0x429fdbea2c56afe6)
= 0x6aaf147664ebe16d ^ 0x420bca28205006e4
= 0x6ba45a5664f3a7fd
A[19] = A[19] ^ (~A15temp & A16temp)
= 0x9cb431c39e87b902 ^ (~0x429fdbea2c56afe6 & 0xc119a737504f1ee0)
= 0x9cb431c39e87b902 ^ (0xbd602415d3a95019 & 0xc119a737504f1ee0)
= 0x9cb431c39e87b902 ^ 0x8100241550091000
= 0x919415c28c8ff912
A20temp = A[20]
= 0xca08ef46420e1d44
A21temp = A[21]
= 0x230c6869e9304c9b
A[20] = A[20] ^ (~A21temp & A[22])
= 0xca08ef46420e1d44 ^ (~0x230c6869e9304c9b & 0x2a68224effc109b6)
= 0xca08ef46420e1d44 ^ (0xdcf3979616cfb364 & 0x2a68224effc109b6)
= 0xca08ef46420e1d44 ^ 0x0860020616c10124
= 0xc268ed4054cf1c60
A[21] = A[21] ^ (~A[22] & A[23])
= 0x230c6869e9304c9b ^ (~0x2a68224effc109b6 & 0x1d3b756f369ca2d1)
= 0x230c6869e9304c9b ^ (0xd597ddb1003ef649 & 0x1d3b756f369ca2d1)
= 0x230c6869e9304c9b ^ 0x15135521001ca241
= 0x230c6869e9304c9b
A[22] = A[22] ^ (~A[23] & A[24])
= 0x2a68224effc109b6 ^ (~0x1d3b756f369ca2d1 & 0xa1ae7e22cab3ec6d)
= 0x2a68224effc109b6 ^ (0xe2c48a90c9635d2e & 0xa1ae7e22cab3ec6d)
= 0x2a68224effc109b6 ^ 0xa0840a00c8234c2c
= 0x0828204e36800090
A[23] = A[23] ^ (~A[24] & A20temp)
= 0x1d3b756f369ca2d1 ^ (~0xa1ae7e22cab3ec6d & 0xca08ef46420e1d44)
= 0x1d3b756f369ca2d1 ^ (0x5e5181dd354c1392 & 0xca08ef46420e1d44)
= 0x1d3b756f369ca2d1 ^ 0x4a008144000c1100
= 0x177b752303dca343
A[24] = A[24] ^ (~A20temp & A21temp)
= 0xa1ae7e22cab3ec6d ^ (~0xca08ef46420e1d44 & 0x230c6869e9304c9b)
= 0xa1ae7e22cab3ec6d ^ (0x35f710b9bdf1e2bb & 0x230c6869e9304c9b)
= 0xa1ae7e22cab3ec6d ^ 0x21040029a930409b
= 0x81ce7e2a7772ecdf



round 4: after chi
A[0] = 0x6bbd83b54d5f9e46
A[1] = 0xe76dc4cf1d1ecccb
A[2] = 0xaa03a8d55350fd11
A[3] = 0x2461452a51472375
A[4] = 0xa3a060fe4c09653d
A[5] = 0x65064c6437b14340
A[6] = 0x32663ad7458e42d7
A[7] = 0x3f5a2f23c14f6d78
A[8] = 0x02f9fef7b2a33da1
A[9] = 0x61e2211f4bc5b6e9
A[10] = 0x521cf806a4c53ecb
A[11] = 0xf49981ba17e87c0a
A[12] = 0x4dbf42797e70a1d9
A[13] = 0xbcdb66a0c14ee616
A[14] = 0x47e20f629081687f
A[15] = 0x4e3d93aa2246cef4
A[16] = 0xa31db72130ae9e8d
A[17] = 0x99ab4ee0841a7f90
A[18] = 0x28a4de5e44bbe789
A[19] = 0x1db415d6ce8ea902
A[20] = 0xc268ed4054cf1c60
A[21] = 0x361f3d48e92ceeda
A[22] = 0x8aec284e37e2459a
A[23] = 0x573bf42b3690b3d1
A[24] = 0x80aa7e0b6383acf6



round 4: iota
A[0] = A[0] ^ rc[4]
= 0x6bbd83b54d5f9e46 ^ 0x000000000000808b
= 0x6bbd83b54d5f1ecd



round 4: after iota
A[0] = 0x6bbd83b54d5f1ecd
A[1] = 0xe76dc4cf1d1ecccb
A[2] = 0xaa03a8d55350fd11
A[3] = 0x2461452a51472375
A[4] = 0xa3a060fe4c09653d
A[5] = 0x65064c6437b14340
A[6] = 0x32663ad7458e42d7
A[7] = 0x3f5a2f23c14f6d78
A[8] = 0x02f9fef7b2a33da1
A[9] = 0x61e2211f4bc5b6e9
A[10] = 0x521cf806a4c53ecb
A[11] = 0xf49981ba17e87c0a
A[12] = 0x4dbf42797e70a1d9
A[13] = 0xbcdb66a0c14ee616
A[14] = 0x47e20f629081687f
A[15] = 0x4e3d93aa2246cef4
A[16] = 0xa31db72130ae9e8d
A[17] = 0x99ab4ee0841a7f90
A[18] = 0x28a4de5e44bbe789
A[19] = 0x1db415d6ce8ea902
A[20] = 0xc268ed4054cf1c60
A[21] = 0x361f3d48e92ceeda
A[22] = 0x8aec284e37e2459a
A[23] = 0x573bf42b3690b3d1
A[24] = 0x80aa7e0b6383acf6