Hi,

I had problems with verifying signatures produced by signtext().
This is becouse newlines in string data is interpreted as in Unix.
So, the following data
Hi
There
Is interpreted as "Hi(LF)There".
However, when verifying, the data is supplied as "Hi(CRLF)There".
That's an extra byte DOS-like newline.

Either strip carriage returns before verifying or add CR before
signing.

Bye.

Mariano.

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

Reply via email to