FileDocCategorySizeDatePackage
MacInputStream.javaAPI DocAndroid 1.5 API872Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto.io

MacInputStream

public class MacInputStream extends FilterInputStream

Fields Summary
protected org.bouncycastle.crypto.Mac
mac
Constructors Summary
public MacInputStream(InputStream stream, org.bouncycastle.crypto.Mac mac)

        super(stream);
        this.mac = mac;
    
Methods Summary
public org.bouncycastle.crypto.MacgetMac()

        return mac;
    
public intread()

        int b = in.read();

        if (b >= 0)
        {
            mac.update((byte)b);
        }
        return b;
    
public intread(byte[] b, int off, int len)

        int n = in.read(b, off, len);
        if (n >= 0)
        {
            mac.update(b, off, n);
        }
        return n;