mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 09:01:40 +01:00 
			
		
		
		
	libsodium: Enables UTs for ESP32-S2 & C3
This commit is contained in:
		
				
					committed by
					
						
						bot
					
				
			
			
				
	
			
			
			
						parent
						
							e290d1ff41
						
					
				
				
					commit
					e29b99f1a5
				
			@@ -14,9 +14,9 @@
 | 
			
		||||
#include "randombytes_default.h"
 | 
			
		||||
#include "esp_system.h"
 | 
			
		||||
 | 
			
		||||
static const char *randombytes_esp32_implementation_name(void)
 | 
			
		||||
static const char *randombytes_esp32xx_implementation_name(void)
 | 
			
		||||
{
 | 
			
		||||
    return "esp32";
 | 
			
		||||
    return CONFIG_IDF_TARGET;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
@@ -27,7 +27,7 @@ static const char *randombytes_esp32_implementation_name(void)
 | 
			
		||||
  is no need to call randombytes_set_implementation().
 | 
			
		||||
*/
 | 
			
		||||
const struct randombytes_implementation randombytes_esp32_implementation = {
 | 
			
		||||
    .implementation_name = randombytes_esp32_implementation_name,
 | 
			
		||||
    .implementation_name = randombytes_esp32xx_implementation_name,
 | 
			
		||||
    .random = esp_random,
 | 
			
		||||
    .stir = NULL,
 | 
			
		||||
    .uniform = NULL,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user