github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/support_libraries/secret_disclosure_support/directive.proto (about)

     1  // To compile: protoc -I=. --go_out=. directive.proto
     2  
     3  // Definition of protobufs for directives.
     4  syntax = "proto2";
     5  
     6  package secret_disclosure;
     7  
     8  message directive_message {
     9    // As of now, the only type supported is "secret_disclosure".
    10    enum directive_type {
    11      SECRET_DISCLOSURE = 1;
    12    }
    13    optional directive_type type = 1;
    14  
    15    // A serialized statement. This is serialized using cloudproxy/tao/auth.Marshal().
    16    //
    17    // The statement corresponding to type "key_disclosure" must be of the form:
    18    // policy_key says program_name can read (secret_name, epoch).
    19    optional bytes serialized_statement = 2;
    20  
    21    // The signer's public key principal, encoded using clouddproxy/tao/auth.Marshal().
    22    optional bytes signer = 3;
    23  
    24    // Signature over the serialized statement.
    25    optional bytes signature = 4;
    26  
    27    // Program certificate, to be used in case signer is a program key.
    28    optional bytes cert = 5;
    29  }