Hennadii Stepanov
bdb8eadcdc
refactor: Fix includes in crypto directory
...
IWYU issue #1763 appears to be a corner case, so it has been addressed
using a local pragma rather than a global mapping.
2025-09-09 11:25:55 +01:00
MarcoFalke
fa942332b4
scripted-diff: Bump copyright headers after std::span changes
...
Historically, the headers have been bumped some time after a file has
been touched. Do it now to avoid having to touch them again in the
future for that reason.
-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' $( git show --pretty="" --name-only HEAD~1 )
-END VERIFY SCRIPT-
2025-03-12 19:46:54 +01:00
MarcoFalke
fade0b5e5e
scripted-diff: Use std::span over Span
...
-BEGIN VERIFY SCRIPT-
ren() { sed -i "s!\<$1\>!$2!g" $( git grep -l "$1" -- "./src" ":(exclude)src/span.h" ":(exclude)src/leveldb/db/log_test.cc" ) ; }
ren Span std::span
ren AsBytes std::as_bytes
ren AsWritableBytes std::as_writable_bytes
sed -i 's!SpanPopBack(Span!SpanPopBack(std::span!g' ./src/span.h
-END VERIFY SCRIPT-
2025-03-12 19:45:37 +01:00
Pieter Wuille
a26ce62894
Safegcd based modular inverse for Num3072
2025-01-09 10:04:36 -05:00
Pieter Wuille
3da636e08b
crypto: refactor ChaCha20 classes to use Span<std::byte> interface
2023-08-17 15:26:34 -04:00
Pieter Wuille
62ec713961
Only support 32-byte keys in ChaCha20{,Aligned}
2023-01-30 18:12:21 -05:00
Pieter Wuille
f21994a02e
Use ChaCha20Aligned in MuHash3072 code
2023-01-30 18:12:21 -05:00
Hennadii Stepanov
306ccd4927
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
- 2021: f47dda2c58b5d8d623e0e7ff4e74bc352dfa83d7
- 2020: fa0074e2d82928016a43ca408717154a1c70a4db
- 2019: aaaaad6ac95b402fe18d019d67897ced6b316ee0
2022-12-24 23:49:50 +00:00
MacroFake
faf9accd66
Use HashWriter where possible
2022-07-20 15:34:36 +02:00
Hennadii Stepanov
f47dda2c58
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
* 2020: fa0074e2d82928016a43ca408717154a1c70a4db
* 2019: aaaaad6ac95b402fe18d019d67897ced6b316ee0
2021-12-30 19:36:57 +02:00
Fabian Jahr
2e2648a902
crypto: Make MuHash Remove method efficient
...
Division of MuHash objects are very expensive and multiplication relatively cheap. The whole idea of introducing and tracking numerator and denominators seperately as a representation of the internal state was so that divisions would be rare. So using divison in the Remove method did not make any sense and was just a silly mistake which is corrected here.
2021-04-19 20:28:46 +02:00
Fabian Jahr
a1fcceac69
refactor: Improve encapsulation between MuHash3072 and Num3072
...
Also fixes a typo.
2021-01-24 16:28:27 +01:00
Fabian Jahr
adc708c98d
crypto: Add MuHash3072 implementation
...
Co-authored-by: Pieter Wuille <pieter.wuille@gmail.com>
2020-12-21 19:57:04 +01:00
Fabian Jahr
0b4d290bf5
crypto: Add Num3072 implementation
...
Num3072 is a specialized bignum implementation used in MuHash3072.
Co-authored-by: Pieter Wuille <pieter.wuille@gmail.com>
2020-12-20 23:27:58 +01:00