alxdavids / voprf-poc

Proof-of-concept implementation of the (V)OPRF protocol in https://datatracker.ietf.org/doc/draft-irtf-cfrg-voprf/
23 stars 8 forks source link

HTTP support for curve448 ciphersuite #26

Closed alxdavids closed 4 years ago

alxdavids commented 4 years ago

@claucece in case you want to take a look

claucece commented 4 years ago

Hi, @alxdavids !

Looks very nice! Maybe only change this variable names to something else:

        xA := new(big.Int).Add(x, curve.consts.a)
        xxAx := new(big.Int).Mul(xA, x)
        xxAx1 := new(big.Int).Add(xxAx, constants.One)
        byy := new(big.Int).Mul(xxAx1, x)
        yy = new(big.Int).Mul(byy, new(big.Int).ModInverse(curve.consts.b,