Checkpoint

next step: need to serialize mac_algorithm and such better