diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.h b/src/darwin/Framework/CHIP/MTRDeviceController.h index f1ca55bb9001c4..188cd3787c5602 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController.h @@ -137,10 +137,10 @@ typedef void (^MTRDeviceConnectionCallback)(MTRBaseDevice * _Nullable device, NS /** * Return the attestation challenge for the secure session of the device being commissioned. * - * Attempts to retrieve the generated attestation challenge from a commissionee with the given Device ID. + * Attempts to retrieve the attestation challenge for a commissionee with the given Device ID. * Returns nil if given Device ID does not match an active commissionee, or if a Secure Session is not availale. */ -- (nullable NSData *)generateAttestationChallengeForDeviceId:(uint64_t)deviceId; +- (nullable NSData *)fetchAttestationChallengeForDeviceId:(uint64_t)deviceId; /** * Compute a PASE verifier and passcode ID for the desired setup pincode. diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.mm b/src/darwin/Framework/CHIP/MTRDeviceController.mm index df2d47403e1be6..9ff641a2847714 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceController.mm @@ -724,7 +724,7 @@ - (nullable NSData *)computePaseVerifier:(uint32_t)setupPincode iterations:(uint return result; } -- (nullable NSData *)generateAttestationChallengeForDeviceId:(uint64_t)deviceId +- (nullable NSData *)fetchAttestationChallengeForDeviceId:(uint64_t)deviceId { VerifyOrReturnValue([self checkIsRunning], nil);