diff --git a/fbpcf/mpc_std_lib/unified_data_process/data_processor/UdpUtil.cpp b/fbpcf/mpc_std_lib/unified_data_process/data_processor/UdpUtil.cpp index 395edc07..e79fc248 100644 --- a/fbpcf/mpc_std_lib/unified_data_process/data_processor/UdpUtil.cpp +++ b/fbpcf/mpc_std_lib/unified_data_process/data_processor/UdpUtil.cpp @@ -37,9 +37,10 @@ UdpUtil::localEncryption( __m128i s2vRes; { + __m128i sivKey = fbpcf::engine::util::getRandomM128iFromSystemNoise(); const primitive::mac::S2vFactory s2vFactory; std::vector keyByte(kBlockSize); - _mm_storeu_si128((__m128i*)keyByte.data(), prgKey); + _mm_storeu_si128((__m128i*)keyByte.data(), sivKey); const auto s2v = s2vFactory.create(keyByte); std::vector plaintextCombined;