File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
esptouch-v2/src/main/java/com/espressif/iot/esptouch2/provision Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ buildscript {
6
6
maven { url = uri(" https://jitpack.io" ) }
7
7
}
8
8
dependencies {
9
- classpath ' com.android.tools.build:gradle:8.6.1 '
9
+ classpath ' com.android.tools.build:gradle:8.7.0 '
10
10
}
11
11
}
12
12
Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ private void generate() {
256
256
os .write (ssidPadding , 0 , ssidPadding .length );
257
257
258
258
int reservedBeginPosition = mHead .length + password .length + passwordPadding .length ;
259
- int ssidBeginPosition = reservedBeginPosition + reservedData .length + reservedPadding .length ;
259
+ int ivBeginPosition = reservedBeginPosition + reservedData .length + reservedPadding .length ;
260
+ int ssidBeginPosition = ivBeginPosition + aesIV .length ;
260
261
int offset = 0 ;
261
262
ByteArrayInputStream is = new ByteArrayInputStream (os .toByteArray ());
262
263
int sequence = SEQUENCE_FIRST ;
@@ -273,10 +274,14 @@ private void generate() {
273
274
// Password data
274
275
tailIsCrc = !passwordEncode ;
275
276
expectLength = passwordPaddingFactor ;
276
- } else if (offset < ssidBeginPosition ) {
277
+ } else if (offset < ivBeginPosition ) {
277
278
// Reserved data
278
279
tailIsCrc = !reservedEncode ;
279
280
expectLength = reservedPaddingFactor ;
281
+ } else if (offset < ssidBeginPosition ) {
282
+ // aes iv data
283
+ tailIsCrc = false ;
284
+ expectLength = 6 ;
280
285
} else {
281
286
// SSID data
282
287
tailIsCrc = !ssidEncode ;
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.7 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.9 -all.zip
You can’t perform that action at this time.
0 commit comments