INNER CODE UNIT · Python

dump

wbond/asn1crypto · asn1crypto/core.py:632

    def dump(self, force=False):
        """
        Encodes the value using DER

        :param force:
            If the encoded contents already exist, clear them and regenerate
            to ensure they are in DER format instead of BER format

        :return:
            A byte string of the DER-encoded value
        """

        contents = self.contents

        # If the length is indefinite, force the re-encoding
        if self._header is not None and self._header[-1:] == b'\x80':
            force = True

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…