fenglihu 2008-5-5 09:41
如下ASN.1 BER编码如何解析?
{ givenName “John”,
children
{ {givenName “Ralph”,
dataOfBirth “19571111”}
}
}
BER 编码为:
[color=olive][i][b]60[/b][/i][/color] 21 6l 06 1A 04 [b]4A 6F 68 6E[/b]
[b]A0[/b] 17 31 15 61 07 1A 05 [b]52 61 6C 70 68[/b]
[b]A0[/b] 0A 43 08 [b]31 39 35 37 31 31 31 31[/b]
其中[b]60,A0,A0[/b]为标识符,21,17,0A为长度,6l 06 1A 04如何解析?[b]4A 6F 68 6E[/b]为John,[b]52 61 6C 70 68[/b]为Ralph,[b]31 39 35 37 31 31 31 31[/b]为19571111。
[[i] 本帖最后由 fenglihu 于 2008-5-5 09:44 编辑 [/i]]
fenglihu 2008-5-23 08:04
[quote]原帖由 [i]保镖[/i] 于 2008-5-21 20:54 发表 [url=http://www.zgepsa.com/redirect.php?goto=findpost&pid=492662&ptid=62413][img]http://www.zgepsa.com/images/common/back.gif[/img][/url]
你这是例子代码中的内容吧 [/quote]
是看的论文中的例子。