Ok guys, just to let you know, now its working. (Again, this list
deserves my love)

2 things were happenning:

1-As Rob Relyea (thx) pointed me, i was doing something wrong: My
C_Decrypt function was returning 128 bytes instead of the 24 seems it
should.
  Why it should return 24 and not 64/32/16/8...?
  AFAIK, 24 its the symmetric key length, but as far as i dont know
which key algorithm or key was used to crypt...how could i know the
length?
Shouldn't Mozilla Thunderbird call with pulDataLen = 24?

2-Mozilla Thunderbird probably has a bug calling this function, and
not following the convention of "invoke first with pulDataLen=0 and
pData=NULL to guess size".
  In fact, its invoking with pulDataLen=128 (probably 'cause its using
the same buffer for encrypted/decrypted key?)
  According to standard: "Its OK if pEncryptedData and pData point to
the same location", but not their lengths!

Should i file a bug for this?

Thanks again for your patience and help.

El día 23 de enero de 2012 12:50, Martin Paljak
<mar...@martinpaljak.net> escribió:
> On Mon, Jan 23, 2012 at 10:18, helpcrypto helpcrypto
> <helpcry...@gmail.com> wrote:
>
>> Ill ask again: We do only CKM_RSA_PKCS. Does Mozilla Thundebird
>> requires other mechanims to work properly?
> AFAIK not.
> --
> dev-tech-crypto mailing list
> dev-tech-crypto@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-crypto
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to