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
1cc85ef9
Commit
1cc85ef9
authored
Jul 24, 2023
by
Josh Ji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x-windows-950 encoding
parent
7d4f5d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/josh/vku2f/CTAP2.java
src/main/java/com/josh/vku2f/CTAP2.java
+2
-2
No files found.
src/main/java/com/josh/vku2f/CTAP2.java
View file @
1cc85ef9
...
@@ -590,7 +590,7 @@ public class CTAP2 extends Applet implements ExtendedLength {
...
@@ -590,7 +590,7 @@ public class CTAP2 extends Applet implements ExtendedLength {
// Read the credential details in
// Read the credential details in
// Just note down where this starts for future ref
// Just note down where this starts for future ref
tempVars
[
0
]
+=
tempCredential
.
getAttestedData
(
dataBuffer
,
tempVars
[
0
]);
tempVars
[
0
]
+=
tempCredential
.
getAttestedData
(
dataBuffer
,
tempVars
[
0
]);
// extensions
這才是fido指定extens
ion 要放的位置a
// extensions
這才是fido指定extension 要放的位置
a
// Util.arrayCopy(extensionBuffer, (short)0, dataBuffer, tempVars[0], extensionLength);
// Util.arrayCopy(extensionBuffer, (short)0, dataBuffer, tempVars[0], extensionLength);
// Attestation Statement : 0x03
// Attestation Statement : 0x03
...
@@ -623,7 +623,7 @@ public class CTAP2 extends Applet implements ExtendedLength {
...
@@ -623,7 +623,7 @@ public class CTAP2 extends Applet implements ExtendedLength {
cborEncoder
.
startArray
((
short
)
1
);
cborEncoder
.
startArray
((
short
)
1
);
cborEncoder
.
encodeByteString
(
attestationKeyPair
.
x509cert
,
(
short
)
0
,
attestationKeyPair
.
x509len
);
cborEncoder
.
encodeByteString
(
attestationKeyPair
.
x509cert
,
(
short
)
0
,
attestationKeyPair
.
x509len
);
if
(
authenticatorMakeCredential
.
opCode
==
OpCode
.
GET_IDENTITY_CREDENTIAL
){
if
(
authenticatorMakeCredential
.
opCode
==
OpCode
.
GET_IDENTITY_CREDENTIAL
){
// add extension label 這邊是暫時找個地方放
// add extension label
這邊是暫時找個地方放
cborEncoder
.
encodeTextString
(
Utf8Strings
.
UTF8_EXTENSIONS
,
(
short
)
0
,
(
short
)
Utf8Strings
.
UTF8_EXTENSIONS
.
length
);
cborEncoder
.
encodeTextString
(
Utf8Strings
.
UTF8_EXTENSIONS
,
(
short
)
0
,
(
short
)
Utf8Strings
.
UTF8_EXTENSIONS
.
length
);
// add extension element
// add extension element
cborEncoder
.
startArray
((
short
)
2
);
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