Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
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
Wen Wei Li
Fido2Applet
Commits
cbbd0fbe
Commit
cbbd0fbe
authored
3 years ago
by
Josh Ji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix incorrect data of IDx in getPuKxRx()
parent
4fe40fff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/main/java/com/josh/vku2f/CTAP2.java
src/main/java/com/josh/vku2f/CTAP2.java
+3
-2
No files found.
src/main/java/com/josh/vku2f/CTAP2.java
View file @
cbbd0fbe
...
...
@@ -378,8 +378,9 @@ public class CTAP2 extends Applet implements ExtendedLength {
* return: PuKx and Rx in CBOR form
*/
private
void
getPuKxRx
(
APDU
apdu
,
short
dataLength
){
// TODO IDx have to get data from dataBuffer at index 1
idSecret
.
IDx
=
new
DomString
(
dataBuffer
,
dataLength
);
// Done IDx have to get data from dataBuffer at index 1
Util
.
arrayCopy
(
dataBuffer
,
(
short
)
1
,
scratch
,
(
short
)
0
,
(
short
)(
dataLength
-
1
));
idSecret
.
IDx
=
new
DomString
(
scratch
,
(
short
)(
dataLength
-
1
)
);
cborEncoder
.
init
(
dataBuffer
,
(
short
)
0
,
(
short
)
1200
);
cborEncoder
.
startArray
((
short
)
2
);
cborEncoder
.
encodeUInt32
(
idSecret
.
Rx
,
(
short
)
0
);
...
...
This diff is collapsed.
Click to expand it.
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