-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restyle CASE spec refresh #8649
Conversation
…HMAC-SHA256 Algorithm in GenerateDestinationID method.
…alCredentialSet. Added CredentialsIndex parameter to AdminPairingTable's GetCredentials method. Removed FabricSecret. Removed kIPKInfo. Removed Deprecated ComputeIPK method - Replaced it with dummy RetrieveIPK method.
…to an actual OperationalCredentialSet method to retrieve a TrustedRootId, renamed kMAX_Hash_Length refs to kSHA256_Hash_Length to match the Spec.
This method will release the last certificate data in the set. Added call to ReleaseLastCert method during CASESession after a successful validation of the NOC certificate. Updated CASE Unit Tests to force 3 certificates maximum. This will guarantee that for the tests to work fine, CASESession must release the NOC certificate every time. CASESession: change LoadCerts to LoadCert - Only NOC is transferred during CASE Protocol. No need to handle ICA
… the NOC instead.
…ng a const ChipCertificateData type anymore to avoid confusion. Removed redundant comment from ReleaseLastCert method. Wrote some TODO items to update OperationalCredentialSet class in order to work with size_t variable counters: useful to index more than 255 Credentials. Update DestinationIDGeneration Test to use Spec's test vectors. Added static assert to check TBEData2 and TBEData3 Nonce Lengths : they must match. Added new method to Estimate TLV Struct overhead. Updated GenerateDestinationID to be stateless: now directly accesses the inputs as raw memory buffers. Updated HandleSigma methods to handle TLV tags sequentially. Removed redundant GetLength and GetType calls during TLV Reads. Renamed encryptionKeyId to initiatorSessionId and responderSessionId. Fixed typo in ENABLE_HSM_CASE_EPHEMERAL_KEY macro.
…cureSession, so it needs to be stored. Updated FindDestinationIDCandidate loop variables to size_t. Also updated names to reflect what they are indexing.
…. They can be overridden by the Unit Tests in order to feed in the test IPK vectors.
Update GetCertFabricId method to use UINT64_MAX macro as an invalid reference, and added a final sanity check to see if there were actually any fabricIds present in the certificate. Added doxygen to GetCredentials method.
Switch to size_t whenever OperationalCredentialSet Class is updated to support more then 255 credentials per controllerconnectedhomeip/src/controller/CHIPDevice.h Lines 482 to 486 in 60a8fc4
This comment was generated by todo based on a
|
switch mOpCredCount var type to size_t in order to allow more than 255 credentials per controller.connectedhomeip/src/credentials/CHIPOperationalCredentials.h Lines 266 to 269 in 60a8fc4
This comment was generated by todo based on a
|
Remove TrustedRootId indexing - Replace it with size_t index.connectedhomeip/src/credentials/CHIPOperationalCredentials.h Lines 281 to 284 in 60a8fc4
This comment was generated by todo based on a
|
move this constant over to src/crypto/CHIPCryptoPAL.h - name it CHIP_CRYPTO_AEAD_MIC_LENGTH_BYTESconnectedhomeip/src/protocols/secure_channel/CASESession.cpp Lines 61 to 68 in 60a8fc4
This comment was generated by todo based on a
|
move this constant over to src/crypto/CHIPCryptoPAL.h - name it CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTESconnectedhomeip/src/protocols/secure_channel/CASESession.h Lines 49 to 52 in 60a8fc4
This comment was generated by todo based on a
|
Remove this list. Replace it with an actual method to retrieve an IPK list (e.g. from a Crypto Store API)connectedhomeip/src/protocols/secure_channel/CASESession.h Lines 296 to 306 in 60a8fc4
This comment was generated by todo based on a
|
Remove this list. Replace it with an actual method to retrieve an IPK list (e.g. from a Crypto Store API)connectedhomeip/src/protocols/secure_channel/tests/TestCASESession.cpp Lines 108 to 118 in 60a8fc4
This comment was generated by todo based on a
|
Rename KeyID to SessionIDconnectedhomeip/src/transport/PeerConnectionState.h Lines 71 to 74 in 60a8fc4
This comment was generated by todo based on a
|
60a8fc4
to
c583249
Compare
A duplicate of #8137 with additional commits that automatically address
incorrect style, created by Restyled.
Please review accordingly.
Since the original Pull Request was opened as a fork in a contributor's
repository, we are unable to create a Pull Request branching from it with only
the style fixes.
The following Restylers made fixes:
To incorporate these changes, you can either:
Merge this Pull Request instead of the original, or
Ask your contributor to locally incorporate these commits and push them to
the original Pull Request
Expand for example instructions
NOTE: As work continues on the original Pull Request, this process will
re-run and update (force-push) this Pull Request with updated style fixes as
necessary. If the style is fixed manually at any point (i.e. this process finds
no fixes to make), this Pull Request will be closed automatically.
Sorry if this was unexpected. To disable it, see our documentation.