cadrumo.adapters.persistence.storage.custody._kdf_codec module¶
Canonical codecs and framed transport for the supervised profile KDF.
- KDF_TRANSPORT_ENCODING: Final¶
Text encoding of every string crossing the supervised-KDF boundary.
Declared here rather than taken from
core.external_constants: the worker is started for every wrap and unwrap, and that module’s import graph is several times the cost of the hash itself.
- canonical_frame_bytes(payload)[source]¶
Encode one supervised-KDF frame body under the canonical encoding.
- canonical_frame_digest(payload)[source]¶
Digest one supervised-KDF frame body under the canonical encoding.
- windows_available_memory_bytes()[source]¶
Return available physical bytes from
GlobalMemoryStatusEx.The
sys.platform == "win32"block, rather than a guard at the call site or an early return, is what establishes the platform for the Windows API below: it is the only guard shape every checker this project runs narrows on, so those references resolve when the tree is analysed for a platform that does not ship them.- Return type: