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
MarcoFalke
fabeca3458
refactor: Avoid UB in SHA3_256::Write
...
It is UB to apply a distance to a pointer or iterator further than the
end itself, even if the distance is (partially) revoked later on.
Fix the issue by advancing the data pointer at most to the end.
2025-01-14 19:09:30 +01:00
Fabian Jahr
6044628543
crypto, hash: replace custom rotl32 with std::rotl
2024-01-05 17:12:38 +01:00
Pieter Wuille
ab654c7d58
Unroll Keccak-f implementation
2020-09-06 18:35:23 -07:00
Pieter Wuille
2ac8bf9583
Implement keccak-f[1600] and SHA3-256
2020-09-06 18:35:18 -07:00