diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-01-25 21:39:05 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-01-25 21:39:05 -0500 |
commit | 4e56c79b907da4a4654e5278bdcf94b08480a426 (patch) | |
tree | b25e2fbaa615a2ef96f7fe162071f3bc0c7bd47d /btls.cabal | |
parent | 1da0165678cb990160edcf376c4e6f08cccf8bf4 (diff) |
Data.Digest.Sha2: Cleanse hash buffers after use
Implement a wrapper for `OPENSSL_cleanse` and use it to securely erase
hash buffers. This matches the behavior of BoringSSL’s all-in-one hash
functions (`SHA256`, `SHA512`, etc.) and memory allocation subsystem.
Diffstat (limited to 'btls.cabal')
-rw-r--r-- | btls.cabal | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -34,11 +34,13 @@ library -optl-Wl,-z,relro -optl-Wl,-z,now -optl-Wl,-s exposed-modules: Data.Digest , Data.Digest.Sha2 - other-modules: Data.Digest.Internal + other-modules: Cleanse + , Data.Digest.Internal -- Use special names for the BoringSSL libraries to avoid accidentally pulling -- in OpenSSL. extra-libraries: btls_crypto build-depends: base >=4.9 && <4.10 + , base-compat >=0.9.3 && <0.10 , bytestring >=0.10 && <0.11 test-suite tests |