aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_sqrt.c
Commit message (Collapse)AuthorAgeFilesLines
* avoid potential spurious BN_free()Bodo Möller2005-08-231-2/+4
| | | | Submitted by: David Heine <dlheine@suif.Stanford.EDU>
* fix headerNils Larsch2005-03-301-1/+1
|
* Convert openssl code not to assume the deprecated form of BN_zero().Geoff Thorpe2004-03-131-2/+2
| | | | | | | | | Remove certain redundant BN_zero() initialisations, because BN_CTX_get(), BN_init(), [etc] already initialise to zero. Correct error checking in bn_sqr.c, and be less wishy-wash about how/why the result's 'top' value is set (note also, 'max' is always > 0 at this point).
* Put the first stage of my bignum debugging adventures into CVS. This codeGeoff Thorpe2003-11-041-0/+3
| | | | | | is itself experimental, and in addition may cause execution to break on existing openssl "bugs" that previously were harmless or at least invisible.
* remove obsolete part of commentBodo Möller2002-08-021-2/+0
|
* remove obsoleted disabled codeBodo Möller2002-08-021-10/+0
|
* Change BN_mod_sqrt() so that it verifies that the input value isBodo Möller2002-08-021-18/+31
| | | | really the square of the return value.
* CommentBodo Möller2001-03-081-0/+2
|
* Sign-related fixes (and tests).Bodo Möller2000-12-071-15/+14
| | | | | | BN_mod_exp_mont does not work properly yet if modulus m is negative (we want computations to be carried out modulo |m|).
* Move 'q->neg = 0' to those places where it is neededBodo Möller2000-12-071-1/+5
| | | | (just in cases someone uses a negative modulus)
* BN_mod_sqrt documentation/commentBodo Möller2000-12-061-1/+1
|
* Faster BN_mod_sqrt algorithm for p == 5 (8).Bodo Möller2000-12-061-5/+79
|
* Move reduction step from BN_mod_exp to BN_mod_exp_mont_word.Bodo Möller2000-11-301-3/+3
| | | | | | Fix BN_mod_exp_simple for a==0 (mod m). Skip useless round in BN_mod_sqrt (1 is always a square, no need to test BN_kronecker for it).
* BN_sqrtBodo Möller2000-11-301-1/+308
|
* Add bn_kron.c (BN_kronecker), which I forgot in the previous commit.Bodo Möller2000-11-281-0/+1
Also add the next file in advance so that I can't forget this one :-)