mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bugzilla Bug 320589: temporary workaround for SEC_SignData ECDSA signature
generation bug introduced by the previous checkin.
This commit is contained in:
parent
d4a600bdeb
commit
d2bce3f900
@ -638,7 +638,15 @@ ECDSA_SignDigestWithSeed(ECPrivateKey *key, SECItem *signature,
|
||||
|
||||
ecParams = &(key->ecParams);
|
||||
flen = (ecParams->fieldID.size + 7) >> 3;
|
||||
/*
|
||||
* FIXME: temporary workaround until we change PK11_SignatureLen
|
||||
* to use the length of the base point order.
|
||||
*/
|
||||
#if 0
|
||||
olen = ecParams->order.len;
|
||||
#else
|
||||
olen = flen;
|
||||
#endif
|
||||
if (signature->len < 2*olen) {
|
||||
PORT_SetError(SEC_ERROR_OUTPUT_LEN);
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user