one more readable for loop
This commit is contained in:
		
							parent
							
								
									f831e27702
								
							
						
					
					
						commit
						4e66160ac2
					
				@ -241,7 +241,9 @@ int sha3_done(hash_state *md, unsigned char *hash)
 | 
				
			|||||||
   keccakf(md->sha3.s);
 | 
					   keccakf(md->sha3.s);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   /* store sha3.s[] as little-endian bytes into sha3.sb */
 | 
					   /* store sha3.s[] as little-endian bytes into sha3.sb */
 | 
				
			||||||
   for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) STORE64L(md->sha3.s[i], md->sha3.sb + i * 8);
 | 
					   for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) {
 | 
				
			||||||
 | 
					      STORE64L(md->sha3.s[i], md->sha3.sb + i * 8);
 | 
				
			||||||
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   XMEMCPY(hash, md->sha3.sb, md->sha3.capacity_words * 4);
 | 
					   XMEMCPY(hash, md->sha3.sb, md->sha3.capacity_words * 4);
 | 
				
			||||||
   return CRYPT_OK;
 | 
					   return CRYPT_OK;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user