[COOK-3569] Improve checkum length validation

Signed-off-by: Seth Vargo <sethvargo@gmail.com>