bug: wrong parentheses in condition with assignment
This commit is contained in:
		
							parent
							
								
									649ef0faef
								
							
						
					
					
						commit
						203087d6d7
					
				| @ -94,8 +94,8 @@ int xts_decrypt(const unsigned char *ct, unsigned long ptlen, unsigned char *pt, | ||||
|    if (cipher_descriptor[xts->cipher].accel_xts_decrypt && lim > 0) { | ||||
| 
 | ||||
|       /* use accelerated decryption for whole blocks */ | ||||
|       if ((err = cipher_descriptor[xts->cipher].accel_xts_decrypt(ct, pt, lim, tweak, &xts->key1, &xts->key2) != | ||||
|                  CRYPT_OK)) { | ||||
|       if ((err = cipher_descriptor[xts->cipher].accel_xts_decrypt(ct, pt, lim, tweak, &xts->key1, &xts->key2)) != | ||||
|                  CRYPT_OK) { | ||||
|          return err; | ||||
|       } | ||||
|       ct += lim * 16; | ||||
|  | ||||
| @ -96,8 +96,8 @@ int xts_encrypt(const unsigned char *pt, unsigned long ptlen, unsigned char *ct, | ||||
|    if (cipher_descriptor[xts->cipher].accel_xts_encrypt && lim > 0) { | ||||
| 
 | ||||
|       /* use accelerated encryption for whole blocks */ | ||||
|       if ((err = cipher_descriptor[xts->cipher].accel_xts_encrypt(pt, ct, lim, tweak, &xts->key1, &xts->key2) != | ||||
|                  CRYPT_OK)) { | ||||
|       if ((err = cipher_descriptor[xts->cipher].accel_xts_encrypt(pt, ct, lim, tweak, &xts->key1, &xts->key2)) != | ||||
|                  CRYPT_OK) { | ||||
|          return err; | ||||
|       } | ||||
|       ct += lim * 16; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user