Ignore:
Timestamp:
Jan 9, 2017, 11:09:38 AM (2 years ago)
Author:
jrpelegrina
Message:

Update new version: 3.15.02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • filezilla/trunk/fuentes/src/putty/sshecc.c

    r130 r3185  
    16491649    negative = bignum_bit(point->y, point->curve->fieldBits - 1);
    16501650    bignum_set_bit(point->y, point->curve->fieldBits - 1, 0);
     1651    bn_restore_invariant(point->y);
    16511652
    16521653    /* Get the x from the y */
     
    17711772    if (curve->type == EC_WEIERSTRASS) {
    17721773        getstring(&data, &len, &p, &slen);
     1774        if (!p) return NULL;
    17731775        if (!match_ssh_id(slen, p, curve->name)) return NULL;
    17741776    }
     
    17821784    ec->publicKey.y = NULL;
    17831785    ec->publicKey.z = NULL;
     1786    ec->privateKey = NULL;
    17841787    if (!getmppoint(&data, &len, &ec->publicKey)) {
    17851788        ecdsa_freekey(ec);
    17861789        return NULL;
    17871790    }
    1788     ec->privateKey = NULL;
    17891791
    17901792    if (!ec->publicKey.x || !ec->publicKey.y ||
     
    22672269
    22682270    getstring(&sig, &siglen, &p, &slen);
     2271    if (!p) return 0;
    22692272    if (ec->publicKey.curve->type == EC_EDWARDS) {
    22702273        struct ec_point *r;
Note: See TracChangeset for help on using the changeset viewer.