- Feb 07, 2021
-
-
Dmitry Belyavskiy authored
-
Dmitry Belyavskiy authored
-
- Jan 21, 2021
-
-
Dmitry Belyavskiy authored
-
- Jan 08, 2021
-
-
Vitaly Chikunov authored
All, excluding ppc64le/s390x/ar64 architectures, macOS, and Coverity run.
-
- Dec 06, 2020
-
-
Alexei A. Smekalkine authored
If at the input of the encryption function in the CFB mode we have an integer number of blocks, then in the main loop all blocks will be processed, except for the last one due to an incorrect border check. The last block will be fully processed as a "partial" remainder, but the initialization vector will not be updated. And, thus, the value of IV will always be incorrect in this case. This breaks stateless protocols due to an invalid initialization vector: all messages except the first cannot be decrypted. (Naturally, we are talking about a case with disabled key meshing, which does not allow context recovery due to an erroneous implementation.) It is worth noting here that the code for processing partial blocks (both at the input of the encryption functions and at the output) is a historically unnecessary artifact, since we do not set the EVP_CIPH_FLAG_CUSTOM_CIPHER flag and, as a result, OpenSSL processes partial blocks for us. This patch corrects the checking of the main loop boundary. A similar error is present in the code for the CNT mode, but there it does not manifest itself in any way, because the restoration of the state in this mode is impossible: even after disabling key meshing, we still have the state-dependent transformation of the IV. As an extra result of this fix, the code for processing partial blocks can be completely removed now. (cherry picked from commit cf402dd4)
-
- Nov 29, 2020
-
-
Igor Kirillov authored
Fixed bug when acpkm key meshing didn't apply at appropriate time during TLS secure exchange. Unify usage of 'num' variable of EVP_CIPHER_CTX for kuznetchik and magma.
-
Dmitry Belyavskiy authored
-
Dmitry Timoshkov authored
-
- Nov 20, 2020
-
-
Dmitry Belyavskiy authored
-
Dmitry Belyavskiy authored
-
- Nov 13, 2020
-
-
Igor Kirillov authored
modernize magma & kuznechik ctrl functions for EVP_CTRL_TLSTREE mode. add some minor updates to store master key for using in magma TLSTREE mode.
-
- Nov 05, 2020
-
-
Richard Levitte authored
OpenSSL 3.0 deprecates function codes and ERR_PUT_error() in favor of ERR_raise() and ERR_set_debug().
-
- Oct 29, 2020
-
-
Vitaly Chikunov authored
/root/rpmbuild/BUILD/openssl-gost-engine-1.1.1/CMakeFiles/CMakeTmp/src.c:4:14: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 4 | int *p = buf + 1; | ^~~ /root/rpmbuild/BUILD/openssl-gost-engine-1.1.1/CMakeFiles/CMakeTmp/src.c:5:14: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 5 | int *q = buf + 2; | ^~~ Reported-by: Ilya Shipitsin <https://github.com/chipitsine> Fixes: #288
-
- Oct 09, 2020
-
-
Wolfgang Beck authored
-
- Oct 04, 2020
-
-
Dmitry Belyavskiy authored
-
- Sep 27, 2020
-
-
Dmitry Belyavskiy authored
-
- Sep 24, 2020
-
-
Arseniy Ankudinov authored
-
- Sep 21, 2020
-
-
Vitaly Chikunov authored
Note, you will need to pass `-lsocket -lnsl` to the gcc for socketpair(3SOCKET) to link `test_tls'.
-
- Sep 18, 2020
-
-
Dmitry Belyavskiy authored
-
-
Dmitry Belyavskiy authored
-
Vitaly Chikunov authored
This is based on AX_CHECK_ALIGNED_ACCESS_REQUIRED from autoconf-archive. Note, that on some arches unaligned access behavior could be changed at runtime via prctl(1). Also, unaligned memory access is still slower (and very slow on some arches) even if it's not strictly required.
-
Dmitry Belyavskiy authored
-
- Sep 02, 2020
-
-
Dmitry Belyavskiy authored
-
- Aug 28, 2020
-
-
Dmitry Belyavskiy authored
-
- Aug 22, 2020
-
-
Dmitry Belyavskiy authored
-
Dmitry Belyavskiy authored
-
Dmitry Belyavskiy authored
Plus some minor style fix
-
- Aug 21, 2020
-
-
Luis Rivera Zamarripa authored
-
- Aug 20, 2020
-
-
Dmitry Belyavskiy authored
-
- Aug 13, 2020
-
-
Dmitry Belyavskiy authored
-
- Aug 11, 2020
-
-
Dmitry Belyavskiy authored
-
- Aug 06, 2020
-
-
Dmitry Belyavskiy authored
-
Dmitry Belyavskiy authored
-
Dmitry Belyavskiy authored
-
- Jul 24, 2020
-
-
Billy Brumley authored
ECCKiila Changes from https://gitlab.com/nisec/ecckiila/-/issues/2 https://gitlab.com/nisec/ecckiila/-/commit/7445ecabef77965743e0ae8d39d7433b07820be6 * X3 -> X1 * eliminate a temp variable X3 = X1 as pointers is the reason this was still passing unit tests. But that might not hold in future versions of ECCKiila, so fix it now.
-
- Jul 22, 2020
-
-
Dmitry Belyavskiy authored
-
- Jul 11, 2020
-
-
Billy Brumley authored
char defaults to signed on x86/x64, but unsigned on ARM.
-
- Jul 10, 2020
-
-
Vitaly Chikunov authored
Test all VKOs and KEGs to work and produce same keys for both parties.
-
Vitaly Chikunov authored
Format: vko:<bit length> Such as: vko:256 for VKO_256 vko:512 for VKO_512 vko:0 disable strict VKO mode, switch to other derive methods.
-