what-the-bank/sources/o/C15289gmd.java

61 lines
1.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.math.BigInteger;
import java.security.interfaces.RSAPublicKey;
import org.ejbca.cvc.exception.ConstructionException;
/* renamed from: o.gmd, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15289gmd extends glP implements RSAPublicKey {
private static glS[] d = {glS.OID, glS.MODULUS, glS.EXPONENT};
/* JADX INFO: Access modifiers changed from: package-private */
public C15289gmd(glY gly) throws ConstructionException, NoSuchFieldException {
glK glk = (glK) gly.e(glS.MODULUS);
glk.c = true;
c(gly.e(glS.OID));
c(glk);
c(gly.e(glS.EXPONENT));
}
/* JADX INFO: Access modifiers changed from: package-private */
public C15289gmd(C15288gmc c15288gmc, RSAPublicKey rSAPublicKey) throws ConstructionException {
c(c15288gmc);
c(new glK(glS.MODULUS, e(rSAPublicKey.getModulus().toByteArray()), true));
c(new glK(glS.EXPONENT, e(rSAPublicKey.getPublicExponent().toByteArray())));
}
@Override // java.security.interfaces.RSAPublicKey
public final BigInteger getPublicExponent() {
try {
return new BigInteger(1, ((glK) e(glS.EXPONENT)).d);
} catch (NoSuchFieldException e) {
throw new IllegalStateException(e);
}
}
@Override // java.security.interfaces.RSAKey
public final BigInteger getModulus() {
try {
return new BigInteger(1, ((glK) e(glS.MODULUS)).d);
} catch (NoSuchFieldException e) {
throw new IllegalStateException(e);
}
}
@Override // java.security.Key
public final String getFormat() {
return "CVC";
}
@Override // o.glA
protected final glS[] a() {
return d;
}
@Override // java.security.Key
public final String getAlgorithm() {
return "RSA";
}
}