diff options
Diffstat (limited to 'crypto/bn/bn_word.c')
-rw-r--r-- | crypto/bn/bn_word.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/bn/bn_word.c b/crypto/bn/bn_word.c index ee7b87c45c..d83032c66c 100644 --- a/crypto/bn/bn_word.c +++ b/crypto/bn/bn_word.c @@ -168,6 +168,13 @@ int BN_add_word(BIGNUM *a, BN_ULONG w) return(1); } +int BN_add_signed_word(BIGNUM *a, BN_LONG w) + { + if(w < 0) + return 0; + return BN_add_word(a, (BN_ULONG)w); + } + int BN_sub_word(BIGNUM *a, BN_ULONG w) { int i; |