コード例 #1
0
ファイル: SpMessages.cs プロジェクト: lovingmage/SGXBcftools
 public M4ResponseMessage(string respond)
 {
     respHeader.protocolVer  = MsgInitValues.PROTOCOL;
     respHeader.respStatus   = BitConverter.GetBytes((UInt32)enStatusCodes.raErrNone);
     respHeader.respType     = BitConverter.GetBytes((UInt32)enMsgType.raIsvPayloadResp);
     respHeader.msgLength    = BitConverter.GetBytes((UInt32)enDefaultLength.raDefaultM4Length);
     respHeader.sessionNonce = MsgInitValues.DS_ZERO_BA16;
     respMsg4Body            = new ResponseM4Body();
 }
コード例 #2
0
ファイル: SpMessages.cs プロジェクト: lovingmage/SGXBcftools
 public M4ResponseMessage()
 {
     //Constructor to populate an "empty" object
     respHeader.protocolVer    = MsgInitValues.PROTOCOL;
     respHeader.respStatus     = BitConverter.GetBytes((UInt32)enStatusCodes.raErrUnknown);
     respHeader.respType       = BitConverter.GetBytes((UInt32)enMsgType.raReserved);
     respHeader.msgLength      = BitConverter.GetBytes((UInt32)enDefaultLength.raDefaultEmptyLength);
     respHeader.sessionNonce   = MsgInitValues.DS_EMPTY_NONCE;
     respMsg4Body              = new ResponseM4Body();
     respMsg4Body.platformInfo = null;
     //m4Body.pltfrmInfoRsrvd handled by instantiation
     respMsg4Body.attestationStatus   = MsgInitValues.DS_EMPTY_BA4;
     respMsg4Body.cmacStatus          = MsgInitValues.DS_ZERO_BA16;
     respMsg4Body.isvCryptPayloadSize = MsgInitValues.DS_ZERO_BA4;
     respMsg4Body.isvClearPayloadSize = MsgInitValues.DS_ZERO_BA4;
     respMsg4Body.CryptIv             = null;
     respMsg4Body.isvPayloadTag       = null;
     respMsg4Body.isvPayload          = null;
 }
コード例 #3
0
        //Buid an M4 response
        public void buildM4Response(out M4ResponseMessage m4Resp)
        {
            string respond    = Constants.Respond;
            var    m4Response = new M4ResponseMessage(respond);
            var    m4Body     = new ResponseM4Body();

            m4Body.platformInfo = null;

            //m4Body.pltfrmInfoRsrvd handled by instantiation
            m4Body.attestationStatus   = MsgInitValues.DS_ZERO_BA4;
            m4Body.cmacStatus          = MsgInitValues.DS_ZERO_BA16;
            m4Body.isvCryptPayloadSize = MsgInitValues.DS_ZERO_BA4;

            m4Body.isvClearPayloadSize = MsgInitValues.DS_ZERO_BA4;

            m4Body.CryptIv          = null;
            m4Body.isvPayloadTag    = null;
            m4Body.isvPayload       = null;
            m4Response.respMsg4Body = m4Body;
            m4Resp = m4Response;
            return;
        }