cypheron-core 0.1.2

Post-quantum cryptography library with NIST-standardized quantum-resistant algorithms
Documentation
// Copyright 2025 Cypheron Labs, Inc.
//
// 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.

pub const ML_DSA_44_PUBLIC: usize = 1312;
pub const ML_DSA_44_SECRET: usize = 2560;
pub const ML_DSA_44_SIGNATURE: usize = 2420;

pub const ML_DSA_65_PUBLIC: usize = 1952;
pub const ML_DSA_65_SECRET: usize = 4032;
pub const ML_DSA_65_SIGNATURE: usize = 3309;

pub const ML_DSA_87_PUBLIC: usize = 2592;
pub const ML_DSA_87_SECRET: usize = 4896;
pub const ML_DSA_87_SIGNATURE: usize = 4627;

#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_44_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM2_PUBLIC: usize = ML_DSA_44_PUBLIC;
#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_44_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM2_SECRET: usize = ML_DSA_44_SECRET;
#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_44_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM2_SIGNATURE: usize = ML_DSA_44_SIGNATURE;

#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_65_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM3_PUBLIC: usize = ML_DSA_65_PUBLIC;
#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_65_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM3_SECRET: usize = ML_DSA_65_SECRET;
#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_65_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM3_SIGNATURE: usize = ML_DSA_65_SIGNATURE;

#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_87_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM5_PUBLIC: usize = ML_DSA_87_PUBLIC;
#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_87_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM5_SECRET: usize = ML_DSA_87_SECRET;
#[deprecated(
    since = "0.2.0",
    note = "Use ML_DSA_87_* constants for NIST FIPS 204 compliance"
)]
pub const DILITHIUM5_SIGNATURE: usize = ML_DSA_87_SIGNATURE;