INNER CODE UNIT · Python

_load_bks_entries

kurtbrose/pyjks · jks/bks.py:303

    def _load_bks_entries(cls, data, store_type, store_password, try_decrypt_keys=False):
        entries = {}
        pos = 0
        while pos < len(data):
            _type = b1.unpack_from(data, pos)[0]; pos += 1
            if _type == 0:
                break

            alias, pos = cls._read_utf(data, pos, kind="entry alias")
            timestamp = int(b8.unpack_from(data, pos)[0]); pos += 8
            chain_length = b4.unpack_from(data, pos)[0]; pos += 4

            cert_chain = []
            for n in range(chain_length):
                entry, pos = cls._read_bks_cert(data, pos, store_type)
                cert_chain.append(entry)

            if _type == 1: # certificate

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…