In FluffyPGP Applet, is the putKey() function codes exist a BUG?
Posted: Fri Dec 11, 2015 6:45 am
I tried the incoming APDU commands of the putKey() function, but it failed. If my incoming APDU satisfies this 'If' , but other "If" sentence will be not satisfied.
such as:
I send "10DB3FFF244D82039FB600007F48159100928180938180948180958180968180978201005F48820380" It will throw exception in this codes:
But If I send "10DB3FFF234D82039F00007F48159100928180938180948180958180968180978201005F48820380" It will occurre error in here:
And I do not know how to do?
such as:
I send "10DB3FFF244D82039FB600007F48159100928180938180948180958180968180978201005F48820380" It will throw exception in this codes:
Code: Select all
"if (Util.arrayCompare(buffer, ISO7816.OFFSET_CDATA, expectedRSAKeyImportFormat, (short) 0,
(short) expectedRSAKeyImportFormat.length) != 0) {
ISOException.throwIt(ISO7816.SW_DATA_INVALID);
}"
But If I send "10DB3FFF234D82039F00007F48159100928180938180948180958180968180978201005F48820380" It will occurre error in here:
Code: Select all
"KeyPair key = getKey(commandChainingBuffer[TEMP_PUT_KEY_KEY_TYPE]);"
And I do not know how to do?