BusinessCats.LyncParticipant.GetPublicKey C# (CSharp) Method

GetPublicKey() public method

public GetPublicKey ( ) : byte[]
return byte[]
        public byte[] GetPublicKey()
        {
            if (dh == null)
            {
                dh = new ECDiffieHellmanCng() { KeyDerivationFunction = ECDiffieHellmanKeyDerivationFunction.Hash, HashAlgorithm = CngAlgorithm.Sha256 };
            }

            return dh.PublicKey.ToByteArray();
        }