TLSharp.Core.MTProto.Crypto.AuthKey.AuthKey C# (CSharp) Method

AuthKey() public method

public AuthKey ( TLSharp.Core.MTProto.Crypto.BigInteger gab ) : System
gab TLSharp.Core.MTProto.Crypto.BigInteger
return System
        public AuthKey(BigInteger gab)
        {
            key = gab.ToByteArrayUnsigned();
            using (SHA1 hash = new SHA1Managed())
            {
                using (MemoryStream hashStream = new MemoryStream(hash.ComputeHash(key), false))
                {
                    using (BinaryReader hashReader = new BinaryReader(hashStream))
                    {
                        auxHash = hashReader.ReadUInt64();
                        hashReader.ReadBytes(4);
                        keyId = hashReader.ReadUInt64();
                    }
                }
            }
        }

Same methods

AuthKey::AuthKey ( byte data ) : System