mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	aesni_gcm_mult() now returns void
This commit is contained in:
		
							parent
							
								
									bfa3c9a85f
								
							
						
					
					
						commit
						d4588cfb6a
					
				@ -74,10 +74,8 @@ int aesni_crypt_ecb( aes_context *ctx,
 | 
			
		||||
 *
 | 
			
		||||
 * \note           Both operands and result are bit strings interpreted as
 | 
			
		||||
 *                 elements of GF(2^128) as per the GCM spec.
 | 
			
		||||
 *
 | 
			
		||||
 * \return         0 on success (cannot fail)
 | 
			
		||||
 */
 | 
			
		||||
int aesni_gcm_mult( unsigned char c[16],
 | 
			
		||||
void aesni_gcm_mult( unsigned char c[16],
 | 
			
		||||
                     const unsigned char a[16],
 | 
			
		||||
                     const unsigned char b[16] );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -107,7 +107,7 @@ int aesni_crypt_ecb( aes_context *ctx,
 | 
			
		||||
 * GCM multiplication: c = a times b in GF(2^128)
 | 
			
		||||
 * Based on [CLMUL-WP] algorithms 1 (with equation 27) and 5.
 | 
			
		||||
 */
 | 
			
		||||
int aesni_gcm_mult( unsigned char c[16],
 | 
			
		||||
void aesni_gcm_mult( unsigned char c[16],
 | 
			
		||||
                     const unsigned char a[16],
 | 
			
		||||
                     const unsigned char b[16] )
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
@ -198,7 +198,7 @@ static void gcm_mult( gcm_context *ctx, const unsigned char x[16],
 | 
			
		||||
        PUT_UINT32_BE( ctx->HL[8] >> 32, h,  8 );
 | 
			
		||||
        PUT_UINT32_BE( ctx->HL[8],       h, 12 );
 | 
			
		||||
 | 
			
		||||
        (void) aesni_gcm_mult( output, x, h );
 | 
			
		||||
        aesni_gcm_mult( output, x, h );
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user