mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Mention that mpi_fill_random interprets PRNG output as big-endian
This commit is contained in:
		
							parent
							
								
									6f63db7ed5
								
							
						
					
					
						commit
						15f2b3e538
					
				@ -683,6 +683,10 @@ int mbedtls_mpi_exp_mod( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi
 | 
			
		||||
 *
 | 
			
		||||
 * \return         0 if successful,
 | 
			
		||||
 *                 MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed
 | 
			
		||||
 *
 | 
			
		||||
 * \note           The bytes obtained from the PRNG are interpreted
 | 
			
		||||
 *                 as a big-endian representation of an MPI; this can
 | 
			
		||||
 *                 be relevant in applications like deterministic ECDSA.
 | 
			
		||||
 */
 | 
			
		||||
int mbedtls_mpi_fill_random( mbedtls_mpi *X, size_t size,
 | 
			
		||||
                     int (*f_rng)(void *, unsigned char *, size_t),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user