mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	set chacha20 counter to 1
This commit is contained in:
		
							parent
							
								
									42c3c28ea7
								
							
						
					
					
						commit
						9b64be07a9
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1239,7 +1239,7 @@ namespace crypto
 | 
			
		|||
		EVP_CIPHER_CTX_free (ctx);
 | 
			
		||||
#else
 | 
			
		||||
		chacha::Chacha20State state;
 | 
			
		||||
		chacha::Chacha20Init (state, nonce, key, 0);	
 | 
			
		||||
		chacha::Chacha20Init (state, nonce, key, 1);	
 | 
			
		||||
		if (out != msg) memcpy (out, msg, msgLen);
 | 
			
		||||
		chacha::Chacha20Encrypt (state, out, msgLen);
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue