aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ffi')
-rw-r--r--src/lib/ffi/ffi.cpp10
-rw-r--r--src/lib/ffi/ffi.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp
index 4d5f67e34..9442634c4 100644
--- a/src/lib/ffi/ffi.cpp
+++ b/src/lib/ffi/ffi.cpp
@@ -1449,15 +1449,15 @@ int botan_pubkey_load(botan_pubkey_t* key,
}
int botan_privkey_load_rsa(botan_privkey_t* key,
- botan_mp_t p, botan_mp_t q, botan_mp_t d)
+ botan_mp_t rsa_p, botan_mp_t rsa_q, botan_mp_t rsa_e)
{
#if defined(BOTAN_HAS_RSA)
*key = nullptr;
try
{
- *key = new botan_privkey_struct(new Botan::RSA_PrivateKey(safe_get(p),
- safe_get(q),
- safe_get(d)));
+ *key = new botan_privkey_struct(new Botan::RSA_PrivateKey(safe_get(rsa_p),
+ safe_get(rsa_q),
+ safe_get(rsa_e)));
return 0;
}
catch(std::exception& e)
@@ -1466,7 +1466,7 @@ int botan_privkey_load_rsa(botan_privkey_t* key,
}
return -1;
#else
- BOTAN_UNUSED(key, p, q, d);
+ BOTAN_UNUSED(key, p, q, e);
return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
#endif
}
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h
index 5638810f9..f93265e22 100644
--- a/src/lib/ffi/ffi.h
+++ b/src/lib/ffi/ffi.h
@@ -755,7 +755,7 @@ BOTAN_DLL int botan_privkey_get_field(botan_mp_t output,
BOTAN_DLL int botan_privkey_load_rsa(botan_privkey_t* key,
botan_mp_t p,
botan_mp_t q,
- botan_mp_t d);
+ botan_mp_t e);
BOTAN_DLL int botan_privkey_rsa_get_p(botan_mp_t p, botan_privkey_t rsa_key);
BOTAN_DLL int botan_privkey_rsa_get_q(botan_mp_t q, botan_privkey_t rsa_key);