session.proto 667 B

123456789101112131415161718192021
  1. syntax = "proto3";
  2. import "sec0.proto";
  3. import "sec1.proto";
  4. /* Allowed values for the type of security
  5. * being used in a protocomm session */
  6. enum SecSchemeVersion {
  7. SecScheme0 = 0; /*!< Unsecured - plaintext communication */
  8. SecScheme1 = 1; /*!< Security scheme 1 - Curve25519 + AES-256-CTR*/
  9. }
  10. /* Data structure exchanged when establishing
  11. * secure session between Host and Client */
  12. message SessionData {
  13. SecSchemeVersion sec_ver = 2; /*!< Type of security */
  14. oneof proto {
  15. Sec0Payload sec0 = 10; /*!< Payload data in case of security 0 */
  16. Sec1Payload sec1 = 11; /*!< Payload data in case of security 1 */
  17. }
  18. }