what-the-bank/sources/org/bouncycastle/jce/spec/MQVPrivateKeySpec.java

54 lines
1.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jce.spec;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.KeySpec;
import org.bouncycastle.jce.interfaces.MQVPrivateKey;
/* loaded from: classes6.dex */
public class MQVPrivateKeySpec implements KeySpec, MQVPrivateKey {
private PrivateKey ephemeralPrivateKey;
private PublicKey ephemeralPublicKey;
private PrivateKey staticPrivateKey;
@Override // java.security.Key
public byte[] getEncoded() {
return null;
}
@Override // java.security.Key
public String getFormat() {
return null;
}
@Override // org.bouncycastle.jce.interfaces.MQVPrivateKey
public PrivateKey getStaticPrivateKey() {
return this.staticPrivateKey;
}
@Override // org.bouncycastle.jce.interfaces.MQVPrivateKey
public PublicKey getEphemeralPublicKey() {
return this.ephemeralPublicKey;
}
@Override // org.bouncycastle.jce.interfaces.MQVPrivateKey
public PrivateKey getEphemeralPrivateKey() {
return this.ephemeralPrivateKey;
}
@Override // java.security.Key
public String getAlgorithm() {
return "ECMQV";
}
public MQVPrivateKeySpec(PrivateKey privateKey, PrivateKey privateKey2, PublicKey publicKey) {
this.staticPrivateKey = privateKey;
this.ephemeralPrivateKey = privateKey2;
this.ephemeralPublicKey = publicKey;
}
public MQVPrivateKeySpec(PrivateKey privateKey, PrivateKey privateKey2) {
this(privateKey, privateKey2, null);
}
}