Skip to content

Commit

Permalink
include algoright and remove the local var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed Aug 23, 2024
1 parent 6cb2376 commit 6088629
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <lib/support/BytesToHex.h>
#include <lib/support/logging/CHIPLogging.h>

#include <algorithm>
#include <fstream>
#include <json/json.h>
#include <string>
Expand All @@ -30,9 +31,10 @@ using namespace chip::Crypto;
namespace chip {
namespace Credentials {

namespace {

static constexpr uint32_t kMaxIssuerBase64Len = BASE64_ENCODED_LEN(kMaxCertificateDistinguishedNameLength);

namespace {
CHIP_ERROR BytesToHexStr(const ByteSpan & bytes, MutableCharSpan & outHexStr)
{
Encoding::HexFlags flags = Encoding::HexFlags::kUppercase;
Expand Down Expand Up @@ -288,8 +290,6 @@ CHIP_ERROR TestDACRevocationDelegateImpl::GetSubjectNameBase64Str(const ByteSpan
// @param isPAI true if the certificate being tested is a PAI, false otherwise
bool TestDACRevocationDelegateImpl::IsCertificateRevoked(const ByteSpan & certDer, bool isPAI)
{
static constexpr uint32_t kMaxIssuerBase64Len = BASE64_ENCODED_LEN(kMaxCertificateDistinguishedNameLength);

char issuerNameBuffer[kMaxIssuerBase64Len] = { 0 };
char serialNumberHexStrBuffer[2 * kMaxCertificateSerialNumberLength] = { 0 };
char akidHexStrBuffer[2 * kAuthorityKeyIdentifierLength] = { 0 };
Expand Down

0 comments on commit 6088629

Please sign in to comment.