Lines Matching refs:offset
50 offset = 0
51 while offset < len(log_bytes):
53 val = struct.unpack_from('>H', log_bytes, offset)
55 offset += 2
57 assert struct.unpack_from('>H', log_bytes, offset)[0] == KEY_START
58 offset += 2
60 key_size = struct.unpack_from('>H', log_bytes, offset)[0]
62 offset += 2
64 key = log_bytes[offset:offset + key_size]
65 offset += key_size
68 assert struct.unpack_from('>H', log_bytes, offset)[0] == CERT_START
72 while struct.unpack_from('>H', log_bytes, offset)[0] == CERT_START:
73 offset += 2
74 val = struct.unpack_from('BBB', log_bytes, offset)
75 offset += 3
79 leaf = (offset, der_size)
80 offset += der_size
89 assert struct.unpack_from('>H', log_bytes, offset)[0] == SCT_START
92 while offset < len(log_bytes) and \
93 struct.unpack_from('>H', log_bytes, offset)[0] == SCT_START:
94 offset += 2
95 len_offset = offset
97 offset += 2
99 log_id = log_bytes[offset + 1:offset + 1 + 32]
102 timestamp_ms = struct.unpack_from('>Q', log_bytes, offset + 33)[0]
105 # If we ever need the full SCT: sct = (offset, sct_size)
106 offset += sct_size