Skip to content

Commit

Permalink
AlgorithmIdentifier: cross-reference to alg_id module
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Dec 23, 2024
1 parent 6805379 commit 79d1226
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,8 @@ pub struct InvalidSignature;
/// The outer sequence encoding is *not included*, so this is the DER encoding
/// of an OID for `algorithm` plus the `parameters` value.
///
/// For example, this is the `rsaEncryption` algorithm:
/// For example, this is the `rsaEncryption` algorithm (but prefer to use the constant
/// [`alg_id::RSA_ENCRYPTION`] instead):
///
/// ```
/// let rsa_encryption = rustls_pki_types::AlgorithmIdentifier::from_slice(
Expand All @@ -927,6 +928,8 @@ pub struct InvalidSignature;
/// ]
/// );
/// ```
///
/// Common values for this type are provided in the [`alg_id`] module.
#[derive(Clone, Copy, PartialEq, Eq)]
pub struct AlgorithmIdentifier(&'static [u8]);

Expand Down

0 comments on commit 79d1226

Please sign in to comment.