• Home
  • Raw
  • Download

Lines Matching refs:st

47 static SHA3_INLINE void keccakf_round(u64 st[25])  in keccakf_round()
52 bc[0] = st[0] ^ st[5] ^ st[10] ^ st[15] ^ st[20]; in keccakf_round()
53 bc[1] = st[1] ^ st[6] ^ st[11] ^ st[16] ^ st[21]; in keccakf_round()
54 bc[2] = st[2] ^ st[7] ^ st[12] ^ st[17] ^ st[22]; in keccakf_round()
55 bc[3] = st[3] ^ st[8] ^ st[13] ^ st[18] ^ st[23]; in keccakf_round()
56 bc[4] = st[4] ^ st[9] ^ st[14] ^ st[19] ^ st[24]; in keccakf_round()
64 st[0] ^= t[0]; in keccakf_round()
67 tt = st[1]; in keccakf_round()
68 st[ 1] = rol64(st[ 6] ^ t[1], 44); in keccakf_round()
69 st[ 6] = rol64(st[ 9] ^ t[4], 20); in keccakf_round()
70 st[ 9] = rol64(st[22] ^ t[2], 61); in keccakf_round()
71 st[22] = rol64(st[14] ^ t[4], 39); in keccakf_round()
72 st[14] = rol64(st[20] ^ t[0], 18); in keccakf_round()
73 st[20] = rol64(st[ 2] ^ t[2], 62); in keccakf_round()
74 st[ 2] = rol64(st[12] ^ t[2], 43); in keccakf_round()
75 st[12] = rol64(st[13] ^ t[3], 25); in keccakf_round()
76 st[13] = rol64(st[19] ^ t[4], 8); in keccakf_round()
77 st[19] = rol64(st[23] ^ t[3], 56); in keccakf_round()
78 st[23] = rol64(st[15] ^ t[0], 41); in keccakf_round()
79 st[15] = rol64(st[ 4] ^ t[4], 27); in keccakf_round()
80 st[ 4] = rol64(st[24] ^ t[4], 14); in keccakf_round()
81 st[24] = rol64(st[21] ^ t[1], 2); in keccakf_round()
82 st[21] = rol64(st[ 8] ^ t[3], 55); in keccakf_round()
83 st[ 8] = rol64(st[16] ^ t[1], 45); in keccakf_round()
84 st[16] = rol64(st[ 5] ^ t[0], 36); in keccakf_round()
85 st[ 5] = rol64(st[ 3] ^ t[3], 28); in keccakf_round()
86 st[ 3] = rol64(st[18] ^ t[3], 21); in keccakf_round()
87 st[18] = rol64(st[17] ^ t[2], 15); in keccakf_round()
88 st[17] = rol64(st[11] ^ t[1], 10); in keccakf_round()
89 st[11] = rol64(st[ 7] ^ t[2], 6); in keccakf_round()
90 st[ 7] = rol64(st[10] ^ t[0], 3); in keccakf_round()
91 st[10] = rol64( tt ^ t[1], 1); in keccakf_round()
94 bc[ 0] = ~st[ 1] & st[ 2]; in keccakf_round()
95 bc[ 1] = ~st[ 2] & st[ 3]; in keccakf_round()
96 bc[ 2] = ~st[ 3] & st[ 4]; in keccakf_round()
97 bc[ 3] = ~st[ 4] & st[ 0]; in keccakf_round()
98 bc[ 4] = ~st[ 0] & st[ 1]; in keccakf_round()
99 st[ 0] ^= bc[ 0]; in keccakf_round()
100 st[ 1] ^= bc[ 1]; in keccakf_round()
101 st[ 2] ^= bc[ 2]; in keccakf_round()
102 st[ 3] ^= bc[ 3]; in keccakf_round()
103 st[ 4] ^= bc[ 4]; in keccakf_round()
105 bc[ 0] = ~st[ 6] & st[ 7]; in keccakf_round()
106 bc[ 1] = ~st[ 7] & st[ 8]; in keccakf_round()
107 bc[ 2] = ~st[ 8] & st[ 9]; in keccakf_round()
108 bc[ 3] = ~st[ 9] & st[ 5]; in keccakf_round()
109 bc[ 4] = ~st[ 5] & st[ 6]; in keccakf_round()
110 st[ 5] ^= bc[ 0]; in keccakf_round()
111 st[ 6] ^= bc[ 1]; in keccakf_round()
112 st[ 7] ^= bc[ 2]; in keccakf_round()
113 st[ 8] ^= bc[ 3]; in keccakf_round()
114 st[ 9] ^= bc[ 4]; in keccakf_round()
116 bc[ 0] = ~st[11] & st[12]; in keccakf_round()
117 bc[ 1] = ~st[12] & st[13]; in keccakf_round()
118 bc[ 2] = ~st[13] & st[14]; in keccakf_round()
119 bc[ 3] = ~st[14] & st[10]; in keccakf_round()
120 bc[ 4] = ~st[10] & st[11]; in keccakf_round()
121 st[10] ^= bc[ 0]; in keccakf_round()
122 st[11] ^= bc[ 1]; in keccakf_round()
123 st[12] ^= bc[ 2]; in keccakf_round()
124 st[13] ^= bc[ 3]; in keccakf_round()
125 st[14] ^= bc[ 4]; in keccakf_round()
127 bc[ 0] = ~st[16] & st[17]; in keccakf_round()
128 bc[ 1] = ~st[17] & st[18]; in keccakf_round()
129 bc[ 2] = ~st[18] & st[19]; in keccakf_round()
130 bc[ 3] = ~st[19] & st[15]; in keccakf_round()
131 bc[ 4] = ~st[15] & st[16]; in keccakf_round()
132 st[15] ^= bc[ 0]; in keccakf_round()
133 st[16] ^= bc[ 1]; in keccakf_round()
134 st[17] ^= bc[ 2]; in keccakf_round()
135 st[18] ^= bc[ 3]; in keccakf_round()
136 st[19] ^= bc[ 4]; in keccakf_round()
138 bc[ 0] = ~st[21] & st[22]; in keccakf_round()
139 bc[ 1] = ~st[22] & st[23]; in keccakf_round()
140 bc[ 2] = ~st[23] & st[24]; in keccakf_round()
141 bc[ 3] = ~st[24] & st[20]; in keccakf_round()
142 bc[ 4] = ~st[20] & st[21]; in keccakf_round()
143 st[20] ^= bc[ 0]; in keccakf_round()
144 st[21] ^= bc[ 1]; in keccakf_round()
145 st[22] ^= bc[ 2]; in keccakf_round()
146 st[23] ^= bc[ 3]; in keccakf_round()
147 st[24] ^= bc[ 4]; in keccakf_round()
150 static void keccakf(u64 st[25]) in keccakf()
155 keccakf_round(st); in keccakf()
157 st[0] ^= keccakf_rndc[round]; in keccakf()
170 memset(sctx->st, 0, sizeof(sctx->st)); in crypto_sha3_init()
197 sctx->st[i] ^= get_unaligned_le64(src + 8 * i); in crypto_sha3_update()
198 keccakf(sctx->st); in crypto_sha3_update()
225 sctx->st[i] ^= get_unaligned_le64(sctx->buf + 8 * i); in crypto_sha3_final()
227 keccakf(sctx->st); in crypto_sha3_final()
230 put_unaligned_le64(sctx->st[i], digest++); in crypto_sha3_final()
233 put_unaligned_le32(sctx->st[i], (__le32 *)digest); in crypto_sha3_final()