aboutsummaryrefslogtreecommitdiff
path: root/src/libmbedcrypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmbedcrypto.c')
-rw-r--r--src/libmbedcrypto.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libmbedcrypto.c b/src/libmbedcrypto.c
index 10a35270..aca9b35e 100644
--- a/src/libmbedcrypto.c
+++ b/src/libmbedcrypto.c
@@ -30,6 +30,9 @@
#ifdef HAVE_LIBMBEDCRYPTO
#include <mbedtls/md.h>
+static mbedtls_entropy_context ssh_mbedtls_entropy;
+static mbedtls_ctr_drbg_context ssh_mbedtls_ctr_drbg;
+
struct ssh_mac_ctx_struct {
enum ssh_mac_e mac_type;
mbedtls_md_context_t ctx;
@@ -999,6 +1002,11 @@ int ssh_mbedtls_random(void *where, int len, int strong)
return !rc;
}
+mbedtls_ctr_drbg_context *ssh_get_mbedtls_ctr_drbg_context(void)
+{
+ return &ssh_mbedtls_ctr_drbg;
+}
+
void ssh_crypto_finalize(void)
{
if (!libmbedcrypto_initialized) {