21 lines
597 B
Java
21 lines
597 B
Java
package org.bouncycastle.crypto;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public class EphemeralKeyPair {
|
|
private AsymmetricCipherKeyPair keyPair;
|
|
private KeyEncoder publicKeyEncoder;
|
|
|
|
public AsymmetricCipherKeyPair getKeyPair() {
|
|
return this.keyPair;
|
|
}
|
|
|
|
public byte[] getEncodedPublicKey() {
|
|
return this.publicKeyEncoder.getEncoded(this.keyPair.getPublic());
|
|
}
|
|
|
|
public EphemeralKeyPair(AsymmetricCipherKeyPair asymmetricCipherKeyPair, KeyEncoder keyEncoder) {
|
|
this.keyPair = asymmetricCipherKeyPair;
|
|
this.publicKeyEncoder = keyEncoder;
|
|
}
|
|
}
|