Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 6d423bb8 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

EN: Make rotated key use same start number as regular key

This hides the fact that the key was rotated. Probably never needed because one
is not going to get infected twice within 14 days, but doesn't hurt either.
parent b21b523a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -649,7 +649,7 @@ class ExposureDatabase private constructor(private val context: Context) : SQLit
                update(TABLE_TEK, ContentValues().apply {
                    put("rollingPeriod", intervalNumber - key.rollingStartIntervalNumber)
                }, "rollingStartNumber = ?", arrayOf(key.rollingStartIntervalNumber.toString()))
                storeOwnKey(generateIntraDayTemporaryExposureKey(intervalNumber), database)
                storeOwnKey(generateCurrentDayTemporaryExposureKey(), database)
            }
            database.setTransactionSuccessful()
            val startRollingNumber = (getDayRollingStartNumber(intervalNumber) - 14 * ROLLING_PERIOD)