summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-08-27 12:09:26 -0400
committerAdam Langley <agl@google.com>2014-08-27 17:41:08 +0000
commit25c93ffc866c081fd0c5d4708a4a442800315ff7 (patch)
tree572e42bc2074086947e083d66ed51e16905ddbbc /include
parent854dd654d1cf168397b6df8d6a4964288d206e2f (diff)
downloadsrc-25c93ffc866c081fd0c5d4708a4a442800315ff7.tar.gz
Fix BN_sub documentation.
BUG=405370 Change-Id: Ia44cbdcc4d0d90e610d1a1f2eb49b056b07ae5e4 Reviewed-on: https://boringssl-review.googlesource.com/1660 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/bn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/bn.h b/include/openssl/bn.h
index c9fba98..37a4bba 100644
--- a/include/openssl/bn.h
+++ b/include/openssl/bn.h
@@ -351,11 +351,11 @@ OPENSSL_EXPORT int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
/* BN_add_word adds |w| to |a|. It returns one on success and zero otherwise. */
OPENSSL_EXPORT int BN_add_word(BIGNUM *a, BN_ULONG w);
-/* BN_sub sets |r| = |a| + |b|, where |r| must be a distinct pointer from |a|
+/* BN_sub sets |r| = |a| - |b|, where |r| must be a distinct pointer from |a|
* and |b|. It returns one on success and zero on allocation failure. */
OPENSSL_EXPORT int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
-/* BN_usub sets |r| = |a| + |b|, where |a| and |b| are non-negative integers,
+/* BN_usub sets |r| = |a| - |b|, where |a| and |b| are non-negative integers,
* |b| < |a| and |r| must be a distinct pointer from |a| and |b|. It returns
* one on success and zero on allocation failure. */
OPENSSL_EXPORT int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);