From: Sergey Matveev Date: Wed, 12 Feb 2020 07:57:59 +0000 (+0300) Subject: Explicitly note tag_ctxX usage X-Git-Tag: 7.0~21 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=2272ffa91af327f530aae0a3a38e55955c5ddac6 Explicitly note tag_ctxX usage --- diff --git a/pyderasn.py b/pyderasn.py index 21b4306..5292c5c 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -75,9 +75,17 @@ tags simultaneously. There are :py:func:`pyderasn.tag_ctxp` and :py:func:`pyderasn.tag_ctxc` functions, allowing you to easily create ``CONTEXT`` ``PRIMITIVE``/``CONSTRUCTED`` tags, by specifying only the required tag -number. Pay attention that explicit tags always have *constructed* tag -(``tag_ctxc``), but implicit tags for primitive types are primitive -(``tag_ctxp``). +number. + +.. note:: + + EXPLICIT tags always have **constructed** tag. PyDERASN does not + explicitly check correctness of schema input here. + +.. note:: + + Implicit tags have **primitive** (``tag_ctxp``) encoding for + primitive values. ::