From 57a0d1836644edd9ff3586e710f13ef3fc469086 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sun, 6 Dec 2020 02:46:02 +0300 Subject: [PATCH] chore: use gotd/ige --- go.mod | 2 +- go.sum | 4 ++-- internal/crypto/temp_keys_test.go | 2 +- telegram/create_auth_key.go | 2 +- telegram/decrypt.go | 2 +- telegram/encrypt.go | 3 +-- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index d2983dd49e..04a1df0d44 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,11 @@ module github.com/gotd/td go 1.15 require ( - github.com/ernado/ige v0.1.1 github.com/go-bindata/go-bindata v3.1.2+incompatible github.com/go-openapi/inflect v0.19.0 github.com/go-playground/validator/v10 v10.4.1 github.com/gotd/getdoc v0.1.0 + github.com/gotd/ige v0.1.3 github.com/gotd/tl v0.2.0 github.com/stretchr/testify v1.6.1 go.uber.org/zap v1.16.0 diff --git a/go.sum b/go.sum index a0cd69c6df..a1aca0f8f9 100644 --- a/go.sum +++ b/go.sum @@ -51,8 +51,6 @@ github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZi github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ernado/ige v0.1.1 h1:iFeXpAomVvT4Xw3uvzprkXpvH0BIiHXgudDle0Qhcpg= -github.com/ernado/ige v0.1.1/go.mod h1:+gbBDg70watSVAcCnvdNUcloW5yu3gHqCqZUTT5h0ws= github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= @@ -114,6 +112,8 @@ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORR github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gotd/getdoc v0.1.0 h1:yvzgSmQzR9/v1pAplsrGoMUrBRZC3PW2KoG0f9tiK0g= github.com/gotd/getdoc v0.1.0/go.mod h1:0tPkUBtE8K7RkL0JQrXn2dh/Bx++7YPqTOUFSrSok/M= +github.com/gotd/ige v0.1.3 h1:25U3zLl8PGO8Sp1gt8JYZFQbkqSGZVaGqKJWmfL/Zc4= +github.com/gotd/ige v0.1.3/go.mod h1:jl3REgEtHeWs7j4NCTvF7NvXrtTyAh+p2HIk+p8TFhQ= github.com/gotd/tl v0.2.0 h1:kY0lKrNBL/ApU2enzsR2or0U/hoh4y1Msf1SJjS7/qY= github.com/gotd/tl v0.2.0/go.mod h1:9xGV9pH5N+LDoNmbeuOor9AjJaQzlj4KP5EguI1LMM8= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= diff --git a/internal/crypto/temp_keys_test.go b/internal/crypto/temp_keys_test.go index 4f92fca87e..3184daeb08 100644 --- a/internal/crypto/temp_keys_test.go +++ b/internal/crypto/temp_keys_test.go @@ -6,7 +6,7 @@ import ( "math/big" "testing" - "github.com/ernado/ige" + "github.com/gotd/ige" ) func hexInt(hexValue string) *big.Int { diff --git a/telegram/create_auth_key.go b/telegram/create_auth_key.go index 5f8381211b..7f8c49ce97 100644 --- a/telegram/create_auth_key.go +++ b/telegram/create_auth_key.go @@ -11,9 +11,9 @@ import ( "math/big" "sync/atomic" - "github.com/ernado/ige" "golang.org/x/xerrors" + "github.com/gotd/ige" "github.com/gotd/td/bin" "github.com/gotd/td/internal/crypto" "github.com/gotd/td/internal/mt" diff --git a/telegram/decrypt.go b/telegram/decrypt.go index 3b4352f917..1dec0a3de1 100644 --- a/telegram/decrypt.go +++ b/telegram/decrypt.go @@ -3,9 +3,9 @@ package telegram import ( "crypto/aes" - "github.com/ernado/ige" "golang.org/x/xerrors" + "github.com/gotd/ige" "github.com/gotd/td/bin" "github.com/gotd/td/internal/crypto" ) diff --git a/telegram/encrypt.go b/telegram/encrypt.go index 15a862a01a..f0015f6e8a 100644 --- a/telegram/encrypt.go +++ b/telegram/encrypt.go @@ -4,8 +4,7 @@ import ( "crypto/aes" "io" - "github.com/ernado/ige" - + "github.com/gotd/ige" "github.com/gotd/td/internal/crypto" )