W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2004

can have the same public key two diferent <RSAKeyValue> representations ???

From: Martin Labarthe Dubois <dubois@consist.com.ar>
Date: Mon, 14 Jun 2004 16:39:21 -0300
Message-ID: <020301c45247$4a5274d0$3c0201c0@consist.com.ar>
To: <w3c-ietf-xmldsig@w3.org>

I have signed an XML with two different algorithms,
they produced the same signature:

<SignatureValue>cWmKHs9Y8kDgb18KEqzwonsAhXhcbCPJlgLKw1j4LA8FE+ZNJEFWDkD8EE+x+IF+HqrhtHaP9VNH 3DZXj7d2TaD2FZg2P7H48VHZBRTXguHJ4VAoJGWVCEOWJIgAYPYY9AwCzAP7Fq1CK0tVjZuOx/kj 1pXSR2N7nhcINoy0nwI=</SignatureValue> 

and the same X509Certificate:

<X509Data>
  <X509Certificate>MIIFYjCCBEqgAwIBAgIRAOQcxH0LRFgNXlhsKI68ao8wDQYJKoZIhvcNAQEFBQAwgdIxCzAJBgNV BAYTAkNMMR0wGwYDVQQIExRSZWdpb24gTWV0cm9wb2xpdGFuYTERMA8GA1UEBxMIU2FudGlhZ28x JDAiBgNVBAoTG0NhbWFyYSBOYWNpb25hbCBkZSBDb21lcmNpbzENMAsGA1UECxMET05DRTEfMB0G A1UEAxMWT05DRSBQRVJTT05BUywgQ2xhc2UgMzEfMB0GCSqGSIb3DQEJARYQYWRtaW5vbmNlQGNu Yy5jbDEaMBgGCgmSJomT8ixkAQETCjcwMDA4MzEwLTEwHhcNMDQwMTEzMTk1MzU2WhcNMDcwMTEz MjM1MzU2WjCB3TELMAkGA1UEBhMCQ0wxJTAjBgNVBAoTHENvbnNpc3QgVGVsZWluZm9ybWF0aWNh IFMuQS4xGTAXBgNVBAsTEEVtcGxlYWRvIEVtcHJlc2ExEzARBgNVBAsTCkluZ2VuaWVyaWExGjAY BgNVBAMTEUFuZHJlYSBWYWxlbnp1ZWxhMRwwGgYDVQQqExNJbmdlbmllcm8gQ29uc3VsdG9yMSIw IAYJKoZIhvcNA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KEq1LcrINIktOqIruUOn2PvIW2+ai3lPTeiSp3ZVw+1qouacF71oCPNHn6HnrnIvpt 4JERrifPdnRuK/vtepL7Srrpbc4NnsZArL3sj+l7365rAJ2fyC9oijIh2+pV+Rrcn7oVgnV092vP RE9GJ/bUs9So2n+kawk=</X509Certificate> 
  </X509Data>

but diferent Modulus+Exponent pair.

- <RSAKeyValue>
  <Modulus>ALTng/nEXt4jp8tatc1EHqteLwdovwRyueRuuB0Q7PisWn5uzdaCOKhnIkH9BgtlwJJEwd+sYEoU 7wIj3NcLlaIg/rypTQz+AlNKmiUIxAYHbCJ1LH3cEBct9HUY4YjleV1cK9Ip6j1INQ6PjzViNMng 52RweeSuPi/hm98YafZH</Modulus> 
  <Exponent>AQAB</Exponent> 
  </RSAKeyValue>
  </KeyValue>

and

- <RSAKeyValue>
  <Modulus>tOeD+cRe3iOny1q1zUQeq14vB2i/BHK55G64HRDs+Kxafm7N1oI4qGciQf0GC2XAkkTB36xgShTv AiPc1wuVoiD+vKlNDP4CU0qaJQjEBgdsInUsfdwQFy30dRjhiOV5XVwr0inqPUg1Do+PNWI0yeDn ZHB55K4+L+Gb3xhp9kc=</Modulus> 
  <Exponent>AQAB</Exponent> 
  </RSAKeyValue>


i dindīt know that a Public Key could have two different Modulus+Exponent pairs representation,
is this logical???

I verified both signatures with two diferent toolkits and both are valid, (i deleted de <X509Data> to force validation by RSAKeyValue instead of X509Certificate.
The references in <SignedInfo> are correct too.


Thanks & Regards,
Martin


I deleted the X509Certificate to force validation by
Received on Monday, 14 June 2004 15:43:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:39 UTC