diff --git a/yacl/crypto/aead/aead.h b/yacl/crypto/aead/aead.h index 324df07f..5d622711 100644 --- a/yacl/crypto/aead/aead.h +++ b/yacl/crypto/aead/aead.h @@ -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 diff --git a/yacl/crypto/oprf/oprf.h b/yacl/crypto/oprf/oprf.h index d9a85c1a..86d4dd1d 100644 --- a/yacl/crypto/oprf/oprf.h +++ b/yacl/crypto/oprf/oprf.h @@ -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_); }