Hi,

I am trying to sign some data with crypto.signtext() on Firefox 1.5
passing a string as an argument, but I am having problems to verify the
signature.

signtext() detachs the signed data, wich makes it impossible to
actually see what it is signing.
So I switched to Capicom and IE to create a pkcs7 with data attached. I
saw the data takes 2 bytes per character, that is:
Javascript:
var data = 'Hello' /* 5 bytes */
capicom.sign(data)
DER encoded pkcs7:
H . e . l . l . o /* 10 bytes! */

I can only guess signtext is behaving the same way becouse of the
encoding of String representation in Javascript.

¿Is this true?
¿How can I use signtext() passing a 8-bit encoded String instead of a
unicode one?

Thanks,

Mariano.

_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to