aesm-service.proto 893 字节
Newer Older
1 2
syntax = "proto3";

3
package aesm_service; // import "github.com/opencontainers/runc/libenclave/intelsgx/proto"
4

5
// Refer to https://github.com/intel/linux-sgx/blob/master/psw/ae/aesm_service/source/core/ipc/messages.proto
6

7 8
message AesmServiceRequest {

9 10 11 12
    message GetQeTargetInfo {
        uint32 timeout = 9;
    }

13 14 15 16 17 18
    message GetLaunchToken {
        bytes enclavehash = 1;
        bytes modulus     = 2;
        bytes attributes  = 3;
        uint32 timeout    = 9;
    }
19

20 21
    GetQeTargetInfo getQeTargetInfo = 1;
    GetLaunchToken getLaunchToken   = 3;
22 23
}

24 25
message AesmServiceResponse {

26 27 28 29 30 31
    message GetQeTargetInfo {
        uint32 error     = 1;
        bytes targetinfo = 2;
        bytes gid        = 3;
    }

32 33 34 35 36
    message GetLaunchToken {
        uint32 error = 1;
        bytes token  = 2;
    }

37 38
    GetQeTargetInfo getQeTargetInfo = 1;
    GetLaunchToken getLaunchToken   = 3;
39
}