ps_mitrofa...@mail.ru wrote:
Hi. I've got a problem.
I need to use NSS freebl3.dll ECC-functions (for ECDH).
The first and most obvious question... Why?
freebl3.dll is a private NSS DLL. NSS does not support applications
using it's functions directly, and doing so would be a good way to have
your application break on a point release.
The correct interface is the PK11_ calls in nss3.dll.
bob
This DLL has
only one export function FREEBLVector *FREEBL_GetVector(void).
So, to use freebl3.dll ECC-functions I wrote somth like this:
vec= FREEBL_GetVector(void).;(this works fine).
And after that I should call ECC-functions like this:
vec->p_EC_NewKey(params,pair1);
where SECStatus p_EC_NewKey(ECParams *params, ECPrivateKey **privKey).
The source code for EC_NewKey is in ec.c (../mozilla/security/nss/lib/
freelbl).
So, there is a question. How shoud I set variable "params" to use, for
example, ECCurve_NIST_P521? If somebody know, please help me. I've
tryed a lot, but everything is wrong (( .
_______________________________________________
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