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; } }