mirror of
				https://github.com/yuzu-emu/mbedtls.git
				synced 2025-11-04 15:25:03 +00:00 
			
		
		
		
	Merge pull request #3836 from bensze01/ecb_iv_fix
Do not set iv size for ECB mode ciphers
This commit is contained in:
		
						commit
						e3994d7269
					
				
							
								
								
									
										3
									
								
								ChangeLog.d/ecb_iv_fix.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								ChangeLog.d/ecb_iv_fix.txt
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
Bugfix
 | 
			
		||||
   * Correct the default IV size for mbedtls_cipher_info_t structures using
 | 
			
		||||
     MBEDTLS_MODE_ECB to 0, since ECB mode ciphers don't use IVs.
 | 
			
		||||
| 
						 | 
				
			
			@ -753,7 +753,7 @@ static const mbedtls_cipher_info_t camellia_128_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    128,
 | 
			
		||||
    "CAMELLIA-128-ECB",
 | 
			
		||||
    16,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    16,
 | 
			
		||||
    &camellia_info
 | 
			
		||||
| 
						 | 
				
			
			@ -764,7 +764,7 @@ static const mbedtls_cipher_info_t camellia_192_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    192,
 | 
			
		||||
    "CAMELLIA-192-ECB",
 | 
			
		||||
    16,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    16,
 | 
			
		||||
    &camellia_info
 | 
			
		||||
| 
						 | 
				
			
			@ -775,7 +775,7 @@ static const mbedtls_cipher_info_t camellia_256_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    256,
 | 
			
		||||
    "CAMELLIA-256-ECB",
 | 
			
		||||
    16,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    16,
 | 
			
		||||
    &camellia_info
 | 
			
		||||
| 
						 | 
				
			
			@ -1129,7 +1129,7 @@ static const mbedtls_cipher_info_t aria_128_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    128,
 | 
			
		||||
    "ARIA-128-ECB",
 | 
			
		||||
    16,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    16,
 | 
			
		||||
    &aria_info
 | 
			
		||||
| 
						 | 
				
			
			@ -1140,7 +1140,7 @@ static const mbedtls_cipher_info_t aria_192_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    192,
 | 
			
		||||
    "ARIA-192-ECB",
 | 
			
		||||
    16,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    16,
 | 
			
		||||
    &aria_info
 | 
			
		||||
| 
						 | 
				
			
			@ -1151,7 +1151,7 @@ static const mbedtls_cipher_info_t aria_256_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    256,
 | 
			
		||||
    "ARIA-256-ECB",
 | 
			
		||||
    16,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    16,
 | 
			
		||||
    &aria_info
 | 
			
		||||
| 
						 | 
				
			
			@ -1553,7 +1553,7 @@ static const mbedtls_cipher_info_t des_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    MBEDTLS_KEY_LENGTH_DES,
 | 
			
		||||
    "DES-ECB",
 | 
			
		||||
    8,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    8,
 | 
			
		||||
    &des_info
 | 
			
		||||
| 
						 | 
				
			
			@ -1604,7 +1604,7 @@ static const mbedtls_cipher_info_t des_ede_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    MBEDTLS_KEY_LENGTH_DES_EDE,
 | 
			
		||||
    "DES-EDE-ECB",
 | 
			
		||||
    8,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    8,
 | 
			
		||||
    &des_ede_info
 | 
			
		||||
| 
						 | 
				
			
			@ -1655,7 +1655,7 @@ static const mbedtls_cipher_info_t des_ede3_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    MBEDTLS_KEY_LENGTH_DES_EDE3,
 | 
			
		||||
    "DES-EDE3-ECB",
 | 
			
		||||
    8,
 | 
			
		||||
    0,
 | 
			
		||||
    0,
 | 
			
		||||
    8,
 | 
			
		||||
    &des_ede3_info
 | 
			
		||||
| 
						 | 
				
			
			@ -1770,7 +1770,7 @@ static const mbedtls_cipher_info_t blowfish_ecb_info = {
 | 
			
		|||
    MBEDTLS_MODE_ECB,
 | 
			
		||||
    128,
 | 
			
		||||
    "BLOWFISH-ECB",
 | 
			
		||||
    8,
 | 
			
		||||
    0,
 | 
			
		||||
    MBEDTLS_CIPHER_VARIABLE_KEY_LEN,
 | 
			
		||||
    8,
 | 
			
		||||
    &blowfish_info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue