pub fn canonicalize(raw: &[u8]) -> Result<Vec<u8>, ShapeViolation>Expand description
Canonical-bytes accessor — DER is the canonical form per X.690 §10, so canonicalization is the identity on validated input.
Available only under the alloc feature.
§Errors
Surfaces the [ShapeViolation] validate_der would raise.