asn1-ber-syntax-0.2.0.0: ASN.1 BER Encode and Decode
Safe HaskellSafe-Inferred
LanguageHaskell2010

Asn.Ber

Synopsis

Documentation

data Value Source #

Constructors

Value 

Instances

Instances details
Show Value Source # 
Instance details

Defined in Asn.Ber

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Eq Value Source # 
Instance details

Defined in Asn.Ber

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

data Contents Source #

Constructors

Boolean !Bool

Tag number: 0x01

Integer !Int64

Tag number: 0x02

OctetString !Bytes

Tag number: 0x04

BitString !Word8 !Bytes

Tag number: 0x03. Has padding bit count and raw bytes.

Null

Tag number: 0x05

ObjectIdentifier !Oid

Tag number: 0x06

Utf8String !ShortText

Tag number: 0x0C

PrintableString !ShortText

Tag number: 0x13

UtcTime !Int64

Tag number: 0x17. Number of seconds since the epoch. The following guidance is inspired by RFC 5280:

  • A two-digit year greater than or equal to 50 is interpreted as 19XX, and a two-digit year less than 50 is intepreted as 20XX.
  • Everything is converted to Zulu time zone. Unlike RFC 5280, we do not require Zulu, but we convert everything to it.
  • When seconds are absent, we treat the timestamp as one where the seconds are zero. That is, we understand 2303252359Z as 2023-03-25T23:59:00Z.
Constructed !(SmallArray Value)

Constructed value contents in concatenation order. The class and tag are held in Value.

Unresolved !Bytes

Values that require information about interpreting application, context-specific, or private tag.

Instances

Instances details
Show Contents Source # 
Instance details

Defined in Asn.Ber

Eq Contents Source # 
Instance details

Defined in Asn.Ber

data Class Source #

Instances

Instances details
Show Class Source # 
Instance details

Defined in Asn.Ber

Methods

showsPrec :: Int -> Class -> ShowS #

show :: Class -> String #

showList :: [Class] -> ShowS #

Eq Class Source # 
Instance details

Defined in Asn.Ber

Methods

(==) :: Class -> Class -> Bool #

(/=) :: Class -> Class -> Bool #

Constructed Patterns

pattern Set :: Word32 Source #

pattern Sequence :: Word32 Source #