summaryrefslogtreecommitdiff
path: root/lib/libcrypto
AgeCommit message (Collapse)Author
2001-12-28* Add user-controlled mk.conf variableslukem
- SHLIBDIR Location to install shared libraries if ${USE_SHLIBDIR} is "yes". Defaults to "/usr/lib". - USE_SHLIBDIR If "yes", install shared libraries in ${SHLIBDIR} instead of ${LIBDIR}. Defaults to "no". Sets ${_LIBSODIR} to the appropriate value. This may be set by individual Makefiles as well. - SHLINKDIR Location of shared linker. Defaults to "/usr/libexec". If != "/usr/libexec", change the dynamic-linker encoded in shared programs * Set USE_SHLIBDIR for libraries used by /bin and /sbin: libc libcrypt libcrypto libedit libipsec libkvm libm libmi387 libtermcap libutil libz * If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so* to ${_LIBSODIR}/${LIB}.so* for compatibility. * Always install /sbin/init statically (for now) The net effect of these changes depends on how the variables are set: 1.) If nothing is set or changed, there is no change from the current behaviour: - Static /bin, /sbin, and bits of /usr/* - Dynamic rest - Shared linker is /usr/libexec/ld*so 2.) If the following make variables are set: LDSTATIC= SHLINKDIR=/lib SHLIBDIR=/lib Then the behaviour becomes: - Dynamic tools - .so libraries used by /bin and /sbin are installed to /lib, with symlinks from /usr/lib/lib*so to -> /lib/lib*so where appropriate - Shared linker is /lib/ld*so 3.) As per 2.), but add the following variable: USE_SHLIBDIR=yes This forces all .so's to be instaleld in /lib (with compat symlinks), not just those tagged by their Makefiles to be. Again, compat symlinks are installed
2001-09-11The des_opts program suggests just "-DDES_UNROLL" on my 5000/260.simonb
2001-09-10Use MACHINE_CPU rather than an (incomplete) substitution ofthorpej
MACHINE_ARCH;.
2001-09-10Do the CPU-specific optimization flags a better way, suggestedthorpej
by Simon Burge.
2001-09-09Use MACHINE_CPU, not MACHINE_ARCH, to select optimizations. Add ↵tls
BF_PTR/BF_PTR2 tweaks to bf.inc
2001-09-09tweak the x86 options a bittls
2001-09-09Add some of the options to select optimizations of the C DES code fortls
different architectures. Doesn't help some platforms much, helps others quite a bit. These options are from options.txt in the libdes/libcrypto distribution; it would probably be best to test and replace them with what's best with the current gcc on each of our architectures.
2001-09-09Grumble. If you make external references, the code MUST be PICthorpej
for shared libraries. This code is not PIC, so DO NOT BUILD IT.
2001-09-09Add assembly versions of DES transforms for x86; a performance improvementtls
of about 3.5X on my 1333MHz Athlon (about 37MB/sec!) compared to the old C versions. We could boost the speed of the C versions on most other architectures with des.inc files that set the compile-time flags (DES_PTR, DES_RISC1, DES_RISC2) correctly; at the moment they aren't set at all.
2001-06-11Fix various misspellings of compatible/compatibility.wiz
2001-05-02Fix (work around?) bin/12804.sommerfeld
(idea.h, rc5.h, and rsa.h appeared twice in INCS, confusing make -j)
2001-04-13comment; use latest pod2manitojun
2001-04-12fix manpage paths to meet 0.9.6a. most of short names are escaped asitojun
openssl_xx(1) or openssl_xx(3), as they are way too generic.
2001-04-12use openssl 0.9.6a. shlib major # is bumped for libcrypto, libssl anditojun
all kerberos libraries.
2001-04-09Regenerate with pod2man-1.0.2, which produces a bit better output.wiz
2001-04-02fo -> forwiz
2001-02-11Pass -B to the make command used to make print-shlib-{major,minor} soenami
that make install with -j option works.
2001-01-09Fix date (22/Jul/2000 instead of 22/Jul/100).wiz
(pod2man problem?)
2001-01-04use more standard %lld in favour of %qdlukem
2000-10-07s/MAN1/MAN/itojun
2000-10-05avoid conflicting manpage filenames (like err.3)itojun
2000-10-04describe crypto_{idea,rc5}itojun
2000-10-04more change name to meet the filenameitojun
2000-10-04change name to meet the filenameitojun
2000-10-04move ssl(4) to ssl(3). sorry for the mess.itojun
2000-10-04modify some chaptersitojun
2000-10-04avoid RCS tagsitojun
2000-10-04add manpages for libcrypto. still need to review contents.itojun
2000-10-04add manpages generated by pod2man. need fixes here and there.itojun
2000-10-04a clean target.itojun
move config.5 to openssl.cnf.5.
2000-10-04Makefile for generating manpage (require perl, should be used offline)itojun
2000-10-01move rc5/idea dummy functions from crypto/dist/openssl/crypto to lib/libcrypto.itojun
they are not part of the openssl distribution. suggested by thorpej.
2000-09-30always compile RSA into libcrypto.itojun
MKCRYPTO disables the whole crypto tree, and in that case, we will not have RSA (nor libcrypto) with us.
2000-09-30repair openssl (libcrypto) for non-32bit architecture.itojun
don't use unsigned long where 32bit unsigned variable is asked for. use u_int32_t. (not sure if uint32_t is better or not, but anyway, u_int32_t <-> uint32_t should not raise binary compatibility issue) PR10921. TODO: have arch-dependent Makefiles where we supply -DFOO for optimization. (do not change size of variable though) XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h, however, that needs a lot of work and will make future openssl upgrade harder. remove RC5 and IDEA by default. build them separately as libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted. PR10883.
2000-08-30Usejhawk
${MAKE} instead of make
2000-07-31Add support for building the assembly versions of some BIGNUMthorpej
routines from OpenSSL. Speeds up DSA significantly. A similar gain should also be seen for RSA. Before: Doing 512 bit sign dsa's for 10s: 965 512 bit DSA signs in 9.97s Doing 512 bit verify dsa's for 10s: 766 512 bit DSA verify in 9.93s Doing 1024 bit sign dsa's for 10s: 276 1024 bit DSA signs in 9.99s Doing 1024 bit verify dsa's for 10s: 217 1024 bit DSA verify in 9.93s sign verify sign/s verify/s dsa 512 bits 0.0103s 0.0130s 96.8 77.1 dsa 1024 bits 0.0362s 0.0458s 27.6 21.9 After: Doing 512 bit sign dsa's for 10s: 3742 512 bit DSA signs in 9.88s Doing 512 bit verify dsa's for 10s: 3065 512 bit DSA verify in 9.92s Doing 1024 bit sign dsa's for 10s: 1357 1024 bit DSA signs in 9.99s Doing 1024 bit verify dsa's for 10s: 1094 1024 bit DSA verify in 9.83s sign verify sign/s verify/s dsa 512 bits 0.0026s 0.0032s 378.7 309.0 dsa 1024 bits 0.0074s 0.0090s 135.8 111.3
2000-07-31Add support for building the assembly version of RMD160 from OpenSSL.thorpej
Before: Doing rmd160 for 3s on 8 size blocks: 778828 rmd160's in 3.00s Doing rmd160 for 3s on 64 size blocks: 430214 rmd160's in 3.00s Doing rmd160 for 3s on 256 size blocks: 182108 rmd160's in 3.00s Doing rmd160 for 3s on 1024 size blocks: 55050 rmd160's in 3.00s Doing rmd160 for 3s on 8192 size blocks: 7339 rmd160's in 3.00s type 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes rmd160 2076.87k 9177.90k 15539.88k 18790.40k 20040.36k After: Doing rmd160 for 3s on 8 size blocks: 1084941 rmd160's in 3.00s Doing rmd160 for 3s on 64 size blocks: 617966 rmd160's in 3.00s Doing rmd160 for 3s on 256 size blocks: 267381 rmd160's in 2.99s Doing rmd160 for 3s on 1024 size blocks: 82001 rmd160's in 3.00s Doing rmd160 for 3s on 8192 size blocks: 10974 rmd160's in 3.00s type 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes rmd160 2893.18k 13183.27k 22892.82k 27989.67k 29966.34k
2000-07-31Add support for building the assembly version of MD5 from OpenSSL.thorpej
Before: Doing md5 for 3s on 8 size blocks: 1490796 md5's in 3.00s Doing md5 for 3s on 64 size blocks: 895849 md5's in 3.00s Doing md5 for 3s on 256 size blocks: 410807 md5's in 3.00s Doing md5 for 3s on 1024 size blocks: 129416 md5's in 3.00s Doing md5 for 3s on 8192 size blocks: 17527 md5's in 3.00s type 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes md5 3975.46k 19111.45k 35055.53k 44173.99k 47860.39k After: Doing md5 for 3s on 8 size blocks: 2041410 md5's in 3.00s Doing md5 for 3s on 64 size blocks: 1345402 md5's in 3.00s Doing md5 for 3s on 256 size blocks: 669827 md5's in 3.10s Doing md5 for 3s on 1024 size blocks: 221744 md5's in 2.96s Doing md5 for 3s on 8192 size blocks: 30685 md5's in 3.00s type 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes md5 5443.76k 28701.91k 56968.68k 76711.44k 83790.51k
2000-07-31Add support for building the assembly versions of Blowfish encryptthorpej
and decrypt from OpenSSL. Right now we only build the 586 version, but eventually we will be able to build the 686 version based on a CPP flag defined as a result of using `cc -mcpu=pentiumpro'. We don't build the assembly version of BF_cbc_encrypt(), as it would have to be rewritten to be PIC. Performance difference is quite noticeable. Before: Doing blowfish cbc for 3s on 8 size blocks: 2891026 blowfish cbc's in 2.97s Doing blowfish cbc for 3s on 64 size blocks: 411766 blowfish cbc's in 3.10s Doing blowfish cbc for 3s on 256 size blocks: 104721 blowfish cbc's in 3.00s Doing blowfish cbc for 3s on 1024 size blocks: 26291 blowfish cbc's in 2.98s Doing blowfish cbc for 3s on 8192 size blocks: 3290 blowfish cbc's in 3.10s type 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes blowfish cbc 7787.28k 8755.16k 8936.19k 9034.22k 8954.05k After: Doing blowfish cbc for 3s on 8 size blocks: 4573792 blowfish cbc's in 3.10s Doing blowfish cbc for 3s on 64 size blocks: 713440 blowfish cbc's in 2.99s Doing blowfish cbc for 3s on 256 size blocks: 183125 blowfish cbc's in 3.00s Doing blowfish cbc for 3s on 1024 size blocks: 46221 blowfish cbc's in 3.00s Doing blowfish cbc for 3s on 8192 size blocks: 5787 blowfish cbc's in 3.00s type 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes blowfish cbc 12156.26k 15270.96k 15626.67k 15776.77k 15802.37k
2000-07-31Rework this so what we can include arch-specific versionsthorpej
of the crypto Makefile includes.
2000-07-17bump libcrypto minormrg
2000-07-16update for openssl 0.9.5amrg
2000-07-05Add CPPFLAGS+= -DNO_{RSA,IDEA,RC5}.veego
2000-06-23Add MK... variables to enable/disable various aspects of buildingthorpej
crypto support into the system. See share/mk/bsd.README for more a full description.
2000-06-21Add cleaned up versions of des_set_random_generator_seed(),thorpej
des_new_random_key(), and des_init_random_number_generator() from the crypto-us libdes.
2000-06-21Add cleaned up versions of des_set_random_generator_seed(),thorpej
des_new_random_key(), and des_init_random_number_generator() from the crypto-us libdes. While I'm here, fix a serious bug in des_init_random_number_generator() whereby the accumlated data to be hashed was zero'd *before* actually being hashed. NOTE: The bug only affects people who are not using the rnd(4) in-kernel random number generator, and it is worth noting that the resulting keys are not always the same, but are likely easy to determine.
2000-06-21s/CFLAGS/CPPFLAGS/gthorpej
2000-06-20Fix installing <kerberosIV/des.h>thorpej
2000-06-20Merge a bunch of things from crypto-us and crypto-intl into basesrc,thorpej
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate bsd.crypto.mk. There is still a bunch more work to do, but crypto is now more-or-less fully merged into the base NetBSD distribution.
2000-06-16Fixup the OpenSSL library builds.thorpej