public override void Init(Key key) { DHPrivateKey pk = (DHPrivateKey)key; dh = new DiffieHellmanManaged(); dh.ImportParameters(pk.Parameters); }