diff options
author | Bodo Möller <bodo@openssl.org> | 2005-05-27 15:38:53 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2005-05-27 15:38:53 +0000 |
commit | a28a5d9c626c8b48d55f64ad77304578d1bd2a03 (patch) | |
tree | 90fa8f727776c772a77d4768477355e857616cbb /crypto/bn | |
parent | 3f791ca8188b71cba77e718d2d5c2ed7613d3b6a (diff) |
Use BN_with_flags() in a cleaner way.
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index 6d52735207..9f4668a51d 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -253,6 +253,8 @@ extern "C" { #define BN_set_flags(b,n) ((b)->flags|=(n)) #define BN_get_flags(b,n) ((b)->flags&(n)) +/* get a clone of a BIGNUM with changed flags, for *temporary* use only + * (the two BIGNUMs cannot not be used in parallel!) */ #define BN_with_flags(dest,b,n) ((dest)->d=(b)->d, \ (dest)->top=(b)->top, \ (dest)->dmax=(b)->dmax, \ |