INNER CODE UNIT · Python
_type
kurtbrose/pyjks · jks/bks.py:307
_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
entry, pos = cls._read_bks_cert(data, pos, store_type)
elif _type == 2: # key: plaintext key entry, i.e. same as sealed key but without the PBEWithSHAAnd3KeyTripleDESCBC layer
entry, pos = cls._read_bks_key(data, pos, store_type)
elif _type == 3: # secret key: opaque arbitrary data blob, stored as-is by the keystore; can be anything (assumed to already be protected when supplied).