~ubuntu-branches/ubuntu/lucid/openssl/lucid-security

« back to all changes in this revision

Viewing changes to crypto/bn/bn.h

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060515160058-pg6lnbkkpkwpdj2e
Tags: upstream-0.9.8b
ImportĀ upstreamĀ versionĀ 0.9.8b

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
int     BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
413
413
int     BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
414
414
int     BN_sqr(BIGNUM *r, const BIGNUM *a,BN_CTX *ctx);
415
 
/* BN_set_negative(): sets sign of a bignum */
 
415
/** BN_set_negative sets sign of a BIGNUM
 
416
 * \param  b  pointer to the BIGNUM object
 
417
 * \param  n  0 if the BIGNUM b should be positive and a value != 0 otherwise 
 
418
 */
416
419
void    BN_set_negative(BIGNUM *b, int n);
417
 
/* BN_get_negative():  returns 1 if the bignum is < 0 and 0 otherwise */
 
420
/** BN_is_negative returns 1 if the BIGNUM is negative
 
421
 * \param  a  pointer to the BIGNUM object
 
422
 * \return 1 if a < 0 and 0 otherwise
 
423
 */
418
424
#define BN_is_negative(a) ((a)->neg != 0)
419
425
 
420
426
int     BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,