dcrd/internal
Josh Rickmar ced647dbcf
rpcserver: Hash auth using random-keyed MAC.
This commit replaces the SHA256 hash of the HTTP Basic Authorization
header with HMAC-SHA256.  The MAC is performed using a random key read
from the cryptographically random source at server creation.

Storing the authentication details with a MAC unique to each startup
hardens the server against certain classes of memory dumping attacks.

While here, a server field that must be accessed atomically was moved
to the top of the structure, to reduce the likelihood of misaligned
access on architectures where that is forbidden.
2020-12-02 13:04:27 -06:00
..
fees multi: Add decentralized treasury support. 2020-09-21 12:15:31 -05:00
limits multi: replace godoc.org with pkg.go.dev 2020-02-18 19:35:19 -06:00
mempool mining: Move txMiningView from mempool package. 2020-11-17 20:12:00 -06:00
mining mining: Switch to custom waitGroup impl 2020-11-25 13:14:37 -06:00
rpcserver rpcserver: Hash auth using random-keyed MAC. 2020-12-02 13:04:27 -06:00
version release: Bump for 1.7 release cycle. 2020-10-15 16:30:33 -05:00