FileDocCategorySizeDatePackage
JDKMessageDigest.javaAPI DocAzureus 3.0.3.45148Tue Jun 08 05:12:56 BST 2004org.bouncycastle.jce.provider

JDKMessageDigest

public class JDKMessageDigest extends MessageDigest

Fields Summary
org.bouncycastle.crypto.Digest
digest
Constructors Summary
protected JDKMessageDigest(org.bouncycastle.crypto.Digest digest)

        super(digest.getAlgorithmName());

        this.digest = digest;
    
Methods Summary
public byte[]engineDigest()

        byte[]  digestBytes = new byte[digest.getDigestSize()];

        digest.doFinal(digestBytes, 0);

        return digestBytes;
    
public voidengineReset()

        digest.reset();
    
public voidengineUpdate(byte input)

        digest.update(input);
    
public voidengineUpdate(byte[] input, int offset, int len)

        digest.update(input, offset, len);