From 923bd019d0ffb305b5b030ab62eede452699481c Mon Sep 17 00:00:00 2001 From: Abdul Samad Date: Mon, 8 Jul 2024 19:42:56 -0500 Subject: [PATCH] Fix the iteration assignment before verifier computation --- src/controller/CommissioningWindowOpener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/CommissioningWindowOpener.cpp b/src/controller/CommissioningWindowOpener.cpp index dea5d301237732..a2b32a277348b3 100644 --- a/src/controller/CommissioningWindowOpener.cpp +++ b/src/controller/CommissioningWindowOpener.cpp @@ -111,6 +111,7 @@ CHIP_ERROR CommissioningWindowOpener::OpenCommissioningWindow(const Commissionin ReturnErrorOnFailure(DRBG_get_bytes(mPBKDFSaltBuffer, sizeof(mPBKDFSaltBuffer))); mPBKDFSalt = ByteSpan(mPBKDFSaltBuffer); } + mPBKDFIterations = params.GetIteration(); bool randomSetupPIN = !params.HasSetupPIN(); ReturnErrorOnFailure( @@ -122,7 +123,6 @@ CHIP_ERROR CommissioningWindowOpener::OpenCommissioningWindow(const Commissionin mCommissioningWindowVerifierCallback = nullptr; mNodeId = params.GetNodeId(); mCommissioningWindowTimeout = params.GetTimeout(); - mPBKDFIterations = params.GetIteration(); if (params.GetReadVIDPIDAttributes()) {