更新
This commit is contained in:
+32
-13
@@ -148,33 +148,36 @@
|
||||
</div>
|
||||
|
||||
<div class="line">
|
||||
<span>特征字串 (30h+16)</span>
|
||||
<span>主密钥校验值 (30h+4)</span>
|
||||
<input id="path2" style="width: 300px; height: 1.06rem" type="text" maxlength="32" value=""
|
||||
placeholder="特征字符串">
|
||||
placeholder="主密钥校验值">
|
||||
</div>
|
||||
|
||||
<div class="line">
|
||||
<span>主密钥分量 (40h+5)</span>
|
||||
<span>主密钥密文 (40h+16)</span>
|
||||
<input id="path3" style="width: 300px; height: 1.06rem" type="text" value=""
|
||||
placeholder="保留">
|
||||
placeholder="主密钥密文">
|
||||
</div>
|
||||
|
||||
<div class="line">
|
||||
<span>LMK0 (50h+16)</span>
|
||||
<span>保护密钥校验值 (50h+4)</span>
|
||||
<input id="path4" style="width: 300px; height: 1.06rem" type="text" value=""
|
||||
placeholder="保留">
|
||||
placeholder="保护密钥校验值">
|
||||
</div>
|
||||
|
||||
<div class="line">
|
||||
<span>LMK分量 (100h)</span>
|
||||
<textarea id="ta_txt" style="display: block; margin: 1rem 0; width: 460px; height: 100px;"
|
||||
readonly></textarea>
|
||||
<span>保护密钥分量(60h+16)</span>
|
||||
<input id="path5" style="width: 300px; height: 1.06rem" type="text" value=""
|
||||
placeholder="保护密钥分量">
|
||||
</div>
|
||||
|
||||
|
||||
<button id="btn_read">读取所有</button>
|
||||
<button id="btn_write">写入所有</button>
|
||||
<button id="btn_clear">清空</button>
|
||||
<div style="margin-top: 1rem">
|
||||
<button id="btn_read">读取所有</button>
|
||||
<button id="btn_write">写入所有</button>
|
||||
<button id="btn_clear">清空</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@@ -327,16 +330,32 @@
|
||||
ic.readText(0x20, 1)
|
||||
.then(function (def){
|
||||
$("#path1").val(def.data);
|
||||
return ic.readText(0x30, 16)
|
||||
return ic.readText(0x30, 4)
|
||||
})
|
||||
.then(function (def){
|
||||
$("#path2").val(def.data);
|
||||
return ic.readText(0x40, 16);
|
||||
// success("读取成功")
|
||||
})
|
||||
.then(function (def){
|
||||
$("#path3").val(def.data);
|
||||
return ic.readText(0x50, 4);
|
||||
// success("读取成功")
|
||||
})
|
||||
.then(function (def){
|
||||
$("#path4").val(def.data);
|
||||
return ic.readText(0x60, 16);
|
||||
// success("读取成功")
|
||||
})
|
||||
.then(function (def){
|
||||
$("#path5").val(def.data);
|
||||
success("读取成功")
|
||||
})
|
||||
.catch(function (e) {
|
||||
alert("读取失败:" + e.msg)
|
||||
})
|
||||
})
|
||||
|
||||
$("#btn_write").click(function () {
|
||||
var path1 = $("#path1").val();
|
||||
if ( path1 != "31"
|
||||
|
||||
Reference in New Issue
Block a user