Unexport bn_correct_top and bn_wexpand.
Thanks to Rob Sloan for clearing out Android's uses of these functions. I forgot we can hide these now. BUG=97 Change-Id: I9bc7bf5ca379d3345743151e606f3e911367b4ed Reviewed-on: https://boringssl-review.googlesource.com/15364 Commit-Queue: Steven Valdez <svaldez@google.com> Reviewed-by: Robert Sloan <varomodt@google.com> Reviewed-by: Steven Valdez <svaldez@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
parent
778e5cedf0
commit
fc674c82c3
@ -199,6 +199,15 @@ BIGNUM *bn_expand(BIGNUM *bn, size_t bits);
|
|||||||
#define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
|
#define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* bn_correct_top decrements |bn->top| until |bn->d[top-1]| is non-zero or
|
||||||
|
* until |top| is zero. If |bn| is zero, |bn->neg| is set to zero. */
|
||||||
|
void bn_correct_top(BIGNUM *bn);
|
||||||
|
|
||||||
|
/* bn_wexpand ensures that |bn| has at least |words| works of space without
|
||||||
|
* altering its value. It returns |bn| on success or NULL on allocation
|
||||||
|
* failure. */
|
||||||
|
BIGNUM *bn_wexpand(BIGNUM *bn, size_t words);
|
||||||
|
|
||||||
/* bn_set_words sets |bn| to the value encoded in the |num| words in |words|,
|
/* bn_set_words sets |bn| to the value encoded in the |num| words in |words|,
|
||||||
* least significant word first. */
|
* least significant word first. */
|
||||||
int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num);
|
int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num);
|
||||||
|
@ -326,22 +326,6 @@ OPENSSL_EXPORT int BN_parse_asn1_unsigned_buggy(CBS *cbs, BIGNUM *ret);
|
|||||||
OPENSSL_EXPORT int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn);
|
OPENSSL_EXPORT int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn);
|
||||||
|
|
||||||
|
|
||||||
/* Internal functions.
|
|
||||||
*
|
|
||||||
* These functions are useful for code that is doing low-level manipulations of
|
|
||||||
* BIGNUM values. However, be sure that no other function in this file does
|
|
||||||
* what you want before turning to these. */
|
|
||||||
|
|
||||||
/* bn_correct_top decrements |bn->top| until |bn->d[top-1]| is non-zero or
|
|
||||||
* until |top| is zero. If |bn| is zero, |bn->neg| is set to zero. */
|
|
||||||
OPENSSL_EXPORT void bn_correct_top(BIGNUM *bn);
|
|
||||||
|
|
||||||
/* bn_wexpand ensures that |bn| has at least |words| works of space without
|
|
||||||
* altering its value. It returns |bn| on success or NULL on allocation
|
|
||||||
* failure. */
|
|
||||||
OPENSSL_EXPORT BIGNUM *bn_wexpand(BIGNUM *bn, size_t words);
|
|
||||||
|
|
||||||
|
|
||||||
/* BIGNUM pools.
|
/* BIGNUM pools.
|
||||||
*
|
*
|
||||||
* Certain BIGNUM operations need to use many temporary variables and
|
* Certain BIGNUM operations need to use many temporary variables and
|
||||||
|
Loading…
Reference in New Issue
Block a user