1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-07-04 05:13:26 +00:00

52 Commits

Author SHA1 Message Date
f8d9841755 update default protocol version & pass through app version for T544 signer 2023-04-01 15:20:48 +08:00
fd83d24f67 improve t544 implementation 2023-03-18 00:28:54 +08:00
365235008b improve t544 2023-03-11 01:07:26 +08:00
cdc207867e implements qimei & fix t545 2023-03-11 00:37:31 +08:00
7c54342c9f feat: tlv544 2023-03-05 17:58:28 +08:00
993ec128a0 all: fix some issue reported by golangci-lint 2023-02-13 15:33:55 +08:00
96d46f63d2 client: remove payload parameter in decoder function
replace with (*network.Packet).Payload
2023-02-11 20:49:33 +08:00
841fef387a internal/proto: re-use map[uint64]any
use slice will cause some panic.
2023-02-11 18:01:19 +08:00
733944693c client/internal/network: unify IncomingPacket&IncomingPacketInfo 2023-02-11 17:03:35 +08:00
1a7fcd76cf internal/crypto: move to client/internal/oicq 2023-02-11 16:21:29 +08:00
94b761717e internal/packets: remove
move to other packages.
2023-02-11 15:35:58 +08:00
bdb083558b internal/proto: ensure dynamic message key incremental 2023-02-08 14:42:14 +08:00
f33123fcf6 all: bump go 1.20 2023-02-06 20:28:03 +08:00
4658474c60 internal/crypto: fix build with go1.20 2022-12-02 14:07:17 +08:00
d3b8c5f700 internal/proto: add SInt[32|64]
also simplify some code.
2022-09-25 16:26:53 +08:00
8aa1683866 internal/crypto: use crypto/ecdh in go1.20 2022-09-25 00:10:26 +08:00
ae8c187aa5 fix t193 encode error 2022-06-21 16:30:50 +08:00
6f4f491002 client: fix Android version 2022-06-21 11:52:16 +08:00
0ce160e357 client: update Android version 2022-06-20 22:28:42 +08:00
2a1fd324ca client: add FileResource 2022-06-19 22:59:20 +08:00
9b6c4ddf2f client: hoist highway input in uploading forward message 2022-06-18 23:53:35 +08:00
3f5174dda1 highway: fix upload exciting 2022-06-15 20:28:56 +08:00
831b36ef76 feat: add a debug mode for internal/proto.Marshal 2022-06-05 17:32:11 +08:00
5b616d65f7 all: adapt new proto2 api 2022-05-24 09:59:58 +08:00
b28ec81f54 fix: fix go vet error 2022-05-23 11:06:51 +08:00
2b2be6693d client,binary: minor changes 2022-05-23 10:28:50 +08:00
0f43de570f Merge pull request #253 from lz1998/t106
fix t106
2022-05-09 22:25:00 +08:00
8b3c2a9b71 Merge pull request #255 from buhuang28/buhuang-dev
fix t1 time format
2022-05-09 22:24:09 +08:00
4a007cfcf9 all: rewrite interface{} to any
generated by `gofmt -w -r 'interface{} -> any' .`
2022-03-17 10:52:03 +08:00
c9784ffce8 fix t1 time format 2022-02-22 20:25:34 +08:00
c17b9b73c6 fix t106 2022-02-20 19:15:54 +08:00
28637c41be internal/proto: move binary.DynamicProtoMessage to proto.DynamicMessage 2022-02-10 21:56:40 +08:00
9a45e430f1 fix 0x545 (#242) 2022-01-14 20:16:41 +08:00
a3b4e1b994 client: move parse packet logic to transport 2021-12-24 17:18:42 +08:00
3e84f279c1 fix: use general write at method (#225)
* fix: use general write at method

* fix: drop WriteShortBufLenExcludeSelfAfterPos
2021-12-23 22:09:04 +08:00
b1279cf08f perf(writer): drop some lambda expressions (#224)
* perf(writer): drop some lambda expressions

* perf(writer): drop more lambda expressions

* fix: resolve conflicts

* perf(writer): drop more lambda expressions

* fix: modify function name

* perf(writer): drop more lambda expressions

* fix: some error
2021-12-23 21:04:15 +08:00
24b75e45c7 internal/oicq: refactor & support unmarshal 2021-12-23 17:04:37 +08:00
d2dc2e472d client: pack packet by transport 2021-12-22 22:47:00 +08:00
3e2b57eab5 internal/network: first version of transport send 2021-12-22 20:13:23 +08:00
21f8feb419 fix sso frame panic 2021-12-21 13:15:59 +08:00
1c29ac7d96 refactor: packets.BuildUniPacket -> c.uniPacket
mostly auto-generated by

```
rf '
ex {
    var c QQClient
    var seq uint16
    var payload []byte
    var command string
    BuildUniPacket(c.Uin, seq, command, 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) -> c.uniPacket(seq, command, payload)
}
'
```
2021-12-17 22:58:41 +08:00
b398cec6a5 refactor: move highway.go to client/internal/highway 2021-12-15 19:13:52 +08:00
5ff69f3c3a binary/jce: use go/parser generator 2021-12-12 14:38:03 +08:00
2caf71a0bb fix: sso frame head parse error 2021-12-08 13:47:42 +08:00
4bdb791334 dep: use RomiChan/protobuf 2021-11-24 21:57:13 +08:00
ec4cd4a6f3 style: internal/proto
use this package for conveniently replacing proto package
in the future.
2021-11-22 22:05:19 +08:00
70af1fee57 rename NewWriter to SelectWriter 2021-11-21 12:58:34 +08:00
1f8edc2de3 update some tlv packet 2021-11-19 20:12:56 +08:00
a69487056d drop unsafe in TEA encryption
name         old time/op    new time/op    delta
TEAen/16-8      245ns ± 0%     237ns ± 0%  -3.29%  (p=0.008 n=5+5)
TEAen/256-8    1.73µs ± 0%    1.69µs ± 0%  -2.77%  (p=0.008 n=5+5)
TEAen/4K-8     24.9µs ± 0%    25.0µs ± 1%    ~     (p=0.690 n=5+5)
TEAen/32K-8     198µs ± 0%     199µs ± 1%  +0.73%  (p=0.008 n=5+5)
TEAde/16-8      215ns ± 1%     196ns ± 1%  -8.93%  (p=0.008 n=5+5)
TEAde/256-8    1.70µs ± 0%    1.56µs ± 0%  -8.08%  (p=0.008 n=5+5)
TEAde/4K-8     24.9µs ± 1%    23.5µs ± 0%  -5.50%  (p=0.008 n=5+5)
TEAde/32K-8     198µs ± 0%     187µs ± 1%  -5.34%  (p=0.008 n=5+5)

name         old speed      new speed      delta
TEAen/16-8   65.4MB/s ± 0%  67.6MB/s ± 1%  +3.39%  (p=0.008 n=5+5)
TEAen/256-8   148MB/s ± 0%   152MB/s ± 0%  +2.84%  (p=0.008 n=5+5)
TEAen/4K-8    164MB/s ± 0%   164MB/s ± 1%    ~     (p=0.587 n=5+5)
TEAen/32K-8   166MB/s ± 0%   165MB/s ± 1%  -0.72%  (p=0.008 n=5+5)
TEAde/16-8    149MB/s ± 1%   163MB/s ± 1%  +9.81%  (p=0.008 n=5+5)
TEAde/256-8   160MB/s ± 0%   174MB/s ± 0%  +8.80%  (p=0.008 n=5+5)
TEAde/4K-8    165MB/s ± 1%   175MB/s ± 0%  +5.81%  (p=0.008 n=5+5)
TEAde/32K-8   166MB/s ± 0%   175MB/s ± 1%  +5.70%  (p=0.008 n=5+5)
2021-11-16 20:54:40 +08:00
2a92b2755f perf: speed up tea encrypt & decrypt
name         old time/op    new time/op    delta
TEAen/16-8      260ns ± 0%     245ns ± 0%   -5.83%  (p=0.008 n=5+5)
TEAen/256-8    1.86µs ± 0%    1.73µs ± 0%   -6.86%  (p=0.008 n=5+5)
TEAen/4K-8     27.8µs ± 0%    24.9µs ± 0%  -10.19%  (p=0.008 n=5+5)
TEAde/16-8      223ns ± 1%     215ns ± 1%   -3.24%  (p=0.008 n=5+5)
TEAde/256-8    1.88µs ± 0%    1.70µs ± 0%   -9.49%  (p=0.000 n=4+5)
TEAde/4K-8     28.1µs ± 1%    24.9µs ± 1%  -11.43%  (p=0.008 n=5+5)

name         old speed      new speed      delta
TEAen/16-8   61.6MB/s ± 0%  65.4MB/s ± 0%   +6.19%  (p=0.008 n=5+5)
TEAen/256-8   138MB/s ± 0%   148MB/s ± 0%   +7.35%  (p=0.008 n=5+5)
TEAen/4K-8    147MB/s ± 0%   164MB/s ± 0%  +11.34%  (p=0.008 n=5+5)
TEAde/16-8    144MB/s ± 1%   149MB/s ± 1%   +3.34%  (p=0.008 n=5+5)
TEAde/256-8   145MB/s ± 0%   160MB/s ± 0%  +10.47%  (p=0.016 n=4+5)
TEAde/4K-8    146MB/s ± 1%   165MB/s ± 1%  +12.90%  (p=0.008 n=5+5)
2021-11-12 11:40:40 +08:00