Overview
Request 1582 (accepted)
[GostCrypt](https://www.gostcrypt.org/) is a fork of TrueCrypt which implements GOST encryption algorithms.
The project is developed by:
* Amsterdam University of Applied Sciences
* Laboratoire de Cryptologie et de Virologie Opérationnelles ESIEA, Laval
* Bauman Moscow State Technical University
amongst others.
Remaining code from TrueCrypt is shipped under the TrueCrypt Collective License but is progressively replaced by new code under GPL-3.0.
gostcrypt.changes
Added
+-------------------------------------------------------------------
+Tue Jan 20 17:39:00 UTC 2015 - antoine.belvire@laposte.net
+
+- Clean spec file
+
+-------------------------------------------------------------------
+Sun Jan 18 10:55:44 UTC 2015 - antoine.belvire@laposte.net
+
+- Add "Requires: libwx_gtk2u_core-2_8-0-compat-lib-wxcontainer" to
+ spec file in order to solve some installation problems
+
+-------------------------------------------------------------------
+Fri Jan 16 00:36:39 UTC 2015 - antoine.belvire@laposte.net
+
+- New source file with pkcs included (no version change by upstream
+ though)
+- Add gostcrypt-1.0-long-long-32bit.patch: fix compilation for i586
+ (change unsigned long into unsigned long long in Crypto/Stribog.c)
+- Add GostCryptUserGuide.pdf to documentation
+
+-------------------------------------------------------------------
+Fri Jan 9 19:24:09 UTC 2015 - antoine.belvire@laposte.net
+
+- Create rpm for GostCrypt 1.0
+
gostcrypt.spec
Added
+#
+# spec file for package gostcrypt
+#
+# Copyright (c) 2015 Antoine Belvire <antoine.belvire@laposte.net>
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.links2linux.org/
+#
+
+Name: gostcrypt
+Version: 1.0
+Release: 0
+License: TrueCrypt Collective License and GPL-3.0
+Summary: Free Open-Source Disk Encryption Software
+Url: http://www.gostcrypt.org
+Group: Productivity/Security
+Source: http://www.gostcrypt.org/download/%{version}/linux/GostCrypt_Linux_%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gostcrypt-1.0-tc_token_err.patch
+Patch0: gostcrypt-1.0-tc_token_err.patch
+# PATCH-FIX-UPSTREAM gostcrypt-1.0-long-long-32bit.patch
+Patch1: gostcrypt-1.0-long-long-32bit.patch
+BuildRequires: gcc-c++
+BuildRequires: wxWidgets-wxcontainer-devel
+BuildRequires: fuse-devel
+BuildRequires: update-desktop-files
+Requires: libwx_gtk2u_core-2_8-0-compat-lib-wxcontainer
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+The Gostcrypt project has been launched at the end of 2013 as fork of the
+(late) Truecrypt project.
+
+Snowden's leaks have made clear more than ever that the massive use of
+encryption by citizens must become a reality. This is possible only if
+there is a vast, rich offer of trusted, open source products like
+Truecrypt, with the strong support of the hacker community. However, at
+that time we did not foresee the unprecedented upheaval of terrible shock
+with the recent Truecrypt disappearance.
+
+More than ever we all need more and more projects to replace it. Gostcrypt
+is one among (we hope) many others.
+
+The variety and richness of encryption solutions is THE solution.
+
+%prep
+%setup -q -n GostCrypt_Linux_%{version}
+%patch0
+%patch1
+
+%build
+LIBS=-ldl make %{?_smp_mflags}
+
+%install
+rm -r %{buildroot}
+mkdir -p %{buildroot}%{_bindir}
+install -m 0755 Main/%{name} %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_datadir}/pixmaps
+install -m 0644 Resources/Icons/GostCrypt-48x48.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
+%suse_update_desktop_file -c %{name} GostCrypt "On-the-fly Disk Encryption Software" %{name} %{name} "System;Security;"
+
+%files
+%defattr(-,root,root)
+%{_bindir}/%{name}
+%{_datadir}/pixmaps/%{name}.xpm
+%{_datadir}/applications/%{name}.desktop
+# License.txt, License.html and GostCryptUserGuide.pdf have wrong excutable permission, rpmlint says; let's fix that:
+%attr(0644,root,root) %doc License.txt License.html "Release/Setup Files/GostCryptUserGuide.pdf"
+
+%changelog
gostcrypt-1.0-long-long-32bit.patch
Added
+diff -up Crypto/Stribog.c.diff Crypto/Stribog.c
+--- Crypto/Stribog.c.diff 2015-01-16 00:10:36.177397080 +0100
++++ Crypto/Stribog.c 2015-01-16 00:10:47.439595137 +0100
+@@ -11,7 +11,7 @@
+
+ #include "Stribog.h"
+
+-const unsigned long T[8][256] = {
++const unsigned long long T[8][256] = {
+ {
+ 0xE6F87E5C5B711FD0,0x258377800924FA16,0xC849E07E852EA4A8,0x5B4686A18F06C16A,
+ 0x0B32E9A2D77B416E,0xABDA37A467815C66,0xF61796A81A686676,0xF5DC0B706391954B,
+@@ -788,4 +788,4 @@ void STRIBOG_finalize(STRIBOG_CTX *ctx,
+ g_N(ctx->v0, ctx->hash, ctx->EPSILON);
+
+ copy_blocks(out, ctx->hash, 64);
+-}
+\ No newline at end of file
++}
gostcrypt-1.0-tc_token_err.patch
Added
+diff -up Common/SecurityToken.cpp.orig Common/SecurityToken.cpp
+--- Common/SecurityToken.cpp.orig 2014-12-21 00:34:38.830264682 -0500
++++ Common/SecurityToken.cpp 2014-12-21 00:34:55.617617264 -0500
+@@ -658,8 +658,8 @@ namespace GostCrypt
+ GST_TOKEN_ERR (CKR_CRYPTOKI_ALREADY_INITIALIZED)
+ GST_TOKEN_ERR (CKR_MUTEX_BAD)
+ GST_TOKEN_ERR (CKR_MUTEX_NOT_LOCKED)
+- GST_TOKEN_ERR (CKR_NEW_PIN_MODE)
+- GST_TOKEN_ERR (CKR_NEXT_OTP)
++ //GST_TOKEN_ERR (CKR_NEW_PIN_MODE)
++ //GST_TOKEN_ERR (CKR_NEXT_OTP)
+ GST_TOKEN_ERR (CKR_FUNCTION_REJECTED)
+
+ #undef GST_TOKEN_ERR
Request History
Antoine created request about 10 years ago
[GostCrypt](https://www.gostcrypt.org/) is a fork of TrueCrypt which implements GOST encryption algorithms.
The project is developed by:
* Amsterdam University of Applied Sciences
* Laboratoire de Cryptologie et de Virologie Opérationnelles ESIEA, Laval
* Bauman Moscow State Technical University
amongst others.
Remaining code from TrueCrypt is shipped under the TrueCrypt Collective License but is progressively replaced by new code under GPL-3.0.
olh accepted request about 10 years ago
Lets try this...