in cvm-attestation/snp.py [0:0]
def format_data(self, data):
"""
Format the report data into a multi-line hex output, with 16 bytes per line.
"""
lines = []
for i in range(0, len(data), 16):
chunk = data[i:i+16]
lines.append(" ".join(f"{byte:02x}" for byte in chunk)) # Format bytes as hex
return "\n".join(lines)