10. Verification of xml digital signature.

(a) canonical form of signed info as produced during reference validation shall be used;
(b) canonical form of signature method using the canonicalization method shall be obtained;
(c) the public key contained in the signatory's x509 certificate that is included in the xml digital signature, the canonicalisied form of signed info signature value, and canonicalisied form of signature method shall be used to verify the signature.
(a) canonicalise the signed info element based on the canonicalisation method in the signed info shall be used;
(b) for each reference in the signed info-
(i) if transformations were applied by the signatory, then the verifier software may de-reference the uniform resource identifier (uri) and execute transforms provided by the signatory in the reference element;
(ii) compute digest of referenced item using the digest method specified in its reference element;
(iii) compare the computed digest value against digest value in the signed info reference; if there is any mismatch or validation fails;