Skip to content

Commit

Permalink
Fix oprf.h (#459)
Browse files Browse the repository at this point in the history
* Update native_factory.cc

* Update native_factory.cc

* Update native_factory.cc

* Update aead.h

* Update oprf.h
  • Loading branch information
maths644311798 authored Jan 14, 2025
1 parent f724366 commit b07fcac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions yacl/crypto/aead/aead.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

namespace yacl::crypto {

// =============================================
// AEAD: Authenticated Encryption And Decryption
// =============================================
// ===================================================
// AEAD: Authenticated Encryption with Associated Data
// ===================================================
//
// AEAD provides confidentiality by encrypting the data with a symmetric
// encryption algorithm, and provides authenticity by using a MAC tag over the
Expand Down
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 b07fcac

Please sign in to comment.