Skip to content

Commit

Permalink
Remove TrustedRootID from Sigma messages. Replce HKDF algorithm with …
Browse files Browse the repository at this point in the history
…HMAC-SHA256 Algorithm in GenerateDestinationID method.
  • Loading branch information
jpk233 committed Jul 23, 2021
1 parent 7c1ca90 commit 1161192
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ ControllerDeviceInitParams DeviceController::GetControllerDeviceInitParams()
.inetLayer = mInetLayer,
.storageDelegate = mStorageDelegate,
.credentials = &mCredentials,
.trustedRoot = &mRootKeyId,
.idAllocator = &mIDAllocator,
};
}
Expand Down
2 changes: 0 additions & 2 deletions src/protocols/secure_channel/CASESession.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ class DLL_EXPORT CASESession : public Messaging::ExchangeDelegate, public Pairin
private:
enum SigmaErrorType : uint8_t
{
kNoSharedTrustRoots = 0x01,
kInvalidSignature = 0x04,
kInvalidResumptionTag = 0x05,
kUnsupportedVersion = 0x06,
Expand All @@ -223,7 +222,6 @@ class DLL_EXPORT CASESession : public Messaging::ExchangeDelegate, public Pairin
CHIP_ERROR GenerateDestinationID(const ByteSpan & random, const Credentials::CertificateKeyId * trustedRootId, NodeId nodeId,
MutableByteSpan & destinationId);
CHIP_ERROR FindDestinationIdCandidate(const ByteSpan & destinationId, const ByteSpan & initiatorRandom);
CHIP_ERROR FindValidTrustedRoot(const Credentials::CertificateKeyId & trustedRootId);
CHIP_ERROR ConstructSaltSigmaR2(const ByteSpan & rand, const Crypto::P256PublicKey & pubkey, const ByteSpan & ipk,
MutableByteSpan & salt);
CHIP_ERROR Validate_and_RetrieveResponderID(const ByteSpan & responderOpCert, Crypto::P256PublicKey & responderID);
Expand Down

0 comments on commit 1161192

Please sign in to comment.