Browse Source

Clarify the documentation for |BN_is_bit_set|.

Change-Id: Ic859f19edff281334bd6975dd3c3b2931c901021
Reviewed-on: https://boringssl-review.googlesource.com/23044
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
kris/onging/CECPQ3_patch15
Daniel Hirche 7 years ago
committed by CQ bot account: commit-bot@chromium.org
parent
commit
74b828f263
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/openssl/bn.h

+ 2
- 2
include/openssl/bn.h View File

@@ -487,8 +487,8 @@ OPENSSL_EXPORT int BN_set_bit(BIGNUM *a, int n);
// zero on allocation failure.
OPENSSL_EXPORT int BN_clear_bit(BIGNUM *a, int n);

// BN_is_bit_set returns the value of the |n|th, least-significant bit in |a|,
// or zero if the bit doesn't exist.
// BN_is_bit_set returns one if the |n|th least-significant bit in |a| exists
// and is set. Otherwise, it returns zero.
OPENSSL_EXPORT int BN_is_bit_set(const BIGNUM *a, int n);

// BN_mask_bits truncates |a| so that it is only |n| bits long. It returns one


Loading…
Cancel
Save