aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/crypto.h')
-rw-r--r--src/crypto/crypto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h
index d33ccb1..950cd9e 100644
--- a/src/crypto/crypto.h
+++ b/src/crypto/crypto.h
@@ -550,6 +550,13 @@ void crypto_ec_deinit(struct crypto_ec *e);
size_t crypto_ec_prime_len(struct crypto_ec *e);
/**
+ * crypto_ec_prime_len_bits - Get length of the prime in bits
+ * @e: EC context from crypto_ec_init()
+ * Returns: Length of the prime defining the group in bits
+ */
+size_t crypto_ec_prime_len_bits(struct crypto_ec *e);
+
+/**
* crypto_ec_get_prime - Get prime defining an EC group
* @e: EC context from crypto_ec_init()
* Returns: Prime (bignum) defining the group