~ubuntu-branches/ubuntu/karmic/openssl/karmic-proposed

« back to all changes in this revision

Viewing changes to crypto/bn/bn.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-05 00:13:39 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071205001339-tazlol313zs8u6ec
Tags: 0.9.8g-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure: Add support for lpia.
  - Replace duplicate files in the doc directory with symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
 
246
246
#define BN_FLG_MALLOCED         0x01
247
247
#define BN_FLG_STATIC_DATA      0x02
248
 
#define BN_FLG_EXP_CONSTTIME    0x04 /* avoid leaking exponent information through timings
249
 
                                      * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */
 
248
#define BN_FLG_CONSTTIME        0x04 /* avoid leaking exponent information through timing,
 
249
                                      * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime,
 
250
                                      * BN_div() will call BN_div_no_branch,
 
251
                                      * BN_mod_inverse() will call BN_mod_inverse_no_branch.
 
252
                                      */
 
253
 
 
254
#ifndef OPENSSL_NO_DEPRECATED
 
255
#define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME /* deprecated name for the flag */
 
256
                                      /* avoid leaking exponent information through timings
 
257
                                      * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */
 
258
#endif
 
259
 
250
260
#ifndef OPENSSL_NO_DEPRECATED
251
261
#define BN_FLG_FREE             0x8000  /* used for debuging */
252
262
#endif
534
544
#define BN_BLINDING_NO_UPDATE   0x00000001
535
545
#define BN_BLINDING_NO_RECREATE 0x00000002
536
546
 
537
 
BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod);
 
547
BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, /* const */ BIGNUM *mod);
538
548
void BN_BLINDING_free(BN_BLINDING *b);
539
549
int BN_BLINDING_update(BN_BLINDING *b,BN_CTX *ctx);
540
550
int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
546
556
unsigned long BN_BLINDING_get_flags(const BN_BLINDING *);
547
557
void BN_BLINDING_set_flags(BN_BLINDING *, unsigned long);
548
558
BN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b,
549
 
        const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,
 
559
        const BIGNUM *e, /* const */ BIGNUM *m, BN_CTX *ctx,
550
560
        int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
551
561
                          const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx),
552
562
        BN_MONT_CTX *m_ctx);
775
785
#define BN_F_BN_CTX_NEW                                  106
776
786
#define BN_F_BN_CTX_START                                129
777
787
#define BN_F_BN_DIV                                      107
 
788
#define BN_F_BN_DIV_NO_BRANCH                            138
778
789
#define BN_F_BN_DIV_RECP                                 130
779
790
#define BN_F_BN_EXP                                      123
780
791
#define BN_F_BN_EXPAND2                                  108
793
804
#define BN_F_BN_MOD_EXP_RECP                             125
794
805
#define BN_F_BN_MOD_EXP_SIMPLE                           126
795
806
#define BN_F_BN_MOD_INVERSE                              110
 
807
#define BN_F_BN_MOD_INVERSE_NO_BRANCH                    139
796
808
#define BN_F_BN_MOD_LSHIFT_QUICK                         119
797
809
#define BN_F_BN_MOD_MUL_RECIPROCAL                       111
798
810
#define BN_F_BN_MOD_SQRT                                 121