what-the-bank/sources/org/bouncycastle/crypto/EphemeralKeyPair.java

21 lines
597 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}