Expand description
Authenticated join bundle: wraps the raw cred bytes sent to a joiner with an HMAC-SHA256 MAC so a MitM cannot substitute their own CA even if they intercept the token.
MAC key derivation: HMAC-SHA256(cluster_secret XOR token_hash) over
the bundle bytes. This binds the bundle to both the cluster secret and
the specific token, so a replayed bundle from a different session or a
bundle signed under a different secret is rejected.
The joiner calls [verify_bundle] before installing any cert material.
Structs§
- Authenticated
Join Bundle - Authenticated wrapper around the raw join bundle bytes.
Enums§
- Bundle
Error - Error from bundle operations.
Functions§
- derive_
mac_ key - Derive the MAC key as
cluster_secret XOR token_hash. - open_
bundle - Verify the MAC on
sealedand return the inner bundle bytes. - seal_
bundle - Wrap
bundle_bytesin anAuthenticatedJoinBundle.