Added pack and unpack methods.  Added specs for invalid key ids.
Fixed bad MAC verification and spec.