mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 12:11:27 -05:00 
			
		
		
		
	Remove GMAC algorithm (for now)
It can't be implemented with the current version of the API
This commit is contained in:
		
							parent
							
								
									fd2aed4d76
								
							
						
					
					
						commit
						2282cfa660
					
				@ -845,7 +845,6 @@
 | 
			
		||||
#define PSA_ALG_CBC_MAC                         ((psa_algorithm_t)0x02c00001)
 | 
			
		||||
/** The CMAC construction over a block cipher */
 | 
			
		||||
#define PSA_ALG_CMAC                            ((psa_algorithm_t)0x02c00002)
 | 
			
		||||
#define PSA_ALG_GMAC                            ((psa_algorithm_t)0x02c00003)
 | 
			
		||||
 | 
			
		||||
/** Whether the specified algorithm is a MAC algorithm based on a block cipher.
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
@ -2005,8 +2005,6 @@ static const mbedtls_cipher_info_t *mbedtls_cipher_info_from_psa(
 | 
			
		||||
    }
 | 
			
		||||
    else if( alg == PSA_ALG_CMAC )
 | 
			
		||||
        mode = MBEDTLS_MODE_ECB;
 | 
			
		||||
    else if( alg == PSA_ALG_GMAC )
 | 
			
		||||
        mode = MBEDTLS_MODE_GCM;
 | 
			
		||||
    else
 | 
			
		||||
        return( NULL );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -150,18 +150,6 @@ MAC: CMAC-3DES
 | 
			
		||||
depends_on:MBEDTLS_DES_C:MBEDTLS_CMAC_C
 | 
			
		||||
mac_algorithm:PSA_ALG_CMAC:ALG_IS_BLOCK_CIPHER_MAC:8:PSA_KEY_TYPE_DES:192
 | 
			
		||||
 | 
			
		||||
MAC: GMAC-AES-128
 | 
			
		||||
depends_on:MBEDTLS_AES_C:MBEDTLS_GCM_C
 | 
			
		||||
mac_algorithm:PSA_ALG_GMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:128
 | 
			
		||||
 | 
			
		||||
MAC: GMAC-AES-192
 | 
			
		||||
depends_on:MBEDTLS_AES_C:MBEDTLS_GCM_C
 | 
			
		||||
mac_algorithm:PSA_ALG_GMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:192
 | 
			
		||||
 | 
			
		||||
MAC: GMAC-AES-256
 | 
			
		||||
depends_on:MBEDTLS_AES_C:MBEDTLS_GCM_C
 | 
			
		||||
mac_algorithm:PSA_ALG_GMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:256
 | 
			
		||||
 | 
			
		||||
Cipher: ARC4
 | 
			
		||||
depends_on:MBEDTLS_ARC4_C
 | 
			
		||||
cipher_algorithm:PSA_ALG_ARC4:ALG_IS_STREAM_CIPHER
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user