An error occurred while fetching merge requests data.
Commit fb45103c authored by Josh Ji's avatar Josh Ji

code review

parent cbbd0fbe
No preview for this file type
No preview for this file type
// converted by version [v3.0.5]
// on Mon Jun 13 23:42:38 CST 2022
// on Tue Jun 14 00:10:57 CST 2022
.package com/josh/vku2f {
.aid 0xA0:0x0:0x0:0x6:0x47;
......@@ -3828,16 +3828,27 @@
}
.method private getPuKxRx(Ljavacard/framework/APDU;S)V {
.stack 5;
.stack 6;
.locals 0;
.descriptor Ljavacard/framework/APDU; 2.10;
L0: getfield_a_this 34; // reference com/josh/vku2f/CTAP2.idSecret
L0: getfield_a_this 19; // reference com/josh/vku2f/CTAP2.dataBuffer
sconst_1;
getfield_a_this 20; // reference com/josh/vku2f/CTAP2.scratch
sconst_0;
sload_2;
sconst_1;
ssub;
invokestatic 355; // javacard/framework/Util.arrayCopy([BS[BSS)S
pop;
getfield_a_this 34; // reference com/josh/vku2f/CTAP2.idSecret
new 184; // com/josh/vku2f/DomString
dup;
getfield_a_this 19; // reference com/josh/vku2f/CTAP2.dataBuffer
getfield_a_this 20; // reference com/josh/vku2f/CTAP2.scratch
sload_2;
sconst_1;
ssub;
invokespecial 185; // com/josh/vku2f/DomString.<init>([BS)V
putfield_a 37; // reference com/josh/vku2f/IDSecret.IDx
getfield_a_this 23; // reference com/josh/vku2f/CTAP2.cborEncoder
......
......@@ -420,7 +420,7 @@ public class CTAP2 extends Applet implements ExtendedLength {
keyAgreement.generateSecret(idSecret.PuKp, (short)0, (short)65, idSecret.sharedSecret, (short)0);
idSecret.initAesKey();
idSecret.encryptCx();// this line will crash this applet
idSecret.encryptCx();
cborEncoder.init(dataBuffer, (short)0, (short)1200);
cborEncoder.startArray((short)2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment