mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	aes: xts: Fix description of gf128mul
THe function `mbedtls_gf128mul_x_ble()` doesn't multiply by x, x^4, and x^8. Update the function description to properly describe what the function does.
This commit is contained in:
		
							parent
							
								
									f167deb6e0
								
							
						
					
					
						commit
						5f0b06aeda
					
				@ -1105,10 +1105,10 @@ typedef unsigned char mbedtls_be128[16];
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * GF(2^128) multiplication function
 | 
					 * GF(2^128) multiplication function
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * This function multiplies a field element by x, by x^4 and by x^8 in the
 | 
					 * This function multiplies a field element by x in the polynomial field
 | 
				
			||||||
 * polynomial field representation. It uses 64-bit word operations to gain
 | 
					 * representation. It uses 64-bit word operations to gain speed but compensates
 | 
				
			||||||
 * speed but compensates for machine endianess and hence works correctly on
 | 
					 * for machine endianess and hence works correctly on both big and little
 | 
				
			||||||
 * both big and little endian machines.
 | 
					 * endian machines.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
static void mbedtls_gf128mul_x_ble( unsigned char r[16],
 | 
					static void mbedtls_gf128mul_x_ble( unsigned char r[16],
 | 
				
			||||||
                                    const unsigned char x[16])
 | 
					                                    const unsigned char x[16])
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user