Description

Validate performs basic sanity checks on the key. It returns nil if the key is valid, or else an error describing a problem.