flagflag  
3: 2021-07-06 (Tue) 11:10:23 iseki source 4: 2022-10-19 (Wed) 13:23:25 iseki source
Line 7: Line 7:
-- BER(Basic Encoding Rules) 曖昧性がある. -- BER(Basic Encoding Rules) 曖昧性がある.
-- DER(Distinguished Encoding Rules) 曖昧性がない.BERのサブセット版 -- DER(Distinguished Encoding Rules) 曖昧性がない.BERのサブセット版
 +#br
 +- https://letsencrypt.org/ja/docs/a-warm-w​elcome-to-asn1-and-der/
#br #br
Line 12: Line 14:
**** 識別子(タグ) [#mfd4eb60] **** 識別子(タグ) [#mfd4eb60]
-- 5bit 0: Primitive, 1:Constructed +- 1bit から数える 
-- 6,7bit  Class 0x00 UNIVERSAL, 0x01 APPLICATION, 0x10 Context-Defined, 0x11 PRIVATE+- 8,7bit  Class
 +-- 0000(0x00) UNIVERSAL(汎用)(通常はこれ) 
 +-- 0100(0x40) APPLICATION(応用) 
 +-- 1000(0x80) Context-Specific(コンテキスト特定) 
 +-- 1100(0xc0) PRIVATE(私用) 
 +- 6bit  
 +-- 0000(0x00)Primitive(基本型) 
 +-- 0010(0x20)Constructed(構造型) 
#br #br
-- 0x02:整数(INT) +- 汎用タグ(1~5bit) 
-- 0x03:ビット列(BIT) +-- 0x02:整数(INTEGER) 
-- 0x04:8bit文字列(OCT) +-- 0x03:ビット列(BIT STRING) 
-- 0x06:オブジェクト(OBJ) +-- 0x04:8bit文字列(OCTET STRING) 
-- 0x30 : シーケンス(SEQ) Constructed 0x10 +-- 0x05:NULL(NULL) 
-- 0x31:セット(SET) Constructed 0x11+-- 0x06:オブジェクト(OBJECT IDENTIFIER) 
 +-- 0x0c:UTF8文字列(UTF8String) 
 +-- 0x10:シーケンス(SEQUENCE) 
 +-- 0x11:セット(SET) 
 +-- 0x30:構造型シーケンス(SEQUENCE) 
 +-- 0x31:構造型セット(SET)
#br #br
**** コンテンツ長 [#f4cdba1d] **** コンテンツ長 [#f4cdba1d]
- 0x7F 以下:長さを格納するバイトはこの1Byte のみ - 0x7F 以下:長さを格納するバイトはこの1Byte のみ
-- 0x80 以上:下位7bit(x - 0x80)がこれ以降に続く,長さを格納するバイト数.+- 0x80 以上:下位7bit(0x01~0x7f)がこれ以降に続く,長さを格納するバイト数.
-- 0x81:この後の1Byteが長さを表す. -- 0x81:この後の1Byteが長さを表す.
- ということは 0x80 はあり得ない. - ということは 0x80 はあり得ない.


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

36 user(s) are online (1 user(s) are browsing xpwiki)

Members: 0
Guests: 36

more...

Access Counter

Today : 4240424042404240
Yesterday : 4345434543454345
Total : 2366138123661381236613812366138123661381236613812366138123661381
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com