what-the-bank/sources/org/bouncycastle/crypto/generators/EphemeralKeyPairGenerator.java

21 lines
720 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.generators;
import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator;
import org.bouncycastle.crypto.EphemeralKeyPair;
import org.bouncycastle.crypto.KeyEncoder;
/* loaded from: classes6.dex */
public class EphemeralKeyPairGenerator {
private AsymmetricCipherKeyPairGenerator gen;
private KeyEncoder keyEncoder;
public EphemeralKeyPair generate() {
return new EphemeralKeyPair(this.gen.generateKeyPair(), this.keyEncoder);
}
public EphemeralKeyPairGenerator(AsymmetricCipherKeyPairGenerator asymmetricCipherKeyPairGenerator, KeyEncoder keyEncoder) {
this.gen = asymmetricCipherKeyPairGenerator;
this.keyEncoder = keyEncoder;
}
}