Peter Saint-Andre wrote: > Peter Saint-Andre wrote: >> Peter Saint-Andre wrote: >>> Stephan Maka wrote: >>>> "Sergei Golovan" <[EMAIL PROTECTED]> wrote: >>>>> I guess spaces are added to allow line breaking. Hash is computed for >>>>> the string without spaces. >>>>>> Look again. I can't even reproduce with the SHA-1 method given in >>>>>> XEP-0115: >>>>> Remove http://jabber.org/protocol/caps< from a hashed string and >>>>> you'll get the desired hash value. >>>> Great, that works. Thank you very much. >>>> >>>>>> Because it is required. Perhaps this is a bug in the XEP? >>>>> It looks like a bug in XEP. >>> Yes, thanks for the bug report. I'll regenerate the hash (clearly the >>> entities support http://jabber.org/protocol/caps so it doesn't make >>> sense to remove that from "S"). >> Well, I removed 'http://jabber.org/protocol/caps' from "S" because I >> couldn't duplicate the results any other way. :) Typically I generate >> the hashes using this command: >> >> echo -n 'S' | openssl dgst -binary -sha1 | openssl enc -nopad -base64 >> >> However, that doesn't work for this example because it has the Greek >> character Ψ in the string and that character is not properly encoded at >> the command line on my system. IIRC Joe Hildebrand generated that hash >> for me using Jabber-Net. > > Well that's stupid, I'm going to fix the examples properly. Plus the Psi > version numbers don't match (0.9.1 vs. 0.11) so I need to correct that.
Fixed: http://www.xmpp.org/extensions/xep-0115.html http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0115.xml?%40diffMode=u&%40diffWrap=s&r1=1702&r2=1805&u=3&ignore=&k= Peter -- Peter Saint-Andre https://stpeter.im/
smime.p7s
Description: S/MIME Cryptographic Signature