e7c789d48f
- Fix CVE-2019-14318: Crypto++ 8.2.0 and earlier contains a timing side channel in ECDSA signature generation. This allows a local or remote attacker, able to measure the duration of hundreds to thousands of signing operations, to compute the private key used. The issue occurs because scalar multiplication in ecp.cpp (prime field curves, small leakage) and algebra.cpp (binary field curves, large leakage) is not constant time and leaks the bit length of the scalar among other information. For details, see: https://github.com/weidai11/cryptopp/issues/869 - Update license hash due to the addition of ARM SHA1 and SHA256 asm implementation from Cryptogams1a63112faf
4c9ca6b723
https://www.cryptopp.com/release830.html [Peter: adjust CVE info, issue is fixes in 8.3.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# cryptopp
|
|
#
|
|
################################################################################
|
|
|
|
CRYPTOPP_VERSION = 8.3.0
|
|
CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
|
|
CRYPTOPP_SITE = https://cryptopp.com
|
|
CRYPTOPP_LICENSE = BSL-1.0, BSD-3-Clause (CRYPTOGAMS), Public domain (ChaCha SSE2 and AVX)
|
|
CRYPTOPP_LICENSE_FILES = License.txt
|
|
CRYPTOPP_INSTALL_STAGING = YES
|
|
|
|
define HOST_CRYPTOPP_EXTRACT_CMDS
|
|
$(UNZIP) $(HOST_CRYPTOPP_DL_DIR)/$(CRYPTOPP_SOURCE) -d $(@D)
|
|
endef
|
|
|
|
HOST_CRYPTOPP_CXXFLAGS = $(HOST_CFLAGS) -fPIC
|
|
|
|
# _mm256_broadcastsi128_si256 has been added only in gcc 4.9
|
|
ifneq ($(BR2_HOST_GCC_AT_LEAST_4_9),y)
|
|
HOST_CRYPTOPP_CXXFLAGS += -DCRYPTOPP_DISABLE_AVX2
|
|
endif
|
|
|
|
HOST_CRYPTOPP_MAKE_OPTS = \
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
CXXFLAGS="$(HOST_CRYPTOPP_CXXFLAGS)"
|
|
|
|
define HOST_CRYPTOPP_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CRYPTOPP_MAKE_OPTS) shared
|
|
endef
|
|
|
|
define HOST_CRYPTOPP_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install-lib
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|