Пример #1
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.nonce       = StreamingUtils.readBytes(0x10, stream);
     this.serverNonce = StreamingUtils.readBytes(0x10, stream);
     this.retryId     = StreamingUtils.readLong(stream);
     this.gb          = StreamingUtils.readTLBytes(stream);
 }
Пример #2
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.nonce        = StreamingUtils.readBytes(0x10, stream);
     this.serverNonce  = StreamingUtils.readBytes(0x10, stream);
     this.pq           = StreamingUtils.readTLBytes(stream);
     this.fingerprints = StreamingUtils.readTLLongVector(stream, context);
 }
Пример #3
0
        public override void deserializeBody(InputStream stream, TLContext context)
        {
            this.messageId = StreamingUtils.readLong(stream);
            int minSize = stream.available();

            this.content = BytesCache.getInstance().allocate(minSize);
            StreamingUtils.readBytes(this.content, 0, minSize, stream);
        }
Пример #4
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.pq          = StreamingUtils.readTLBytes(stream);
     this.p           = StreamingUtils.readTLBytes(stream);
     this.q           = StreamingUtils.readTLBytes(stream);
     this.nonce       = StreamingUtils.readBytes(0x10, stream);
     this.serverNonce = StreamingUtils.readBytes(0x10, stream);
     this.newNonce    = StreamingUtils.readBytes(0x20, stream);
 }
Пример #5
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.nonce       = StreamingUtils.readBytes(0x10, stream);
     this.serverNonce = StreamingUtils.readBytes(0x10, stream);
     this.g           = StreamingUtils.readInt(stream);
     this.dhPrime     = StreamingUtils.readTLBytes(stream);
     this.g_a         = StreamingUtils.readTLBytes(stream);
     this.serverTime  = StreamingUtils.readInt(stream);
 }
Пример #6
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.nonce         = StreamingUtils.readBytes(0x10, stream);
     this.serverNonce   = StreamingUtils.readBytes(0x10, stream);
     this.p             = StreamingUtils.readTLBytes(stream);
     this.q             = StreamingUtils.readTLBytes(stream);
     this.fingerPrint   = StreamingUtils.readLong(stream);
     this.encryptedData = StreamingUtils.readTLBytes(stream);
 }
Пример #7
0
        private byte[] readMessage()
        {
            InputStream stream = this.socket.getInputStream();
            int         num    = this.readByte(stream);

            if (num == 0x7f)
            {
                num = (this.readByte(stream) + (this.readByte(stream) << 8)) + (this.readByte(stream) << 0x10);
            }
            int count = num * 4;

            return(StreamingUtils.readBytes(count, stream));
        }
Пример #8
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.nonce        = StreamingUtils.readBytes(0x10, stream);
     base.serverNonce  = StreamingUtils.readBytes(0x10, stream);
     base.newNonceHash = StreamingUtils.readBytes(0x10, stream);
 }
Пример #9
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.nonce = StreamingUtils.readBytes(0x10, stream);
 }
Пример #10
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.nonce           = StreamingUtils.readBytes(0x10, stream);
     base.serverNonce     = StreamingUtils.readBytes(0x10, stream);
     base.encryptedAnswer = StreamingUtils.readTLBytes(stream);
 }