aboutsummaryrefslogtreecommitdiff
path: root/src/libmbedcrypto.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2015-12-31 10:56:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-07-05 12:09:52 +0200
commit36a727e656a7fcd91722cf2d050fc87d55410b5b (patch)
tree8e9deb057036fc34323b16ab668393d591f6ded6 /src/libmbedcrypto.c
parent7b9a07c36320480d14de06962c7c0f09682b6df5 (diff)
downloadlibssh-36a727e656a7fcd91722cf2d050fc87d55410b5b.tar.gz
libssh-36a727e656a7fcd91722cf2d050fc87d55410b5b.tar.xz
libssh-36a727e656a7fcd91722cf2d050fc87d55410b5b.zip
bignum: Harmonize ssh_get_random()
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/libmbedcrypto.c')
-rw-r--r--src/libmbedcrypto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmbedcrypto.c b/src/libmbedcrypto.c
index aa183f18..03281f47 100644
--- a/src/libmbedcrypto.c
+++ b/src/libmbedcrypto.c
@@ -40,6 +40,11 @@ void ssh_reseed(void)
mbedtls_ctr_drbg_reseed(&ssh_mbedtls_ctr_drbg, NULL, 0);
}
+int ssh_get_random(void *where, int len, int strong)
+{
+ return ssh_mbedtls_random(where, len, strong);
+}
+
SHACTX sha1_init(void)
{
SHACTX ctx = NULL;