xml_sec/c14n/mod.rs
1//! XML Canonicalization (C14N).
2//!
3//! Implements:
4//! - [Canonical XML 1.0](https://www.w3.org/TR/xml-c14n/)
5//! - [Canonical XML 1.1](https://www.w3.org/TR/xml-c14n11/)
6//! - [Exclusive XML Canonicalization](https://www.w3.org/TR/xml-exc-c14n/)
7
8/// Canonicalization algorithm selection.
9#[derive(Debug, Clone, Copy, PartialEq, Eq)]
10pub enum C14nAlgorithm {
11 /// Canonical XML 1.0 (with comments).
12 Inclusive10WithComments,
13 /// Canonical XML 1.0 (without comments).
14 Inclusive10,
15 /// Canonical XML 1.1 (with comments).
16 Inclusive11WithComments,
17 /// Canonical XML 1.1 (without comments).
18 Inclusive11,
19 /// Exclusive Canonical XML (with comments).
20 Exclusive10WithComments,
21 /// Exclusive Canonical XML (without comments).
22 Exclusive10,
23}