def parse_attestation(attestation):
    """
    Given a bytes of the attestation report of length 688, return a dict
    of each field of the report
    """
    assert(len(attestation) == 752)

    parsed_report = {}

    parsed_report['nonce']       = attestation[:32]
    parsed_report['attest_pk']   = attestation[32:64]
    parsed_report['kernel_hash'] = attestation[64:112]
    parsed_report['kernel_sig']  = attestation[112:624]
    parsed_report['attest_sig']  = attestation[624:688]
    parsed_report['shared_secret_sig'] = attestation[688:]
    
    return parsed_report