Commit ac4d15c6 authored by Josh Ji's avatar Josh Ji

change the structure of the dumpData

parent 66313741
No preview for this file type
......@@ -180,23 +180,11 @@ namespace FidoReader
CborReader cborReader = new CborReader(data);
int? length = cborReader.ReadStartMap();
while (length > 0) {
switch (cborReader.ReadTextString()) {
case "Cx":
this.Cx = cborReader.ReadByteString();
break;
case "PuKp":
byte[] PuKp = cborReader.ReadByteString();
Debug.WriteLine(BitConverter.ToString(PuKp));
break;
case "sharedSecret":
byte[] sharedSecret = cborReader.ReadByteString();
Debug.WriteLine(BitConverter.ToString(sharedSecret));
break;
case "TEMP":
Debug.WriteLine("TEMP : "+BitConverter.ToString(cborReader.ReadByteString()).Replace("-",""));
break;
default:
break;
string key = cborReader.ReadTextString();
if (key == "TEMP") {
Debug.WriteLine("TEMP : " + BitConverter.ToString(cborReader.ReadByteString()).Replace("-", ""));
} else {
Debug.WriteLine(key + ": "+ BitConverter.ToString(cborReader.ReadByteString()));
}
length--;
}
......
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