aboutsummaryrefslogtreecommitdiff
path: root/src/util/bits.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/bits.h')
-rw-r--r--src/util/bits.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/bits.h b/src/util/bits.h
index 2766cc3..000d64f 100644
--- a/src/util/bits.h
+++ b/src/util/bits.h
@@ -29,12 +29,18 @@
bits_t *bits_new(size_t bit_len);
+bits_t *bits_new_rand(size_t bit_len);
+
+void bits_cpy(bits_t *dest, const bits_t *src);
+
bits_t *bits_copy(const bits_t *bits);
void bits_free(bits_t **bits);
bits_t *bits_from_i(GEN i);
+bits_t *bits_from_i_len(GEN i, size_t bitlen);
+
bits_t *bits_from_hex(const char *hex_str);
bits_t *bits_from_bin(const char *bin_str);