AES加密解密,Wrong IV length: must be 16

做AES加密解密时,cipher.init(Cipher.ENCRYPT_MODE, secretKey, offset);,此方法报错java.security.InvalidAlgorithmParameterException: Wrong IV length: must be 16,该方法传递的密钥和偏移量只能是16字节吗?有没有修改其默认值的方法?

cryptor = AES.new(self.key, self.mode, b'0000000000000000')