Skip to content

//kotlin-sdk/fr.gasmartbuilding.gasmartaccessreadersdk/LockReconUtils/checkSignedChallengeSar

checkSignedChallengeSar

[androidJvm]\ fun checkSignedChallengeSar(rnd1: ByteArray, rawSignSar: ByteArray, sarPublicKeyByteArray: ByteArray): Boolean

Verifies the signed challenge received from the SAR.

Return

True if the challenge is successfully verified, false otherwise.

Parameters

androidJvm

rnd1 The random number (generated in a previous command) used for verification.
rawSignSar The raw signature from SAR.
sarPublicKeyByteArray The public key of SAR in byte array format.