Expand description
Protocol abstraction layer for multiple protocol support Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
This file is part of DMSC. The DMSC project belongs to the Dunimd Team.
Licensed under the Apache License, Version 2.0 (the “License”); You may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
§Protocol Module
This module provides protocol implementations for DMSC, including global protocol, private protocol, post-quantum cryptography, and integration features.
§Features
- DMSCProtocol: Main protocol interface (trait definition)
- DMSCGlobalProtocol: Global protocol implementation (basic implementation)
- DMSCPrivateProtocol: Private protocol implementation (basic implementation)
- DMSCCrypto: Cryptographic operations
- Post-Quantum Cryptography: Kyber, Dilithium, Falcon implementations using liboqs
§Security Status
This module now uses the liboqs library for post-quantum cryptography, which is:
- The reference implementation from the NIST PQC competition
- Actively maintained and regularly audited
- Suitable for production use
Post-Quantum Cryptography algorithms (Kyber, Dilithium, Falcon):
- Based on NIST PQC competition algorithms
- Have undergone formal security analysis
- Constant-time implementations for side-channel resistance
- Recommended for protecting sensitive data
§Recommendation
For cryptographic operations, this module uses audited libraries:
- liboqs - NIST PQC reference implementation
- ring - Modern, audited crypto library
- openssl - Industry-standard crypto library
Re-exports§
pub use frames::DMSCFrameBuilder;pub use frames::DMSCFrameParser;
Modules§
- frames
- Frame definitions for binary protocol encoding Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
Structs§
- DMSC
Base Protocol - DMSC
Connection Info - Connection information
- DMSC
Connection Stats - Connection statistics
- DMSC
Frame - Protocol frame
- DMSC
Frame Header - Frame header
- DMSC
Global Protocol - DMSC
Message Flags - Message flags for protocol messages
- DMSC
Private Protocol - DMSC
Protocol Config - Protocol configuration
- DMSC
Protocol Manager - Protocol manager
- DMSC
Protocol Response - Protocol response structure
- DMSC
Protocol Stats - Protocol statistics
Enums§
- DMSC
Connection State - Connection state
- DMSC
Frame Type - Frame type enumeration
- DMSC
Protocol Health - Protocol health status
- DMSC
Protocol Status - Protocol status
- DMSC
Protocol Type - Protocol type enumeration
- DMSC
Security Level - Security level
- Protocol
Error
Traits§
- DMSC
Protocol - Core protocol trait
- DMSC
Protocol Connection - Protocol connection trait