summaryrefslogtreecommitdiff
path: root/code/ecp/crypto
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-06-06 14:28:01 +0200
committerUros Majstorovic <majstor@majstor.org>2020-06-06 14:28:01 +0200
commit711628fbff8bd0b529066eac0d6bdcc328f2ebe3 (patch)
tree6b7bccbeeb0cb5fb9f14052b892a4ae013a2c6e9 /code/ecp/crypto
parent7c253d76ff15e81a4c45f828176d7d24b99132e3 (diff)
ecp_rng_t typedef fixed
Diffstat (limited to 'code/ecp/crypto')
-rw-r--r--code/ecp/crypto/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/ecp/crypto/crypto.c b/code/ecp/crypto/crypto.c
index fd3fc9b..ae0b3d3 100644
--- a/code/ecp/crypto/crypto.c
+++ b/code/ecp/crypto/crypto.c
@@ -3,7 +3,7 @@
#include <curve25519.h>
-int ecp_cr_dh_mkpair(ecp_dh_public_t *pub, ecp_dh_private_t *priv, ecp_rng_t *rand_buf) {
+int ecp_cr_dh_mkpair(ecp_dh_public_t *pub, ecp_dh_private_t *priv, ecp_rng_t rand_buf) {
int rv = X25519_keypair(*pub, *priv, rand_buf);
if (!rv) return ECP_ERR;
return ECP_OK;
@@ -53,7 +53,7 @@ ssize_t ecp_cr_aead_dec(unsigned char *pt, size_t pl, unsigned char *ct, size_t
return ol;
}
-int ecp_cr_dsa_mkpair(ecp_dsa_public_t *pub, ecp_dsa_private_t *priv, ecp_rng_t *rand_buf) {
+int ecp_cr_dsa_mkpair(ecp_dsa_public_t *pub, ecp_dsa_private_t *priv, ecp_rng_t rand_buf) {
unsigned char key[2*ECP_DSA_SIZE_KEY];
int rv = ED25519_keypair(*pub, key, rand_buf);