RE: [xmlsec] Invalid data char=B; base=10 on verify
Yes I realized that. However it won't blow up for the demo. I am happy. From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: November 11, 2003 1:56 AMTo: Edward ShallowCc: [EMAIL PROTECTED]Subject: Re: [xmlsec] Invalid data char=B; base=10 on verify Well, the actually won't work correctly: 0x10 != 10 Most likely in your caseyou have more information about the cert that is used if search by serial number fails. But it's just an acident :(AlekseyEdward Shallow wrote: Thanks a million. Turns out that any "hex" characters in the serial number (e.g. 1D) will cause the problem. Certs with only numbers in them work. Thanks again, Ed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Aleksey Sanin Sent: November 11, 2003 12:57 AM To: Edward Shallow Cc: [EMAIL PROTECTED] Subject: Re: [xmlsec] Invalid data char=B; base=10 on verify The problem is caused by incorrect conversion of a big integer to a string. Instead of using base 10 the function incorrectly used base 16. Thus you'll get incorrect numbers sometime. This function is used in writing thus you got it only when you've used this node in your template. Aleksey Edward Shallow wrote: Thanks, Is there any specific characters that cause or are affected by this problem ? I don't get it for many schemas and documents ? I have a demo tomorrow and was wandering if I could work around it ? Ed ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] two crypto libraries at the same time
Well, I can understand a situation when you want to perform different crypto ops using different libraries. But from xmlsec point of view this would just mean that there is a one "virtual" crypto library combined from two real ones. This is a trivial thing to do: just follow standard xmlsec-crypto library creation scheme. The case you describe is a little bit different (IMHO). As far as I can understand, you would like to do a little bit more and use two crypto libraries *in the same time*: application uses one crypto library and sdk uses another one for the *same* type of crypto operations. This would require significantly more surgery on xmlsec itself. As I said I am not sure that this is usefull in real life. But if you need this I can explain how to achieve this (again, it will require significant ammount of work). Aleksey P.Q.Hung wrote: thanks a lot for the answer. I was only wonder if it works with two loaded crypto libs. It is obvious from your answer that it is. It is enough for me. -- P.Q.Hung Btw, real use case may be speed, interoperability.
Re: [xmlsec] two crypto libraries at the same time
thanks a lot for the answer. I was only wonder if it works with two loaded crypto libs. It is obvious from your answer that it is. It is enough for me. -- P.Q.Hung Btw, real use case may be speed, interoperability. - Original Message - From: Aleksey Sanin To: P.Q.Hung Cc: [EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:57 AM Subject: Re: [xmlsec] two crypto libraries at the same time Nothing is impossible, it's only software but one would have to write some additional code to tell xmlsec which algorithms are used by which library. But I really don't know a real use case for such a thing.AlekseyP.Q.Hung wrote: Hi, sorry for a stupid question. Does xmlxec support two crypto libs at one time? I can imagine an usecase: Custumer A has an application using xmlsec with MSCrypto. He wants to use SDK from sw provider B. But the SDK uses xmlsec with openssl crypto. Is any problem here or not? thanks, -- P.Q.Hung
Re: [xmlsec] two crypto libraries at the same time
Nothing is impossible, it's only software but one would have to write some additional code to tell xmlsec which algorithms are used by which library. But I really don't know a real use case for such a thing. Aleksey P.Q.Hung wrote: Hi, sorry for a stupid question. Does xmlxec support two crypto libs at one time? I can imagine an usecase: Custumer A has an application using xmlsec with MSCrypto. He wants to use SDK from sw provider B. But the SDK uses xmlsec with openssl crypto. Is any problem here or not? thanks, -- P.Q.Hung
[xmlsec] two crypto libraries at the same time
Hi, sorry for a stupid question. Does xmlxec support two crypto libs at one time? I can imagine an usecase: Custumer A has an application using xmlsec with MSCrypto. He wants to use SDK from sw provider B. But the SDK uses xmlsec with openssl crypto. Is any problem here or not? thanks, -- P.Q.Hung
Re: [xmlsec] Invalid data char=B; base=10 on verify
Well, the actually won't work correctly: 0x10 != 10 Most likely in your case you have more information about the cert that is used if search by serial number fails. But it's just an acident :( Aleksey Edward Shallow wrote: Thanks a million. Turns out that any "hex" characters in the serial number (e.g. 1D) will cause the problem. Certs with only numbers in them work. Thanks again, Ed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Aleksey Sanin Sent: November 11, 2003 12:57 AM To: Edward Shallow Cc: [EMAIL PROTECTED] Subject: Re: [xmlsec] Invalid data char=B; base=10 on verify The problem is caused by incorrect conversion of a big integer to a string. Instead of using base 10 the function incorrectly used base 16. Thus you'll get incorrect numbers sometime. This function is used in writing thus you got it only when you've used this node in your template. Aleksey Edward Shallow wrote: Thanks, Is there any specific characters that cause or are affected by this problem ? I don't get it for many schemas and documents ? I have a demo tomorrow and was wandering if I could work around it ? Ed ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec