Skip to content

Commit

Permalink
compile mem reduce and new cryptoTools
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Apr 25, 2023
1 parent 7878333 commit 3caddad
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 87 deletions.
8 changes: 2 additions & 6 deletions cmake/buildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ EVAL(FETCH_BITPOLYMUL_IMPL
((NOT DEFINED FETCH_BITPOLYMUL) AND (FETCH_AUTO AND ENABLE_BITPOLYMUL)))


#option(FETCH_BITPOLYMUL "download and build bitpolymul" OFF))
EVAL(FETCH_LIBDIVIDE_IMPL
(DEFINED FETCH_LIBDIVIDE AND FETCH_LIBDIVIDE) OR
((NOT DEFINED FETCH_LIBDIVIDE) AND (FETCH_AUTO)))



option(VERBOSE_FETCH "Print build info for fetched libraries" ON)
Expand All @@ -126,8 +123,7 @@ option(VERBOSE_FETCH "Print build info for fetched libraries" ON)
message(STATUS "General Options\n=======================================================")

message(STATUS "Option: VERBOSE_FETCH = ${VERBOSE_FETCH}")
message(STATUS "Option: FETCH_BITPOLYMUL = ${FETCH_BITPOLYMUL_IMPL}")
message(STATUS "Option: FETCH_LIBDIVIDE = ${FETCH_LIBDIVIDE_IMPL}\n")
message(STATUS "Option: FETCH_BITPOLYMUL = ${FETCH_BITPOLYMUL_IMPL}\n")

message(STATUS "Option: ENABLE_ALL_OT = ON/OFF")
message(STATUS "Option: ENABLE_BITPOLYMUL = ${ENABLE_BITPOLYMUL}")
Expand Down
40 changes: 0 additions & 40 deletions cmake/libOTeDepHelper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,46 +58,6 @@ endif()



#######################################
# libDivide

macro(FIND_LIBDIVIDE)
set(ARGS ${ARGN})

#explicitly asked to fetch libdivide
if(FETCH_LIBDIVIDE)
list(APPEND ARGS NO_DEFAULT_PATH PATHS ${VOLEPSI_THIRDPARTY_DIR})
endif()

find_path(LIBDIVIDE_INCLUDE_DIRS "libdivide.h" PATH_SUFFIXES "include" ${ARGS})
if(EXISTS "${LIBDIVIDE_INCLUDE_DIRS}/libdivide.h")
set(LIBDIVIDE_FOUND ON)
else()
set(LIBDIVIDE_FOUND OFF)
endif()

endmacro()

if(FETCH_LIBDIVIDE_IMPL)
FIND_LIBDIVIDE(QUIET)
include(${CMAKE_CURRENT_LIST_DIR}/../thirdparty/getLibDivide.cmake)
endif()

FIND_LIBDIVIDE(REQUIRED)

if(NOT TARGET libdivide)
add_library(libdivide INTERFACE IMPORTED)

target_include_directories(libdivide INTERFACE
$<BUILD_INTERFACE:${LIBDIVIDE_INCLUDE_DIRS}>
$<INSTALL_INTERFACE:>)
endif()

message(STATUS "LIBDIVIDE_INCLUDE_DIRS: ${LIBDIVIDE_INCLUDE_DIRS}")




# resort the previous prefix path
set(CMAKE_PREFIX_PATH ${PUSHED_CMAKE_PREFIX_PATH})
cmake_policy(POP)
Empty file added libOTe/Tools/EACode/EACode.cpp
Empty file.
3 changes: 0 additions & 3 deletions libOTe/Tools/EACode/EACode.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,9 @@ namespace osuCrypto

switch (mExpanderWeight)
{
CASE(5);
CASE(7);
CASE(9);
CASE(11);
CASE(21);
CASE(40);
default:
for (u64 jj = 0; jj < 8; ++jj)
{
Expand Down
37 changes: 0 additions & 37 deletions thirdparty/getLibDivide.cmake

This file was deleted.

0 comments on commit 3caddad

Please sign in to comment.