out.close();
sGen.close();
Asn1InputStream aIn = new Asn1InputStream(bOut.toByteArray());
BerSequence sq = (BerSequence)aIn.readObject();
BerOctetString s = (BerOctetString)sq.readObject();
Asn1InputStream aIn2 = new Asn1InputStream(s.getOctetStream());
BerSequence sq2 = (BerSequence)aIn2.readObject();
BerOctetString inS = (BerOctetString)sq2.readObject();
InputStream in = inS.getOctetStream();
int count = 0;