Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Fido2Applet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josh Ji
Fido2Applet
Commits
fb45103c
Commit
fb45103c
authored
Jun 14, 2022
by
Josh Ji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review
parent
cbbd0fbe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
build/javacard/applet.cap
build/javacard/applet.cap
+0
-0
build/javacard/applet.exp/vku2f.jar
build/javacard/applet.exp/vku2f.jar
+0
-0
build/javacard/applet.jca
build/javacard/applet.jca
+15
-4
src/main/java/com/josh/vku2f/CTAP2.java
src/main/java/com/josh/vku2f/CTAP2.java
+1
-1
No files found.
build/javacard/applet.cap
View file @
fb45103c
No preview for this file type
build/javacard/applet.exp/vku2f.jar
View file @
fb45103c
No preview for this file type
build/javacard/applet.jca
View file @
fb45103c
// 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
...
...
src/main/java/com/josh/vku2f/CTAP2.java
View file @
fb45103c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment