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 03:12:40 +0300
committerDavid Benjamin <davidben@google.com>2016-07-06 21:18:21 +0300
commit3d4030b5f7582f9cd686bfa81c7e09334ee18887 (patch)
tree8be52c8c47533d961627e40356bd812d34460c7f /include/openssl/bn.h
parente4bf8b3e05ae87ef14675801997ccf3df7b86fce (diff)
Test |BN_uadd| and |BN_usub|.
Also, update the documentation about aliasing for |BN_usub|. It might be better to find a way to factor out the shared logic between the tests of these functions and the tests of |BN_add| and |BN_usub|, but doing so would end up up creating a lot of parameters due to the many distinct strings used in the messages. Change-Id: Ic9d714858212fc92aa6bbcc3959576fe6bbf58c3 Reviewed-on: https://boringssl-review.googlesource.com/8593 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include/openssl/bn.h')
-rw-r--r--include/openssl/bn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openssl/bn.h b/include/openssl/bn.h
index bc715b02..23dd8073 100644
--- a/include/openssl/bn.h
+++ b/include/openssl/bn.h
@@ -388,7 +388,7 @@ OPENSSL_EXPORT int BN_add_word(BIGNUM *a, BN_ULONG w);
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,
- * |b| < |a| and |r| must be a distinct pointer from |a| and |b|. It returns
+ * |b| < |a| and |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_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);