~hduran-8/+junk/caddy

« back to all changes in this revision

Viewing changes to debian/gocode/src/golang.org/x/crypto/otr/otr.go

  • Committer: Horacio Durán
  • Date: 2017-01-20 16:21:20 UTC
  • Revision ID: horacio.duran@canonical.com-20170120162120-l82mfqwmsclnk838
Upgrade to 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
943
943
                        t.data, tlvData, ok3 = getNBytes(tlvData, int(t.length))
944
944
                        if !ok1 || !ok2 || !ok3 {
945
945
                                err = errors.New("otr: corrupt tlv data")
 
946
                                return
946
947
                        }
947
948
                        tlvs = append(tlvs, t)
948
949
                }
1313
1314
                mpis[i] = new(big.Int).SetBytes(mpiBytes)
1314
1315
        }
1315
1316
 
 
1317
        for _, mpi := range mpis {
 
1318
                if mpi.Sign() <= 0 {
 
1319
                        return false
 
1320
                }
 
1321
        }
 
1322
 
1316
1323
        priv.PrivateKey.P = mpis[0]
1317
1324
        priv.PrivateKey.Q = mpis[1]
1318
1325
        priv.PrivateKey.G = mpis[2]