Beispiel #1
0
        public static SignedSurveyResponseMessage Decode(XdrDataInputStream stream)
        {
            SignedSurveyResponseMessage decodedSignedSurveyResponseMessage = new SignedSurveyResponseMessage();

            decodedSignedSurveyResponseMessage.ResponseSignature = Signature.Decode(stream);
            decodedSignedSurveyResponseMessage.Response          = SurveyResponseMessage.Decode(stream);
            return(decodedSignedSurveyResponseMessage);
        }
        public static AuthCert Decode(XdrDataInputStream stream)
        {
            AuthCert decodedAuthCert = new AuthCert();

            decodedAuthCert.Pubkey     = Curve25519Public.Decode(stream);
            decodedAuthCert.Expiration = Uint64.Decode(stream);
            decodedAuthCert.Sig        = Signature.Decode(stream);
            return(decodedAuthCert);
        }