summaryrefslogtreecommitdiff
path: root/crypto/bn/bn_word.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2008-11-01 14:37:00 +0000
committerBen Laurie <ben@openssl.org>2008-11-01 14:37:00 +0000
commit4d6e1e4f29de455b5e644ea9cae5d5f5a2dbef33 (patch)
tree9b43a103ede688bfb7b006837387dacb02ec3dc5 /crypto/bn/bn_word.c
parent122396f2dbeda0f25e9af1bb069a324ec793da57 (diff)
downloadopenssl-new-4d6e1e4f29de455b5e644ea9cae5d5f5a2dbef33.tar.gz
size_tification.
Diffstat (limited to 'crypto/bn/bn_word.c')
-rw-r--r--crypto/bn/bn_word.c7
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;