Projects
Extra
GostCrypt
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 8
View file
gostcrypt.spec
Changed
@@ -34,6 +34,7 @@ Patch1: gostcrypt-1.0-fix-abi-gcc5.patch # PATCH-FIX-UPSTREAM gostcrypt-1.3-fix-inline-warnings.patch Patch2: gostcrypt-1.3-fix-inline-warnings.patch +Patch3: GostCrypt.inline.patch BuildRequires: gcc-c++ BuildRequires: fuse-devel %if 0%{?suse_version} @@ -69,6 +70,7 @@ %patch0 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build LIBS=-ldl make %{?_smp_mflags}
View file
GostCrypt.inline.patch
Added
@@ -0,0 +1,66 @@ +--- a/Crypto/GrasshopperCipher.c ++++ b/Crypto/GrasshopperCipher.c +@@ -123,6 +123,7 @@ unsigned char mult_mod_poly[8][256] = { + 103, 156, 82, 169, 13, 246, 56, 195, 179, 72, 134, 125, 217, 34, 236, 23, 12, 247, 57, 194, 102, 157, 83, 168, 216, 35, 237, 22, 178, 73, 135, 124}}; + + /* S conversion function */ ++static + inline void S(unsigned long long * block) + { + unsigned long long valtmp; +@@ -151,6 +152,7 @@ inline void S(unsigned long long * block + } + + /* Inverse of S conversion function */ ++static + inline void S_inv(unsigned long long * block) + { + unsigned long long valtmp; +@@ -179,6 +181,7 @@ inline void S_inv(unsigned long long * b + } + + /* Linear transformation */ ++static + inline unsigned char ll(unsigned long long *block) + { + +@@ -202,6 +205,7 @@ inline unsigned char ll(unsigned long lo + } + + /* R conversion function */ ++static + inline void R(unsigned long long * block) + { + unsigned long long valtmp[2]; +@@ -219,6 +223,7 @@ inline void R(unsigned long long * block + } + + /* Inverse of R conversion function */ ++static + inline void R_inv(unsigned long long * block) + { + unsigned long long valtmp[2]; +@@ -237,6 +242,7 @@ inline void R_inv(unsigned long long * b + } + + /* L conversion function (16 iteration of R) */ ++static + inline void L(unsigned long long * block) + { + R(block); R(block); R(block); R(block); +@@ -246,6 +252,7 @@ inline void L(unsigned long long * block + } + + /* Inverse of L conversion function (16 iteration of R_inv) */ ++static + inline void L_inv(unsigned long long * block) + { + R_inv(block); R_inv(block); R_inv(block); R_inv(block); +@@ -255,6 +262,7 @@ inline void L_inv(unsigned long long * b + } + + /* F conversion function (used in key setup) */ ++static + inline void F(unsigned long long * k, unsigned long long * block1, unsigned long long * block0) + { + unsigned long long tmpblock[2];
View file
gostcrypt-1.0-fix-abi-gcc5.patch
Changed
@@ -1,12 +1,11 @@ -diff --git a/Makefile b/Makefile ---- a/Makefile 2015-12-10 10:35:23.743830306 +0100 -+++ b/Makefile 2015-12-10 10:35:42.531829994 +0100 +--- a/Makefile ++++ b/Makefile @@ -28,7 +28,7 @@ export AS := nasm export RANLIB ?= ranlib export CFLAGS := -Wall -export CXXFLAGS := -Wall -Wno-unused-parameter -+export CXXFLAGS := -Wall -Wno-unused-parameter -D_GLIBCXX_USE_CXX11_ABI=0 ++export CXXFLAGS := -Wall -Wno-unused-parameter -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++98 C_CXX_FLAGS := -MMD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I$(BASE_DIR) -I$(BASE_DIR)/Crypto export ASFLAGS := -Ox -D __GNUC__ export LFLAGS :=
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.