Lines Matching full:a
23 * with a 'W(t)=(val);asm("":"+m" (W(t))' there instead, as
32 * On ARM we get the best code generation by forcing a full memory barrier
55 #define SHA_ROUND(t, input, fn, constant, A, B, C, D, E) do { \ argument
57 E += TEMP + rol32(A,5) + (fn) + (constant); \
60 #define T_0_15(t, A, B, C, D, E) SHA_ROUND(t, SHA_SRC, (((C^D)&B)^D) , 0x5a827999, A, B, C, D, E ) argument
61 #define T_16_19(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (((C^D)&B)^D) , 0x5a827999, A, B, C, D, E ) argument
62 #define T_20_39(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (B^C^D) , 0x6ed9eba1, A, B, C, D, E ) argument
63 #define T_40_59(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, ((B&C)+(D&(B^C))) , 0x8f1bbcdc, A, B, C, D,… argument
64 #define T_60_79(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (B^C^D) , 0xca62c1d6, A, B, C, D, E ) argument
74 * 160-bit internal state (@digest) with a single 512-bit data block (@data).
86 __u32 A, B, C, D, E; in sha1_transform() local
88 A = digest[0]; in sha1_transform()
95 T_0_15( 0, A, B, C, D, E); in sha1_transform()
96 T_0_15( 1, E, A, B, C, D); in sha1_transform()
97 T_0_15( 2, D, E, A, B, C); in sha1_transform()
98 T_0_15( 3, C, D, E, A, B); in sha1_transform()
99 T_0_15( 4, B, C, D, E, A); in sha1_transform()
100 T_0_15( 5, A, B, C, D, E); in sha1_transform()
101 T_0_15( 6, E, A, B, C, D); in sha1_transform()
102 T_0_15( 7, D, E, A, B, C); in sha1_transform()
103 T_0_15( 8, C, D, E, A, B); in sha1_transform()
104 T_0_15( 9, B, C, D, E, A); in sha1_transform()
105 T_0_15(10, A, B, C, D, E); in sha1_transform()
106 T_0_15(11, E, A, B, C, D); in sha1_transform()
107 T_0_15(12, D, E, A, B, C); in sha1_transform()
108 T_0_15(13, C, D, E, A, B); in sha1_transform()
109 T_0_15(14, B, C, D, E, A); in sha1_transform()
110 T_0_15(15, A, B, C, D, E); in sha1_transform()
113 T_16_19(16, E, A, B, C, D); in sha1_transform()
114 T_16_19(17, D, E, A, B, C); in sha1_transform()
115 T_16_19(18, C, D, E, A, B); in sha1_transform()
116 T_16_19(19, B, C, D, E, A); in sha1_transform()
119 T_20_39(20, A, B, C, D, E); in sha1_transform()
120 T_20_39(21, E, A, B, C, D); in sha1_transform()
121 T_20_39(22, D, E, A, B, C); in sha1_transform()
122 T_20_39(23, C, D, E, A, B); in sha1_transform()
123 T_20_39(24, B, C, D, E, A); in sha1_transform()
124 T_20_39(25, A, B, C, D, E); in sha1_transform()
125 T_20_39(26, E, A, B, C, D); in sha1_transform()
126 T_20_39(27, D, E, A, B, C); in sha1_transform()
127 T_20_39(28, C, D, E, A, B); in sha1_transform()
128 T_20_39(29, B, C, D, E, A); in sha1_transform()
129 T_20_39(30, A, B, C, D, E); in sha1_transform()
130 T_20_39(31, E, A, B, C, D); in sha1_transform()
131 T_20_39(32, D, E, A, B, C); in sha1_transform()
132 T_20_39(33, C, D, E, A, B); in sha1_transform()
133 T_20_39(34, B, C, D, E, A); in sha1_transform()
134 T_20_39(35, A, B, C, D, E); in sha1_transform()
135 T_20_39(36, E, A, B, C, D); in sha1_transform()
136 T_20_39(37, D, E, A, B, C); in sha1_transform()
137 T_20_39(38, C, D, E, A, B); in sha1_transform()
138 T_20_39(39, B, C, D, E, A); in sha1_transform()
141 T_40_59(40, A, B, C, D, E); in sha1_transform()
142 T_40_59(41, E, A, B, C, D); in sha1_transform()
143 T_40_59(42, D, E, A, B, C); in sha1_transform()
144 T_40_59(43, C, D, E, A, B); in sha1_transform()
145 T_40_59(44, B, C, D, E, A); in sha1_transform()
146 T_40_59(45, A, B, C, D, E); in sha1_transform()
147 T_40_59(46, E, A, B, C, D); in sha1_transform()
148 T_40_59(47, D, E, A, B, C); in sha1_transform()
149 T_40_59(48, C, D, E, A, B); in sha1_transform()
150 T_40_59(49, B, C, D, E, A); in sha1_transform()
151 T_40_59(50, A, B, C, D, E); in sha1_transform()
152 T_40_59(51, E, A, B, C, D); in sha1_transform()
153 T_40_59(52, D, E, A, B, C); in sha1_transform()
154 T_40_59(53, C, D, E, A, B); in sha1_transform()
155 T_40_59(54, B, C, D, E, A); in sha1_transform()
156 T_40_59(55, A, B, C, D, E); in sha1_transform()
157 T_40_59(56, E, A, B, C, D); in sha1_transform()
158 T_40_59(57, D, E, A, B, C); in sha1_transform()
159 T_40_59(58, C, D, E, A, B); in sha1_transform()
160 T_40_59(59, B, C, D, E, A); in sha1_transform()
163 T_60_79(60, A, B, C, D, E); in sha1_transform()
164 T_60_79(61, E, A, B, C, D); in sha1_transform()
165 T_60_79(62, D, E, A, B, C); in sha1_transform()
166 T_60_79(63, C, D, E, A, B); in sha1_transform()
167 T_60_79(64, B, C, D, E, A); in sha1_transform()
168 T_60_79(65, A, B, C, D, E); in sha1_transform()
169 T_60_79(66, E, A, B, C, D); in sha1_transform()
170 T_60_79(67, D, E, A, B, C); in sha1_transform()
171 T_60_79(68, C, D, E, A, B); in sha1_transform()
172 T_60_79(69, B, C, D, E, A); in sha1_transform()
173 T_60_79(70, A, B, C, D, E); in sha1_transform()
174 T_60_79(71, E, A, B, C, D); in sha1_transform()
175 T_60_79(72, D, E, A, B, C); in sha1_transform()
176 T_60_79(73, C, D, E, A, B); in sha1_transform()
177 T_60_79(74, B, C, D, E, A); in sha1_transform()
178 T_60_79(75, A, B, C, D, E); in sha1_transform()
179 T_60_79(76, E, A, B, C, D); in sha1_transform()
180 T_60_79(77, D, E, A, B, C); in sha1_transform()
181 T_60_79(78, C, D, E, A, B); in sha1_transform()
182 T_60_79(79, B, C, D, E, A); in sha1_transform()
184 digest[0] += A; in sha1_transform()
193 * sha1_init - initialize the vectors for a SHA1 digest