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
alan
Fido2Applet
Commits
2b33815f
Commit
2b33815f
authored
2 years ago
by
Josh Ji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add FidoExtension class
parent
20ea892c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
36 deletions
+9
-36
src/main/java/com/josh/vku2f/AuthenticatorMakeCredential.java
...main/java/com/josh/vku2f/AuthenticatorMakeCredential.java
+2
-2
src/main/java/com/josh/vku2f/FidoExtension.java
src/main/java/com/josh/vku2f/FidoExtension.java
+7
-0
src/main/java/com/josh/vku2f/IDSecret.java
src/main/java/com/josh/vku2f/IDSecret.java
+0
-34
No files found.
src/main/java/com/josh/vku2f/AuthenticatorMakeCredential.java
View file @
2b33815f
...
...
@@ -343,8 +343,8 @@ public class AuthenticatorMakeCredential {
/**
* Reads the clientDataHash into a buffer.
*
* @param outBuf The buffer to read into.
* @param outOff the offset to begin at.
* @
param outBuf The buffer to read into.
* @
param outOff the offset to begin at.
* @return the length of the data read out.
*/
public
byte
[]
getDataHash
()
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/josh/vku2f/FidoExtension.java
0 → 100644
View file @
2b33815f
package
com.josh.vku2f
;
public
class
FidoExtension
{
public
byte
[]
identifier
;
public
short
length
;
public
boolean
enabled
;
}
This diff is collapsed.
Click to expand it.
src/main/java/com/josh/vku2f/IDSecret.java
View file @
2b33815f
...
...
@@ -159,40 +159,6 @@ public class IDSecret {
encoder
.
init
(
dataBuffer
,
(
short
)
0
,
(
short
)
1200
);
encoder
.
startMap
((
short
)
1
);
// encoder.encodeTextString(Utf8Strings.UTF8_IDx, (short)0, (short)Utf8Strings.UTF8_IDx.length);
// encoder.encodeTextString(IDx.str, (short)0, IDx.len);
//
// encoder.encodeTextString(Utf8Strings.UTF8_Rx, (short)0, (short)Utf8Strings.UTF8_Rx.length);
// encoder.encodeByteString(Rx, (short)0, (short)Rx.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_Rp, (short)0, (short)Utf8Strings.UTF8_Rp.length);
// encoder.encodeByteString(Rp, (short)0, (short)Rp.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_RxRp, (short)0, (short)Utf8Strings.UTF8_RxRp.length);
// encoder.encodeByteString(getRxRp(), (short)0, (short)RxRp.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_PuKp, (short)0, (short)Utf8Strings.UTF8_PuKp.length);
// encoder.encodeByteString(PuKp, (short)0, (short)PuKp.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_SHARED_SECRET, (short)0, (short)Utf8Strings.UTF8_SHARED_SECRET.length);
// encoder.encodeByteString(sharedSecret, (short)0, (short)sharedSecret.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_HASHED_SHARED_SECRET, (short)0, (short)Utf8Strings.UTF8_HASHED_SHARED_SECRET.length);
// encoder.encodeByteString(hashedSharedSecret, (short)0 , (short) hashedSharedSecret.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_Cx, (short)0, (short)Utf8Strings.UTF8_Cx.length);
// encoder.encodeByteString(Cx, (short)0, (short)Cx.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_ENCRYPTED_CX, (short)0, (short)Utf8Strings.UTF8_ENCRYPTED_CX.length);
// encoder.encodeByteString(encryptedCx, (short)0, (short)encryptedCx.length);
//
// encoder.encodeTextString(Utf8Strings.UTF8_HMAC, (short)0, (short)Utf8Strings.UTF8_HMAC.length);
// encoder.encodeByteString(hmac, (short)0, (short)hmac.length );
// tempBufferLength = generateExtensions();
// testSharedObjects(apduBuffer);
encoder
.
encodeTextString
(
Utf8Strings
.
UTF8_TEMP
,
(
short
)
0
,
(
short
)
Utf8Strings
.
UTF8_TEMP
.
length
);
encoder
.
encodeByteString
(
tempBuffer
,
(
short
)
0
,
(
short
)
tempBuffer
.
length
);
...
...
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