mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			838 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			838 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
 | 
						|
import "sec0.proto";
 | 
						|
import "sec1.proto";
 | 
						|
import "sec2.proto";
 | 
						|
 | 
						|
/* Allowed values for the type of security
 | 
						|
 * being used in a protocomm session */
 | 
						|
enum SecSchemeVersion {
 | 
						|
    SecScheme0 = 0;  /*!< Unsecured - plaintext communication */
 | 
						|
    SecScheme1 = 1;  /*!< Security scheme 1 - Curve25519 + AES-256-CTR*/
 | 
						|
    SecScheme2 = 2;  /*!< Security scheme 2 - SRP6a + AES-256-GCM*/
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
/* Data structure exchanged when establishing
 | 
						|
 * secure session between Host and Client */
 | 
						|
message SessionData {
 | 
						|
    SecSchemeVersion sec_ver = 2;   /*!< Type of security */
 | 
						|
    oneof proto {
 | 
						|
        Sec0Payload sec0 = 10;      /*!< Payload data in case of security 0 */
 | 
						|
        Sec1Payload sec1 = 11;      /*!< Payload data in case of security 1 */
 | 
						|
        Sec2Payload sec2 = 12;      /*!< Payload data in case of security 2 */
 | 
						|
    }
 | 
						|
}
 |