FileDocCategorySizeDatePackage
JDKMessageDigest.javaAPI DocAndroid 1.5 API7715Wed May 06 22:41:06 BST 2009org.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);