Lines Matching refs:BN_ULONG
148 BN_ULONG A = a->d[0];
393 if (m->d[j - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
481 static BN_ULONG bn_get_bits(const BIGNUM *a, int bitpos)
483 BN_ULONG ret = 0;
513 BN_ULONG *table = (BN_ULONG *)buf;
539 volatile BN_ULONG *table = (volatile BN_ULONG *)buf;
546 BN_ULONG acc = 0;
550 ((BN_ULONG)0 - (constant_time_eq_int(j,idx)&1));
557 BN_ULONG y0, y1, y2, y3;
562 y0 = (BN_ULONG)0 - (constant_time_eq_int(i,0)&1);
563 y1 = (BN_ULONG)0 - (constant_time_eq_int(i,1)&1);
564 y2 = (BN_ULONG)0 - (constant_time_eq_int(i,2)&1);
565 y3 = (BN_ULONG)0 - (constant_time_eq_int(i,3)&1);
568 BN_ULONG acc = 0;
575 & ((BN_ULONG)0 - (constant_time_eq_int(j,idx)&1));
750 tmp.d = (BN_ULONG *)(powerbuf + sizeof(m->d[0]) * top * numPowers);
759 if (m->d[top - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
779 typedef int (*bn_pwr5_mont_f) (BN_ULONG *tp, const BN_ULONG *np,
780 const BN_ULONG *n0, const void *table,
782 int bn_pwr5_mont_t4_8(BN_ULONG *tp, const BN_ULONG *np,
783 const BN_ULONG *n0, const void *table,
785 int bn_pwr5_mont_t4_16(BN_ULONG *tp, const BN_ULONG *np,
786 const BN_ULONG *n0, const void *table,
788 int bn_pwr5_mont_t4_24(BN_ULONG *tp, const BN_ULONG *np,
789 const BN_ULONG *n0, const void *table,
791 int bn_pwr5_mont_t4_32(BN_ULONG *tp, const BN_ULONG *np,
792 const BN_ULONG *n0, const void *table,
800 typedef int (*bn_mul_mont_f) (BN_ULONG *rp, const BN_ULONG *ap,
801 const void *bp, const BN_ULONG *np,
802 const BN_ULONG *n0);
803 int bn_mul_mont_t4_8(BN_ULONG *rp, const BN_ULONG *ap, const void *bp,
804 const BN_ULONG *np, const BN_ULONG *n0);
805 int bn_mul_mont_t4_16(BN_ULONG *rp, const BN_ULONG *ap,
806 const void *bp, const BN_ULONG *np,
807 const BN_ULONG *n0);
808 int bn_mul_mont_t4_24(BN_ULONG *rp, const BN_ULONG *ap,
809 const void *bp, const BN_ULONG *np,
810 const BN_ULONG *n0);
811 int bn_mul_mont_t4_32(BN_ULONG *rp, const BN_ULONG *ap,
812 const void *bp, const BN_ULONG *np,
813 const BN_ULONG *n0);
820 void bn_mul_mont_vis3(BN_ULONG *rp, const BN_ULONG *ap,
821 const void *bp, const BN_ULONG *np,
822 const BN_ULONG *n0, int num);
823 void bn_mul_mont_t4(BN_ULONG *rp, const BN_ULONG *ap,
824 const void *bp, const BN_ULONG *np,
825 const BN_ULONG *n0, int num);
826 void bn_mul_mont_gather5_t4(BN_ULONG *rp, const BN_ULONG *ap,
827 const void *table, const BN_ULONG *np,
828 const BN_ULONG *n0, int num, int power);
829 void bn_flip_n_scatter5_t4(const BN_ULONG *inp, size_t num,
831 void bn_gather5_t4(BN_ULONG *out, size_t num,
833 void bn_flip_t4(BN_ULONG *dst, BN_ULONG *src, size_t num);
835 BN_ULONG *np = mont->N.d, *n0 = mont->n0;
864 np = alloca(top * sizeof(BN_ULONG));
913 OPENSSL_cleanse(np, top * sizeof(BN_ULONG));
935 void bn_mul_mont_gather5(BN_ULONG *rp, const BN_ULONG *ap,
936 const void *table, const BN_ULONG *np,
937 const BN_ULONG *n0, int num, int power);
938 void bn_scatter5(const BN_ULONG *inp, size_t num,
940 void bn_gather5(BN_ULONG *out, size_t num, void *table, size_t power);
941 void bn_power5(BN_ULONG *rp, const BN_ULONG *ap,
942 const void *table, const BN_ULONG *np,
943 const BN_ULONG *n0, int num, int power);
944 int bn_get_bits5(const BN_ULONG *ap, int off);
946 BN_ULONG *n0 = mont->n0, *np;
1155 int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
1161 BN_ULONG w, next_w;