* Value Assignment
- ํน์ ํ ์ด๋ฆ๊ณผ ๊ฐ์ ์ ์ ํ ๋ ์ฌ์ฉ
<valuereference> <type> ::= <value>
- ํน์ง
* valuereference ๋ value์ ์ด๋ฆ์ด๋ฉฐ ์๋ฌธ์๋ก ์์ ํด์ผ ํจ
* type ์ value ์ type
* value ๋ type์ ๋ฐ๋ผ ํ์์ด ๋ฌ๋ผ์ง
* BOOLEAN
- TRUE / FALSE
Married ::= BOOLEAN
currentStatus Married ::= FALSE
* INTEGER
- ๋ชจ๋ ์ ์ (์/์์ ํฌํจ)
- ์ฌ์ด์ฆ ์ ํ ์์
temperatureToday INTEGER ::= -20
Color ::= INTEGER { red(0), blue(1), yellow(2) }
defaultColor Color ::= 1
defaultColor Color ::= blue
* ENUMERATED
- ์์๊ฐ ์๋ INTEGER ๊ฐ
Color ::= ENUMERATED { red(0), blue(1), yellow(2) }
colorOfTheSky Color ::= Blue
colorOfTheSky Color ::= 1 (์ค๋ฅ)
* BIT STRING
- Bit ์ด, ์ฌ์ด์ฆ ์ ํ ์์
contents1 BIT STRING ::= ‘B09’H
contents1 BIT STRING ::= ‘101100001001’B
Color ::= BIT STRING { red(0), blue(1), yellow(2) }
defaultColor Color ::= {red, yellow}
-- defaultColor = 1010000000 .. 00
* OCTET STRING
- 8-Bit ๋ฌธ์์ด
eightBitBytes1 OCTET STRING ::= ‘A24F’H
eightBitBytes1 OCTET STRING ::= ‘1010001001001111’B
* NULL
- type์ด๋ฉด์ value ์ด๊ธฐ๋ ํจ
currentlyUnknown NULL ::= NULL
'PKI > ASN.1' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ASN.1 Advanced (0) | 2022.11.03 |
---|---|
ASN.1 Value Notation (2/2) (0) | 2022.11.03 |
ASN.1 Constraints (0) | 2022.11.03 |
ASN.1 Type Notation (3/3) (0) | 2022.11.03 |
ASN.1 Type Notation (2/3) (0) | 2022.11.02 |