diff options
author | Bodo Möller <bodo@openssl.org> | 2001-03-08 21:55:16 +0100 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-03-08 21:55:16 +0100 |
commit | 156e85578d180313c27e51d0bf186aa8650c49e1 (patch) | |
tree | 53fce31e7b1912e3e7df1d96e2a954a20c16e84f /crypto/bn/bn_mont.c | |
parent | Fixes to make 'no-ec' work (it should not turn 'objects' into 'objts' for exa... (diff) | |
download | openssl-156e85578d180313c27e51d0bf186aa8650c49e1.tar.xz openssl-156e85578d180313c27e51d0bf186aa8650c49e1.zip |
Implement EC_GFp_mont_method.
Diffstat (limited to 'crypto/bn/bn_mont.c')
-rw-r--r-- | crypto/bn/bn_mont.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index f1765c03ac..82942a4759 100644 --- a/crypto/bn/bn_mont.c +++ b/crypto/bn/bn_mont.c @@ -339,9 +339,9 @@ BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to, BN_MONT_CTX *from) { if (to == from) return(to); - BN_copy(&(to->RR),&(from->RR)); - BN_copy(&(to->N),&(from->N)); - BN_copy(&(to->Ni),&(from->Ni)); + if (!BN_copy(&(to->RR),&(from->RR))) return NULL; + if (!BN_copy(&(to->N),&(from->N))) return NULL; + if (!BN_copy(&(to->Ni),&(from->Ni))) return NULL; to->ri=from->ri; to->n0=from->n0; return(to); |