Lines Matching refs:bn

145  * C++ unless |__STDC_FORMAT_MACROS| defined. As this is a public header, bn.h
173 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
175 /* BN_free frees the data referenced by |bn| and, if |bn| was originally
176 * allocated on the heap, frees |bn| also. */
177 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
179 /* BN_clear_free erases and frees the data referenced by |bn| and, if |bn| was
180 * originally allocated on the heap, frees |bn| also. */
181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
191 /* BN_clear sets |bn| to zero and erases the old data. */
192 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
201 * absolute value of |bn|. */
202 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
205 * absolute value of |bn|. */
206 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
208 /* BN_zero sets |bn| to zero. */
209 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
211 /* BN_one sets |bn| to one. It returns one on success or zero on allocation
213 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
215 /* BN_set_word sets |bn| to |value|. It returns one on success or zero on
217 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
219 /* BN_set_u64 sets |bn| to |value|. It returns one on success or zero on
221 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
223 /* BN_set_negative sets the sign of |bn|. */
224 OPENSSL_EXPORT void BN_set_negative(BIGNUM *bn, int sign);
226 /* BN_is_negative returns one if |bn| is negative and zero otherwise. */
227 OPENSSL_EXPORT int BN_is_negative(const BIGNUM *bn);
265 * representation of |bn|. If |bn| is negative, the first char in the resulting
267 OPENSSL_EXPORT char *BN_bn2hex(const BIGNUM *bn);
278 * decimal representation of |bn|. If |bn| is negative, the first char in the
303 /* BN_get_word returns the absolute value of |bn| as a single word. If |bn| is
306 OPENSSL_EXPORT BN_ULONG BN_get_word(const BIGNUM *bn);
308 /* BN_get_u64 sets |*out| to the absolute value of |bn| as a |uint64_t| and
309 * returns one. If |bn| is too large to be represented as a |uint64_t|, it
311 OPENSSL_EXPORT int BN_get_u64(const BIGNUM *bn, uint64_t *out);
324 /* BN_marshal_asn1 marshals |bn| as a non-negative DER INTEGER and appends the
326 OPENSSL_EXPORT int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn);
398 /* BN_mul_word sets |bn| = |bn| * |w|. It returns one on success or zero on
400 OPENSSL_EXPORT int BN_mul_word(BIGNUM *bn, BN_ULONG w);
447 /* BN_abs_is_word returns one if the absolute value of |bn| equals |w| and zero
449 OPENSSL_EXPORT int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w);
451 /* BN_is_zero returns one if |bn| is zero and zero otherwise. */
452 OPENSSL_EXPORT int BN_is_zero(const BIGNUM *bn);
454 /* BN_is_one returns one if |bn| equals one and zero otherwise. */
455 OPENSSL_EXPORT int BN_is_one(const BIGNUM *bn);
457 /* BN_is_word returns one if |bn| is exactly |w| and zero otherwise. */
458 OPENSSL_EXPORT int BN_is_word(const BIGNUM *bn, BN_ULONG w);
460 /* BN_is_odd returns one if |bn| is odd and zero otherwise. */
461 OPENSSL_EXPORT int BN_is_odd(const BIGNUM *bn);