support key size 192, add key size length check