summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_sqrt.c
AgeCommit message (Collapse)Author
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22mark all block comments that need format preserving so thatTim Hudson
indent will not alter them when reformatting comments (cherry picked from commit 1d97c8435171a7af575f73c526d79e1ef0ee5960) Conflicts: crypto/bn/bn_lcl.h crypto/bn/bn_prime.c crypto/engine/eng_all.c crypto/rc4/rc4_utl.c crypto/sha/sha.h ssl/kssl.c ssl/t1_lib.c Conflicts: crypto/rc4/rc4_enc.c crypto/x509v3/v3_scts.c crypto/x509v3/v3nametest.c ssl/d1_both.c ssl/s3_srvr.c ssl/ssl.h ssl/ssl_locl.h ssl/ssltest.c ssl/t1_lib.c Conflicts: crypto/asn1/a_sign.c crypto/bn/bn_div.c crypto/dsa/dsa_asn1.c crypto/ec/ecp_nistp224.c crypto/ec/ecp_nistp256.c crypto/ec/ecp_nistp521.c crypto/ec/ecp_nistputil.c crypto/modes/gcm128.c crypto/opensslv.h ssl/d1_both.c ssl/heartbeat_test.c ssl/s3_clnt.c ssl/s3_srvr.c ssl/ssl_sess.c ssl/t1_lib.c test/testutil.h Reviewed-by: Tim Hudson <tjh@openssl.org>
2005-08-23avoid potential spurious BN_free()Bodo Möller
Submitted by: David Heine <dlheine@suif.Stanford.EDU>
2005-03-30fix headerNils Larsch
2004-03-13Convert openssl code not to assume the deprecated form of BN_zero().Geoff Thorpe
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).
2003-11-04Put the first stage of my bignum debugging adventures into CVS. This codeGeoff Thorpe
is itself experimental, and in addition may cause execution to break on existing openssl "bugs" that previously were harmless or at least invisible.
2002-08-02remove obsolete part of commentBodo Möller
2002-08-02remove obsoleted disabled codeBodo Möller
2002-08-02Change BN_mod_sqrt() so that it verifies that the input value isBodo Möller
really the square of the return value.
2001-03-08CommentBodo Möller
2000-12-07Sign-related fixes (and tests).Bodo Möller
BN_mod_exp_mont does not work properly yet if modulus m is negative (we want computations to be carried out modulo |m|).
2000-12-07Move 'q->neg = 0' to those places where it is neededBodo Möller
(just in cases someone uses a negative modulus)
2000-12-06BN_mod_sqrt documentation/commentBodo Möller
2000-12-06Faster BN_mod_sqrt algorithm for p == 5 (8).Bodo Möller
2000-11-30Move reduction step from BN_mod_exp to BN_mod_exp_mont_word.Bodo Möller
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).
2000-11-30BN_sqrtBodo Möller
2000-11-28Add bn_kron.c (BN_kronecker), which I forgot in the previous commit.Bodo Möller
Also add the next file in advance so that I can't forget this one :-)