* BER/CER/DER decoding, DER encoding
* Basic ASN.1 data types (X.208): BOOLEAN, INTEGER, BIT STRING, OCTET
- STRING, NULL, OBJECT IDENTIFIER, ENUMERATED, all strings, UTCTime (no
- BER), GeneralizedTime (no BER), CHOICE, ANY, SEQUENCE (OF), SET (OF)
+ STRING, NULL, OBJECT IDENTIFIER, ENUMERATED, all strings, UTCTime,
+ GeneralizedTime, CHOICE, ANY, SEQUENCE (OF), SET (OF)
* Size :ref:`constraints <bounds>` checking
* Working with sequences as high level data objects with ability to
(un)marshall them
There are drawbacks:
* No old Python versions support
-* Strings are not validated in any way, except just trying to be decoded
- in ``ascii``, ``iso-8859-1``, ``utf-8/16/32`` correspondingly
-* No REAL, RELATIVE OID, EXTERNAL, INSTANCE OF, EMBEDDED PDV, CHARACTER STRING
+* See :ref:`limitations <limitations>`
:maxdepth: 1
features
+ limitations
examples
reference
news
--- /dev/null
+.. _limitations:
+
+Limitations
+===========
+
+* Strings (except :py:class:`pyderasn.NumericString` and
+ :py:class:`pyderasn.PrintableString`) are not validated
+ in any way, except just trying to be decoded in ``ascii``,
+ ``iso-8859-1``, ``utf-8/16/32`` correspondingly
+* :py:class:`pyderasn.UTCTime` and :py:class:`pyderasn.GeneralizedTime`
+ support only DER-encoding
+* No REAL, RELATIVE OID, EXTERNAL, INSTANCE OF, EMBEDDED PDV, CHARACTER STRING
_____________
.. autoclass:: pyderasn.NumericString
+PrintableString
+_______________
+.. autoclass:: pyderasn.PrintableString
+
UTCTime
_______
.. autoclass:: pyderasn.UTCTime
be stored.
>>> NumericString().allowable_chars
- set(['3', '4', '7', '5', '1', '0', '8', '9', ' ', '6', '2'])
+ frozenset(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' '])
"""
__slots__ = ()
tag_default = tag_encode(18)
Its value is properly sanitized: see X.680 41.4 table 10.
>>> PrintableString().allowable_chars
- >>> set([' ', "'", ..., 'z'])
+ frozenset([' ', "'", ..., 'z'])
"""
__slots__ = ()
tag_default = tag_encode(19)
.. warning::
- No BER encodings are supported. Only DER.
+ BER encoding is unsupported.
"""
__slots__ = ()
tag_default = tag_encode(23)
.. warning::
- No BER encodings are supported. Only DER.
+ BER encoding is unsupported.
.. warning::