Provides utilities for XML serialization, hashing, and validation of VECTO vehicle declarations and components. Handles signature generation using VECTO hashing algorithms.
More...
Provides utilities for XML serialization, hashing, and validation of VECTO vehicle declarations and components. Handles signature generation using VECTO hashing algorithms.
◆ HashAndSerialize()
Hashes and serializes a single component declaration to XML format. Optionally embeds input data as an XML comment.
- Parameters
-
| output | The output stream to write the serialized XML to. |
| vectoInputDeclaration | The component declaration container. |
| input | Optional input data to embed as a comment. |
◆ HashAndSerializeJob()
| void VectoInputManager.Core.XmlUtils.HashAndSerializeJob |
( |
Stream | output, |
|
|
IVehicleJobDeclaration | vectoInputDeclaration ) |
|
inlinestatic |
Hashes and serializes a complete vehicle job declaration to XML format. Computes cryptographic signatures for each component before serialization.
- Parameters
-
| output | The output stream to write the serialized XML to. |
| vectoInputDeclaration | The vehicle job declaration to serialize. |
◆ ValidateComponentHashes()
Validates the cryptographic hash of the component.
- Parameters
-
| component | The component to validate. |
- Returns
- A ValidationResult indicating whether the hash is valid or the type of error encountered.
◆ ValidateVehicleJobHashes()
Validates the cryptographic hashes of all components in a vehicle job declaration.
- Parameters
-
| job | The vehicle job declaration to validate. |
- Returns
- A list of component paths with their validation results.
The documentation for this class was generated from the following file:
- VectoInputManagerCore/XmlUtils.cs