Skip to content

Commit

Permalink
Update oprf.h
Browse files Browse the repository at this point in the history
  • Loading branch information
maths644311798 authored Jan 14, 2025
1 parent 96cba96 commit 4e36e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yacl/crypto/oprf/oprf.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class OprfClient {
YACL_ENFORCE(ctx_ != nullptr); // make sure context is setup

auto* const ec = ctx_->BorrowEcGroup();
if (blind_inv_ != 0_mp) {
if (blind_inv_ == 0_mp) {
MPInt::InvertMod(blind_, ec->GetOrder(), &blind_inv_);
}

Expand Down

0 comments on commit 4e36e62

Please sign in to comment.