what-the-bank/sources/org/bouncycastle/crypto/digests/GOST3411_2012_256Digest.java

41 lines
1.4 KiB
Java

package org.bouncycastle.crypto.digests;
import org.bouncycastle.util.Memoable;
/* loaded from: classes6.dex */
public final class GOST3411_2012_256Digest extends GOST3411_2012Digest {
private static final byte[] IV = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
@Override // org.bouncycastle.crypto.digests.GOST3411_2012Digest, org.bouncycastle.crypto.Digest
public final int getDigestSize() {
return 32;
}
@Override // org.bouncycastle.crypto.digests.GOST3411_2012Digest, org.bouncycastle.crypto.Digest
public final String getAlgorithmName() {
return "GOST3411-2012-256";
}
@Override // org.bouncycastle.crypto.digests.GOST3411_2012Digest, org.bouncycastle.crypto.Digest
public final int doFinal(byte[] bArr, int i) {
byte[] bArr2 = new byte[64];
super.doFinal(bArr2, 0);
System.arraycopy(bArr2, 32, bArr, i, 32);
return 32;
}
@Override // org.bouncycastle.crypto.digests.GOST3411_2012Digest, org.bouncycastle.util.Memoable
public final Memoable copy() {
return new GOST3411_2012_256Digest(this);
}
public GOST3411_2012_256Digest(GOST3411_2012_256Digest gOST3411_2012_256Digest) {
super(IV);
reset(gOST3411_2012_256Digest);
}
public GOST3411_2012_256Digest() {
super(IV);
}
}