Fix reading from the deprecated SVR2 enclave during the reglock flow.

This commit is contained in:
Greyson Parrelli
2023-12-13 14:25:36 -05:00
parent 6e3e1b56fb
commit b88b992cb6

View File

@@ -74,7 +74,8 @@ object SvrRepository {
Log.i(TAG, "restoreMasterKeyPreRegistration()", true)
val operations: List<Pair<SecureValueRecovery, () -> RestoreResponse>> = listOf(
svr2 to { restoreMasterKeyPreRegistration(svr2, credentials.svr2, userPin) }
svr2 to { restoreMasterKeyPreRegistration(svr2, credentials.svr2, userPin) },
svr2Deprecated to { restoreMasterKeyPreRegistration(svr2Deprecated, credentials.svr2, userPin) }
)
for ((implementation, operation) in operations) {