File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -178,21 +178,21 @@ unsafe fn rounds_0_63_avx2(
178
178
}
179
179
180
180
#[ inline( always) ]
181
- unsafe fn rounds_64_79 ( current_state : & mut State , ms : & MsgSchedule ) {
181
+ fn rounds_64_79 ( current_state : & mut State , ms : & MsgSchedule ) {
182
182
for i in 64 ..80 {
183
183
sha_round ( current_state, ms[ i & 0xf ] ) ;
184
184
}
185
185
}
186
186
187
187
#[ inline( always) ]
188
- unsafe fn process_second_block ( current_state : & mut State , t2 : & RoundStates ) {
188
+ fn process_second_block ( current_state : & mut State , t2 : & RoundStates ) {
189
189
for t2 in t2. iter ( ) {
190
190
sha_round ( current_state, * t2) ;
191
191
}
192
192
}
193
193
194
194
#[ inline( always) ]
195
- unsafe fn sha_round ( s : & mut State , x : u64 ) {
195
+ fn sha_round ( s : & mut State , x : u64 ) {
196
196
macro_rules! big_sigma0 {
197
197
( $a: expr) => {
198
198
$a. rotate_right( 28 ) ^ $a. rotate_right( 34 ) ^ $a. rotate_right( 39 )
@@ -242,7 +242,7 @@ unsafe fn sha_round(s: &mut State, x: u64) {
242
242
}
243
243
244
244
#[ inline( always) ]
245
- unsafe fn accumulate_state ( dst : & mut State , src : & State ) {
245
+ fn accumulate_state ( dst : & mut State , src : & State ) {
246
246
for i in 0 ..SHA512_HASH_WORDS_NUM {
247
247
dst[ i] = dst[ i] . wrapping_add ( src[ i] ) ;
248
248
}
You can’t perform that action at this time.
0 commit comments