1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
//! The ML-DSA signature APIs have been stabilized; use [`crate::signature`] instead.
//!
//! Everything in this module is a deprecated alias for its stable counterpart in
//! [`crate::signature`]. Aliases are used rather than re-exports so that usage
//! produces deprecation warnings; type identity is unchanged.
//!
//! During stabilization, `PqdsaKeyPair::to_pkcs8` was renamed to
//! [`crate::signature::PqdsaKeyPair::to_pkcs8v1`]. A deprecated `to_pkcs8` alias
//! remains available while the `unstable` feature is enabled; it will be removed
//! along with this module in a future release.
use cratesignature;
/// Deprecated alias for [`crate::signature::PqdsaKeyPair`].
pub type PqdsaKeyPair = PqdsaKeyPair;
/// Deprecated alias for [`crate::signature::PqdsaPrivateKey`].
pub type PqdsaPrivateKey<'a> = PqdsaPrivateKey;
/// Deprecated alias for [`crate::signature::PqdsaPublicKey`].
pub type PqdsaPublicKey = PqdsaPublicKey;
/// Deprecated alias for [`crate::signature::PqdsaSigningAlgorithm`].
pub type PqdsaSigningAlgorithm = PqdsaSigningAlgorithm;
/// Deprecated alias for [`crate::signature::PqdsaVerificationAlgorithm`].
pub type PqdsaVerificationAlgorithm = PqdsaVerificationAlgorithm;
/// Verification of ML-DSA-44 signatures.
pub const ML_DSA_44: PqdsaVerificationAlgorithm = ML_DSA_44;
/// Verification of ML-DSA-65 signatures.
pub const ML_DSA_65: PqdsaVerificationAlgorithm = ML_DSA_65;
/// Verification of ML-DSA-87 signatures.
pub const ML_DSA_87: PqdsaVerificationAlgorithm = ML_DSA_87;
/// Signing using ML-DSA-44.
pub const ML_DSA_44_SIGNING: PqdsaSigningAlgorithm = ML_DSA_44_SIGNING;
/// Signing using ML-DSA-65.
pub const ML_DSA_65_SIGNING: PqdsaSigningAlgorithm = ML_DSA_65_SIGNING;
/// Signing using ML-DSA-87.
pub const ML_DSA_87_SIGNING: PqdsaSigningAlgorithm = ML_DSA_87_SIGNING;
/// Verification of MLDSA-44 signatures
pub const MLDSA_44: PqdsaVerificationAlgorithm = ML_DSA_44;
/// Verification of MLDSA-65 signatures
pub const MLDSA_65: PqdsaVerificationAlgorithm = ML_DSA_65;
/// Verification of MLDSA-87 signatures
pub const MLDSA_87: PqdsaVerificationAlgorithm = ML_DSA_87;
/// Sign using MLDSA-44
pub const MLDSA_44_SIGNING: PqdsaSigningAlgorithm = ML_DSA_44_SIGNING;
/// Sign using MLDSA-65
pub const MLDSA_65_SIGNING: PqdsaSigningAlgorithm = ML_DSA_65_SIGNING;
/// Sign using MLDSA-87
pub const MLDSA_87_SIGNING: PqdsaSigningAlgorithm = ML_DSA_87_SIGNING;