public void writeTo(OutputStream os) throws IOException {
  DataOutputStream dos=new DataOutputStream(os);
  dos.writeInt(N);
  dos.writeInt(q);
  dos.writeInt(d);
  dos.writeInt(d1);
  dos.writeInt(d2);
  dos.writeInt(d3);
  dos.writeInt(B);
  dos.writeInt(basisType);
  dos.writeDouble(beta);
  dos.writeDouble(normBound);
  dos.writeDouble(keyNormBound);
  dos.writeInt(signFailTolerance);
  dos.writeBoolean(primeCheck);
  dos.writeBoolean(sparse);
  dos.writeInt(bitsF);
  dos.write(keyGenAlg);
  dos.writeUTF(hashAlg.getAlgorithmName());
  dos.write(polyType);
}

public void writeTo ( OutputStream os ) throws IOException { DataOutputStream dos = new DataOutputStream ( os ) ; dos . writeInt ( N ) ; dos . writeInt ( q ) ; dos . writeInt ( d ) ; dos . writeInt ( d1 ) ; dos . writeInt ( d2 ) ; dos . writeInt ( d3 ) ; dos . writeInt ( B ) ; dos . writeInt ( basisType ) ; dos . writeDouble ( beta ) ; dos . writeDouble ( normBound ) ; dos . writeDouble ( keyNormBound ) ; dos . writeInt ( signFailTolerance ) ; dos . writeBoolean ( primeCheck ) ; dos . writeBoolean ( sparse ) ; dos . writeInt ( bitsF ) ; dos . write ( keyGenAlg ) ; dos . writeUTF ( hashAlg . getAlgorithmName ( ) ) ; dos . write ( polyType ) ; }
writes the parameter set to an output stream
