update keylength