diff options
author | Matt Caswell <matt@openssl.org> | 2014-10-28 23:58:56 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-12-08 22:40:47 +0100 |
commit | 5784a52145d0062d42724d4d0fab3b4c82de35ee (patch) | |
tree | e53baaad68ca5ee32a9afca8c7feaae34abbfef8 /crypto/ec/ecp_nist.c | |
parent | Implement internally opaque bn access from dsa (diff) | |
download | openssl-5784a52145d0062d42724d4d0fab3b4c82de35ee.tar.xz openssl-5784a52145d0062d42724d4d0fab3b4c82de35ee.zip |
Implement internally opaque bn access from ec
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/ec/ecp_nist.c')
-rw-r--r-- | crypto/ec/ecp_nist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ecp_nist.c b/crypto/ec/ecp_nist.c index 54735ec1d8..04ebd575b9 100644 --- a/crypto/ec/ecp_nist.c +++ b/crypto/ec/ecp_nist.c @@ -172,7 +172,7 @@ int ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, if ((ctx_new = ctx = BN_CTX_new()) == NULL) goto err; if (!BN_mul(r, a, b, ctx)) goto err; - if (!group->field_mod_func(r, r, &group->field, ctx)) + if (!group->field_mod_func(r, r, group->field, ctx)) goto err; ret=1; @@ -198,7 +198,7 @@ int ec_GFp_nist_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, if ((ctx_new = ctx = BN_CTX_new()) == NULL) goto err; if (!BN_sqr(r, a, ctx)) goto err; - if (!group->field_mod_func(r, r, &group->field, ctx)) + if (!group->field_mod_func(r, r, group->field, ctx)) goto err; ret=1; |