UI: Use blake2b instead of SHA1 for updater

This commit is contained in:
Richard Stanway
2017-02-23 17:38:43 +01:00
committed by jp9000
parent 647c31bb28
commit 23a115b0b3
7 changed files with 787 additions and 12 deletions

32
deps/blake2/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,32 @@
cmake_minimum_required(VERSION 3.2)
project(blake2)
set(BLAKE2_INCLUDE_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/src"
CACHE PATH "blake2 include path")
include_directories(
${LIBblake2_INCLUDE_DIRS}
src
)
if(WIN32)
if(MSVC)
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
endif()
add_definitions(
-Dinline=_inline
-Drestrict=__restrict)
endif()
set(blake2_SOURCES
src/blake2b-ref.c)
set(blake2_HEADERS
src/blake2.h
src/blake2-impl.h)
add_library(blake2 STATIC
${blake2_SOURCES}
${blake2_HEADERS})