* Basic Constraints
- Permitted Alphabet (applicable to strings)
HardToReadChars ::= IA5String (FROM("8BI10OD5S")) -- FROM ์์ ์๋ ๋ฌธ์๋ง ์ฌ์ฉ ๊ฐ๋ฅ
- Pattern ( RegEx-like )
LicensePlate ::= IA5String (PATTERN "[0-9]#4(-[A-Z]#2)?") -- NNNN[-NN]
- Value Size (applicable to strings, sequence/set of)
LicensePlate ::= IA5String (SIZE (4..7))
CarPark ::= SEQUENCE SIZE (1..25) OF LicensePlate
- Value Range (applicable to scalar types)
CarSpeed ::= INTEGER (0..200)
- Single Value (applicable to all types)
WarningColors ::= UTF8String ("Red" | "Yellow")
InfoColors ::= UTF8String ("Blue" | "White")
CitySpeedLimit ::= INTEGER (25 | 30 | 40)
HighwaySpeedLimit ::= INTEGER (40 | 50 | 60 | 70)
- Contained Subtype (applicable to all types)
SignColors ::= UTF8String (InfoColors UNION WarningColors)
SpeedLimitSigns ::= INTEGER (CitySpeedLimit | HighwaySpeedLimit | 10 | 65)
RuralSpeedLimit ::= INTEGER (CitySpeedLimit INTERSECTION HighwaySpeedLimit)
* Contents Constraints (applicable to octet/bit strings)
PerInside ::= OCTET STRING (
CONTAINING Doc
ENCODED BY { joint-iso-itu-t asn1(1)
packed-encoding(3)
basic(0)
unaligned(1)})
pdf OBJECT IDENTIFIER ::= { iso(1)
member-body(2)
us(840)
adobe(113583)
acrobat(1)}
Doc ::= OCTET STRING (ENCODED BY pdf)
* Inner Subtype Constraint ( ๋ถ๋ชจ Type ์ด SEQUENCE(& OF), SET ( &OF), CHOICE )
ParameterList ::= SEQUENCE {
requestID INTEGER,
command PrintableString OPTIONAL,
result ENUMERATED {success(0), failure(1)} OPTIONAL }
RequestParams ::= ParameterList(WITH COMPONENTS
{requestID, command})
'PKI > ASN.1' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ASN.1 Value Notation (2/2) (0) | 2022.11.03 |
---|---|
ASN.1 Value Notation (1/2) (0) | 2022.11.03 |
ASN.1 Type Notation (3/3) (0) | 2022.11.03 |
ASN.1 Type Notation (2/3) (0) | 2022.11.02 |
ASN.1 Type Notation (1/3) (0) | 2022.11.02 |