21 lines
720 B
Java
21 lines
720 B
Java
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;
|
|
}
|
|
}
|