projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Constify DH-related code.
[openssl.git]
/
crypto
/
engine
/
hw_atalla.c
diff --git
a/crypto/engine/hw_atalla.c
b/crypto/engine/hw_atalla.c
index b19639caab95b32077fcaaf45c1c063b68e5249b..c1640ca00035260f4db3eb7e654b93d26c2aa80c 100644
(file)
--- a/
crypto/engine/hw_atalla.c
+++ b/
crypto/engine/hw_atalla.c
@@
-95,7
+95,8
@@
static int atalla_mod_exp_dsa(DSA *dsa, BIGNUM *r, BIGNUM *a,
/* DH stuff */
/* This function is alised to mod_exp (with the DH and mont dropped). */
/* DH stuff */
/* This function is alised to mod_exp (with the DH and mont dropped). */
-static int atalla_mod_exp_dh(DH *dh, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
+static int atalla_mod_exp_dh(const DH *dh, BIGNUM *r,
+ const BIGNUM *a, const BIGNUM *p,
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
@@
-172,7
+173,7
@@
ENGINE *ENGINE_atalla()
{
const RSA_METHOD *meth1;
const DSA_METHOD *meth2;
{
const RSA_METHOD *meth1;
const DSA_METHOD *meth2;
- DH_METHOD *meth3;
+
const
DH_METHOD *meth3;
/* We know that the "PKCS1_SSLeay()" functions hook properly
* to the atalla-specific mod_exp and mod_exp_crt so we use
/* We know that the "PKCS1_SSLeay()" functions hook properly
* to the atalla-specific mod_exp and mod_exp_crt so we use
@@
-433,7
+434,8
@@
static int atalla_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
}
/* This function is aliased to mod_exp (with the dh and mont dropped). */
}
/* This function is aliased to mod_exp (with the dh and mont dropped). */
-static int atalla_mod_exp_dh(DH *dh, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
+static int atalla_mod_exp_dh(const DH *dh, BIGNUM *r,
+ const BIGNUM *a, const BIGNUM *p,
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx)
{
return atalla_mod_exp(r, a, p, m, ctx);
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx)
{
return atalla_mod_exp(r, a, p, m, ctx);