Commit 1cc85ef9 authored by Josh Ji's avatar Josh Ji

x-windows-950 encoding

parent 7d4f5d78
......@@ -590,7 +590,7 @@ public class CTAP2 extends Applet implements ExtendedLength {
// Read the credential details in
// Just note down where this starts for future ref
tempVars[0] += tempCredential.getAttestedData(dataBuffer, tempVars[0]);
// extensions 這才是fido指定extension 要放的位置a
// extensions 這才是fido指定extension 要放的位置a
// Util.arrayCopy(extensionBuffer, (short)0, dataBuffer, tempVars[0], extensionLength);
// Attestation Statement : 0x03
......@@ -623,7 +623,7 @@ public class CTAP2 extends Applet implements ExtendedLength {
cborEncoder.startArray((short) 1);
cborEncoder.encodeByteString(attestationKeyPair.x509cert, (short) 0, attestationKeyPair.x509len);
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);
// add extension element
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