check whether the key length >= L bytes