key size check