elements/src/crypto
Wladimir J. van der Laan fd61b9fc22
Merge #15950: Do not construct out-of-bound pointers in SHA2 code
c01c065b9d Do not construct out-of-bound pointers in SHA512/SHA1/RIPEMD160 code (Pieter Wuille)

Pull request description:

  This looks like an issue in the current SHA256/512 code, where a pointer outside of the area pointed to may be constructed (this is UB in theory, though in practice every supported platform treats pointers as integers).

  I discovered this while investigating #14580. Sadly, it does not fix it.

ACKs for commit c01c06:
  practicalswift:
    utACK c01c065b9d

Tree-SHA512: 47660e00f164f38c36a1ab46e52dd91cd33cfda6a6048d67541c2f8e73c050d4d9d81b5c149bfad281212d52f204f57bebf5b19879dc7a6a5f48aa823fbc2c02
2019-05-16 16:23:38 +02:00
..
ctaes Update ctaes 2016-12-08 17:09:07 -08:00
aes.cpp Remove unused AES-128 code 2019-03-25 14:46:30 +01:00
aes.h Remove unused AES-128 code 2019-03-25 14:46:30 +01:00
chacha20.cpp Add ChaCha20 encryption option (XOR) 2019-05-03 20:31:18 +02:00
chacha20.h Add ChaCha20 encryption option (XOR) 2019-05-03 20:31:18 +02:00
common.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
hmac_sha256.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
hmac_sha256.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
hmac_sha512.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
hmac_sha512.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
poly1305.cpp Add Poly1305 implementation 2019-03-26 18:12:29 +01:00
poly1305.h Add Poly1305 implementation 2019-03-26 18:12:29 +01:00
ripemd160.cpp Do not construct out-of-bound pointers in SHA512/SHA1/RIPEMD160 code 2019-05-06 15:11:10 -07:00
ripemd160.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
sha1.cpp Do not construct out-of-bound pointers in SHA512/SHA1/RIPEMD160 code 2019-05-06 15:11:10 -07:00
sha1.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
sha256.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
sha256.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
sha256_avx2.cpp Use immintrin.h everywhere for intrinsics 2018-06-26 10:11:08 -07:00
sha256_shani.cpp Use immintrin.h everywhere for intrinsics 2018-06-26 10:11:08 -07:00
sha256_sse4.cpp Add SSE4 based SHA256 2017-07-20 09:03:53 -07:00
sha256_sse41.cpp Use immintrin.h everywhere for intrinsics 2018-06-26 10:11:08 -07:00
sha512.cpp Do not construct out-of-bound pointers in SHA512/SHA1/RIPEMD160 code 2019-05-06 15:11:10 -07:00
sha512.h Abstract out seeding/extracting entropy into RNGState::MixExtract 2019-01-16 16:31:37 -08:00
siphash.cpp Extract CSipHasher to it's own file in crypto/ directory. 2018-11-05 09:25:15 -08:00
siphash.h Extract CSipHasher to it's own file in crypto/ directory. 2018-11-05 09:25:15 -08:00