From 68f4278749c309236257f4fdf4195790a1527f07 Mon Sep 17 00:00:00 2001 From: Evgeni Margolis Date: Mon, 9 May 2022 11:35:49 -0700 Subject: [PATCH] Replaced 20 --> kKeyIdentifierLength --- .../attestation_verifier/DefaultDeviceAttestationVerifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp b/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp index 00484d3980217e..28756fe16e4c53 100644 --- a/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp +++ b/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp @@ -267,7 +267,7 @@ void DefaultDACVerifier::VerifyAttestationInformation(const DeviceAttestationVer ByteSpan firmwareInfoSpan; DeviceAttestationVendorReservedDeconstructor vendorReserved; ByteSpan certificationDeclarationPayload; - uint8_t paaSKIDBuf[20] = { 0 }; + uint8_t paaSKIDBuf[kKeyIdentifierLength] = { 0 }; MutableByteSpan paaSKID(paaSKIDBuf); VerifyOrExit(ExtractSKIDFromX509Cert(paaDerBuffer, paaSKID) == CHIP_NO_ERROR,