mirror of
				https://github.com/yuzu-emu/mbedtls.git
				synced 2025-11-04 14:25:15 +00:00 
			
		
		
		
	Fix pkparse bug wrt MBEDTLS_RSA_ALT
Some code paths want to access members of the mbedtls_rsa_context structure. We can only do that when using our own implementation, as otherwise we don't know anything about that structure.
This commit is contained in:
		
							parent
							
								
									96ed13e21b
								
							
						
					
					
						commit
						d09fcdedb9
					
				| 
						 | 
					@ -784,7 +784,7 @@ static int pk_parse_key_pkcs1_der( mbedtls_rsa_context *rsa,
 | 
				
			||||||
                                        NULL, NULL ) ) != 0 )
 | 
					                                        NULL, NULL ) ) != 0 )
 | 
				
			||||||
        goto cleanup;
 | 
					        goto cleanup;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(MBEDTLS_RSA_NO_CRT)
 | 
					#if !defined(MBEDTLS_RSA_NO_CRT) && !defined(MBEDTLS_RSA_ALT)
 | 
				
			||||||
    /*
 | 
					    /*
 | 
				
			||||||
    * The RSA CRT parameters DP, DQ and QP are nominally redundant, in
 | 
					    * The RSA CRT parameters DP, DQ and QP are nominally redundant, in
 | 
				
			||||||
    * that they can be easily recomputed from D, P and Q. However by
 | 
					    * that they can be easily recomputed from D, P and Q. However by
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue