package org.bouncycastle.crypto.digests; import org.bouncycastle.crypto.ExtendedDigest; /* loaded from: classes6.dex */ public class NonMemoableDigest implements ExtendedDigest { private ExtendedDigest baseDigest; @Override // org.bouncycastle.crypto.Digest public void update(byte[] bArr, int i, int i2) { this.baseDigest.update(bArr, i, i2); } @Override // org.bouncycastle.crypto.Digest public void update(byte b) { this.baseDigest.update(b); } @Override // org.bouncycastle.crypto.Digest public void reset() { this.baseDigest.reset(); } @Override // org.bouncycastle.crypto.Digest public int getDigestSize() { return this.baseDigest.getDigestSize(); } @Override // org.bouncycastle.crypto.ExtendedDigest public int getByteLength() { return this.baseDigest.getByteLength(); } @Override // org.bouncycastle.crypto.Digest public String getAlgorithmName() { return this.baseDigest.getAlgorithmName(); } @Override // org.bouncycastle.crypto.Digest public int doFinal(byte[] bArr, int i) { return this.baseDigest.doFinal(bArr, i); } public NonMemoableDigest(ExtendedDigest extendedDigest) { if (extendedDigest == null) { throw new IllegalArgumentException("baseDigest must not be null"); } this.baseDigest = extendedDigest; } }