use of org.bouncycastle.util.io.TeeInputStream in project robovm by robovm.
the class CMSUtils method attachDigestsToInputStream.
static InputStream attachDigestsToInputStream(Collection digests, InputStream s) {
InputStream result = s;
Iterator it = digests.iterator();
while (it.hasNext()) {
DigestCalculator digest = (DigestCalculator) it.next();
result = new TeeInputStream(result, digest.getOutputStream());
}
return result;
}
Aggregations