W3C home > Mailing lists > Public > xml-encryption@w3.org > March 2002

Re: More inter samples

From: merlin <merlin@baltimore.ie>
Date: Tue, 12 Mar 2002 21:59:15 +0000
To: Jiandong Guo <jguo@phaos.com>
Cc: xml-encryption@w3.org
Message-Id: <20020312215915.4C78A4422C@yog-sothoth.ie.baltimore.com>

works fine! merlin

r/jguo@phaos.com/2002.03.12/17:06:02
>
>
>merlin wrote:
>
>> I still get errors on decrypt. On that last example, the following
>> are (hex) my inputs to the digest method during key derivation:
>>
>> zz: 38dfce99d0f641a15982da7f37db04cbb43c8f99f4496a920d4ddb1e5fcd5e1ff12c2d62
>516baef79f0c5e0b1244cef4247d5e4ac8188f699967c0865c397be43861f187346d6729dbf7b7
>0ffa65c222c87a9a36ca1c8c2041af3ae649d58a892b72f919dee59fef99180b529fe98223ac2f
>8b5fe103625be89d2255de36de45
>> counter: 3031
>> alg: 687474703a2f2f7777772e77332e6f72672f323030312f30342f786d6c656e632361657
>33132382d636263
>> nonce: 6162636465
>> keysize: 313238
>>
>> Well, I think those are - I've been prodding at things to see if I
>> get interop and may have broken something.
>>
>
>I found the problem. I somehow cut the leading byte of ZZ in my previous examp
>les.
>The attached example should work. Could you try it?
>
>Thanks!
>
>Jiandong Guo
>Phaos Technology
>
>
>
>--8<-- 
><?xml version="1.0" encoding="UTF-8"?>
><PaymentInfo xmlns="http://example.org/paymentv2">
>  <Name>John Smith</Name>
>  <EncryptedData Id="ED" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns
>="http://www.w3.org/2001/04/xmlenc#">
>    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/
>>
>    <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
>      <AgreementMethod Algorithm="http://www.w3.org/2001/04/xmlenc#dh">
>        <KA-Nonce>YWJjZGU=</KA-Nonce>
>        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
>        <OriginatorKeyInfo>
>          <ds:X509Data>
>            <ds:X509Certificate>
>                MIIEjDCCA/WgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBljELMAkGA1UEBhMCVV
>Mx
>                CzAJBgNVBAgTAk5ZMRIwEAYDVQQHEwlNYW5oYXR0YW4xFTATBgNVBAoTDExhdm
>Eg
>                U3VwcmVtZTEUMBIGA1UECxMLSGVhZCBPZmZpY2UxFDASBgNVBAMTC1JTQSBUZX
>N0
>                IENBMSMwIQYJKoZIhvcNAQkBFhR0ZWNoQGxhdmFzdXByZW1lLm9yZzAeFw0wMj
>Ax
>                MzAyMjUwNDBaFw0xMDAxMDEwNTAwMDBaMIGMMQswCQYDVQQGEwJVUzELMAkGA1
>UE
>                CBMCTlkxEjAQBgNVBAcTCU1hbmhhdHRhbjEOMAwGA1UEChMFUGhhb3MxFDASBg
>NV
>                BAsTC0hlYWQgT2ZmaWNlMRcwFQYDVQQDEw5ESCBUZXN0IENsaWVudDEdMBsGCS
>qG
>                SIb3DQEJARYOdGVjaEBwaGFvcy5vcmcwggJDMIIBuAYHKoZIzj4CATCCAasCgY
>EA
>                uavat7i6NOpnRObdx7Gz38h8xkgmv20XUaj1JjfvMAQfQFMHeshGhY2Q0mwvJ1
>Of
>                X/kZ4cMbSYUywh3WAY6zQs8W2uxg8GeduCLebNQGTaHVFVmrJMQawlV1bIMQ+k
>Di
>                IQNR/FPqSNHKD2Q9/uoGD5d2l4KP3qH8dv5HOT8fCwUCgYBxunqmUuKZFTNKJh
>H9
>                G6UINlI/Xr9jPesj5/I8fpWgxZxsgkzksqisDCslZ09uZTATrGFTF3fk6kNhx2
>5s
>                UCtYHHK1HzQmsLMu2BWNBQrkLC+Mkd3d39UdNduPW4kCMpcdoHAh+zTqAH2QkK
>Jm
>                yxc/x0LevkSUk8rX8DFa3y152QIVAL+Eo4gPL339dk7inq87PnR1PWuHAm0A+C
>9E
>                GPDSphFaPWO5LQTNflJ0l9IGjcNFGrJX0imWrjM2q6bGYz0ZK4cJhcX12YZOjR
>52
>                TZh3cy6yAJG470i65nlz5/3ESWFHsMO0COrDi/Ca5RfMrYGcc8hrydzFlT1zqM
>Fa
>                1yuqQKVsGwXcMBwDFgCZ/hqLAtBi6dyv6Ky+OfXfXgJBPhQCAgNPA4GEAAKBgF
>Ww
>                LyYO4IPxJsbaQQsJ4K1xTjPSjTMmvG4fpKA+S1BGz8FI1SPACb2/YYCrmjoWNv
>kQ
>                V6NTQ+eji6TGA7ET85c4AcRZtxOi3gSP5Kq2A3E9dUouikhrKSHFb+Nx420CXm
>tp
>                jxBu+qUTb7AMrRCus8maHwU9PdKQbZxoDFOLArJHo00wSzAPBgNVHQ8BAf8EBQ
>MD
>                BwgAMBkGA1UdEQQSMBCBDnRlY2hAcGhhb3Mub3JnMB0GA1UdDgQWBBTfky/d+/
>wI
>   		6zicN4uDl0PSAyRNnTANBgkqhkiG9w0BAQQFAAOBgQA+2cWsAZ9a44ttBX1Z3eM
>I
> 		e0GgduXErBt9xsv2Sy6fS/6CyyJm3tpthuT2WMZmu6E+ceBLkFU+TnxnEf/NrSj
>8
>		wtQt/wVHacaSZMcwUDv/uTUxrtIZUJ7A7VxcAvbnLE5fQqKhF6QT5irtbE2Ryvd
>7
>		oMfGG8PmU+sbN9sNXtIzOA==
>            </ds:X509Certificate>
>          </ds:X509Data>
>        </OriginatorKeyInfo>
>        <RecipientKeyInfo>
>          <ds:X509Data>
>            <ds:X509Certificate>
>                MIIEjTCCA/agAwIBAgIBAjANBgkqhkiG9w0BAQQFADCBljELMAkGA1UEBhMCVV
>Mx
>		CzAJBgNVBAgTAk5ZMRIwEAYDVQQHEwlNYW5oYXR0YW4xFTATBgNVBAoTDExhdmE
>g
>		U3VwcmVtZTEUMBIGA1UECxMLSGVhZCBPZmZpY2UxFDASBgNVBAMTC1JTQSBUZXN
>0
>		IENBMSMwIQYJKoZIhvcNAQkBFhR0ZWNoQGxhdmFzdXByZW1lLm9yZzAeFw0wMjA
>x
>		MzAyMjUyNTNaFw0xMDAxMDEwNTAwMDBaMIGM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
>		AwcIADAZBgNVHREEEjAQgQ50ZWNoQHBoYW9zLm9yZzAdBgNVHQ4EFgQUHddBJmf
>V
>		6MD3FTbVmHcLFN6QFAcwDQYJKoZIhvcNAQEEBQADgYEAKZl9P/ZmIrwHp3BTfBH
>l
>		eFBk9CbhK14FObMGWSkfjqipb5snXBPE3uPBrvP1StisPRsK/y1OZfcjjkA6ht0
>j
>		YWp9lohNDTlc/NOKGOQSCpntqr+wQhc6l16jezqR7sKv2eHBFGs0V7HCrEe2mTP
>4
>		rDa/YKrmL5K6S9GSF27rx40=
>	    </ds:X509Certificate>
>	  </ds:X509Data>
>        </RecipientKeyInfo>
>      </AgreementMethod>
>    </ds:KeyInfo>
>    <CipherData>
>      <CipherValue>
>        2+4oM3TFfOQ5JMIvRbTk3SbeWqbSVAhMb9zT+3BatcUJuhxzzXtLKEzkfPT09iTP
>        NmwEoUysB5uETmQ49Fd/0l21QjUmctAaCBIbWSrP4f3K2SUGxjKNZE4Pes+8DwiT
>        H1cak+3qT0zbqFa6rXcdLxS/ucxJOPMJV9ZCE4SkvFt2ZME8uRevFEYIqp/HInFZ
>        OjY9Lf8+hHOXVOVqrMObx7/CFzm0AS2aL4WmyfGM3zyUN1BF3nS4zzVOHNfIFopX
>      </CipherValue>
>    </CipherData>
>  </EncryptedData>
></PaymentInfo>


-----------------------------------------------------------------------------
Baltimore Technologies plc will not be liable for direct,  special,  indirect 
or consequential  damages  arising  from  alteration of  the contents of this
message by a third party or as a result of any virus being passed on.

This footnote confirms that this email message has been swept by
Baltimore MIMEsweeper for Content Security threats, including
computer viruses.
   http://www.baltimore.com
Received on Tuesday, 12 March 2002 16:59:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:42:20 GMT