what-the-bank/sources/org/bouncycastle/jcajce/provider/digest/BCMessageDigest.java

38 lines
1.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jcajce.provider.digest;
import java.security.MessageDigest;
import org.bouncycastle.crypto.Digest;
/* loaded from: classes6.dex */
public class BCMessageDigest extends MessageDigest {
protected Digest digest;
@Override // java.security.MessageDigestSpi
public void engineUpdate(byte[] bArr, int i, int i2) {
this.digest.update(bArr, i, i2);
}
@Override // java.security.MessageDigestSpi
public void engineUpdate(byte b) {
this.digest.update(b);
}
@Override // java.security.MessageDigestSpi
public void engineReset() {
this.digest.reset();
}
@Override // java.security.MessageDigestSpi
public byte[] engineDigest() {
byte[] bArr = new byte[this.digest.getDigestSize()];
this.digest.doFinal(bArr, 0);
return bArr;
}
/* JADX INFO: Access modifiers changed from: protected */
public BCMessageDigest(Digest digest) {
super(digest.getAlgorithmName());
this.digest = digest;
}
}