Dear sir
I have modulus and exp of the public key, how can i combine them to ge the complete public key, in the host app. These values are coming from the java card ??
i am getting these as follows:
rAPDU = channel.transmit(new CommandAPDU(getPublicKeyModCommand));
if (rAPDU.getSW() != 0x9000)
{
System.out.println("Could not get the modulus");
}
if (rAPDU.getSW() == 0x9000)
{
modulus = new BigInteger(rAPDU.getData());
arrayPrint(rAPDU.getData());
}
rAPDU = channel.transmit(new CommandAPDU(getPublicKeyExpCommand));
if (rAPDU.getSW() != 0x9000)
{
System.out.println("Could not get exp");
}
System.out.println();
if (rAPDU.getSW() == 0x9000)
{
exponent = new BigInteger(rAPDU.getData());
arrayPrint(rAPDU.getData());
}