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

43 lines
1019 B
Java

package org.bouncycastle.jce.spec;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.KeySpec;
import org.bouncycastle.jce.interfaces.IESKey;
/* loaded from: classes6.dex */
public class IEKeySpec implements KeySpec, IESKey {
private PrivateKey privKey;
private PublicKey pubKey;
@Override // java.security.Key
public byte[] getEncoded() {
return null;
}
@Override // java.security.Key
public String getFormat() {
return null;
}
@Override // org.bouncycastle.jce.interfaces.IESKey
public PublicKey getPublic() {
return this.pubKey;
}
@Override // org.bouncycastle.jce.interfaces.IESKey
public PrivateKey getPrivate() {
return this.privKey;
}
@Override // java.security.Key
public String getAlgorithm() {
return "IES";
}
public IEKeySpec(PrivateKey privateKey, PublicKey publicKey) {
this.privKey = privateKey;
this.pubKey = publicKey;
}
}