@@ -64,40 +64,11 @@ <h2>Passive Authentication <sub>CardSecurity</sub></h2>
64
64
< i > No data</ i >
65
65
{{end}}
66
66
67
- < h2 > CardAccess</ h2 >
68
- {{if .Mf.CardAccess}}
69
- {{template "fileHexAndTlv" .Mf.CardAccess.RawData}}
70
- {{else}}
71
- < i > No data</ i >
72
- {{end}}
73
-
74
- < h2 > CardSecurity</ h2 >
75
- {{if .Mf.CardSecurity}}
76
- {{template "fileHexAndTlv" .Mf.CardSecurity.RawData}}
77
- {{else}}
78
- < i > No data</ i >
79
- {{end}}
80
-
81
- < h2 > DIR</ h2 >
82
- {{if .Mf.Dir}}
83
- {{template "fileHexAndTlv" .Mf.Dir.RawData}}
84
- {{else}}
85
- < i > No data</ i >
86
- {{end}}
87
-
88
- < h2 > COM</ h2 >
89
- {{if .Mf.Lds1.Com}}
90
- {{template "fileHexAndTlv" .Mf.Lds1.Com.RawData}}
91
- {{else}}
92
- < i > No data</ i >
93
- {{end}}
94
-
95
- < h2 > SOD < sub > Document Security Object</ sub > </ h2 >
96
- {{if .Mf.Lds1.Sod}}
97
- {{template "fileHexAndTlv" .Mf.Lds1.Sod.RawData}}
98
- {{else}}
99
- < i > No data</ i >
100
- {{end}}
67
+ {{template "cardAccess" .Mf.CardAccess}}
68
+ {{template "cardSecurity" .Mf.CardSecurity}}
69
+ {{template "dir" .Mf.Dir}}
70
+ {{template "com" .Mf.Lds1.Com}}
71
+ {{template "sod" .Mf.Lds1.Sod}}
101
72
102
73
{{template "dg1" .Mf.Lds1.Dg1}}
103
74
{{template "dg2" .Mf.Lds1.Dg2}}
@@ -109,26 +80,7 @@ <h2>SOD <sub>Document Security Object</sub></h2>
109
80
{{template "dg15" .Mf.Lds1.Dg15}}
110
81
{{template "dg16" .Mf.Lds1.Dg16}}
111
82
112
- < h1 > APDU LOG</ h1 >
113
-
114
- < h2 > Count: {{len .Apdus}}</ h2 >
115
- < h2 > Duration(ms): {{.Apdus | ApduTotalDurMs}}</ h2 >
116
-
117
- {{ range .Apdus }}
118
- < div > < pre >
119
- Desc: < b > {{ .Desc }}</ b >
120
- Dur(ms): < b > {{ .DurMs }}</ b >
121
- </ pre > </ div >
122
- < div > < pre >
123
- -> {{ .Tx | BytesToHex }}
124
- {{if .Child}}
125
- --> {{ .Child.Tx | BytesToHex }}
126
- < -- {{ .Child.Rx | BytesToHex }}
127
- {{end}}
128
- < - {{ .Rx | BytesToHex }}
129
- </ pre > </ div >
130
- < hr >
131
- {{ end }}
83
+ {{template "apduLog" .Apdus}}
132
84
133
85
< div id ="json ">
134
86
< h1 > Document JSON</ h1 >
0 commit comments