[BACK]Return to jpake.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/jpake.c between version 1.4 and 1.5

version 1.4, 2010/07/13 23:13:16 version 1.5, 2010/09/20 04:50:53
Line 255 
Line 255 
         /* Validate peer's step 1 values */          /* Validate peer's step 1 values */
         if (BN_cmp(theirpub1, BN_value_one()) <= 0)          if (BN_cmp(theirpub1, BN_value_one()) <= 0)
                 fatal("%s: theirpub1 <= 1", __func__);                  fatal("%s: theirpub1 <= 1", __func__);
           if (BN_cmp(theirpub1, grp->p) >= 0)
                   fatal("%s: theirpub1 >= p", __func__);
         if (BN_cmp(theirpub2, BN_value_one()) <= 0)          if (BN_cmp(theirpub2, BN_value_one()) <= 0)
                 fatal("%s: theirpub2 <= 1", __func__);                  fatal("%s: theirpub2 <= 1", __func__);
           if (BN_cmp(theirpub2, grp->p) >= 0)
                   fatal("%s: theirpub2 >= p", __func__);
   
         if (schnorr_verify_buf(grp->p, grp->q, grp->g, theirpub1,          if (schnorr_verify_buf(grp->p, grp->q, grp->g, theirpub1,
             theirid, theirid_len, theirpub1_proof, theirpub1_proof_len) != 1)              theirid, theirid_len, theirpub1_proof, theirpub1_proof_len) != 1)
Line 361 
Line 365 
         /* Validate step 2 values */          /* Validate step 2 values */
         if (BN_cmp(step2_val, BN_value_one()) <= 0)          if (BN_cmp(step2_val, BN_value_one()) <= 0)
                 fatal("%s: step2_val <= 1", __func__);                  fatal("%s: step2_val <= 1", __func__);
           if (BN_cmp(step2_val, grp->p) >= 0)
                   fatal("%s: step2_val >= p", __func__);
   
         /*          /*
          * theirpriv2_s_proof is calculated with a different generator:           * theirpriv2_s_proof is calculated with a different generator:

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5