예제 #1
0
        public void SetUp()
        {
            sfc = new StandardFormCanonicalizer();

            //Create valid signedInfo node
            validSignedInfo  = "";
            validSignedInfo += "<SignedInfo Id=\"myFirstSign\">";
            validSignedInfo += "<CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"";
            validSignedInfo += "/><SignatureMethod Algorithm=\"xml:dig:signer:rsa-dsa\" />";
            validSignedInfo += "<Reference URI=\"http://www.google.com\"><DigestMethod>";
            validSignedInfo += "http://www.w3.org/2000/09/xmldsig#sha1</DigestMethod><DigestValue>";
            validSignedInfo += "bTKJD7cSqIIsDioMYGfAvb9hNug=</DigestValue></Reference></SignedInfo>";
        }
예제 #2
0
 public void TearDown()
 {
     sfc               = null;
     validSignedInfo   = null;
     invalidSignedInfo = null;
 }