summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffmancera@riseup.net>2018-02-03 15:50:56 +0100
committerFernando Fernandez Mancera <ffmancera@riseup.net>2018-02-03 17:04:29 +0100
commit202d27af71014169539863cbf81ddf3411a05258 (patch)
tree5232e8f7ac9f979f89f528e79735dc5306c3b0fc /src/common/crypto.h
parentf8b1493681f8b881adac5f4fbdec61c99d9fb1e1 (diff)
downloadtor-202d27af71014169539863cbf81ddf3411a05258.tar.gz
tor-202d27af71014169539863cbf81ddf3411a05258.zip
Add xof functions into crypto_digest.[ch]
Added xof functions and operations into xof+digest module. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 3b2eb83730..5967a6f8b6 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -38,8 +38,6 @@
#define FINGERPRINT_LEN 49
typedef struct aes_cnt_cipher crypto_cipher_t;
-typedef struct crypto_digest_t crypto_digest_t;
-typedef struct crypto_xof_t crypto_xof_t;
typedef struct crypto_dh_t crypto_dh_t;
/* global state */
@@ -92,13 +90,6 @@ int crypto_cipher_decrypt_with_iv(const char *key,
char *to, size_t tolen,
const char *from, size_t fromlen);
-crypto_xof_t *crypto_xof_new(void);
-void crypto_xof_add_bytes(crypto_xof_t *xof, const uint8_t *data, size_t len);
-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))
-
/* Key negotiation */
#define DH_TYPE_CIRCUIT 1
#define DH_TYPE_REND 2