List of usage examples for org.bouncycastle.asn1 BEROctetStringGenerator getOctetOutputStream
public OutputStream getOctetOutputStream(byte[] buf)
From source file:org.votingsystem.signature.util.CMSUtils.java
License:Open Source License
static OutputStream createBEROctetOutputStream(OutputStream s, int tagNo, boolean isExplicit, int bufferSize) throws IOException { BEROctetStringGenerator octGen = new BEROctetStringGenerator(s, tagNo, isExplicit); if (bufferSize != 0) { return octGen.getOctetOutputStream(new byte[bufferSize]); }// w w w . j a v a 2 s . c o m return octGen.getOctetOutputStream(); }