Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2016-07-02 02:36:06 +0300
committerDavid Benjamin <davidben@google.com>2016-07-06 20:58:28 +0300
commite4bf8b3e05ae87ef14675801997ccf3df7b86fce (patch)
treea5ae41152596571e6a5cee245720bd9aa6e37fcc /include/openssl/bn.h
parentfe47ba2fc5512436696f745b5756d08c7d8ceb0b (diff)
Test aliasing in |BN_add| and |BN_sub|.
Also update the documentation for |BN_sub|. Change-Id: I544dbfc56f22844f6ca08e9e472ec13e76baf8c4 Reviewed-on: https://boringssl-review.googlesource.com/8592 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include/openssl/bn.h')
-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 9ee22376..bc715b02 100644
--- a/include/openssl/bn.h
+++ b/include/openssl/bn.h
@@ -383,8 +383,8 @@ 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|
- * and |b|. It returns one on success and zero on allocation failure. */
+/* BN_sub sets |r| = |a| - |b|, where |r| may be the same pointer as either |a|
+ * or |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,