Fix bug that encodes invremaining incorrectly
This commit is contained in:
parent
005957795c
commit
f14c2ad6e0
|
@ -176,7 +176,7 @@ define_proof! {
|
|||
+ tblockages*EncBlockages0),
|
||||
EncQ1 = (s*D + tid*EncId1 + tbucket*EncBucket1
|
||||
+ tblockages*EncBlockages1
|
||||
+ x0*P + xlevel*Plevel + xsince*Psince)
|
||||
+ x0*P + xlevel*Plevel + xsince*Psince + xinvremain*Pinvremain)
|
||||
}
|
||||
|
||||
pub fn request(
|
||||
|
@ -492,7 +492,8 @@ impl BridgeAuth {
|
|||
let P = &b * Btable;
|
||||
let QHc = (self.lox_priv.x[0]
|
||||
+ self.lox_priv.x[3] * trust_level
|
||||
+ self.lox_priv.x[4] * level_since)
|
||||
+ self.lox_priv.x[4] * level_since
|
||||
+ self.lox_priv.x[5] * invremain)
|
||||
* P;
|
||||
|
||||
// El Gamal encrypt it to the public key req.D
|
||||
|
|
Loading…
Reference in New Issue