Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.crypto.digests;
 
Wrapper removes exposure to the Memoable interface on an ExtendedDigest implementation.
 
 public class NonMemoableDigest
     implements ExtendedDigest
    private ExtendedDigest baseDigest;

    
Base constructor.

Parameters:
baseDigest underlying digest to use.
Throws:
java.lang.IllegalArgumentException if baseDigest is null
    public NonMemoableDigest(
        ExtendedDigest baseDigest)
    {
        if (baseDigest == null)
        {
            throw new IllegalArgumentException("baseDigest must not be null");
        }
        this. = baseDigest;
    }
    
    public String getAlgorithmName()
    {
        return .getAlgorithmName();
    }
    public int getDigestSize()
    {
        return .getDigestSize();
    }
    public void update(byte in)
    {
        .update(in);
    }
    public void update(byte[] inint inOffint len)
    {
        .update(ininOfflen);
    }
    public int doFinal(byte[] outint outOff)
    {
        return .doFinal(outoutOff);
    }
    public void reset()
    {
        .reset();
    }
    public int getByteLength()
    {
        return .getByteLength();
    }
New to GrepCode? Check out our FAQ X