what-the-bank/sources/org/bouncycastle/crypto/engines/OldIESEngine.java

28 lines
1013 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.engines;
import org.bouncycastle.crypto.BasicAgreement;
import org.bouncycastle.crypto.BufferedBlockCipher;
import org.bouncycastle.crypto.DerivationFunction;
import org.bouncycastle.crypto.Mac;
import org.bouncycastle.util.Pack;
/* loaded from: classes6.dex */
public class OldIESEngine extends IESEngine {
@Override // org.bouncycastle.crypto.engines.IESEngine
protected byte[] getLengthTag(byte[] bArr) {
byte[] bArr2 = new byte[4];
if (bArr != null) {
Pack.intToBigEndian(bArr.length << 3, bArr2, 0);
}
return bArr2;
}
public OldIESEngine(BasicAgreement basicAgreement, DerivationFunction derivationFunction, Mac mac, BufferedBlockCipher bufferedBlockCipher) {
super(basicAgreement, derivationFunction, mac, bufferedBlockCipher);
}
public OldIESEngine(BasicAgreement basicAgreement, DerivationFunction derivationFunction, Mac mac) {
super(basicAgreement, derivationFunction, mac);
}
}