[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[openssl-gost] [gost-engine/engine] df9cdb: gosthash2012: Remove redundant `hash' field from `...
Branch: refs/heads/master
Home: https://github.com/gost-engine/engine
Commit: df9cdb35ab942db6074dbe325c80a3f8a5fe79cb
https://github.com/gost-engine/engine/commit/df9cdb35ab942db6074dbe325c80a3f8a5fe79cb
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
M gosthash2012.h
Log Message:
-----------
gosthash2012: Remove redundant `hash' field from `struct gost2012_hash_ctx'
And save 64 bytes.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: 6ca3db8d47a111dced8858b4e5bda8005bf1500c
https://github.com/gost-engine/engine/commit/6ca3db8d47a111dced8858b4e5bda8005bf1500c
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Remove unreachable code from `pad'
`CTX->bufsize' cannot be 64 ever.
Commit: fd4a24ec4b104e59df7b73da8f0f6487a28865ee
https://github.com/gost-engine/engine/commit/fd4a24ec4b104e59df7b73da8f0f6487a28865ee
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Remove redundant `memset' form `init_gost2012_hash_ctx'
`CTX' is already fully zeroed at the beginning of
`init_gost2012_hash_ctx'.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: 11777554bd63b16bb13aa3b7358d8e7809f17523
https://github.com/gost-engine/engine/commit/11777554bd63b16bb13aa3b7358d8e7809f17523
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Simplify `pad'
`pad' does not need this complicated memory movements using stack
buffer.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: b2e96b3086cc3033ddc31cc981b601ff5b9b5f08
https://github.com/gost-engine/engine/commit/b2e96b3086cc3033ddc31cc981b601ff5b9b5f08
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Simpler version of add512
Similar to my commit into adegtyarev/streebog@432d5de.
Commit: 757a31b740dc38dbdf470d07bc9f3a60ee65830f
https://github.com/gost-engine/engine/commit/757a31b740dc38dbdf470d07bc9f3a60ee65830f
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
M gosthash2012.h
Log Message:
-----------
gosthash2012: Make `add512' to work in-place
This allows to use `RESTRICT' which allows compiler optimize more.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: 760a429ced769c5d7fc94c384165b00b77e7a7bd
https://github.com/gost-engine/engine/commit/760a429ced769c5d7fc94c384165b00b77e7a7bd
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Remove temporary variable from `stage2'
Now `stage2' will always get aligned data which is prepared in
`gost2012_hash_block' by copying into `CTX->buffer'.
This will allow to change `data' argument of `stage2' from `unsigned
char *' pointer to `union uint512_u *'.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: 78ff909c3ca7260912360427fd3b029c9ba08d87
https://github.com/gost-engine/engine/commit/78ff909c3ca7260912360427fd3b029c9ba08d87
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
M gosthash2012.h
Log Message:
-----------
gosthash2012: Change some byte (pointers) to union uint512_u
Introduce byte `.B' union type to `union uint512_u'.
Change `CTX.buffer' type from `unsigned char' to `union uint512_u'.
Change `data' argument of `stage2()' to `union uint512_u *'.
Change `g()' arguments to `union uint512_u *' with `RESTRICT'
allowing compiler to optimize more.
No code changes, only type changes here.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: 9ff7d05ba8018b679c2b40e12b2ecfe51dc4127c
https://github.com/gost-engine/engine/commit/9ff7d05ba8018b679c2b40e12b2ecfe51dc4127c
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Optimize `gost2012_hash_block' loop
Some simple optimizations.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: 31138d02d9c3698c039154b3078c16f205e25902
https://github.com/gost-engine/engine/commit/31138d02d9c3698c039154b3078c16f205e25902
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Optimize out temporary `buf' from `stage3'
On-stack `buf' is replaced by manipulation directly on `CTX->buffer'.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: b3dd924c96575efc13392530295e0c30254780b1
https://github.com/gost-engine/engine/commit/b3dd924c96575efc13392530295e0c30254780b1
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
Log Message:
-----------
gosthash2012: Optimize `add512` on x86_64 using Intel intrinsics
`_addcarry_u64' is using `ADC' and does not require ADX extensions
(`-madx').
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Commit: 88a44b67c76ce938f124e22e6a882780a98731fb
https://github.com/gost-engine/engine/commit/88a44b67c76ce938f124e22e6a882780a98731fb
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.h
M gosthash2012_ref.h
M gosthash2012_sse2.h
Log Message:
-----------
gosthash2012: Enable building with SIMD implementation
Also, add compile time notice message to show which implementation is
selected.
Commit: 211489fa492c33247383f71ce269858f512874ec
https://github.com/gost-engine/engine/commit/211489fa492c33247383f71ce269858f512874ec
Author: dmitry dulesov <dmitry.dulesov@gmail.com>
Date: 2020-02-02 (Sun, 02 Feb 2020)
Changed paths:
M gosthash2012.c
M gosthash2012.h
M gosthash2012_sse2.h
Log Message:
-----------
gosthash2012: Improve SIMD implementation
Allow aligned/unaligned access. Use better intrinsics and other
small optimizations.
Committed-by: Vitaly Chikunov <vt@altlinux.org>
Compare: https://github.com/gost-engine/engine/compare/4d45f95faf78...211489fa492c