Module protocol

Module protocol 

Source
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.0

Unless 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§

DMSCBaseProtocol
DMSCConnectionInfo
Connection information
DMSCConnectionStats
Connection statistics
DMSCFrame
Protocol frame
DMSCFrameHeader
Frame header
DMSCGlobalProtocol
DMSCMessageFlags
Message flags for protocol messages
DMSCPrivateProtocol
DMSCProtocolConfig
Protocol configuration
DMSCProtocolManager
Protocol manager
DMSCProtocolResponse
Protocol response structure
DMSCProtocolStats
Protocol statistics

Enums§

DMSCConnectionState
Connection state
DMSCFrameType
Frame type enumeration
DMSCProtocolHealth
Protocol health status
DMSCProtocolStatus
Protocol status
DMSCProtocolType
Protocol type enumeration
DMSCSecurityLevel
Security level
ProtocolError

Traits§

DMSCProtocol
Core protocol trait
DMSCProtocolConnection
Protocol connection trait