CSharpRTMP.Common.DHWrapper.DHWrapper C# (CSharp) Метод

DHWrapper() публичный Метод

public DHWrapper ( int bitsCount = 1024 ) : System
bitsCount int
Результат System
        public DHWrapper(int bitsCount = 1024)
        {
            _bitsCount = bitsCount;
            Keysize = bitsCount >> 3;
            _privateKey = new BigInteger(Utils.GenerateRandomBytes(Keysize));
            PublicKey = G.ModPow(_privateKey, P).GetBytes(Keysize);
        }
        public byte[] CreateSharedKey(byte[] pPeerPublicKey) => new BigInteger(pPeerPublicKey).ModPow(_privateKey, P).GetBytes(Keysize);