diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-13 16:59:04 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-01-17 12:43:20 -0500 |
commit | 9b0dd1ae04bb4bb3bf86fe8dd629f84a07bf5cbf (patch) | |
tree | daa8493cff72c8017f1fe9034f57c7c3f0ddb4a8 /src/lib/crypt_ops/crypto_digest.h | |
parent | c3931714038e422972b80a893db0807d4d8ae937 (diff) | |
download | tor-9b0dd1ae04bb4bb3bf86fe8dd629f84a07bf5cbf.tar.gz tor-9b0dd1ae04bb4bb3bf86fe8dd629f84a07bf5cbf.zip |
Add a function to compute an XOF in one shot.
Motivation:
1. It's convenient.
2. It's all that openssl supports.
Part of 28837.
Diffstat (limited to 'src/lib/crypt_ops/crypto_digest.h')
-rw-r--r-- | src/lib/crypt_ops/crypto_digest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_digest.h b/src/lib/crypt_ops/crypto_digest.h index 47e60ce617..5869db7800 100644 --- a/src/lib/crypt_ops/crypto_digest.h +++ b/src/lib/crypt_ops/crypto_digest.h @@ -124,6 +124,8 @@ void crypto_xof_squeeze_bytes(crypto_xof_t *xof, uint8_t *out, size_t len); void crypto_xof_free_(crypto_xof_t *xof); #define crypto_xof_free(xof) \ FREE_AND_NULL(crypto_xof_t, crypto_xof_free_, (xof)) +void crypto_xof(uint8_t *output, size_t output_len, + const uint8_t *input, size_t input_len); #ifdef TOR_UNIT_TESTS digest_algorithm_t crypto_digest_get_algorithm(crypto_digest_t *digest); |