Panic on header.Alg logic error.

This matches the behavior related to logic errors with
header.Enc