diff options
| author | djm <> | 2005-04-29 05:37:32 +0000 |
|---|---|---|
| committer | djm <> | 2005-04-29 05:37:32 +0000 |
| commit | 411d389aff1d4ca3241d9d89edb4110c1cf05035 (patch) | |
| tree | 26769b736e0df1e96e60b36db36c918dd42746be /src/lib/libssl/src | |
| parent | f958f59ed2b1b93fadf25a4c8bd7d1f3c655a229 (diff) | |
| parent | 588543a0946f1dbf0f1dd5135f8f6447486dc183 (diff) | |
| download | openbsd-411d389aff1d4ca3241d9d89edb4110c1cf05035.tar.gz openbsd-411d389aff1d4ca3241d9d89edb4110c1cf05035.tar.bz2 openbsd-411d389aff1d4ca3241d9d89edb4110c1cf05035.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libssl/src')
131 files changed, 27790 insertions, 60 deletions
diff --git a/src/lib/libssl/src/INSTALL.DJGPP b/src/lib/libssl/src/INSTALL.DJGPP index cdeac222b2..1047ec90a5 100644 --- a/src/lib/libssl/src/INSTALL.DJGPP +++ b/src/lib/libssl/src/INSTALL.DJGPP | |||
| @@ -3,32 +3,45 @@ | |||
| 3 | INSTALLATION ON THE DOS PLATFORM WITH DJGPP | 3 | INSTALLATION ON THE DOS PLATFORM WITH DJGPP |
| 4 | ------------------------------------------- | 4 | ------------------------------------------- |
| 5 | 5 | ||
| 6 | Openssl has been ported to DOS, but only with long filename support. If | 6 | OpenSSL has been ported to DJGPP, a Unix look-alike 32-bit run-time |
| 7 | you wish to compile on native DOS with 8+3 filenames, you will have to | 7 | environment for 16-bit DOS, but only with long filename support. |
| 8 | tweak the installation yourself, including renaming files with illegal | 8 | If you wish to compile on native DOS with 8+3 filenames, you will |
| 9 | or duplicate names. | 9 | have to tweak the installation yourself, including renaming files |
| 10 | with illegal or duplicate names. | ||
| 10 | 11 | ||
| 11 | You should have a full DJGPP environment installed, including the | 12 | You should have a full DJGPP environment installed, including the |
| 12 | latest versions of DJGPP, GCC, BINUTILS, BASH, etc. This package | 13 | latest versions of DJGPP, GCC, BINUTILS, BASH, etc. This package |
| 13 | requires that PERL and BC also be installed. | 14 | requires that PERL and BC also be installed. |
| 14 | 15 | ||
| 15 | All of these can be obtained from the usual DJGPP mirror sites, such | 16 | All of these can be obtained from the usual DJGPP mirror sites or |
| 16 | as "ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp". You also need to | 17 | directly at "http://www.delorie.com/pub/djgpp". For help on which |
| 17 | have the WATT-32 networking package installed before you try to compile | 18 | files to download, see the DJGPP "ZIP PICKER" page at |
| 18 | openssl. This can be obtained from "http://www.bgnett.no/~giva/". | 19 | "http://www.delorie.com/djgpp/zip-picker.html". You also need to have |
| 20 | the WATT-32 networking package installed before you try to compile | ||
| 21 | OpenSSL. This can be obtained from "http://www.bgnett.no/~giva/". | ||
| 19 | The Makefile assumes that the WATT-32 code is in the directory | 22 | The Makefile assumes that the WATT-32 code is in the directory |
| 20 | specified by the environment variable WATT_ROOT. If you have watt-32 | 23 | specified by the environment variable WATT_ROOT. If you have watt-32 |
| 21 | in directory "watt32" under your main DJGPP directory, specify | 24 | in directory "watt32" under your main DJGPP directory, specify |
| 22 | WATT_ROOT="/dev/env/DJDIR/watt32". | 25 | WATT_ROOT="/dev/env/DJDIR/watt32". |
| 23 | 26 | ||
| 24 | To compile openssl, start your BASH shell. Then configure for DOS by | 27 | To compile OpenSSL, start your BASH shell, then configure for DJGPP by |
| 25 | running "./Configure" with appropriate arguments. The basic syntax for | 28 | running "./Configure" with appropriate arguments: |
| 26 | DOS is: | 29 | |
| 27 | ./Configure no-threads --prefix=/dev/env/DJDIR DJGPP | 30 | ./Configure no-threads --prefix=/dev/env/DJDIR DJGPP |
| 28 | 31 | ||
| 29 | You may run out of DPMI selectors when running in a DOS box under | 32 | And finally fire up "make". You may run out of DPMI selectors when |
| 30 | Windows. If so, just close the BASH shell, go back to Windows, and | 33 | running in a DOS box under Windows. If so, just close the BASH |
| 31 | restart BASH. Then run "make" again. | 34 | shell, go back to Windows, and restart BASH. Then run "make" again. |
| 35 | |||
| 36 | RUN-TIME CAVEAT LECTOR | ||
| 37 | -------------- | ||
| 38 | |||
| 39 | Quoting FAQ: | ||
| 40 | |||
| 41 | "Cryptographic software needs a source of unpredictable data to work | ||
| 42 | correctly. Many open source operating systems provide a "randomness | ||
| 43 | device" (/dev/urandom or /dev/random) that serves this purpose." | ||
| 32 | 44 | ||
| 33 | Building openssl under DJGPP has been tested with DJGPP 2.03, | 45 | As of version 0.9.7f DJGPP port checks upon /dev/urandom$ for a 3rd |
| 34 | GCC 2.952, GCC 2.953, perl 5.005_02 and perl 5.006_01. | 46 | party "randomness" DOS driver. One such driver, NOISE.SYS, can be |
| 47 | obtained from "http://www.rahul.net/dkaufman/index.html". | ||
diff --git a/src/lib/libssl/src/Makefile b/src/lib/libssl/src/Makefile new file mode 100644 index 0000000000..45d2befa5c --- /dev/null +++ b/src/lib/libssl/src/Makefile | |||
| @@ -0,0 +1,930 @@ | |||
| 1 | ### Generated automatically from Makefile.org by Configure. | ||
| 2 | |||
| 3 | ## | ||
| 4 | ## Makefile for OpenSSL | ||
| 5 | ## | ||
| 6 | |||
| 7 | VERSION=0.9.7g | ||
| 8 | MAJOR=0 | ||
| 9 | MINOR=9.7 | ||
| 10 | SHLIB_VERSION_NUMBER=0.9.7 | ||
| 11 | SHLIB_VERSION_HISTORY= | ||
| 12 | SHLIB_MAJOR=0 | ||
| 13 | SHLIB_MINOR=9.7 | ||
| 14 | SHLIB_EXT= | ||
| 15 | PLATFORM=dist | ||
| 16 | OPTIONS= no-krb5 | ||
| 17 | CONFIGURE_ARGS=dist | ||
| 18 | SHLIB_TARGET= | ||
| 19 | |||
| 20 | # HERE indicates where this Makefile lives. This can be used to indicate | ||
| 21 | # where sub-Makefiles are expected to be. Currently has very limited usage, | ||
| 22 | # and should probably not be bothered with at all. | ||
| 23 | HERE=. | ||
| 24 | |||
| 25 | # INSTALL_PREFIX is for package builders so that they can configure | ||
| 26 | # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/. | ||
| 27 | # Normally it is left empty. | ||
| 28 | INSTALL_PREFIX= | ||
| 29 | INSTALLTOP=/usr/local/ssl | ||
| 30 | |||
| 31 | # Do not edit this manually. Use Configure --openssldir=DIR do change this! | ||
| 32 | OPENSSLDIR=/usr/local/ssl | ||
| 33 | |||
| 34 | # NO_IDEA - Define to build without the IDEA algorithm | ||
| 35 | # NO_RC4 - Define to build without the RC4 algorithm | ||
| 36 | # NO_RC2 - Define to build without the RC2 algorithm | ||
| 37 | # THREADS - Define when building with threads, you will probably also need any | ||
| 38 | # system defines as well, i.e. _REENTERANT for Solaris 2.[34] | ||
| 39 | # TERMIO - Define the termio terminal subsystem, needed if sgtty is missing. | ||
| 40 | # TERMIOS - Define the termios terminal subsystem, Silicon Graphics. | ||
| 41 | # LONGCRYPT - Define to use HPUX 10.x's long password modification to crypt(3). | ||
| 42 | # DEVRANDOM - Give this the value of the 'random device' if your OS supports | ||
| 43 | # one. 32 bytes will be read from this when the random | ||
| 44 | # number generator is initalised. | ||
| 45 | # SSL_FORBID_ENULL - define if you want the server to be not able to use the | ||
| 46 | # NULL encryption ciphers. | ||
| 47 | # | ||
| 48 | # LOCK_DEBUG - turns on lots of lock debug output :-) | ||
| 49 | # REF_CHECK - turn on some xyz_free() assertions. | ||
| 50 | # REF_PRINT - prints some stuff on structure free. | ||
| 51 | # CRYPTO_MDEBUG - turns on my 'memory leak' detecting stuff | ||
| 52 | # MFUNC - Make all Malloc/Free/Realloc calls call | ||
| 53 | # CRYPTO_malloc/CRYPTO_free/CRYPTO_realloc which can be setup to | ||
| 54 | # call application defined callbacks via CRYPTO_set_mem_functions() | ||
| 55 | # MD5_ASM needs to be defined to use the x86 assembler for MD5 | ||
| 56 | # SHA1_ASM needs to be defined to use the x86 assembler for SHA1 | ||
| 57 | # RMD160_ASM needs to be defined to use the x86 assembler for RIPEMD160 | ||
| 58 | # Do not define B_ENDIAN or L_ENDIAN if 'unsigned long' == 8. It must | ||
| 59 | # equal 4. | ||
| 60 | # PKCS1_CHECK - pkcs1 tests. | ||
| 61 | |||
| 62 | CC= cc | ||
| 63 | #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM | ||
| 64 | CFLAG= -DOPENSSL_NO_KRB5 -O | ||
| 65 | DEPFLAG= | ||
| 66 | PEX_LIBS= | ||
| 67 | EX_LIBS= | ||
| 68 | EXE_EXT= | ||
| 69 | ARFLAGS= | ||
| 70 | AR=ar $(ARFLAGS) r | ||
| 71 | RANLIB= /usr/bin/ranlib | ||
| 72 | PERL= /usr/bin/perl | ||
| 73 | TAR= tar | ||
| 74 | TARFLAGS= --no-recursion | ||
| 75 | MAKEDEPPROG=makedepend | ||
| 76 | |||
| 77 | # We let the C compiler driver to take care of .s files. This is done in | ||
| 78 | # order to be excused from maintaining a separate set of architecture | ||
| 79 | # dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC | ||
| 80 | # gcc, then the driver will automatically translate it to -xarch=v8plus | ||
| 81 | # and pass it down to assembler. | ||
| 82 | AS=$(CC) -c | ||
| 83 | ASFLAG=$(CFLAG) | ||
| 84 | |||
| 85 | # Set BN_ASM to bn_asm.o if you want to use the C version | ||
| 86 | BN_ASM= bn_asm.o | ||
| 87 | #BN_ASM= bn_asm.o | ||
| 88 | #BN_ASM= asm/bn86-elf.o # elf, linux-elf | ||
| 89 | #BN_ASM= asm/bn86-sol.o # solaris | ||
| 90 | #BN_ASM= asm/bn86-out.o # a.out, FreeBSD | ||
| 91 | #BN_ASM= asm/bn86bsdi.o # bsdi | ||
| 92 | #BN_ASM= asm/alpha.o # DEC Alpha | ||
| 93 | #BN_ASM= asm/pa-risc2.o # HP-UX PA-RISC | ||
| 94 | #BN_ASM= asm/r3000.o # SGI MIPS cpu | ||
| 95 | #BN_ASM= asm/sparc.o # Sun solaris/SunOS | ||
| 96 | #BN_ASM= asm/bn-win32.o # Windows 95/NT | ||
| 97 | #BN_ASM= asm/x86w16.o # 16 bit code for Windows 3.1/DOS | ||
| 98 | #BN_ASM= asm/x86w32.o # 32 bit code for Windows 3.1 | ||
| 99 | |||
| 100 | # For x86 assembler: Set PROCESSOR to 386 if you want to support | ||
| 101 | # the 80386. | ||
| 102 | PROCESSOR= | ||
| 103 | |||
| 104 | # Set DES_ENC to des_enc.o if you want to use the C version | ||
| 105 | #There are 4 x86 assember options. | ||
| 106 | FIPS_DES_ENC= | ||
| 107 | DES_ENC= des_enc.o fcrypt_b.o | ||
| 108 | #DES_ENC= des_enc.o fcrypt_b.o # C | ||
| 109 | #DES_ENC= asm/dx86-elf.o asm/yx86-elf.o # elf | ||
| 110 | #DES_ENC= asm/dx86-sol.o asm/yx86-sol.o # solaris | ||
| 111 | #DES_ENC= asm/dx86-out.o asm/yx86-out.o # a.out, FreeBSD | ||
| 112 | #DES_ENC= asm/dx86bsdi.o asm/yx86bsdi.o # bsdi | ||
| 113 | |||
| 114 | # Set BF_ENC to bf_enc.o if you want to use the C version | ||
| 115 | #There are 4 x86 assember options. | ||
| 116 | BF_ENC= bf_enc.o | ||
| 117 | #BF_ENC= bf_enc.o | ||
| 118 | #BF_ENC= asm/bx86-elf.o # elf | ||
| 119 | #BF_ENC= asm/bx86-sol.o # solaris | ||
| 120 | #BF_ENC= asm/bx86-out.o # a.out, FreeBSD | ||
| 121 | #BF_ENC= asm/bx86bsdi.o # bsdi | ||
| 122 | |||
| 123 | # Set CAST_ENC to c_enc.o if you want to use the C version | ||
| 124 | #There are 4 x86 assember options. | ||
| 125 | CAST_ENC= c_enc.o | ||
| 126 | #CAST_ENC= c_enc.o | ||
| 127 | #CAST_ENC= asm/cx86-elf.o # elf | ||
| 128 | #CAST_ENC= asm/cx86-sol.o # solaris | ||
| 129 | #CAST_ENC= asm/cx86-out.o # a.out, FreeBSD | ||
| 130 | #CAST_ENC= asm/cx86bsdi.o # bsdi | ||
| 131 | |||
| 132 | # Set RC4_ENC to rc4_enc.o if you want to use the C version | ||
| 133 | #There are 4 x86 assember options. | ||
| 134 | RC4_ENC= rc4_enc.o | ||
| 135 | #RC4_ENC= rc4_enc.o | ||
| 136 | #RC4_ENC= asm/rx86-elf.o # elf | ||
| 137 | #RC4_ENC= asm/rx86-sol.o # solaris | ||
| 138 | #RC4_ENC= asm/rx86-out.o # a.out, FreeBSD | ||
| 139 | #RC4_ENC= asm/rx86bsdi.o # bsdi | ||
| 140 | |||
| 141 | # Set RC5_ENC to rc5_enc.o if you want to use the C version | ||
| 142 | #There are 4 x86 assember options. | ||
| 143 | RC5_ENC= rc5_enc.o | ||
| 144 | #RC5_ENC= rc5_enc.o | ||
| 145 | #RC5_ENC= asm/r586-elf.o # elf | ||
| 146 | #RC5_ENC= asm/r586-sol.o # solaris | ||
| 147 | #RC5_ENC= asm/r586-out.o # a.out, FreeBSD | ||
| 148 | #RC5_ENC= asm/r586bsdi.o # bsdi | ||
| 149 | |||
| 150 | # Also need MD5_ASM defined | ||
| 151 | MD5_ASM_OBJ= | ||
| 152 | #MD5_ASM_OBJ= asm/mx86-elf.o # elf | ||
| 153 | #MD5_ASM_OBJ= asm/mx86-sol.o # solaris | ||
| 154 | #MD5_ASM_OBJ= asm/mx86-out.o # a.out, FreeBSD | ||
| 155 | #MD5_ASM_OBJ= asm/mx86bsdi.o # bsdi | ||
| 156 | |||
| 157 | # Also need SHA1_ASM defined | ||
| 158 | SHA1_ASM_OBJ= | ||
| 159 | FIPS_SHA1_ASM_OBJ= | ||
| 160 | #SHA1_ASM_OBJ= asm/sx86-elf.o # elf | ||
| 161 | #SHA1_ASM_OBJ= asm/sx86-sol.o # solaris | ||
| 162 | #SHA1_ASM_OBJ= asm/sx86-out.o # a.out, FreeBSD | ||
| 163 | #SHA1_ASM_OBJ= asm/sx86bsdi.o # bsdi | ||
| 164 | |||
| 165 | # Also need RMD160_ASM defined | ||
| 166 | RMD160_ASM_OBJ= | ||
| 167 | #RMD160_ASM_OBJ= asm/rm86-elf.o # elf | ||
| 168 | #RMD160_ASM_OBJ= asm/rm86-sol.o # solaris | ||
| 169 | #RMD160_ASM_OBJ= asm/rm86-out.o # a.out, FreeBSD | ||
| 170 | #RMD160_ASM_OBJ= asm/rm86bsdi.o # bsdi | ||
| 171 | |||
| 172 | # KRB5 stuff | ||
| 173 | KRB5_INCLUDES= | ||
| 174 | LIBKRB5= | ||
| 175 | |||
| 176 | # When we're prepared to use shared libraries in the programs we link here | ||
| 177 | # we might set SHLIB_MARK to '$(SHARED_LIBS)'. | ||
| 178 | SHLIB_MARK= | ||
| 179 | |||
| 180 | DIRS= crypto fips ssl $(SHLIB_MARK) sigs apps test tools | ||
| 181 | SHLIBDIRS= crypto ssl | ||
| 182 | |||
| 183 | # dirs in crypto to build | ||
| 184 | SDIRS= objects \ | ||
| 185 | md2 md4 md5 sha mdc2 hmac ripemd \ | ||
| 186 | des rc2 rc4 rc5 idea bf cast \ | ||
| 187 | bn ec rsa dsa dh dso engine aes \ | ||
| 188 | buffer bio stack lhash rand err \ | ||
| 189 | evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 | ||
| 190 | |||
| 191 | FDIRS= sha1 rand des aes dsa rsa dh | ||
| 192 | |||
| 193 | # tests to perform. "alltests" is a special word indicating that all tests | ||
| 194 | # should be performed. | ||
| 195 | TESTS = alltests | ||
| 196 | |||
| 197 | MAKEFILE= Makefile | ||
| 198 | |||
| 199 | MANDIR=$(OPENSSLDIR)/man | ||
| 200 | MAN1=1 | ||
| 201 | MAN3=3 | ||
| 202 | MANSUFFIX= | ||
| 203 | SHELL=/bin/sh | ||
| 204 | |||
| 205 | TOP= . | ||
| 206 | ONEDIRS=out tmp | ||
| 207 | EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS | ||
| 208 | WDIRS= windows | ||
| 209 | LIBS= libcrypto.a libssl.a | ||
| 210 | SIGS= libcrypto.a.sha1 | ||
| 211 | SHARED_CRYPTO=libcrypto$(SHLIB_EXT) | ||
| 212 | SHARED_SSL=libssl$(SHLIB_EXT) | ||
| 213 | SHARED_LIBS= | ||
| 214 | SHARED_LIBS_LINK_EXTS= | ||
| 215 | SHARED_LDFLAGS= | ||
| 216 | |||
| 217 | GENERAL= Makefile | ||
| 218 | BASENAME= openssl | ||
| 219 | NAME= $(BASENAME)-$(VERSION) | ||
| 220 | TARFILE= $(NAME).tar | ||
| 221 | WTARFILE= $(NAME)-win.tar | ||
| 222 | EXHEADER= e_os2.h | ||
| 223 | HEADER= e_os.h | ||
| 224 | |||
| 225 | # When we're prepared to use shared libraries in the programs we link here | ||
| 226 | # we might remove 'clean-shared' from the targets to perform at this stage | ||
| 227 | |||
| 228 | all: Makefile sub_all openssl.pc | ||
| 229 | |||
| 230 | sigs: $(SIGS) | ||
| 231 | libcrypto.a.sha1: libcrypto.a | ||
| 232 | @if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 233 | $(RANLIB) libcrypto.a; \ | ||
| 234 | fips/sha1/fips_standalone_sha1 libcrypto.a > libcrypto.a.sha1; \ | ||
| 235 | fi | ||
| 236 | |||
| 237 | sub_all: | ||
| 238 | @for i in $(DIRS); \ | ||
| 239 | do \ | ||
| 240 | if [ -d "$$i" ]; then \ | ||
| 241 | (cd $$i && echo "making all in $$i..." && \ | ||
| 242 | $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' AS='${AS}' ASFLAG='${ASFLAG}' SDIRS='$(SDIRS)' FDIRS='$(FDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' all ) || exit 1; \ | ||
| 243 | else \ | ||
| 244 | $(MAKE) $$i; \ | ||
| 245 | fi; \ | ||
| 246 | done; | ||
| 247 | |||
| 248 | sub_target: | ||
| 249 | @for i in $(DIRS); \ | ||
| 250 | do \ | ||
| 251 | if [ -d "$$i" ]; then \ | ||
| 252 | (cd $$i && echo "making $(TARGET) in $$i..." && \ | ||
| 253 | $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' AS='${AS}' ASFLAG='${ASFLAG}' SDIRS='$(SDIRS)' FDIRS='$(FDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' TARGET='$(TARGET)' sub_target ) || exit 1; \ | ||
| 254 | else \ | ||
| 255 | $(MAKE) $$i; \ | ||
| 256 | fi; \ | ||
| 257 | done; | ||
| 258 | |||
| 259 | libcrypto$(SHLIB_EXT): libcrypto.a | ||
| 260 | @if [ "$(SHLIB_TARGET)" != "" ]; then \ | ||
| 261 | $(MAKE) SHLIBDIRS=crypto build-shared; \ | ||
| 262 | else \ | ||
| 263 | echo "There's no support for shared libraries on this platform" >&2; \ | ||
| 264 | fi | ||
| 265 | |||
| 266 | libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a | ||
| 267 | @if [ "$(SHLIB_TARGET)" != "" ]; then \ | ||
| 268 | $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \ | ||
| 269 | else \ | ||
| 270 | echo "There's no support for shared libraries on this platform" >&2; \ | ||
| 271 | fi | ||
| 272 | |||
| 273 | clean-shared: | ||
| 274 | @for i in $(SHLIBDIRS); do \ | ||
| 275 | if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ | ||
| 276 | tmp="$(SHARED_LIBS_LINK_EXTS)"; \ | ||
| 277 | for j in $${tmp:-x}; do \ | ||
| 278 | ( set -x; rm -f lib$$i$$j ); \ | ||
| 279 | done; \ | ||
| 280 | fi; \ | ||
| 281 | ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \ | ||
| 282 | if [ "$(PLATFORM)" = "Cygwin" ]; then \ | ||
| 283 | ( set -x; rm -f cyg$$i-$(SHLIB_VERSION_NUMBER)$(SHLIB_EXT) lib$$i$(SHLIB_EXT).a ); \ | ||
| 284 | fi; \ | ||
| 285 | done | ||
| 286 | |||
| 287 | link-shared: | ||
| 288 | @if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ | ||
| 289 | tmp="$(SHARED_LIBS_LINK_EXTS)"; \ | ||
| 290 | for i in $(SHLIBDIRS); do \ | ||
| 291 | prev=lib$$i$(SHLIB_EXT); \ | ||
| 292 | for j in $${tmp:-x}; do \ | ||
| 293 | ( set -x; \ | ||
| 294 | rm -f lib$$i$$j; ln -s $$prev lib$$i$$j ); \ | ||
| 295 | prev=lib$$i$$j; \ | ||
| 296 | done; \ | ||
| 297 | done; \ | ||
| 298 | fi | ||
| 299 | |||
| 300 | build-shared: clean-shared do_$(SHLIB_TARGET) link-shared | ||
| 301 | |||
| 302 | do_bsd-gcc-shared: do_gnu-shared | ||
| 303 | do_linux-shared: do_gnu-shared | ||
| 304 | do_gnu-shared: | ||
| 305 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 306 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 307 | libs="$(LIBKRB5) $$libs"; \ | ||
| 308 | fi; \ | ||
| 309 | ( set -x; ${CC} ${SHARED_LDFLAGS} \ | ||
| 310 | -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 311 | -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 312 | -Wl,-Bsymbolic \ | ||
| 313 | -Wl,--whole-archive lib$$i.a \ | ||
| 314 | -Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \ | ||
| 315 | libs="-l$$i $$libs"; \ | ||
| 316 | done | ||
| 317 | |||
| 318 | DETECT_GNU_LD=(${CC} -Wl,-V /dev/null 2>&1 | grep '^GNU ld' )>/dev/null | ||
| 319 | |||
| 320 | # For Darwin AKA Mac OS/X (dyld) | ||
| 321 | do_darwin-shared: | ||
| 322 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 323 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 324 | libs="$(LIBKRB5) $$libs"; \ | ||
| 325 | fi; \ | ||
| 326 | ( set -x; ${CC} --verbose -dynamiclib -o lib$$i${SHLIB_EXT} \ | ||
| 327 | lib$$i.a $$libs -all_load -current_version ${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 328 | -compatibility_version ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | cut -d. -f1` \ | ||
| 329 | -install_name ${INSTALLTOP}/lib/lib$$i${SHLIB_EXT} ) || exit 1; \ | ||
| 330 | libs="-l`basename $$i${SHLIB_EXT} .dylib` $$libs"; \ | ||
| 331 | echo "" ; \ | ||
| 332 | done | ||
| 333 | |||
| 334 | do_cygwin-shared: | ||
| 335 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 336 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 337 | libs="$(LIBKRB5) $$libs"; \ | ||
| 338 | fi; \ | ||
| 339 | shlib=cyg$${i}-$(SHLIB_VERSION_NUMBER).dll; \ | ||
| 340 | [ "$(PLATFORM)" = "mingw" ] && shlib=$${i}eay32.dll; \ | ||
| 341 | [ -f apps/$$shlib ] && rm apps/$$shlib; \ | ||
| 342 | [ -f test/$$shlib ] && rm test/$$shlib; \ | ||
| 343 | base=; [ $$i = "crypto" ] && base=-Wl,--image-base,0xFE00000; \ | ||
| 344 | ( set -x; ${CC} ${SHARED_LDFLAGS} \ | ||
| 345 | -shared $$base -o $$shlib \ | ||
| 346 | -Wl,-Bsymbolic \ | ||
| 347 | -Wl,--whole-archive lib$$i.a \ | ||
| 348 | -Wl,--out-implib,lib$$i.dll.a \ | ||
| 349 | -Wl,--no-whole-archive $$libs ${EX_LIBS} ) || exit 1; \ | ||
| 350 | cp -p $$shlib apps/; cp -p $$shlib test/; \ | ||
| 351 | libs="-l$$i $$libs"; \ | ||
| 352 | done | ||
| 353 | |||
| 354 | # This assumes that GNU utilities are *not* used | ||
| 355 | do_alpha-osf1-shared: | ||
| 356 | if ${DETECT_GNU_LD}; then \ | ||
| 357 | $(MAKE) do_gnu-shared; \ | ||
| 358 | else \ | ||
| 359 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 360 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 361 | libs="$(LIBKRB5) $$libs"; \ | ||
| 362 | fi; \ | ||
| 363 | ( set -x; ${CC} ${SHARED_LDFLAGS} \ | ||
| 364 | -shared -o lib$$i.so \ | ||
| 365 | -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ | ||
| 366 | -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ | ||
| 367 | libs="-l$$i $$libs"; \ | ||
| 368 | done; \ | ||
| 369 | fi | ||
| 370 | |||
| 371 | # This assumes that GNU utilities are *not* used | ||
| 372 | # The difference between alpha-osf1-shared and tru64-shared is the `-msym' | ||
| 373 | # option passed to the linker. | ||
| 374 | do_tru64-shared: | ||
| 375 | if ${DETECT_GNU_LD}; then \ | ||
| 376 | $(MAKE) do_gnu-shared; \ | ||
| 377 | else \ | ||
| 378 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 379 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 380 | libs="$(LIBKRB5) $$libs"; \ | ||
| 381 | fi; \ | ||
| 382 | ( set -x; ${CC} ${SHARED_LDFLAGS} \ | ||
| 383 | -shared -msym -o lib$$i.so \ | ||
| 384 | -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ | ||
| 385 | -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ | ||
| 386 | libs="-l$$i $$libs"; \ | ||
| 387 | done; \ | ||
| 388 | fi | ||
| 389 | |||
| 390 | # This assumes that GNU utilities are *not* used | ||
| 391 | # The difference between tru64-shared and tru64-shared-rpath is the | ||
| 392 | # -rpath ${INSTALLTOP}/lib passed to the linker. | ||
| 393 | do_tru64-shared-rpath: | ||
| 394 | if ${DETECT_GNU_LD}; then \ | ||
| 395 | $(MAKE) do_gnu-shared; \ | ||
| 396 | else \ | ||
| 397 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 398 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 399 | libs="$(LIBKRB5) $$libs"; \ | ||
| 400 | fi; \ | ||
| 401 | ( set -x; ${CC} ${SHARED_LDFLAGS} \ | ||
| 402 | -shared -msym -o lib$$i.so \ | ||
| 403 | -rpath ${INSTALLTOP}/lib \ | ||
| 404 | -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ | ||
| 405 | -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ | ||
| 406 | libs="-l$$i $$libs"; \ | ||
| 407 | done; \ | ||
| 408 | fi | ||
| 409 | |||
| 410 | |||
| 411 | # This assumes that GNU utilities are *not* used | ||
| 412 | do_solaris-shared: | ||
| 413 | if ${DETECT_GNU_LD}; then \ | ||
| 414 | $(MAKE) do_gnu-shared; \ | ||
| 415 | else \ | ||
| 416 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 417 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 418 | libs="$(LIBKRB5) $$libs"; \ | ||
| 419 | fi; \ | ||
| 420 | ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ | ||
| 421 | MINUSZ='-z '; \ | ||
| 422 | (${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \ | ||
| 423 | set -x; ${CC} ${SHARED_LDFLAGS} -G -dy -z text \ | ||
| 424 | -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 425 | -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 426 | -Wl,-Bsymbolic \ | ||
| 427 | $${MINUSZ}allextract lib$$i.a $${MINUSZ}defaultextract \ | ||
| 428 | $$libs ${EX_LIBS} -lc ) || exit 1; \ | ||
| 429 | libs="-l$$i $$libs"; \ | ||
| 430 | done; \ | ||
| 431 | fi | ||
| 432 | |||
| 433 | # OpenServer 5 native compilers used | ||
| 434 | do_svr3-shared: | ||
| 435 | if ${DETECT_GNU_LD}; then \ | ||
| 436 | $(MAKE) do_gnu-shared; \ | ||
| 437 | else \ | ||
| 438 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 439 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 440 | libs="$(LIBKRB5) $$libs"; \ | ||
| 441 | fi; \ | ||
| 442 | ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ | ||
| 443 | find . -name "*.o" -print > allobjs ; \ | ||
| 444 | OBJS= ; export OBJS ; \ | ||
| 445 | for obj in `ar t lib$$i.a` ; do \ | ||
| 446 | OBJS="$${OBJS} `grep /$$obj allobjs`" ; \ | ||
| 447 | done ; \ | ||
| 448 | set -x; ${CC} ${SHARED_LDFLAGS} \ | ||
| 449 | -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 450 | -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 451 | $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \ | ||
| 452 | libs="-l$$i $$libs"; \ | ||
| 453 | done; \ | ||
| 454 | fi | ||
| 455 | |||
| 456 | # UnixWare 7 and OpenUNIX 8 native compilers used | ||
| 457 | do_svr5-shared: | ||
| 458 | if ${DETECT_GNU_LD}; then \ | ||
| 459 | $(MAKE) do_gnu-shared; \ | ||
| 460 | else \ | ||
| 461 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 462 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 463 | libs="$(LIBKRB5) $$libs"; \ | ||
| 464 | fi; \ | ||
| 465 | ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ | ||
| 466 | SHARE_FLAG='-G'; \ | ||
| 467 | (${CC} -v 2>&1 | grep gcc) > /dev/null && SHARE_FLAG='-shared'; \ | ||
| 468 | find . -name "*.o" -print > allobjs ; \ | ||
| 469 | OBJS= ; export OBJS ; \ | ||
| 470 | for obj in `ar t lib$$i.a` ; do \ | ||
| 471 | OBJS="$${OBJS} `grep /$$obj allobjs`" ; \ | ||
| 472 | done ; \ | ||
| 473 | set -x; LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \ | ||
| 474 | ${CC} ${SHARED_LDFLAGS} \ | ||
| 475 | $${SHARE_FLAG} -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 476 | -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 477 | $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \ | ||
| 478 | libs="-l$$i $$libs"; \ | ||
| 479 | done; \ | ||
| 480 | fi | ||
| 481 | |||
| 482 | # This assumes that GNU utilities are *not* used | ||
| 483 | do_irix-shared: | ||
| 484 | if ${DETECT_GNU_LD}; then \ | ||
| 485 | $(MAKE) do_gnu-shared; \ | ||
| 486 | else \ | ||
| 487 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 488 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 489 | libs="$(LIBKRB5) $$libs"; \ | ||
| 490 | fi; \ | ||
| 491 | ( WHOLELIB="-all lib$$i.a -none"; \ | ||
| 492 | (${CC} -v 2>&1 | grep gcc) > /dev/null && WHOLELIB="-Wl,-all,lib$$i.a,-none"; \ | ||
| 493 | set -x; ${CC} ${SHARED_LDFLAGS} \ | ||
| 494 | -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 495 | -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | ||
| 496 | $${WHOLELIB} $$libs ${EX_LIBS} -lc) || exit 1; \ | ||
| 497 | libs="-l$$i $$libs"; \ | ||
| 498 | done; \ | ||
| 499 | fi | ||
| 500 | |||
| 501 | # This assumes that GNU utilities are *not* used | ||
| 502 | # HP-UX includes the full pathname of libs we depend on, so we would get | ||
| 503 | # ./libcrypto (with ./ as path information) compiled into libssl, hence | ||
| 504 | # we omit the SHLIBDEPS. Applications must be linked with -lssl -lcrypto | ||
| 505 | # anyway. | ||
| 506 | # The object modules are loaded from lib$i.a using the undocumented -Fl | ||
| 507 | # option. | ||
| 508 | # | ||
| 509 | # WARNING: Until DSO is fixed to support a search path, we support SHLIB_PATH | ||
| 510 | # by temporarily specifying "+s"! | ||
| 511 | # | ||
| 512 | do_hpux-shared: | ||
| 513 | for i in ${SHLIBDIRS}; do \ | ||
| 514 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 515 | libs="$(LIBKRB5) $$libs"; \ | ||
| 516 | fi; \ | ||
| 517 | if expr $(PLATFORM) : '.*ia64' > /dev/null; then \ | ||
| 518 | shlib=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}; \ | ||
| 519 | else \ | ||
| 520 | shlib=lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR}; \ | ||
| 521 | fi; \ | ||
| 522 | [ -f $$shlib ] && rm -f $$shlib; \ | ||
| 523 | ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ | ||
| 524 | +vnocompatwarnings \ | ||
| 525 | -b -z +s \ | ||
| 526 | -o $$shlib +h $$shlib \ | ||
| 527 | -Fl lib$$i.a -ldld -lc ) || exit 1; \ | ||
| 528 | chmod a=rx $$shlib; \ | ||
| 529 | done | ||
| 530 | |||
| 531 | # This assumes that GNU utilities are *not* used | ||
| 532 | # HP-UX includes the full pathname of libs we depend on, so we would get | ||
| 533 | # ./libcrypto (with ./ as path information) compiled into libssl, hence | ||
| 534 | # we omit the SHLIBDEPS. Applications must be linked with -lssl -lcrypto | ||
| 535 | # anyway. | ||
| 536 | # | ||
| 537 | # HP-UX in 64bit mode has "+s" enabled by default; it will search for | ||
| 538 | # shared libraries along LD_LIBRARY_PATH _and_ SHLIB_PATH. | ||
| 539 | # | ||
| 540 | do_hpux64-shared: | ||
| 541 | for i in ${SHLIBDIRS}; do \ | ||
| 542 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 543 | libs="$(LIBKRB5) $$libs"; \ | ||
| 544 | fi; \ | ||
| 545 | if expr $(PLATFORM) : '.*ia64' > /dev/null; then \ | ||
| 546 | shlib=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}; \ | ||
| 547 | else \ | ||
| 548 | shlib=lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR}; \ | ||
| 549 | fi; \ | ||
| 550 | [ -f $$shlib ] && rm -f $$shlib; \ | ||
| 551 | ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ | ||
| 552 | -b -z \ | ||
| 553 | -o $$shlib +h $$shlib \ | ||
| 554 | +forceload lib$$i.a -ldl -lc ) || exit 1; \ | ||
| 555 | chmod a=rx $$shlib; \ | ||
| 556 | done | ||
| 557 | |||
| 558 | # The following method is said to work on all platforms. Tests will | ||
| 559 | # determine if that's how it's gong to be used. | ||
| 560 | # This assumes that for all but GNU systems, GNU utilities are *not* used. | ||
| 561 | # ALLSYMSFLAGS would be: | ||
| 562 | # GNU systems: --whole-archive | ||
| 563 | # Tru64 Unix: -all | ||
| 564 | # Solaris: -z allextract | ||
| 565 | # Irix: -all | ||
| 566 | # HP/UX-32bit: -Fl | ||
| 567 | # HP/UX-64bit: +forceload | ||
| 568 | # AIX: -bnogc | ||
| 569 | # SHAREDFLAGS would be: | ||
| 570 | # GNU systems: -shared -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} | ||
| 571 | # Tru64 Unix: -shared \ | ||
| 572 | # -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" | ||
| 573 | # Solaris: -G -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} | ||
| 574 | # Irix: -shared -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} | ||
| 575 | # HP/UX-32bit: +vnocompatwarnings -b -z +s \ | ||
| 576 | # +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} | ||
| 577 | # HP/UX-64bit: -b -z +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} | ||
| 578 | # AIX: -G -bE:lib$$i.exp -bM:SRE | ||
| 579 | # SHAREDCMD would be: | ||
| 580 | # GNU systems: $(CC) | ||
| 581 | # Tru64 Unix: $(CC) | ||
| 582 | # Solaris: $(CC) | ||
| 583 | # Irix: $(CC) | ||
| 584 | # HP/UX-32bit: /usr/ccs/bin/ld | ||
| 585 | # HP/UX-64bit: /usr/ccs/bin/ld | ||
| 586 | # AIX: $(CC) | ||
| 587 | ALLSYMSFLAG=-bnogc | ||
| 588 | SHAREDFLAGS=${SHARED_LDFLAGS} -G -bE:lib$$i.exp -bM:SRE | ||
| 589 | SHAREDCMD=$(CC) | ||
| 590 | do_aix-shared: | ||
| 591 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 592 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 593 | libs="$(LIBKRB5) $$libs"; \ | ||
| 594 | fi; \ | ||
| 595 | ( set -x; \ | ||
| 596 | OBJECT_MODE=`expr x${SHARED_LDFLAGS} : 'x\-[a-z]\([0-9]*\)'`; \ | ||
| 597 | OBJECT_MODE=$${OBJECT_MODE:-32}; export OBJECT_MODE; \ | ||
| 598 | ld -r -o lib$$i.o $(ALLSYMSFLAG) lib$$i.a && \ | ||
| 599 | ( nm -Pg lib$$i.o | grep ' [BD] ' | cut -f1 -d' ' > lib$$i.exp; \ | ||
| 600 | $(SHAREDCMD) $(SHAREDFLAGS) \ | ||
| 601 | -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib$$i.o \ | ||
| 602 | $$libs ${EX_LIBS} ) ) \ | ||
| 603 | || exit 1; \ | ||
| 604 | libs="-l$$i $$libs"; \ | ||
| 605 | done | ||
| 606 | |||
| 607 | do_reliantunix-shared: | ||
| 608 | libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | ||
| 609 | if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | ||
| 610 | libs="$(LIBKRB5) $$libs"; \ | ||
| 611 | fi; \ | ||
| 612 | tmpdir=/tmp/openssl.$$$$ ; rm -rf $$tmpdir ; \ | ||
| 613 | ( set -x; \ | ||
| 614 | ( Opwd=`pwd` ; mkdir $$tmpdir || exit 1; \ | ||
| 615 | cd $$tmpdir || exit 1 ; ar x $$Opwd/lib$$i.a ; \ | ||
| 616 | ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} *.o \ | ||
| 617 | ) || exit 1; \ | ||
| 618 | cp $$tmpdir/lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} . ; \ | ||
| 619 | ) || exit 1; \ | ||
| 620 | rm -rf $$tmpdir ; \ | ||
| 621 | libs="-l$$i $$libs"; \ | ||
| 622 | done | ||
| 623 | |||
| 624 | openssl.pc: Makefile | ||
| 625 | @ ( echo 'prefix=$(INSTALLTOP)'; \ | ||
| 626 | echo 'exec_prefix=$${prefix}'; \ | ||
| 627 | echo 'libdir=$${exec_prefix}/lib'; \ | ||
| 628 | echo 'includedir=$${prefix}/include'; \ | ||
| 629 | echo ''; \ | ||
| 630 | echo 'Name: OpenSSL'; \ | ||
| 631 | echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \ | ||
| 632 | echo 'Version: '$(VERSION); \ | ||
| 633 | echo 'Requires: '; \ | ||
| 634 | echo 'Libs: -L$${libdir} -lssl -lcrypto $(LIBKRB5) $(EX_LIBS)'; \ | ||
| 635 | echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc | ||
| 636 | |||
| 637 | Makefile: Makefile.org | ||
| 638 | @echo "Makefile is older than Makefile.org." | ||
| 639 | @echo "Reconfigure the source tree (via './config' or 'perl Configure'), please." | ||
| 640 | @false | ||
| 641 | |||
| 642 | libclean: | ||
| 643 | rm -f *.map *.so *.so.* engines/*.so *.a */lib */*/lib | ||
| 644 | |||
| 645 | clean: libclean | ||
| 646 | rm -f shlib/*.o *.o core a.out fluff rehash.time testlog make.log cctest cctest.c | ||
| 647 | @for i in $(DIRS) ;\ | ||
| 648 | do \ | ||
| 649 | if [ -d "$$i" ]; then \ | ||
| 650 | (cd $$i && echo "making clean in $$i..." && \ | ||
| 651 | $(MAKE) EXE_EXT='${EXE_EXT}' SDIRS='${SDIRS}' clean ) || exit 1; \ | ||
| 652 | rm -f $(LIBS); \ | ||
| 653 | fi; \ | ||
| 654 | done; | ||
| 655 | rm -f openssl.pc | ||
| 656 | rm -f speed.* .pure | ||
| 657 | rm -f $(TARFILE) | ||
| 658 | @for i in $(ONEDIRS) ;\ | ||
| 659 | do \ | ||
| 660 | rm -fr $$i/*; \ | ||
| 661 | done | ||
| 662 | |||
| 663 | makefile.one: files | ||
| 664 | $(PERL) util/mk1mf.pl >makefile.one; \ | ||
| 665 | sh util/do_ms.sh | ||
| 666 | |||
| 667 | files: | ||
| 668 | $(PERL) $(TOP)/util/files.pl Makefile > $(TOP)/MINFO | ||
| 669 | @for i in $(DIRS) ;\ | ||
| 670 | do \ | ||
| 671 | if [ -d "$$i" ]; then \ | ||
| 672 | (cd $$i && echo "making 'files' in $$i..." && \ | ||
| 673 | $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' files ) || exit 1; \ | ||
| 674 | fi; \ | ||
| 675 | done; | ||
| 676 | |||
| 677 | links: | ||
| 678 | @$(PERL) $(TOP)/util/mkdir-p.pl include/openssl | ||
| 679 | @$(PERL) $(TOP)/util/mklink.pl include/openssl $(EXHEADER) | ||
| 680 | @for i in $(DIRS); do \ | ||
| 681 | if [ -d "$$i" ]; then \ | ||
| 682 | (cd $$i && echo "making links in $$i..." && \ | ||
| 683 | $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PERL='${PERL}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' links ) || exit 1; \ | ||
| 684 | fi; \ | ||
| 685 | done; | ||
| 686 | |||
| 687 | gentests: | ||
| 688 | @(cd test && echo "generating dummy tests (if needed)..." && \ | ||
| 689 | $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' TESTS='${TESTS}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' TESTS='${TESTS}' OPENSSL_DEBUG_MEMORY=on generate ); | ||
| 690 | |||
| 691 | dclean: | ||
| 692 | rm -f *.bak | ||
| 693 | @for i in $(DIRS) ;\ | ||
| 694 | do \ | ||
| 695 | if [ -d "$$i" ]; then \ | ||
| 696 | (cd $$i && echo "making dclean in $$i..." && \ | ||
| 697 | $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' dclean ) || exit 1; \ | ||
| 698 | fi; \ | ||
| 699 | done; | ||
| 700 | |||
| 701 | rehash: rehash.time | ||
| 702 | rehash.time: certs | ||
| 703 | @(OPENSSL="`pwd`/util/opensslwrap.sh"; \ | ||
| 704 | OPENSSL_DEBUG_MEMORY=on; \ | ||
| 705 | export OPENSSL OPENSSL_DEBUG_MEMORY; \ | ||
| 706 | $(PERL) tools/c_rehash certs) | ||
| 707 | touch rehash.time | ||
| 708 | |||
| 709 | test: tests | ||
| 710 | |||
| 711 | tests: rehash | ||
| 712 | @(cd test && echo "testing..." && \ | ||
| 713 | $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' TESTS='${TESTS}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' TESTS='${TESTS}' OPENSSL_DEBUG_MEMORY=on tests ); | ||
| 714 | util/shlib_wrap.sh apps/openssl version -a | ||
| 715 | |||
| 716 | report: | ||
| 717 | @$(PERL) util/selftest.pl | ||
| 718 | |||
| 719 | depend: | ||
| 720 | @for i in $(DIRS) ;\ | ||
| 721 | do \ | ||
| 722 | if [ -d "$$i" ]; then \ | ||
| 723 | (cd $$i && echo "making dependencies $$i..." && \ | ||
| 724 | $(MAKE) SDIRS='${SDIRS}' CFLAG='${CFLAG}' DEPFLAG='${DEPFLAG}' MAKEDEPPROG='${MAKEDEPPROG}' KRB5_INCLUDES='${KRB5_INCLUDES}' PERL='${PERL}' depend ) || exit 1; \ | ||
| 725 | fi; \ | ||
| 726 | done; | ||
| 727 | |||
| 728 | lint: | ||
| 729 | @for i in $(DIRS) ;\ | ||
| 730 | do \ | ||
| 731 | if [ -d "$$i" ]; then \ | ||
| 732 | (cd $$i && echo "making lint $$i..." && \ | ||
| 733 | $(MAKE) SDIRS='${SDIRS}' lint ) || exit 1; \ | ||
| 734 | fi; \ | ||
| 735 | done; | ||
| 736 | |||
| 737 | tags: | ||
| 738 | rm -f TAGS | ||
| 739 | find . -name '[^.]*.[ch]' | xargs etags -a | ||
| 740 | |||
| 741 | errors: | ||
| 742 | $(PERL) util/mkerr.pl -recurse -write | ||
| 743 | (cd crypto/engine; $(MAKE) PERL=$(PERL) errors) | ||
| 744 | |||
| 745 | stacks: | ||
| 746 | $(PERL) util/mkstack.pl -write | ||
| 747 | |||
| 748 | util/libeay.num:: | ||
| 749 | $(PERL) util/mkdef.pl crypto update | ||
| 750 | |||
| 751 | util/ssleay.num:: | ||
| 752 | $(PERL) util/mkdef.pl ssl update | ||
| 753 | |||
| 754 | crypto/objects/obj_dat.h: crypto/objects/obj_dat.pl crypto/objects/obj_mac.h | ||
| 755 | $(PERL) crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/objects/obj_dat.h | ||
| 756 | crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num | ||
| 757 | $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h | ||
| 758 | |||
| 759 | apps/openssl-vms.cnf: apps/openssl.cnf | ||
| 760 | $(PERL) VMS/VMSify-conf.pl < apps/openssl.cnf > apps/openssl-vms.cnf | ||
| 761 | |||
| 762 | TABLE: Configure | ||
| 763 | (echo 'Output of `Configure TABLE'"':"; \ | ||
| 764 | $(PERL) Configure TABLE) > TABLE | ||
| 765 | |||
| 766 | update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h apps/openssl-vms.cnf TABLE | ||
| 767 | |||
| 768 | # Build distribution tar-file. As the list of files returned by "find" is | ||
| 769 | # pretty long, on several platforms a "too many arguments" error or similar | ||
| 770 | # would occur. Therefore the list of files is temporarily stored into a file | ||
| 771 | # and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal | ||
| 772 | # tar does not support the --files-from option. | ||
| 773 | tar: | ||
| 774 | find . -type d -print | xargs chmod 755 | ||
| 775 | find . -type f -print | xargs chmod a+r | ||
| 776 | find . -type f -perm -0100 -print | xargs chmod a+x | ||
| 777 | find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort > ../$(TARFILE).list; \ | ||
| 778 | $(TAR) $(TARFLAGS) --files-from ../$(TARFILE).list -cvf - | \ | ||
| 779 | tardy --user_number=0 --user_name=openssl \ | ||
| 780 | --group_number=0 --group_name=openssl \ | ||
| 781 | --prefix=openssl-$(VERSION) - |\ | ||
| 782 | gzip --best >../$(TARFILE).gz; \ | ||
| 783 | rm -f ../$(TARFILE).list; \ | ||
| 784 | ls -l ../$(TARFILE).gz | ||
| 785 | |||
| 786 | tar-snap: | ||
| 787 | @$(TAR) $(TARFLAGS) -cvf - \ | ||
| 788 | `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE \! -name '*.o' \! -name '*.a' \! -name '*.so' \! -name '*.so.*' \! -name 'openssl' \! -name '*test' \! -name '.#*' \! -name '*~' | sort` |\ | ||
| 789 | tardy --user_number=0 --user_name=openssl \ | ||
| 790 | --group_number=0 --group_name=openssl \ | ||
| 791 | --prefix=openssl-$(VERSION) - > ../$(TARFILE);\ | ||
| 792 | ls -l ../$(TARFILE) | ||
| 793 | |||
| 794 | dist: | ||
| 795 | $(PERL) Configure dist | ||
| 796 | @$(MAKE) dist_pem_h | ||
| 797 | @$(MAKE) SDIRS='${SDIRS}' clean | ||
| 798 | @$(MAKE) TAR='${TAR}' TARFLAGS='${TARFLAGS}' tar | ||
| 799 | |||
| 800 | dist_pem_h: | ||
| 801 | (cd crypto/pem; $(MAKE) CC='${CC}' SDIRS='${SDIRS}' CFLAG='${CFLAG}' pem.h; $(MAKE) clean) | ||
| 802 | |||
| 803 | install: all install_docs install_sw | ||
| 804 | |||
| 805 | install_sw: | ||
| 806 | @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ | ||
| 807 | $(INSTALL_PREFIX)$(INSTALLTOP)/lib \ | ||
| 808 | $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig \ | ||
| 809 | $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ | ||
| 810 | $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \ | ||
| 811 | $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \ | ||
| 812 | $(INSTALL_PREFIX)$(OPENSSLDIR)/private | ||
| 813 | @headerlist="$(EXHEADER)"; for i in $$headerlist ;\ | ||
| 814 | do \ | ||
| 815 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 816 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 817 | done; | ||
| 818 | @for i in $(DIRS) ;\ | ||
| 819 | do \ | ||
| 820 | if [ -d "$$i" ]; then \ | ||
| 821 | (cd $$i; echo "installing $$i..."; \ | ||
| 822 | $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' RANLIB='${RANLIB}' EXE_EXT='${EXE_EXT}' install ); \ | ||
| 823 | fi; \ | ||
| 824 | done | ||
| 825 | @for i in $(LIBS) ;\ | ||
| 826 | do \ | ||
| 827 | if [ -f "$$i" ]; then \ | ||
| 828 | ( echo installing $$i; \ | ||
| 829 | cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ | ||
| 830 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 831 | : ; \ | ||
| 832 | else \ | ||
| 833 | $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ | ||
| 834 | fi; \ | ||
| 835 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ | ||
| 836 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \ | ||
| 837 | fi; \ | ||
| 838 | done; | ||
| 839 | @if [ -n "$(SHARED_LIBS)" ]; then \ | ||
| 840 | tmp="$(SHARED_LIBS)"; \ | ||
| 841 | for i in $${tmp:-x}; \ | ||
| 842 | do \ | ||
| 843 | if [ -f "$$i" -o -f "$$i.a" ]; then \ | ||
| 844 | ( echo installing $$i; \ | ||
| 845 | if [ "$(PLATFORM)" != "Cygwin" ]; then \ | ||
| 846 | cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ | ||
| 847 | chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ | ||
| 848 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \ | ||
| 849 | else \ | ||
| 850 | c=`echo $$i | sed 's/^lib\(.*\)\.dll/cyg\1-$(SHLIB_VERSION_NUMBER).dll/'`; \ | ||
| 851 | cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \ | ||
| 852 | chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \ | ||
| 853 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ | ||
| 854 | cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a.new; \ | ||
| 855 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a.new; \ | ||
| 856 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \ | ||
| 857 | fi ); \ | ||
| 858 | fi; \ | ||
| 859 | done; \ | ||
| 860 | ( here="`pwd`"; \ | ||
| 861 | cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ | ||
| 862 | set $(MAKE); \ | ||
| 863 | $$1 -f $$here/Makefile link-shared ); \ | ||
| 864 | if [ "$(INSTALLTOP)" != "/usr" ]; then \ | ||
| 865 | echo 'OpenSSL shared libraries have been installed in:'; \ | ||
| 866 | echo ' $(INSTALLTOP)'; \ | ||
| 867 | echo ''; \ | ||
| 868 | sed -e '1,/^$$/d' doc/openssl-shared.txt; \ | ||
| 869 | fi; \ | ||
| 870 | fi | ||
| 871 | @for i in $(SIGS) ;\ | ||
| 872 | do \ | ||
| 873 | if [ -f "$$i" ]; then \ | ||
| 874 | ( echo installing $$i; \ | ||
| 875 | cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ | ||
| 876 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ | ||
| 877 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \ | ||
| 878 | fi; \ | ||
| 879 | done; | ||
| 880 | cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig | ||
| 881 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/openssl.pc | ||
| 882 | |||
| 883 | install_docs: | ||
| 884 | @$(PERL) $(TOP)/util/mkdir-p.pl \ | ||
| 885 | $(INSTALL_PREFIX)$(MANDIR)/man1 \ | ||
| 886 | $(INSTALL_PREFIX)$(MANDIR)/man3 \ | ||
| 887 | $(INSTALL_PREFIX)$(MANDIR)/man5 \ | ||
| 888 | $(INSTALL_PREFIX)$(MANDIR)/man7 | ||
| 889 | @pod2man="`cd util; ./pod2mantest $(PERL)`"; \ | ||
| 890 | here="`pwd`"; \ | ||
| 891 | filecase=; \ | ||
| 892 | if [ "$(PLATFORM)" = "DJGPP" -o "$(PLATFORM)" = "Cygwin" -o "$(PLATFORM)" = "mingw" ]; then \ | ||
| 893 | filecase=-i; \ | ||
| 894 | fi; \ | ||
| 895 | for i in doc/apps/*.pod; do \ | ||
| 896 | fn=`basename $$i .pod`; \ | ||
| 897 | if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \ | ||
| 898 | echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ | ||
| 899 | (cd `$(PERL) util/dirname.pl $$i`; \ | ||
| 900 | sh -c "$$pod2man \ | ||
| 901 | --section=$$sec --center=OpenSSL \ | ||
| 902 | --release=$(VERSION) `basename $$i`") \ | ||
| 903 | > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \ | ||
| 904 | $(PERL) util/extract-names.pl < $$i | \ | ||
| 905 | grep -v $$filecase "^$$fn\$$" | \ | ||
| 906 | grep -v "[ ]" | \ | ||
| 907 | (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ | ||
| 908 | while read n; do \ | ||
| 909 | $$here/util/point.sh $$fn.$${sec}$(MANSUFFIX) "$$n".$${sec}$(MANSUFFIX); \ | ||
| 910 | done); \ | ||
| 911 | done; \ | ||
| 912 | for i in doc/crypto/*.pod doc/ssl/*.pod; do \ | ||
| 913 | fn=`basename $$i .pod`; \ | ||
| 914 | if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \ | ||
| 915 | echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ | ||
| 916 | (cd `$(PERL) util/dirname.pl $$i`; \ | ||
| 917 | sh -c "$$pod2man \ | ||
| 918 | --section=$$sec --center=OpenSSL \ | ||
| 919 | --release=$(VERSION) `basename $$i`") \ | ||
| 920 | > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \ | ||
| 921 | $(PERL) util/extract-names.pl < $$i | \ | ||
| 922 | grep -v $$filecase "^$$fn\$$" | \ | ||
| 923 | grep -v "[ ]" | \ | ||
| 924 | (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ | ||
| 925 | while read n; do \ | ||
| 926 | $$here/util/point.sh $$fn.$${sec}$(MANSUFFIX) "$$n".$${sec}$(MANSUFFIX); \ | ||
| 927 | done); \ | ||
| 928 | done | ||
| 929 | |||
| 930 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/VMS/VMSify-conf.pl b/src/lib/libssl/src/VMS/VMSify-conf.pl new file mode 100644 index 0000000000..d3be6a29e7 --- /dev/null +++ b/src/lib/libssl/src/VMS/VMSify-conf.pl | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #! /usr/bin/perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | my @directory_vars = ( "dir", "certs", "crl_dir", "new_certs_dir" ); | ||
| 7 | my @file_vars = ( "database", "certificate", "serial", "crlnumber", | ||
| 8 | "crl", "private_key", "RANDFILE" ); | ||
| 9 | while(<STDIN>) { | ||
| 10 | chomp; | ||
| 11 | foreach my $d (@directory_vars) { | ||
| 12 | if (/^(\s*\#?\s*${d}\s*=\s*)\.\/([^\s\#]*)([\s\#].*)$/) { | ||
| 13 | $_ = "$1sys\\\$disk:\[.$2$3"; | ||
| 14 | } elsif (/^(\s*\#?\s*${d}\s*=\s*)(\w[^\s\#]*)([\s\#].*)$/) { | ||
| 15 | $_ = "$1sys\\\$disk:\[.$2$3"; | ||
| 16 | } | ||
| 17 | s/^(\s*\#?\s*${d}\s*=\s*\$\w+)\/([^\s\#]*)([\s\#].*)$/$1.$2\]$3/; | ||
| 18 | while(/^(\s*\#?\s*${d}\s*=\s*(\$\w+\.|sys\\\$disk:\[\.)[\w\.]+)\/([^\]]*)\](.*)$/) { | ||
| 19 | $_ = "$1.$3]$4"; | ||
| 20 | } | ||
| 21 | } | ||
| 22 | foreach my $f (@file_vars) { | ||
| 23 | s/^(\s*\#?\s*${f}\s*=\s*)\.\/(.*)$/$1sys\\\$disk:\[\/$2/; | ||
| 24 | while(/^(\s*\#?\s*${f}\s*=\s*(\$\w+|sys\\\$disk:\[)[^\/]*)\/(\w+\/[^\s\#]*)([\s\#].*)$/) { | ||
| 25 | $_ = "$1.$3$4"; | ||
| 26 | } | ||
| 27 | if (/^(\s*\#?\s*${f}\s*=\s*(\$\w+|sys\\\$disk:\[)[^\/]*)\/(\w+)([\s\#].*)$/) { | ||
| 28 | $_ = "$1]$3.$4"; | ||
| 29 | } elsif (/^(\s*\#?\s*${f}\s*=\s*(\$\w+|sys\\\$disk:\[)[^\/]*)\/([^\s\#]*)([\s\#].*)$/) { | ||
| 30 | $_ = "$1]$3$4"; | ||
| 31 | } | ||
| 32 | } | ||
| 33 | print $_,"\n"; | ||
| 34 | } | ||
diff --git a/src/lib/libssl/src/apps/Makefile b/src/lib/libssl/src/apps/Makefile new file mode 100644 index 0000000000..93dcf765e6 --- /dev/null +++ b/src/lib/libssl/src/apps/Makefile | |||
| @@ -0,0 +1,1168 @@ | |||
| 1 | # | ||
| 2 | # apps/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= apps | ||
| 6 | TOP= .. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I$(TOP) -I../include $(KRB5_INCLUDES) | ||
| 9 | CFLAG= -g -static | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | INSTALLTOP= /usr/local/ssl | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | PERL= perl | ||
| 17 | RM= rm -f | ||
| 18 | # KRB5 stuff | ||
| 19 | KRB5_INCLUDES= | ||
| 20 | LIBKRB5= | ||
| 21 | |||
| 22 | PEX_LIBS= | ||
| 23 | EX_LIBS= | ||
| 24 | EXE_EXT= | ||
| 25 | |||
| 26 | SHLIB_TARGET= | ||
| 27 | |||
| 28 | CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG) | ||
| 29 | |||
| 30 | GENERAL=Makefile makeapps.com install.com | ||
| 31 | |||
| 32 | DLIBCRYPTO=../libcrypto.a | ||
| 33 | DLIBSSL=../libssl.a | ||
| 34 | LIBCRYPTO=-L.. -lcrypto | ||
| 35 | LIBSSL=-L.. -lssl | ||
| 36 | |||
| 37 | PROGRAM= openssl | ||
| 38 | |||
| 39 | SCRIPTS=CA.sh CA.pl | ||
| 40 | |||
| 41 | EXE= $(PROGRAM)$(EXE_EXT) | ||
| 42 | |||
| 43 | E_EXE= verify asn1pars req dgst dh dhparam enc passwd gendh errstr \ | ||
| 44 | ca crl rsa rsautl dsa dsaparam \ | ||
| 45 | x509 genrsa gendsa s_server s_client speed \ | ||
| 46 | s_time version pkcs7 crl2pkcs7 sess_id ciphers nseq pkcs12 \ | ||
| 47 | pkcs8 spkac smime rand engine ocsp prime | ||
| 48 | |||
| 49 | PROGS= $(PROGRAM).c | ||
| 50 | |||
| 51 | A_OBJ=apps.o | ||
| 52 | A_SRC=apps.c | ||
| 53 | S_OBJ= s_cb.o s_socket.o | ||
| 54 | S_SRC= s_cb.c s_socket.c | ||
| 55 | RAND_OBJ=app_rand.o | ||
| 56 | RAND_SRC=app_rand.c | ||
| 57 | |||
| 58 | E_OBJ= verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o \ | ||
| 59 | ca.o pkcs7.o crl2p7.o crl.o \ | ||
| 60 | rsa.o rsautl.o dsa.o dsaparam.o \ | ||
| 61 | x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o \ | ||
| 62 | s_time.o $(A_OBJ) $(S_OBJ) $(RAND_OBJ) version.o sess_id.o \ | ||
| 63 | ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o | ||
| 64 | |||
| 65 | E_SRC= verify.c asn1pars.c req.c dgst.c dh.c enc.c passwd.c gendh.c errstr.c ca.c \ | ||
| 66 | pkcs7.c crl2p7.c crl.c \ | ||
| 67 | rsa.c rsautl.c dsa.c dsaparam.c \ | ||
| 68 | x509.c genrsa.c gendsa.c s_server.c s_client.c speed.c \ | ||
| 69 | s_time.c $(A_SRC) $(S_SRC) $(RAND_SRC) version.c sess_id.c \ | ||
| 70 | ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c engine.c ocsp.c prime.c | ||
| 71 | |||
| 72 | SRC=$(E_SRC) | ||
| 73 | |||
| 74 | EXHEADER= | ||
| 75 | HEADER= apps.h progs.h s_apps.h \ | ||
| 76 | testdsa.h testrsa.h \ | ||
| 77 | $(EXHEADER) | ||
| 78 | |||
| 79 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 80 | |||
| 81 | top: | ||
| 82 | @(cd ..; $(MAKE) DIRS=$(DIR) all) | ||
| 83 | |||
| 84 | all: exe | ||
| 85 | |||
| 86 | exe: $(EXE) | ||
| 87 | |||
| 88 | req: sreq.o $(A_OBJ) $(DLIBCRYPTO) | ||
| 89 | LD_LIBRARY_PATH=..:$$LD_LIBRARY_PATH \ | ||
| 90 | $(CC) -o req $(CFLAG) sreq.o $(A_OBJ) $(RAND_OBJ) $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
| 91 | |||
| 92 | sreq.o: req.c | ||
| 93 | $(CC) -c $(INCLUDES) $(CFLAG) -o sreq.o req.c | ||
| 94 | |||
| 95 | files: | ||
| 96 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 97 | |||
| 98 | install: | ||
| 99 | @for i in $(EXE); \ | ||
| 100 | do \ | ||
| 101 | (echo installing $$i; \ | ||
| 102 | cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
| 103 | chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
| 104 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \ | ||
| 105 | done; | ||
| 106 | @for i in $(SCRIPTS); \ | ||
| 107 | do \ | ||
| 108 | (echo installing $$i; \ | ||
| 109 | cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
| 110 | chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
| 111 | mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \ | ||
| 112 | done | ||
| 113 | @cp openssl.cnf $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new; \ | ||
| 114 | chmod 644 $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new; \ | ||
| 115 | mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf | ||
| 116 | |||
| 117 | tags: | ||
| 118 | ctags $(SRC) | ||
| 119 | |||
| 120 | tests: | ||
| 121 | |||
| 122 | links: | ||
| 123 | |||
| 124 | lint: | ||
| 125 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 126 | |||
| 127 | depend: | ||
| 128 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC) | ||
| 129 | |||
| 130 | dclean: | ||
| 131 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 132 | mv -f Makefile.new $(MAKEFILE) | ||
| 133 | |||
| 134 | clean: | ||
| 135 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) | ||
| 136 | rm -f req | ||
| 137 | |||
| 138 | $(DLIBSSL): | ||
| 139 | (cd ..; $(MAKE) DIRS=ssl all) | ||
| 140 | |||
| 141 | $(DLIBCRYPTO): | ||
| 142 | (cd ..; $(MAKE) DIRS=crypto all) | ||
| 143 | |||
| 144 | $(EXE): progs.h $(E_OBJ) $(PROGRAM).o $(DLIBCRYPTO) $(DLIBSSL) | ||
| 145 | $(RM) $(EXE) | ||
| 146 | if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \ | ||
| 147 | set -x; $${CC:-$(CC)} -o $(EXE) $(CFLAGS) $(PROGRAM).o $(E_OBJ) $(PEX_LIBS) $(DLIBSSL) $(LIBKRB5) $(DLIBCRYPTO) $(EX_LIBS) ; \ | ||
| 148 | elif [ -z "$(SHARED_LIBS)" ]; then \ | ||
| 149 | set -x; $${CC:-$(CC)} -o $(EXE) $(CFLAGS) $(PROGRAM).o $(E_OBJ) $(PEX_LIBS) $(LIBSSL) $(LIBKRB5) $(LIBCRYPTO) $(EX_LIBS) ; \ | ||
| 150 | else \ | ||
| 151 | set -x; LD_LIBRARY_PATH=..:$$LD_LIBRARY_PATH \ | ||
| 152 | $(CC) -o $(EXE) $(CFLAGS) $(PROGRAM).o $(E_OBJ) $(PEX_LIBS) $(LIBSSL) $(LIBKRB5) $(LIBCRYPTO) $(EX_LIBS) ; \ | ||
| 153 | fi | ||
| 154 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 155 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(EXE); \ | ||
| 156 | fi | ||
| 157 | -(cd ..; \ | ||
| 158 | OPENSSL="`pwd`/util/opensslwrap.sh"; export OPENSSL; \ | ||
| 159 | $(PERL) tools/c_rehash certs) | ||
| 160 | |||
| 161 | progs.h: progs.pl | ||
| 162 | $(PERL) progs.pl $(E_EXE) >progs.h | ||
| 163 | $(RM) $(PROGRAM).o | ||
| 164 | |||
| 165 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 166 | |||
| 167 | app_rand.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 168 | app_rand.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 169 | app_rand.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 170 | app_rand.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 171 | app_rand.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 172 | app_rand.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 173 | app_rand.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 174 | app_rand.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 175 | app_rand.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 176 | app_rand.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 177 | app_rand.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 178 | app_rand.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 179 | app_rand.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 180 | app_rand.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 181 | app_rand.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 182 | app_rand.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 183 | app_rand.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 184 | app_rand.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 185 | app_rand.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 186 | app_rand.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 187 | app_rand.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 188 | app_rand.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h app_rand.c | ||
| 189 | app_rand.o: apps.h | ||
| 190 | apps.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 191 | apps.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 192 | apps.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 193 | apps.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 194 | apps.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 195 | apps.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 196 | apps.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 197 | apps.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 198 | apps.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 199 | apps.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 200 | apps.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 201 | apps.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 202 | apps.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 203 | apps.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 204 | apps.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 205 | apps.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h | ||
| 206 | apps.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 207 | apps.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 208 | apps.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 209 | apps.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 210 | apps.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 211 | apps.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 212 | apps.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 213 | apps.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.c apps.h | ||
| 214 | asn1pars.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 215 | asn1pars.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 216 | asn1pars.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 217 | asn1pars.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 218 | asn1pars.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 219 | asn1pars.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 220 | asn1pars.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 221 | asn1pars.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 222 | asn1pars.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 223 | asn1pars.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 224 | asn1pars.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 225 | asn1pars.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 226 | asn1pars.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 227 | asn1pars.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 228 | asn1pars.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 229 | asn1pars.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 230 | asn1pars.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 231 | asn1pars.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 232 | asn1pars.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 233 | asn1pars.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 234 | asn1pars.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 235 | asn1pars.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 236 | asn1pars.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 237 | asn1pars.o: asn1pars.c | ||
| 238 | ca.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 239 | ca.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 240 | ca.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 241 | ca.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 242 | ca.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 243 | ca.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 244 | ca.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 245 | ca.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 246 | ca.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 247 | ca.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 248 | ca.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 249 | ca.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 250 | ca.o: ../include/openssl/objects.h ../include/openssl/ocsp.h | ||
| 251 | ca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 252 | ca.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 253 | ca.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 254 | ca.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 255 | ca.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 256 | ca.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 257 | ca.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 258 | ca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 259 | ca.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 260 | ca.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 261 | ca.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h ca.c | ||
| 262 | ciphers.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 263 | ciphers.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 264 | ciphers.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 265 | ciphers.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 266 | ciphers.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 267 | ciphers.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 268 | ciphers.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 269 | ciphers.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 270 | ciphers.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 271 | ciphers.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 272 | ciphers.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 273 | ciphers.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 274 | ciphers.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 275 | ciphers.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 276 | ciphers.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 277 | ciphers.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 278 | ciphers.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 279 | ciphers.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 280 | ciphers.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 281 | ciphers.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 282 | ciphers.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 283 | ciphers.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 284 | ciphers.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 285 | ciphers.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 286 | ciphers.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 287 | ciphers.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 288 | ciphers.o: ../include/openssl/x509_vfy.h apps.h ciphers.c | ||
| 289 | crl.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 290 | crl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 291 | crl.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 292 | crl.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 293 | crl.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 294 | crl.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 295 | crl.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 296 | crl.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 297 | crl.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 298 | crl.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 299 | crl.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 300 | crl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 301 | crl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 302 | crl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 303 | crl.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 304 | crl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 305 | crl.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 306 | crl.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 307 | crl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 308 | crl.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 309 | crl.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 310 | crl.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 311 | crl.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h | ||
| 312 | crl.o: ../include/openssl/x509v3.h apps.h crl.c | ||
| 313 | crl2p7.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 314 | crl2p7.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 315 | crl2p7.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 316 | crl2p7.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 317 | crl2p7.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 318 | crl2p7.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 319 | crl2p7.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 320 | crl2p7.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 321 | crl2p7.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 322 | crl2p7.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 323 | crl2p7.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 324 | crl2p7.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 325 | crl2p7.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 326 | crl2p7.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 327 | crl2p7.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 328 | crl2p7.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 329 | crl2p7.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 330 | crl2p7.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 331 | crl2p7.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 332 | crl2p7.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 333 | crl2p7.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 334 | crl2p7.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 335 | crl2p7.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 336 | crl2p7.o: crl2p7.c | ||
| 337 | dgst.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 338 | dgst.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 339 | dgst.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 340 | dgst.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 341 | dgst.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 342 | dgst.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 343 | dgst.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 344 | dgst.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 345 | dgst.o: ../include/openssl/evp.h ../include/openssl/hmac.h | ||
| 346 | dgst.o: ../include/openssl/idea.h ../include/openssl/lhash.h | ||
| 347 | dgst.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 348 | dgst.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 349 | dgst.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 350 | dgst.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 351 | dgst.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 352 | dgst.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 353 | dgst.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 354 | dgst.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 355 | dgst.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 356 | dgst.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 357 | dgst.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 358 | dgst.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 359 | dgst.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 360 | dgst.o: ../include/openssl/x509_vfy.h apps.h dgst.c | ||
| 361 | dh.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 362 | dh.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 363 | dh.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 364 | dh.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 365 | dh.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 366 | dh.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 367 | dh.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 368 | dh.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 369 | dh.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 370 | dh.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 371 | dh.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 372 | dh.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 373 | dh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 374 | dh.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 375 | dh.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 376 | dh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 377 | dh.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 378 | dh.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 379 | dh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 380 | dh.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 381 | dh.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 382 | dh.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 383 | dh.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h dh.c | ||
| 384 | dsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 385 | dsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 386 | dsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 387 | dsa.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 388 | dsa.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 389 | dsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 390 | dsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 391 | dsa.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 392 | dsa.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 393 | dsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 394 | dsa.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 395 | dsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 396 | dsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 397 | dsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 398 | dsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 399 | dsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 400 | dsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 401 | dsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 402 | dsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 403 | dsa.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 404 | dsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 405 | dsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 406 | dsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h dsa.c | ||
| 407 | dsaparam.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 408 | dsaparam.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 409 | dsaparam.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 410 | dsaparam.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 411 | dsaparam.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 412 | dsaparam.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 413 | dsaparam.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 414 | dsaparam.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 415 | dsaparam.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 416 | dsaparam.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 417 | dsaparam.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 418 | dsaparam.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 419 | dsaparam.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 420 | dsaparam.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 421 | dsaparam.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 422 | dsaparam.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 423 | dsaparam.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 424 | dsaparam.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 425 | dsaparam.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 426 | dsaparam.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 427 | dsaparam.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 428 | dsaparam.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 429 | dsaparam.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 430 | dsaparam.o: dsaparam.c | ||
| 431 | enc.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 432 | enc.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 433 | enc.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 434 | enc.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 435 | enc.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 436 | enc.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 437 | enc.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 438 | enc.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 439 | enc.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 440 | enc.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 441 | enc.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 442 | enc.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 443 | enc.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 444 | enc.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 445 | enc.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 446 | enc.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 447 | enc.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 448 | enc.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 449 | enc.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 450 | enc.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 451 | enc.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 452 | enc.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 453 | enc.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h enc.c | ||
| 454 | engine.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 455 | engine.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 456 | engine.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 457 | engine.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 458 | engine.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 459 | engine.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 460 | engine.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 461 | engine.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 462 | engine.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 463 | engine.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 464 | engine.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 465 | engine.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 466 | engine.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 467 | engine.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 468 | engine.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 469 | engine.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 470 | engine.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 471 | engine.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 472 | engine.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 473 | engine.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 474 | engine.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 475 | engine.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 476 | engine.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 477 | engine.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 478 | engine.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 479 | engine.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 480 | engine.o: ../include/openssl/x509_vfy.h apps.h engine.c | ||
| 481 | errstr.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 482 | errstr.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 483 | errstr.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 484 | errstr.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 485 | errstr.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 486 | errstr.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 487 | errstr.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 488 | errstr.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 489 | errstr.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 490 | errstr.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 491 | errstr.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 492 | errstr.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 493 | errstr.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 494 | errstr.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 495 | errstr.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 496 | errstr.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 497 | errstr.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 498 | errstr.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 499 | errstr.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 500 | errstr.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 501 | errstr.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 502 | errstr.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 503 | errstr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 504 | errstr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 505 | errstr.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 506 | errstr.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 507 | errstr.o: ../include/openssl/x509_vfy.h apps.h errstr.c | ||
| 508 | gendh.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 509 | gendh.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 510 | gendh.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 511 | gendh.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 512 | gendh.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 513 | gendh.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 514 | gendh.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 515 | gendh.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 516 | gendh.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 517 | gendh.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 518 | gendh.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 519 | gendh.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 520 | gendh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 521 | gendh.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 522 | gendh.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 523 | gendh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 524 | gendh.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 525 | gendh.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 526 | gendh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 527 | gendh.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 528 | gendh.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 529 | gendh.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 530 | gendh.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h gendh.c | ||
| 531 | gendsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 532 | gendsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 533 | gendsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 534 | gendsa.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 535 | gendsa.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 536 | gendsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 537 | gendsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 538 | gendsa.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 539 | gendsa.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 540 | gendsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 541 | gendsa.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 542 | gendsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 543 | gendsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 544 | gendsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 545 | gendsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 546 | gendsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 547 | gendsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 548 | gendsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 549 | gendsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 550 | gendsa.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 551 | gendsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 552 | gendsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 553 | gendsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 554 | gendsa.o: gendsa.c | ||
| 555 | genrsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 556 | genrsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 557 | genrsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 558 | genrsa.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 559 | genrsa.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 560 | genrsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 561 | genrsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 562 | genrsa.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 563 | genrsa.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 564 | genrsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 565 | genrsa.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 566 | genrsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 567 | genrsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 568 | genrsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 569 | genrsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 570 | genrsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 571 | genrsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 572 | genrsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 573 | genrsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 574 | genrsa.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 575 | genrsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 576 | genrsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 577 | genrsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 578 | genrsa.o: genrsa.c | ||
| 579 | nseq.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 580 | nseq.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 581 | nseq.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 582 | nseq.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 583 | nseq.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 584 | nseq.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 585 | nseq.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 586 | nseq.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 587 | nseq.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 588 | nseq.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 589 | nseq.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 590 | nseq.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 591 | nseq.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 592 | nseq.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 593 | nseq.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 594 | nseq.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 595 | nseq.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 596 | nseq.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 597 | nseq.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 598 | nseq.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 599 | nseq.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 600 | nseq.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 601 | nseq.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h nseq.c | ||
| 602 | ocsp.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 603 | ocsp.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 604 | ocsp.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 605 | ocsp.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 606 | ocsp.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 607 | ocsp.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 608 | ocsp.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 609 | ocsp.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 610 | ocsp.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 611 | ocsp.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 612 | ocsp.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 613 | ocsp.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 614 | ocsp.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 615 | ocsp.o: ../include/openssl/objects.h ../include/openssl/ocsp.h | ||
| 616 | ocsp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 617 | ocsp.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 618 | ocsp.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 619 | ocsp.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 620 | ocsp.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 621 | ocsp.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 622 | ocsp.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 623 | ocsp.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 624 | ocsp.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 625 | ocsp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 626 | ocsp.o: ../include/openssl/tls1.h ../include/openssl/txt_db.h | ||
| 627 | ocsp.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 628 | ocsp.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h | ||
| 629 | ocsp.o: ../include/openssl/x509v3.h apps.h ocsp.c | ||
| 630 | openssl.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 631 | openssl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 632 | openssl.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 633 | openssl.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 634 | openssl.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 635 | openssl.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 636 | openssl.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 637 | openssl.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 638 | openssl.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 639 | openssl.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
| 640 | openssl.o: ../include/openssl/kssl.h ../include/openssl/lhash.h | ||
| 641 | openssl.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 642 | openssl.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 643 | openssl.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 644 | openssl.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 645 | openssl.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 646 | openssl.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 647 | openssl.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 648 | openssl.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 649 | openssl.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 650 | openssl.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 651 | openssl.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 652 | openssl.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 653 | openssl.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 654 | openssl.o: ../include/openssl/tls1.h ../include/openssl/txt_db.h | ||
| 655 | openssl.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 656 | openssl.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 657 | openssl.o: openssl.c progs.h s_apps.h | ||
| 658 | passwd.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 659 | passwd.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 660 | passwd.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 661 | passwd.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 662 | passwd.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 663 | passwd.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 664 | passwd.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 665 | passwd.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 666 | passwd.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 667 | passwd.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 668 | passwd.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 669 | passwd.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 670 | passwd.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 671 | passwd.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 672 | passwd.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 673 | passwd.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 674 | passwd.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 675 | passwd.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 676 | passwd.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 677 | passwd.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 678 | passwd.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 679 | passwd.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 680 | passwd.o: passwd.c | ||
| 681 | pkcs12.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 682 | pkcs12.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 683 | pkcs12.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 684 | pkcs12.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 685 | pkcs12.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 686 | pkcs12.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 687 | pkcs12.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 688 | pkcs12.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 689 | pkcs12.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 690 | pkcs12.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 691 | pkcs12.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 692 | pkcs12.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 693 | pkcs12.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 694 | pkcs12.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 695 | pkcs12.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 696 | pkcs12.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h | ||
| 697 | pkcs12.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 698 | pkcs12.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 699 | pkcs12.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 700 | pkcs12.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 701 | pkcs12.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 702 | pkcs12.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 703 | pkcs12.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 704 | pkcs12.o: ../include/openssl/x509_vfy.h apps.h pkcs12.c | ||
| 705 | pkcs7.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 706 | pkcs7.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 707 | pkcs7.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 708 | pkcs7.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 709 | pkcs7.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 710 | pkcs7.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 711 | pkcs7.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 712 | pkcs7.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 713 | pkcs7.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 714 | pkcs7.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 715 | pkcs7.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 716 | pkcs7.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 717 | pkcs7.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 718 | pkcs7.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 719 | pkcs7.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 720 | pkcs7.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 721 | pkcs7.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 722 | pkcs7.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 723 | pkcs7.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 724 | pkcs7.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 725 | pkcs7.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 726 | pkcs7.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 727 | pkcs7.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h pkcs7.c | ||
| 728 | pkcs8.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 729 | pkcs8.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 730 | pkcs8.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 731 | pkcs8.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 732 | pkcs8.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 733 | pkcs8.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 734 | pkcs8.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 735 | pkcs8.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 736 | pkcs8.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 737 | pkcs8.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 738 | pkcs8.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 739 | pkcs8.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 740 | pkcs8.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 741 | pkcs8.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 742 | pkcs8.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 743 | pkcs8.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h | ||
| 744 | pkcs8.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 745 | pkcs8.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 746 | pkcs8.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 747 | pkcs8.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 748 | pkcs8.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 749 | pkcs8.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 750 | pkcs8.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 751 | pkcs8.o: ../include/openssl/x509_vfy.h apps.h pkcs8.c | ||
| 752 | prime.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 753 | prime.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 754 | prime.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 755 | prime.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 756 | prime.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 757 | prime.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 758 | prime.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 759 | prime.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 760 | prime.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 761 | prime.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 762 | prime.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 763 | prime.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 764 | prime.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 765 | prime.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 766 | prime.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 767 | prime.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 768 | prime.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 769 | prime.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 770 | prime.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 771 | prime.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 772 | prime.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 773 | prime.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h prime.c | ||
| 774 | rand.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 775 | rand.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 776 | rand.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 777 | rand.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 778 | rand.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 779 | rand.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 780 | rand.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 781 | rand.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 782 | rand.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 783 | rand.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 784 | rand.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 785 | rand.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 786 | rand.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 787 | rand.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 788 | rand.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 789 | rand.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 790 | rand.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 791 | rand.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 792 | rand.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 793 | rand.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 794 | rand.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 795 | rand.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h rand.c | ||
| 796 | req.o: ../crypto/cryptlib.h ../e_os.h ../include/openssl/aes.h | ||
| 797 | req.o: ../include/openssl/asn1.h ../include/openssl/bio.h | ||
| 798 | req.o: ../include/openssl/blowfish.h ../include/openssl/bn.h | ||
| 799 | req.o: ../include/openssl/buffer.h ../include/openssl/cast.h | ||
| 800 | req.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 801 | req.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 802 | req.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 803 | req.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 804 | req.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 805 | req.o: ../include/openssl/idea.h ../include/openssl/lhash.h | ||
| 806 | req.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 807 | req.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 808 | req.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 809 | req.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 810 | req.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 811 | req.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 812 | req.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 813 | req.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 814 | req.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 815 | req.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 816 | req.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 817 | req.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 818 | req.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 819 | req.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h req.c | ||
| 820 | rsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 821 | rsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 822 | rsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 823 | rsa.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 824 | rsa.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 825 | rsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 826 | rsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 827 | rsa.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 828 | rsa.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 829 | rsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 830 | rsa.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 831 | rsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 832 | rsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 833 | rsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 834 | rsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 835 | rsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 836 | rsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 837 | rsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 838 | rsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 839 | rsa.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 840 | rsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 841 | rsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 842 | rsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h rsa.c | ||
| 843 | rsautl.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 844 | rsautl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 845 | rsautl.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 846 | rsautl.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 847 | rsautl.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 848 | rsautl.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 849 | rsautl.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 850 | rsautl.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 851 | rsautl.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 852 | rsautl.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 853 | rsautl.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 854 | rsautl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 855 | rsautl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 856 | rsautl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 857 | rsautl.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 858 | rsautl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 859 | rsautl.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 860 | rsautl.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 861 | rsautl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 862 | rsautl.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 863 | rsautl.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 864 | rsautl.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 865 | rsautl.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 866 | rsautl.o: rsautl.c | ||
| 867 | s_cb.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 868 | s_cb.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 869 | s_cb.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 870 | s_cb.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 871 | s_cb.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 872 | s_cb.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 873 | s_cb.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 874 | s_cb.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 875 | s_cb.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 876 | s_cb.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 877 | s_cb.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 878 | s_cb.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 879 | s_cb.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 880 | s_cb.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 881 | s_cb.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 882 | s_cb.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 883 | s_cb.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 884 | s_cb.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 885 | s_cb.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 886 | s_cb.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 887 | s_cb.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 888 | s_cb.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 889 | s_cb.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 890 | s_cb.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 891 | s_cb.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 892 | s_cb.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 893 | s_cb.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_cb.c | ||
| 894 | s_client.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 895 | s_client.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 896 | s_client.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 897 | s_client.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 898 | s_client.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 899 | s_client.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 900 | s_client.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 901 | s_client.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 902 | s_client.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 903 | s_client.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 904 | s_client.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 905 | s_client.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 906 | s_client.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 907 | s_client.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 908 | s_client.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 909 | s_client.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 910 | s_client.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 911 | s_client.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 912 | s_client.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 913 | s_client.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 914 | s_client.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 915 | s_client.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 916 | s_client.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 917 | s_client.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 918 | s_client.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 919 | s_client.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 920 | s_client.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_client.c | ||
| 921 | s_server.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 922 | s_server.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 923 | s_server.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 924 | s_server.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 925 | s_server.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 926 | s_server.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 927 | s_server.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 928 | s_server.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 929 | s_server.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 930 | s_server.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 931 | s_server.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 932 | s_server.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 933 | s_server.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 934 | s_server.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 935 | s_server.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 936 | s_server.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 937 | s_server.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 938 | s_server.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 939 | s_server.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 940 | s_server.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 941 | s_server.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 942 | s_server.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 943 | s_server.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 944 | s_server.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 945 | s_server.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 946 | s_server.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 947 | s_server.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_server.c | ||
| 948 | s_socket.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 949 | s_socket.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 950 | s_socket.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 951 | s_socket.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 952 | s_socket.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 953 | s_socket.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 954 | s_socket.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 955 | s_socket.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 956 | s_socket.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 957 | s_socket.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 958 | s_socket.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 959 | s_socket.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 960 | s_socket.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 961 | s_socket.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 962 | s_socket.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 963 | s_socket.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 964 | s_socket.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 965 | s_socket.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 966 | s_socket.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 967 | s_socket.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 968 | s_socket.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 969 | s_socket.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 970 | s_socket.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 971 | s_socket.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 972 | s_socket.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 973 | s_socket.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 974 | s_socket.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_socket.c | ||
| 975 | s_time.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 976 | s_time.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 977 | s_time.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 978 | s_time.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 979 | s_time.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 980 | s_time.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 981 | s_time.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 982 | s_time.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 983 | s_time.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 984 | s_time.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 985 | s_time.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 986 | s_time.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 987 | s_time.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 988 | s_time.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 989 | s_time.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 990 | s_time.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 991 | s_time.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 992 | s_time.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 993 | s_time.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 994 | s_time.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 995 | s_time.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 996 | s_time.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 997 | s_time.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 998 | s_time.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 999 | s_time.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 1000 | s_time.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 1001 | s_time.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_time.c | ||
| 1002 | sess_id.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 1003 | sess_id.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 1004 | sess_id.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 1005 | sess_id.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 1006 | sess_id.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 1007 | sess_id.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 1008 | sess_id.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 1009 | sess_id.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 1010 | sess_id.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 1011 | sess_id.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 1012 | sess_id.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 1013 | sess_id.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 1014 | sess_id.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 1015 | sess_id.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 1016 | sess_id.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 1017 | sess_id.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 1018 | sess_id.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 1019 | sess_id.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 1020 | sess_id.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 1021 | sess_id.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 1022 | sess_id.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 1023 | sess_id.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 1024 | sess_id.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 1025 | sess_id.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 1026 | sess_id.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 1027 | sess_id.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 1028 | sess_id.o: ../include/openssl/x509_vfy.h apps.h sess_id.c | ||
| 1029 | smime.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 1030 | smime.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 1031 | smime.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 1032 | smime.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 1033 | smime.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 1034 | smime.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 1035 | smime.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 1036 | smime.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 1037 | smime.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 1038 | smime.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 1039 | smime.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 1040 | smime.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 1041 | smime.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 1042 | smime.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 1043 | smime.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 1044 | smime.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 1045 | smime.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 1046 | smime.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 1047 | smime.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 1048 | smime.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 1049 | smime.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 1050 | smime.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 1051 | smime.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h smime.c | ||
| 1052 | speed.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 1053 | speed.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 1054 | speed.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 1055 | speed.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 1056 | speed.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 1057 | speed.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 1058 | speed.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 1059 | speed.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 1060 | speed.o: ../include/openssl/evp.h ../include/openssl/hmac.h | ||
| 1061 | speed.o: ../include/openssl/idea.h ../include/openssl/lhash.h | ||
| 1062 | speed.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 1063 | speed.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 1064 | speed.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 1065 | speed.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 1066 | speed.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h | ||
| 1067 | speed.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 1068 | speed.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 1069 | speed.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 1070 | speed.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 1071 | speed.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 1072 | speed.o: ../include/openssl/txt_db.h ../include/openssl/ui.h | ||
| 1073 | speed.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 1074 | speed.o: ../include/openssl/x509_vfy.h apps.h speed.c testdsa.h testrsa.h | ||
| 1075 | spkac.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 1076 | spkac.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 1077 | spkac.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 1078 | spkac.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 1079 | spkac.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 1080 | spkac.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 1081 | spkac.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 1082 | spkac.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 1083 | spkac.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 1084 | spkac.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 1085 | spkac.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 1086 | spkac.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 1087 | spkac.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 1088 | spkac.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 1089 | spkac.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 1090 | spkac.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 1091 | spkac.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 1092 | spkac.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 1093 | spkac.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 1094 | spkac.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 1095 | spkac.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 1096 | spkac.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 1097 | spkac.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h spkac.c | ||
| 1098 | verify.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 1099 | verify.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 1100 | verify.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 1101 | verify.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 1102 | verify.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 1103 | verify.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 1104 | verify.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 1105 | verify.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 1106 | verify.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 1107 | verify.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 1108 | verify.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 1109 | verify.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 1110 | verify.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 1111 | verify.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 1112 | verify.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 1113 | verify.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 1114 | verify.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 1115 | verify.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 1116 | verify.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 1117 | verify.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 1118 | verify.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 1119 | verify.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 1120 | verify.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h | ||
| 1121 | verify.o: ../include/openssl/x509v3.h apps.h verify.c | ||
| 1122 | version.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 1123 | version.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 1124 | version.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 1125 | version.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 1126 | version.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 1127 | version.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 1128 | version.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 1129 | version.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 1130 | version.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 1131 | version.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 1132 | version.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 1133 | version.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 1134 | version.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 1135 | version.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 1136 | version.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 1137 | version.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 1138 | version.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 1139 | version.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 1140 | version.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 1141 | version.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 1142 | version.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 1143 | version.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h | ||
| 1144 | version.o: version.c | ||
| 1145 | x509.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 1146 | x509.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 1147 | x509.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 1148 | x509.o: ../include/openssl/cast.h ../include/openssl/conf.h | ||
| 1149 | x509.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 1150 | x509.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 1151 | x509.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 1152 | x509.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 1153 | x509.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 1154 | x509.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 1155 | x509.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 1156 | x509.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 1157 | x509.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 1158 | x509.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 1159 | x509.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 1160 | x509.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 1161 | x509.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 1162 | x509.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 1163 | x509.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 1164 | x509.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 1165 | x509.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h | ||
| 1166 | x509.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 1167 | x509.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h | ||
| 1168 | x509.o: ../include/openssl/x509v3.h apps.h x509.c | ||
diff --git a/src/lib/libssl/src/apps/prime.c b/src/lib/libssl/src/apps/prime.c new file mode 100644 index 0000000000..1753b3ebc1 --- /dev/null +++ b/src/lib/libssl/src/apps/prime.c | |||
| @@ -0,0 +1,128 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #include <string.h> | ||
| 51 | |||
| 52 | #include "apps.h" | ||
| 53 | #include <openssl/bn.h> | ||
| 54 | |||
| 55 | |||
| 56 | #undef PROG | ||
| 57 | #define PROG prime_main | ||
| 58 | |||
| 59 | int MAIN(int argc, char **argv) | ||
| 60 | { | ||
| 61 | int hex=0; | ||
| 62 | int checks=20; | ||
| 63 | BIGNUM *bn=NULL; | ||
| 64 | BIO *bio_out; | ||
| 65 | |||
| 66 | apps_startup(); | ||
| 67 | |||
| 68 | if (bio_err == NULL) | ||
| 69 | if ((bio_err=BIO_new(BIO_s_file())) != NULL) | ||
| 70 | BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT); | ||
| 71 | |||
| 72 | --argc; | ||
| 73 | ++argv; | ||
| 74 | while (argc >= 1 && **argv == '-') | ||
| 75 | { | ||
| 76 | if(!strcmp(*argv,"-hex")) | ||
| 77 | hex=1; | ||
| 78 | else if(!strcmp(*argv,"-checks")) | ||
| 79 | if(--argc < 1) | ||
| 80 | goto bad; | ||
| 81 | else | ||
| 82 | checks=atoi(*++argv); | ||
| 83 | else | ||
| 84 | { | ||
| 85 | BIO_printf(bio_err,"Unknown option '%s'\n",*argv); | ||
| 86 | goto bad; | ||
| 87 | } | ||
| 88 | --argc; | ||
| 89 | ++argv; | ||
| 90 | } | ||
| 91 | |||
| 92 | if (argv[0] == NULL) | ||
| 93 | { | ||
| 94 | BIO_printf(bio_err,"No prime specified\n"); | ||
| 95 | goto bad; | ||
| 96 | } | ||
| 97 | |||
| 98 | if ((bio_out=BIO_new(BIO_s_file())) != NULL) | ||
| 99 | { | ||
| 100 | BIO_set_fp(bio_out,stdout,BIO_NOCLOSE); | ||
| 101 | #ifdef OPENSSL_SYS_VMS | ||
| 102 | { | ||
| 103 | BIO *tmpbio = BIO_new(BIO_f_linebuffer()); | ||
| 104 | bio_out = BIO_push(tmpbio, bio_out); | ||
| 105 | } | ||
| 106 | #endif | ||
| 107 | } | ||
| 108 | |||
| 109 | if(hex) | ||
| 110 | BN_hex2bn(&bn,argv[0]); | ||
| 111 | else | ||
| 112 | BN_dec2bn(&bn,argv[0]); | ||
| 113 | |||
| 114 | BN_print(bio_out,bn); | ||
| 115 | BIO_printf(bio_out," is %sprime\n", | ||
| 116 | BN_is_prime(bn,checks,NULL,NULL,NULL) ? "" : "not "); | ||
| 117 | |||
| 118 | BN_free(bn); | ||
| 119 | BIO_free_all(bio_out); | ||
| 120 | |||
| 121 | return 0; | ||
| 122 | |||
| 123 | bad: | ||
| 124 | BIO_printf(bio_err,"options are\n"); | ||
| 125 | BIO_printf(bio_err,"%-14s hex\n","-hex"); | ||
| 126 | BIO_printf(bio_err,"%-14s number of checks\n","-checks <n>"); | ||
| 127 | return 1; | ||
| 128 | } | ||
diff --git a/src/lib/libssl/src/certs/demo/ca-cert.pem b/src/lib/libssl/src/certs/demo/ca-cert.pem new file mode 100644 index 0000000000..bcba68aefa --- /dev/null +++ b/src/lib/libssl/src/certs/demo/ca-cert.pem | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIIC5TCCAk6gAwIBAgIBATANBgkqhkiG9w0BAQQFADBcMQswCQYDVQQGEwJBVTET | ||
| 3 | MBEGA1UECBMKUXVlZW5zbGFuZDEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQx | ||
| 4 | HDAaBgNVBAMTE1Rlc3QgUENBICgxMDI0IGJpdCkwHhcNOTkxMjAyMjEzODUxWhcN | ||
| 5 | MDUwNzEwMjEzODUxWjBbMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFu | ||
| 6 | ZDEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxGzAZBgNVBAMTElRlc3QgQ0Eg | ||
| 7 | KDEwMjQgYml0KTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAo7ujy3XXpU/p | ||
| 8 | yDJtOxkMJmGv3mdiVm7JrdoKLUgqjO2rBaeNuYMUiuI6oYU+tlD6agwRML0Pn2JF | ||
| 9 | b90VdK/UXrmRr9djaEuH17EIKjte5RwOzndCndsjcCYyoeODMTyg7dqPIkDMmRNM | ||
| 10 | 5R5xBTabD+Aji0wzQupYxBLuW5PLj7ECAwEAAaOBtzCBtDAdBgNVHQ4EFgQU1WWA | ||
| 11 | U42mkhi3ecgey1dsJjU61+UwgYQGA1UdIwR9MHuAFE0RaEcrj18q1dw+G6nJbsTW | ||
| 12 | R213oWCkXjBcMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDEaMBgG | ||
| 13 | A1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxHDAaBgNVBAMTE1Rlc3QgUENBICgxMDI0 | ||
| 14 | IGJpdCmCAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQQFAAOBgQBb39BRphHL | ||
| 15 | 6aRAQyymsvBvPSCiG9+kR0R1L23aTpNbhXp2BebyFjbEQYZc2kWGiKKcHkNECA35 | ||
| 16 | 3d4LoqUlVey8DFyafOIJd9hxdZfg+rxlHMxnL7uCJRmx9+xB411Jtsol9/wg1uCK | ||
| 17 | sleGpgB4j8cG2SVCz7V2MNZNK+d5QCnR7A== | ||
| 18 | -----END CERTIFICATE----- | ||
| 19 | -----BEGIN RSA PRIVATE KEY----- | ||
| 20 | MIICXQIBAAKBgQCju6PLddelT+nIMm07GQwmYa/eZ2JWbsmt2gotSCqM7asFp425 | ||
| 21 | gxSK4jqhhT62UPpqDBEwvQ+fYkVv3RV0r9ReuZGv12NoS4fXsQgqO17lHA7Od0Kd | ||
| 22 | 2yNwJjKh44MxPKDt2o8iQMyZE0zlHnEFNpsP4COLTDNC6ljEEu5bk8uPsQIDAQAB | ||
| 23 | AoGAVZmpFZsDZfr0l2S9tLLwpjRWNOlKATQkno6q2WesT0eGLQufTciY+c8ypfU6 | ||
| 24 | hyio8r5iUl/VhhdjhAtKx1mRpiotftHo/eYf8rtsrnprOnWG0bWjLjtIoMbcxGn2 | ||
| 25 | J3bN6LJmbJMjDs0eJ3KnTu646F3nDUw2oGAwmpzKXA1KAP0CQQDRvQhxk2D3Pehs | ||
| 26 | HvG665u2pB5ipYQngEFlZO7RHJZzJOZEWSLuuMqaF/7pTfA5jiBvWqCgJeCRRInL | ||
| 27 | 21ru4dlPAkEAx9jj7BgKn5TYnMoBSSe0afjsV9oApVpN1Nacb1YDtCwy+scp3++s | ||
| 28 | nFxlv98wxIlSdpwMUn+AUWfjiWR7Tu/G/wJBAJ/KjwZIrFVxewP0x2ILYsTRYLzz | ||
| 29 | MS4PDsO7FB+I0i7DbBOifXS2oNSpd3I0CNMwrxFnUHzynpbOStVfN3ZL5w0CQQCa | ||
| 30 | pwFahxBRhkJKsxhjoFJBX9yl75JoY4Wvm5Tbo9ih6UJaRx3kqfkN14L2BKYcsZgb | ||
| 31 | KY9vmDOYy6iNfjDeWTfJAkBkfPUb8oTJ/nSP5zN6sqGxSY4krc4xLxpRmxoJ8HL2 | ||
| 32 | XfhqXkTzbU13RX9JJ/NZ8vQN9Vm2NhxRGJocQkmcdVtJ | ||
| 33 | -----END RSA PRIVATE KEY----- | ||
diff --git a/src/lib/libssl/src/certs/demo/dsa-ca.pem b/src/lib/libssl/src/certs/demo/dsa-ca.pem new file mode 100644 index 0000000000..9eb08f3ddd --- /dev/null +++ b/src/lib/libssl/src/certs/demo/dsa-ca.pem | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | -----BEGIN DSA PRIVATE KEY----- | ||
| 2 | Proc-Type: 4,ENCRYPTED | ||
| 3 | DEK-Info: DES-EDE3-CBC,C5B6C7CC9E1FE2C0 | ||
| 4 | |||
| 5 | svCXBcBRhMuU22UXOfiKZA+thmz6KYXpt1Yg5Rd+TYQcQ1MdvNy0B0tkP1SxzDq0 | ||
| 6 | Xh1eMeTML9/9/0rKakgNXXXbpi5RB8t6BmwRSyej89F7nn1mtR3qzoyPRpp15SDl | ||
| 7 | Tn67C+2v+HDF3MFk88hiNCYkNbcmi7TWvChsl8N1r7wdZwtIox56yXdgxw6ZIpa/ | ||
| 8 | par0oUCzN7fiavPgCWz1kfPNSaBQSdxwH7TZi5tMHAr0J3C7a7QRnZfE09R59Uqr | ||
| 9 | zslrq+ndIw1BZAxoY0SlBu+iFOVaBVlwToC4AsHkv7j7l8ITtr7f42YbBa44D9TO | ||
| 10 | uOhONmkk/v3Fso4RaOEzdKZC+hnmmzvHs6TiTWm6yzJgSFwyOUK0eGmKEeVxpcH5 | ||
| 11 | rUOlHOwzen+FFtocZDZAfdFnb7QY7L/boQvyA5A+ZbRG4DUpmBQeQsSaICHM5Rxx | ||
| 12 | 1QaLF413VNPXTLPbW0ilSc2H8x2iZTIVKfd33oSO6NhXPtSYQgfecEF4BvNHY5c4 | ||
| 13 | HovjT4mckbK95bcBzoCHu43vuSQkmZzdYo/ydSZt6zoPavbBLueTpgSbdXiDi827 | ||
| 14 | MVqOsYxGCb+kez0FoDSTgw== | ||
| 15 | -----END DSA PRIVATE KEY----- | ||
| 16 | -----BEGIN CERTIFICATE REQUEST----- | ||
| 17 | MIICUjCCAhECAQAwUjELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUx | ||
| 18 | ITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDELMAkGA1UEAxMCQ0Ew | ||
| 19 | ggG0MIIBKQYFKw4DAgwwggEeAoGBAKc/boW/QWopffCfRxkwkJoJHdpqMx7FPYaW | ||
| 20 | sxXgUy6P4FmCc5A+dTGZR3pS+4Xk2aZ7OJtoioSbh8YetX6GS1NbWc9xZRmIbs5m | ||
| 21 | rmuINvvsKNzC16W75Sw5JkvamnAYlTeVEFYj9hXtugRe3jlP/bdDH7WkZW/NgBHk | ||
| 22 | cJVbUM1JAhUA9wcx7fpsBgPVhYocrJxl51BmZW8CgYBN30wDppGK9RlvUEYlmeVo | ||
| 23 | bzDjaeHls12YuyiGSPzemQQ/X4gMnHMkDSBduSqaPxiWJ+Rih8F7dGJT/GEnqHqR | ||
| 24 | CZ228U2cVA9YBu5JdAfOVX4jzhb2ytxaYQF+yXG1TfbcNCmHaPZeIJOz2/XkCWxB | ||
| 25 | F5WS6wG1c6Vqftgy7Q4CuAOBhAACgYAapll6iqz9XrZFlk2GCVcB+KihxWnH7IuH | ||
| 26 | vSLw9YUrJahcBHmbpvt494lF4gC5w3WPM+vXJofbusk4GoQEEsQNMDaah4m49uUq | ||
| 27 | AylOVFJJJXuirVJ+o+0TtOFDITEAl+YZZariXOD7tdOSOl9RLMPC6+daHKS9e68u | ||
| 28 | 3enxhqnDGaAAMAkGBSsOAwIbBQADMAAwLQIVAJGVuFsG/0DBuSZ0jF7ypdU0/G0v | ||
| 29 | AhQfeF5BoMMDbX/kidUVpQ6gadPlZA== | ||
| 30 | -----END CERTIFICATE REQUEST----- | ||
| 31 | -----BEGIN CERTIFICATE----- | ||
| 32 | MIIBrjCCAWwCAQswCQYFKw4DAhsFADBTMQswCQYDVQQGEwJBVTETMBEGA1UECBMK | ||
| 33 | U29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMQww | ||
| 34 | CgYDVQQDEwNQQ0EwHhcNOTcwNjE1MDIxNDI5WhcNOTcwNzE1MDIxNDI5WjBSMQsw | ||
| 35 | CQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJu | ||
| 36 | ZXQgV2lkZ2l0cyBQdHkgTHRkMQswCQYDVQQDEwJDQTCBkjAJBgUrDgMCDAUAA4GE | ||
| 37 | AAKBgBqmWXqKrP1etkWWTYYJVwH4qKHFacfsi4e9IvD1hSslqFwEeZum+3j3iUXi | ||
| 38 | ALnDdY8z69cmh9u6yTgahAQSxA0wNpqHibj25SoDKU5UUkkle6KtUn6j7RO04UMh | ||
| 39 | MQCX5hllquJc4Pu105I6X1Esw8Lr51ocpL17ry7d6fGGqcMZMAkGBSsOAwIbBQAD | ||
| 40 | MQAwLgIVAJ4wtQsANPxHo7Q4IQZYsL12SKdbAhUAjJ9n38zxT+iai2164xS+LIfa | ||
| 41 | C1Q= | ||
| 42 | -----END CERTIFICATE----- | ||
| 43 | |||
diff --git a/src/lib/libssl/src/certs/demo/dsa-pca.pem b/src/lib/libssl/src/certs/demo/dsa-pca.pem new file mode 100644 index 0000000000..e3641ad47e --- /dev/null +++ b/src/lib/libssl/src/certs/demo/dsa-pca.pem | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | -----BEGIN DSA PRIVATE KEY----- | ||
| 2 | Proc-Type: 4,ENCRYPTED | ||
| 3 | DEK-Info: DES-EDE3-CBC,F80EEEBEEA7386C4 | ||
| 4 | |||
| 5 | GZ9zgFcHOlnhPoiSbVi/yXc9mGoj44A6IveD4UlpSEUt6Xbse3Fr0KHIUyQ3oGnS | ||
| 6 | mClKoAp/eOTb5Frhto85SzdsxYtac+X1v5XwdzAMy2KowHVk1N8A5jmE2OlkNPNt | ||
| 7 | of132MNlo2cyIRYaa35PPYBGNCmUm7YcYS8O90YtkrQZZTf4+2C4kllhMcdkQwkr | ||
| 8 | FWSWC8YOQ7w0LHb4cX1FejHHom9Nd/0PN3vn3UyySvfOqoR7nbXkrpHXmPIr0hxX | ||
| 9 | RcF0aXcV/CzZ1/nfXWQf4o3+oD0T22SDoVcZY60IzI0oIc3pNCbDV3uKNmgekrFd | ||
| 10 | qOUJ+QW8oWp7oefRx62iBfIeC8DZunohMXaWAQCU0sLQOR4yEdeUCnzCSywe0bG1 | ||
| 11 | diD0KYaEe+Yub1BQH4aLsBgDjardgpJRTQLq0DUvw0/QGO1irKTJzegEDNVBKrVn | ||
| 12 | V4AHOKT1CUKqvGNRP1UnccUDTF6miOAtaj/qpzra7sSk7dkGBvIEeFoAg84kfh9h | ||
| 13 | hVvF1YyzC9bwZepruoqoUwke/WdNIR5ymOVZ/4Liw0JdIOcq+atbdRX08niqIRkf | ||
| 14 | dsZrUj4leo3zdefYUQ7w4N2Ns37yDFq7 | ||
| 15 | -----END DSA PRIVATE KEY----- | ||
| 16 | -----BEGIN CERTIFICATE REQUEST----- | ||
| 17 | MIICVTCCAhMCAQAwUzELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUx | ||
| 18 | ITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEMMAoGA1UEAxMDUENB | ||
| 19 | MIIBtTCCASkGBSsOAwIMMIIBHgKBgQCnP26Fv0FqKX3wn0cZMJCaCR3aajMexT2G | ||
| 20 | lrMV4FMuj+BZgnOQPnUxmUd6UvuF5NmmezibaIqEm4fGHrV+hktTW1nPcWUZiG7O | ||
| 21 | Zq5riDb77Cjcwtelu+UsOSZL2ppwGJU3lRBWI/YV7boEXt45T/23Qx+1pGVvzYAR | ||
| 22 | 5HCVW1DNSQIVAPcHMe36bAYD1YWKHKycZedQZmVvAoGATd9MA6aRivUZb1BGJZnl | ||
| 23 | aG8w42nh5bNdmLsohkj83pkEP1+IDJxzJA0gXbkqmj8YlifkYofBe3RiU/xhJ6h6 | ||
| 24 | kQmdtvFNnFQPWAbuSXQHzlV+I84W9srcWmEBfslxtU323DQph2j2XiCTs9v15Als | ||
| 25 | QReVkusBtXOlan7YMu0OArgDgYUAAoGBAKbtuR5AdW+ICjCFe2ixjUiJJzM2IKwe | ||
| 26 | 6NZEMXg39+HQ1UTPTmfLZLps+rZfolHDXuRKMXbGFdSF0nXYzotPCzi7GauwEJTZ | ||
| 27 | yr27ZZjA1C6apGSQ9GzuwNvZ4rCXystVEagAS8OQ4H3D4dWS17Zg31ICb5o4E5r0 | ||
| 28 | z09o/Uz46u0VoAAwCQYFKw4DAhsFAAMxADAuAhUArRubTxsbIXy3AhtjQ943AbNB | ||
| 29 | nSICFQCu+g1iW3jwF+gOcbroD4S/ZcvB3w== | ||
| 30 | -----END CERTIFICATE REQUEST----- | ||
| 31 | -----BEGIN CERTIFICATE----- | ||
| 32 | MIIC0zCCApECAQAwCQYFKw4DAhsFADBTMQswCQYDVQQGEwJBVTETMBEGA1UECBMK | ||
| 33 | U29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMQww | ||
| 34 | CgYDVQQDEwNQQ0EwHhcNOTcwNjE0MjI1NDQ1WhcNOTcwNzE0MjI1NDQ1WjBTMQsw | ||
| 35 | CQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJu | ||
| 36 | ZXQgV2lkZ2l0cyBQdHkgTHRkMQwwCgYDVQQDEwNQQ0EwggG1MIIBKQYFKw4DAgww | ||
| 37 | ggEeAoGBAKc/boW/QWopffCfRxkwkJoJHdpqMx7FPYaWsxXgUy6P4FmCc5A+dTGZ | ||
| 38 | R3pS+4Xk2aZ7OJtoioSbh8YetX6GS1NbWc9xZRmIbs5mrmuINvvsKNzC16W75Sw5 | ||
| 39 | JkvamnAYlTeVEFYj9hXtugRe3jlP/bdDH7WkZW/NgBHkcJVbUM1JAhUA9wcx7fps | ||
| 40 | BgPVhYocrJxl51BmZW8CgYBN30wDppGK9RlvUEYlmeVobzDjaeHls12YuyiGSPze | ||
| 41 | mQQ/X4gMnHMkDSBduSqaPxiWJ+Rih8F7dGJT/GEnqHqRCZ228U2cVA9YBu5JdAfO | ||
| 42 | VX4jzhb2ytxaYQF+yXG1TfbcNCmHaPZeIJOz2/XkCWxBF5WS6wG1c6Vqftgy7Q4C | ||
| 43 | uAOBhQACgYEApu25HkB1b4gKMIV7aLGNSIknMzYgrB7o1kQxeDf34dDVRM9OZ8tk | ||
| 44 | umz6tl+iUcNe5EoxdsYV1IXSddjOi08LOLsZq7AQlNnKvbtlmMDULpqkZJD0bO7A | ||
| 45 | 29nisJfKy1URqABLw5DgfcPh1ZLXtmDfUgJvmjgTmvTPT2j9TPjq7RUwCQYFKw4D | ||
| 46 | AhsFAAMxADAuAhUAvtv6AkMolix1Jvy3UnVEIUqdCUICFQC+jq8P49mwrY9oJ24n | ||
| 47 | 5rKUjNBhSg== | ||
| 48 | -----END CERTIFICATE----- | ||
| 49 | |||
diff --git a/src/lib/libssl/src/certs/demo/nortelCA.pem b/src/lib/libssl/src/certs/demo/nortelCA.pem new file mode 100644 index 0000000000..207f34ab3a --- /dev/null +++ b/src/lib/libssl/src/certs/demo/nortelCA.pem | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIICajCCAdMCBDGA0QUwDQYJKoZIhvcNAQEEBQAwfTELMAkGA1UEBhMCQ2ExDzAN | ||
| 3 | BgNVBAcTBk5lcGVhbjEeMBwGA1UECxMVTm8gTGlhYmlsaXR5IEFjY2VwdGVkMR8w | ||
| 4 | HQYDVQQKExZGb3IgRGVtbyBQdXJwb3NlcyBPbmx5MRwwGgYDVQQDExNFbnRydXN0 | ||
| 5 | IERlbW8gV2ViIENBMB4XDTk2MDQyNjEzMzUwMVoXDTA2MDQyNjEzMzUwMVowfTEL | ||
| 6 | MAkGA1UEBhMCQ2ExDzANBgNVBAcTBk5lcGVhbjEeMBwGA1UECxMVTm8gTGlhYmls | ||
| 7 | aXR5IEFjY2VwdGVkMR8wHQYDVQQKExZGb3IgRGVtbyBQdXJwb3NlcyBPbmx5MRww | ||
| 8 | GgYDVQQDExNFbnRydXN0IERlbW8gV2ViIENBMIGdMA0GCSqGSIb3DQEBAQUAA4GL | ||
| 9 | ADCBhwKBgQCaroS7O1DA0hm4IefNYU1cx/nqOmzEnk291d1XqznDeF4wEgakbkCc | ||
| 10 | zTKxK791yNpXG5RmngqH7cygDRTHZJ6mfCRn0wGC+AI00F2vYTGqPGRQL1N3lZT0 | ||
| 11 | YDKFC0SQeMMjFIZ1aeQigroFQnHo0VB3zWIMpNkka8PY9lxHZAmWwQIBAzANBgkq | ||
| 12 | hkiG9w0BAQQFAAOBgQBAx0UMVA1s54lMQyXjMX5kj99FJN5itb8bK1Rk+cegPQPF | ||
| 13 | cWO9SEWyEjjBjIkjjzAwBkaEszFsNGxemxtXvwjIm1xEUMTVlPEWTs2qnDvAUA9W | ||
| 14 | YqhWbhH0toGT36236QAsqCZ76rbTRVSSX2BHyJwJMG2tCRv7kRJ//NIgxj3H4w== | ||
| 15 | -----END CERTIFICATE----- | ||
| 16 | |||
diff --git a/src/lib/libssl/src/certs/demo/pca-cert.pem b/src/lib/libssl/src/certs/demo/pca-cert.pem new file mode 100644 index 0000000000..9d754d460d --- /dev/null +++ b/src/lib/libssl/src/certs/demo/pca-cert.pem | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIIC5jCCAk+gAwIBAgIBADANBgkqhkiG9w0BAQQFADBcMQswCQYDVQQGEwJBVTET | ||
| 3 | MBEGA1UECBMKUXVlZW5zbGFuZDEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQx | ||
| 4 | HDAaBgNVBAMTE1Rlc3QgUENBICgxMDI0IGJpdCkwHhcNOTkxMjAyMjEzNTQ4WhcN | ||
| 5 | MDUwNzExMjEzNTQ4WjBcMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFu | ||
| 6 | ZDEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxHDAaBgNVBAMTE1Rlc3QgUENB | ||
| 7 | ICgxMDI0IGJpdCkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJ2haT/f5Zwy | ||
| 8 | V+MiuSDjSR62adBoSiBB7Usty44lXqsp9RICw+DCCxpsn/CfxPEDXLLd4olsWXc6 | ||
| 9 | JRcxGynbYmnzk+Z6aIPPJQhK3CTvaqGnWKZsA1m+WaUIUqJCuNTK4N+7hMAGaf6S | ||
| 10 | S3e9HVgEQ4a34gXJ7VQFVIBNV1EnZRWHAgMBAAGjgbcwgbQwHQYDVR0OBBYEFE0R | ||
| 11 | aEcrj18q1dw+G6nJbsTWR213MIGEBgNVHSMEfTB7gBRNEWhHK49fKtXcPhupyW7E | ||
| 12 | 1kdtd6FgpF4wXDELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQxGjAY | ||
| 13 | BgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRwwGgYDVQQDExNUZXN0IFBDQSAoMTAy | ||
| 14 | NCBiaXQpggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAUa8B3pho | ||
| 15 | +Mvxeq9HsEzJxHIFQla05S5J/e/V+DQTYoKiRFchKPrDAdrzYSEvP3h4QJEtsNqQ | ||
| 16 | JfOxg5M42uLFq7aPGWkF6ZZqZsYS+zA9IVT14g7gNA6Ne+5QtJqQtH9HA24st0T0 | ||
| 17 | Tga/lZ9M2ovImovaxSL/kRHbpCWcqWVxpOw= | ||
| 18 | -----END CERTIFICATE----- | ||
| 19 | -----BEGIN RSA PRIVATE KEY----- | ||
| 20 | MIICXAIBAAKBgQCdoWk/3+WcMlfjIrkg40ketmnQaEogQe1LLcuOJV6rKfUSAsPg | ||
| 21 | wgsabJ/wn8TxA1yy3eKJbFl3OiUXMRsp22Jp85PmemiDzyUIStwk72qhp1imbANZ | ||
| 22 | vlmlCFKiQrjUyuDfu4TABmn+kkt3vR1YBEOGt+IFye1UBVSATVdRJ2UVhwIDAQAB | ||
| 23 | AoGAba4fTtuap5l7/8ZsbE7Z1O32KJY4ZcOZukLOLUUhXxXduT+FTgGWujc0/rgc | ||
| 24 | z9qYCLlNZHOouMYTgtSfYvuMuLZ11VIt0GYH+nRioLShE59Yy+zCRyC+gPigS1kz | ||
| 25 | xvo14AsOIPYV14Tk/SsHyq6E0eTk7VzaIE197giiINUERPECQQDSKmtPTh/lRKw7 | ||
| 26 | HSZSM0I1mFWn/1zqrAbontRQY5w98QWIOe5qmzYyFbPXYT3d9BzlsMyhgiRNoBbD | ||
| 27 | yvohSHXJAkEAwAHx6ezAZeWWzD5yXD36nyjpkVCw7Tk7TSmOceLJMWt1QcrCfqlS | ||
| 28 | xA5jjpQ6Z8suU5DdtWAryM2sAir1WisYzwJAd6Zcx56jvAQ3xcPXsE6scBTVFzrj | ||
| 29 | 7FqZ6E+cclPzfLQ+QQsyOBE7bpI6e/FJppY26XGZXo3YGzV8IGXrt40oOQJALETG | ||
| 30 | h86EFXo3qGOFbmsDy4pdP5nBERCu8X1xUCSfintiD4c2DInxgS5oGclnJeMcjTvL | ||
| 31 | QjQoJCX3UJCi/OUO1QJBAKgcDHWjMvt+l1pjJBsSEZ0HX9AAIIVx0RQmbFGS+F2Q | ||
| 32 | hhu5l77WnnZOQ9vvhV5u7NPCUF9nhU3jh60qWWO8mkc= | ||
| 33 | -----END RSA PRIVATE KEY----- | ||
diff --git a/src/lib/libssl/src/certs/demo/timCA.pem b/src/lib/libssl/src/certs/demo/timCA.pem new file mode 100644 index 0000000000..9c8d5bf9c6 --- /dev/null +++ b/src/lib/libssl/src/certs/demo/timCA.pem | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Tims test GCI CA | ||
| 2 | |||
| 3 | -----BEGIN CERTIFICATE----- | ||
| 4 | MIIB8DCCAZoCAQAwDQYJKoZIhvcNAQEEBQAwgYIxCzAJBgNVBAYTAkFVMRMwEQYD | ||
| 5 | VQQIEwpRdWVlbnNsYW5kMREwDwYDVQQHEwhCcmlzYmFuZTEaMBgGA1UEChMRQ3J5 | ||
| 6 | cHRTb2Z0IFB0eSBMdGQxFDASBgNVBAsTC2RldmVsb3BtZW50MRkwFwYDVQQDExBD | ||
| 7 | cnlwdFNvZnQgRGV2IENBMB4XDTk3MDMyMjEzMzQwNFoXDTk4MDMyMjEzMzQwNFow | ||
| 8 | gYIxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpRdWVlbnNsYW5kMREwDwYDVQQHEwhC | ||
| 9 | cmlzYmFuZTEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxFDASBgNVBAsTC2Rl | ||
| 10 | dmVsb3BtZW50MRkwFwYDVQQDExBDcnlwdFNvZnQgRGV2IENBMFwwDQYJKoZIhvcN | ||
| 11 | AQEBBQADSwAwSAJBAOAOAqogG5QwAmLhzyO4CoRnx/wVy4NZP4dxJy83O1EnL0rw | ||
| 12 | OdsamJKvPOLHgSXo3gDu9uVyvCf/QJmZAmC5ml8CAwEAATANBgkqhkiG9w0BAQQF | ||
| 13 | AANBADRRS/GVdd7rAqRW6SdmgLJduOU2yq3avBu99kRqbp9A/dLu6r6jU+eP4oOA | ||
| 14 | TfdbFZtAAD2Hx9jUtY3tfdrJOb8= | ||
| 15 | -----END CERTIFICATE----- | ||
| 16 | |||
diff --git a/src/lib/libssl/src/certs/demo/tjhCA.pem b/src/lib/libssl/src/certs/demo/tjhCA.pem new file mode 100644 index 0000000000..67bee1b200 --- /dev/null +++ b/src/lib/libssl/src/certs/demo/tjhCA.pem | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIICVjCCAgACAQAwDQYJKoZIhvcNAQEEBQAwgbUxCzAJBgNVBAYTAkFVMRMwEQYD | ||
| 3 | VQQIEwpRdWVlbnNsYW5kMREwDwYDVQQHEwhCcmlzYmFuZTEaMBgGA1UEChMRQ3J5 | ||
| 4 | cHRTb2Z0IFB0eSBMdGQxLDAqBgNVBAsTI1dPUlRITEVTUyBDRVJUSUZJQ0FUSU9O | ||
| 5 | IEFVVEhPUklUSUVTMTQwMgYDVQQDEytaRVJPIFZBTFVFIENBIC0gREVNT05TVFJB | ||
| 6 | VElPTiBQVVJQT1NFUyBPTkxZMB4XDTk3MDQwMzEzMjI1NFoXDTk4MDQwMzEzMjI1 | ||
| 7 | NFowgbUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpRdWVlbnNsYW5kMREwDwYDVQQH | ||
| 8 | EwhCcmlzYmFuZTEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxLDAqBgNVBAsT | ||
| 9 | I1dPUlRITEVTUyBDRVJUSUZJQ0FUSU9OIEFVVEhPUklUSUVTMTQwMgYDVQQDEyta | ||
| 10 | RVJPIFZBTFVFIENBIC0gREVNT05TVFJBVElPTiBQVVJQT1NFUyBPTkxZMFwwDQYJ | ||
| 11 | KoZIhvcNAQEBBQADSwAwSAJBAOZ7T7yqP/tyspcko3yPY1y0Cm2EmwNvzW4QgVXR | ||
| 12 | Fjs3HmJ4xtSpXdo6mwcGezL3Abt/aQXaxv9PU8xt+Jr0OFUCAwEAATANBgkqhkiG | ||
| 13 | 9w0BAQQFAANBAOQpYmGgyCqCy1OljgJhCqQOu627oVlHzK1L+t9vBaMfn40AVUR4 | ||
| 14 | WzQVWO31KTgi5vTK1U+3h46fgUWqQ0h+6rU= | ||
| 15 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/demo/vsigntca.pem b/src/lib/libssl/src/certs/demo/vsigntca.pem new file mode 100644 index 0000000000..05acf76e66 --- /dev/null +++ b/src/lib/libssl/src/certs/demo/vsigntca.pem | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | subject=/O=VeriSign, Inc/OU=www.verisign.com/repository/TestCPS Incorp. By Ref. Liab. LTD./OU=For VeriSign authorized testing only. No assurances (C)VS1997 | ||
| 2 | notBefore=Mar 4 00:00:00 1997 GMT | ||
| 3 | notAfter=Mar 4 23:59:59 2025 GMT | ||
| 4 | -----BEGIN CERTIFICATE----- | ||
| 5 | MIICTTCCAfcCEEdoCqpuXxnoK27q7d58Qc4wDQYJKoZIhvcNAQEEBQAwgakxFjAU | ||
| 6 | BgNVBAoTDVZlcmlTaWduLCBJbmMxRzBFBgNVBAsTPnd3dy52ZXJpc2lnbi5jb20v | ||
| 7 | cmVwb3NpdG9yeS9UZXN0Q1BTIEluY29ycC4gQnkgUmVmLiBMaWFiLiBMVEQuMUYw | ||
| 8 | RAYDVQQLEz1Gb3IgVmVyaVNpZ24gYXV0aG9yaXplZCB0ZXN0aW5nIG9ubHkuIE5v | ||
| 9 | IGFzc3VyYW5jZXMgKEMpVlMxOTk3MB4XDTk3MDMwNDAwMDAwMFoXDTI1MDMwNDIz | ||
| 10 | NTk1OVowgakxFjAUBgNVBAoTDVZlcmlTaWduLCBJbmMxRzBFBgNVBAsTPnd3dy52 | ||
| 11 | ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9UZXN0Q1BTIEluY29ycC4gQnkgUmVmLiBM | ||
| 12 | aWFiLiBMVEQuMUYwRAYDVQQLEz1Gb3IgVmVyaVNpZ24gYXV0aG9yaXplZCB0ZXN0 | ||
| 13 | aW5nIG9ubHkuIE5vIGFzc3VyYW5jZXMgKEMpVlMxOTk3MFwwDQYJKoZIhvcNAQEB | ||
| 14 | BQADSwAwSAJBAMak6xImJx44jMKcbkACy5/CyMA2fqXK4PlzTtCxRq5tFkDzne7s | ||
| 15 | cI8oFK/J+gFZNE3bjidDxf07O3JOYG9RGx8CAwEAATANBgkqhkiG9w0BAQQFAANB | ||
| 16 | ADT523tENOKrEheZFpsJx1UUjPrG7TwYc/C4NBHrZI4gZJcKVFIfNulftVS6UMYW | ||
| 17 | ToLEMaUojc3DuNXHG21PDG8= | ||
| 18 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/eng1.pem b/src/lib/libssl/src/certs/eng1.pem new file mode 100644 index 0000000000..7ed8b1b5e6 --- /dev/null +++ b/src/lib/libssl/src/certs/eng1.pem | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBqDELMAkGA1UEBhMCQ0Ex | ||
| 3 | CzAJBgNVBAgTAk9OMRAwDgYDVQQHEwdUb3JvbnRvMRgwFgYDVQQKEw9CYW5rRW5n | ||
| 4 | aW5lIEluYy4xKTAnBgNVBAsTIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IERpdmlz | ||
| 5 | aW9uMRMwEQYDVQQDEwpiYW5rZW5naW5lMSAwHgYJKoZIhvcNAQkBFhFjYUBiYW5r | ||
| 6 | ZW5naW5lLmNvbTAeFw05ODAxMDEwMDAwMDBaFw0zODAxMTcwMDAwMDBaMIGoMQsw | ||
| 7 | CQYDVQQGEwJDQTELMAkGA1UECBMCT04xEDAOBgNVBAcTB1Rvcm9udG8xGDAWBgNV | ||
| 8 | BAoTD0JhbmtFbmdpbmUgSW5jLjEpMCcGA1UECxMgQ2VydGlmaWNhdGlvbiBBdXRo | ||
| 9 | b3JpdHkgRGl2aXNpb24xEzARBgNVBAMTCmJhbmtlbmdpbmUxIDAeBgkqhkiG9w0B | ||
| 10 | CQEWEWNhQGJhbmtlbmdpbmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB | ||
| 11 | CgKCAQEA14LoTUAl1/hEy+Kh1kLHiBdW2zD3V4IhM7xxTVKsYsIH56nr69ATTIxU | ||
| 12 | P36eRzeZ137qt1AxHFjDCidk3m1Ul6l59ProPexdslLLM2npM3f2cteg+toyiYiS | ||
| 13 | EJKjyzIu1xF1j9qzGkymSY/4DsXLZNk9FaczxMk/Ooc6Os1M3AverL4VG4rYIb6f | ||
| 14 | eR32cIKJ9Q1fGuyKk7ipq1XQfPW8a8TgZdbHbe7U9Gk3iasGMHHvpR9Ep3mGbgdT | ||
| 15 | uQ98SBEuIwe1BUCGg/MXpVy48MNXfAMotBgGw4pl9yqSjMni2FB+E9Q9DHFs2RgX | ||
| 16 | MqzKuo8zcPxKx2kZ6Arj8+27dw2clQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0G | ||
| 17 | CSqGSIb3DQEBBQUAA4IBAQBauupHX9EhpC/r57d6b5kkeWvognxIP9//TO4iw3qb | ||
| 18 | zIXEkPXmJmwVzlzoKJWqiya+aw19SP0+G6CzsFOBo/9ehmz+hZ8bhYX4MjlWzX5u | ||
| 19 | Tnkhz172j9fOBUmrTVPkcRIs6zjCD5PQAGoBPP1/Zdy2N36lZ0U7lg07Opirj/yJ | ||
| 20 | PSJeM2j0fwIFAroiVckvdT0BVwB6S/cPaAQGPghbbr1YGSmYrMriSv825ILJUfxz | ||
| 21 | rJYunGR9FiY9Ob7+jwJwiZMS4CxSPktutxr/3hOvr1+ALS7IcVakhhA3PuZAJbdH | ||
| 22 | FRclR9qMM8aBnBZmf+Uv3K3uhT+UBzzY654U9Yi1JYnA | ||
| 23 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/eng2.pem b/src/lib/libssl/src/certs/eng2.pem new file mode 100644 index 0000000000..73066309b1 --- /dev/null +++ b/src/lib/libssl/src/certs/eng2.pem | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBqDELMAkGA1UEBhMCQ0Ex | ||
| 3 | CzAJBgNVBAgTAk9OMRAwDgYDVQQHEwdUb3JvbnRvMRgwFgYDVQQKEw9DZXJ0RW5n | ||
| 4 | aW5lIEluYy4xKTAnBgNVBAsTIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IERpdmlz | ||
| 5 | aW9uMRMwEQYDVQQDEwpjZXJ0ZW5naW5lMSAwHgYJKoZIhvcNAQkBFhFjYUBjZXJ0 | ||
| 6 | ZW5naW5lLmNvbTAeFw05ODAxMDEwMDAwMDBaFw0zODAxMTcwMDAwMDBaMIGoMQsw | ||
| 7 | CQYDVQQGEwJDQTELMAkGA1UECBMCT04xEDAOBgNVBAcTB1Rvcm9udG8xGDAWBgNV | ||
| 8 | BAoTD0NlcnRFbmdpbmUgSW5jLjEpMCcGA1UECxMgQ2VydGlmaWNhdGlvbiBBdXRo | ||
| 9 | b3JpdHkgRGl2aXNpb24xEzARBgNVBAMTCmNlcnRlbmdpbmUxIDAeBgkqhkiG9w0B | ||
| 10 | CQEWEWNhQGNlcnRlbmdpbmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB | ||
| 11 | CgKCAQEA7aTXURShaeVt9u/dP3Q2dVib3jTCZvEyc6yfpGgaYWewXWuP4HOSfI4h | ||
| 12 | GZblbpl+dzJc6RjhR+pguIRtbT5FJB8SJGjRqoujBEOQOxtVtc2fjM9Dqh0iOvMW | ||
| 13 | WS6buxHG55GVrHAQaO5HXEScKQBa9ZyNmpSXPTEBrDMej1OAGOkc524/TZrgFPF4 | ||
| 14 | AiJLLkxCcP8NuzUKlW3WzNMSSoCtjkUKy4wjSLlAWCFM0T9Df6/+Z8ZUQTzHoKCD | ||
| 15 | ncH5Qnynd7DlOwKQ2JwwxRhYGiGVTUN0GUq7qA11kW3+vnbFesKQXoF6o2PVx9s2 | ||
| 16 | YXviI2NXXUjZ0pVnsnFCc45Pm8XojwIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0G | ||
| 17 | CSqGSIb3DQEBBQUAA4IBAQBP/aHOKJ00Akzc9HWM1X30hlWZFBaQi4pqD4Uhk8+p | ||
| 18 | KzzwFP5DRLBOz8TYBbtdXrS6hxVMr2sqWmhVkuyepWhHZazKGyHY/y0FbOXsewAV | ||
| 19 | 1QxxSyx7ve89pCKv4/w0rQcP916iHc8Y/TCpmz7eITa3GId+8H/XTaBi8GBp9X9O | ||
| 20 | w8m25FmEB1NT+eJwefvfdKowjy4tSorKdW/eJspxNuTSRGmUy8G71W5dYvgpAlx6 | ||
| 21 | mdnHyzxEGvRYNNI2bS0ifXgbEFNWqSas9q34ea5KOpkJu8T/KyXfSb6rPOsBSb0t | ||
| 22 | wMowwGtCVH2C4Lw/8zo0EjhMpTOsPaub408PrZ+NQ2bl | ||
| 23 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/eng3.pem b/src/lib/libssl/src/certs/eng3.pem new file mode 100644 index 0000000000..28bcce2dfd --- /dev/null +++ b/src/lib/libssl/src/certs/eng3.pem | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIIF3TCCA8WgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBqDELMAkGA1UEBhMCQ0Ex | ||
| 3 | CzAJBgNVBAgTAk9OMRAwDgYDVQQHEwdUb3JvbnRvMRgwFgYDVQQKEw9Gb3J0RW5n | ||
| 4 | aW5lIEluYy4xKTAnBgNVBAsTIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IERpdmlz | ||
| 5 | aW9uMRMwEQYDVQQDEwpmb3J0ZW5naW5lMSAwHgYJKoZIhvcNAQkBFhFjYUBmb3J0 | ||
| 6 | ZW5naW5lLmNvbTAeFw05ODAxMDEwMDAwMDBaFw0zODAxMTcwMDAwMDBaMIGoMQsw | ||
| 7 | CQYDVQQGEwJDQTELMAkGA1UECBMCT04xEDAOBgNVBAcTB1Rvcm9udG8xGDAWBgNV | ||
| 8 | BAoTD0ZvcnRFbmdpbmUgSW5jLjEpMCcGA1UECxMgQ2VydGlmaWNhdGlvbiBBdXRo | ||
| 9 | b3JpdHkgRGl2aXNpb24xEzARBgNVBAMTCmZvcnRlbmdpbmUxIDAeBgkqhkiG9w0B | ||
| 10 | CQEWEWNhQGZvcnRlbmdpbmUuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC | ||
| 11 | CgKCAgEAyr7GbpwDxx1v3EYbo0gcO+ligEhlDqG2e7u/AbWGoVAqc8+q6auUJUtz | ||
| 12 | 4i7oh0yNadu1o9kpXW+znkgO0zlrgjGskqqMO1ooppzTJdFy/P8gR6x1Iuv3kWtX | ||
| 13 | OuzwPPEjv09LWlhyJsN+oU4ztTVf07I0Q9zYupcoDQ58XKRheI9KdDB2DYSmxywA | ||
| 14 | WSLQwIeG0Qa7gvokeQlpkgkEC7viEecJ3752KXBJHnh7As51mxnlpmG6sDy67Eli | ||
| 15 | HDw5tHETRqbtnscGBjskGQBqR5xt7+QnnthZrN8HJHDoa9zgGephwizhkL44lXLF | ||
| 16 | YK9W5XhFbblw2c+mAcHkokRiwD7CPeIoyD2a/Jcw3n5hegKTlNhd4BFGVF6JR7gF | ||
| 17 | OFk2QfHXit5uthsij9Xhl7WAgQUqLgggD9MphqPf4nY66OZUJV9ZsmB+Qfp8UizB | ||
| 18 | 0WAOegactKVyRqHtRa+KIEXQXNtZgjcmMk9CYkP0nIbKtgKXaH6+9VMHNOryCnFE | ||
| 19 | 7pSsuPUkypncFWCHGSeiFO3w4w4J4csltxBADQzxfRu5KZnlToQN7bVpI/Q31tVX | ||
| 20 | E5bjrJcq6Oj/OTqZ3ID+OqbkUdAg0ggjRKcTgxnLHd/AbMzJ6PsclDDf7cLs0WSl | ||
| 21 | xMxQR/z5bNST1rNtT9rsiv2TOhfvCBxO9AOjBioO8PLO032HTNECAwEAAaMQMA4w | ||
| 22 | DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAgEAVyBpPWfT2VOyvVpslGKx | ||
| 23 | 8h0+CWP8cilygGRtZJ5dAJzc//1REAHdvK+TgZ4Foz3dqHhXI+RNN0FpzuWaYMjW | ||
| 24 | ZTS0kAmcOQuGY1Oo4PGlPHI21pNz29oFDTJr0ZmLBJ4JKVsE2soJg55jdk9MZHA7 | ||
| 25 | K//7HH9RsmrWZOE5DZDlrxp6+naixhMwnlPKKisIy9GNZUPqGdUWABMdB/BUVVNl | ||
| 26 | NU5TtWpIXUClMd8a+eoKcItBeYXowkHOBpinPkDX3clFDIUfWiw0Ro08s8SrrFqR | ||
| 27 | 8Szwbrj52Xv1RM56oGqCjnkvJctxihODV7NcpxoAFjIZokDom0q6zPrrTUsLFQov | ||
| 28 | Plovc3w5hmALiDMshaTvE1nm3Psn4yQ+FlRE8epTZrQiIGypZkZC6lcz0mYawueW | ||
| 29 | cThYWGFhVG4ktQzOjjNRsNxopW+W7cF1zQTxiWUDnxIKSj7gtdQ2jiubxEEhfVag | ||
| 30 | r8DMtAccNVTZVURpGi56TptOOuotrTqqC+2GviW4hlxvdvmuQN0OlXlUwzz2Trxc | ||
| 31 | FamNnuA54lZw/8arLtxsFmHrcnPw53+1spumLD0S5UkxHNu40h6LIVpZz3H+0rLz | ||
| 32 | uFofTfiyMjcfK2AyHQTgUCbsrvgNuLDQUbyFGVchdFUkhztX3DhEVnxnnrpY4BVj | ||
| 33 | QdTqWIvw7lGlSuDCjxEQAOc= | ||
| 34 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/eng4.pem b/src/lib/libssl/src/certs/eng4.pem new file mode 100644 index 0000000000..9a7b156226 --- /dev/null +++ b/src/lib/libssl/src/certs/eng4.pem | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBqDELMAkGA1UEBhMCQ0Ex | ||
| 3 | CzAJBgNVBAgTAk9OMRAwDgYDVQQHEwdUb3JvbnRvMRgwFgYDVQQKEw9NYWlsRW5n | ||
| 4 | aW5lIEluYy4xKTAnBgNVBAsTIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IERpdmlz | ||
| 5 | aW9uMRMwEQYDVQQDEwptYWlsZW5naW5lMSAwHgYJKoZIhvcNAQkBFhFjYUBtYWls | ||
| 6 | ZW5naW5lLmNvbTAeFw05ODAxMDEwMDAwMDBaFw0zODAxMTcwMDAwMDBaMIGoMQsw | ||
| 7 | CQYDVQQGEwJDQTELMAkGA1UECBMCT04xEDAOBgNVBAcTB1Rvcm9udG8xGDAWBgNV | ||
| 8 | BAoTD01haWxFbmdpbmUgSW5jLjEpMCcGA1UECxMgQ2VydGlmaWNhdGlvbiBBdXRo | ||
| 9 | b3JpdHkgRGl2aXNpb24xEzARBgNVBAMTCm1haWxlbmdpbmUxIDAeBgkqhkiG9w0B | ||
| 10 | CQEWEWNhQG1haWxlbmdpbmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB | ||
| 11 | CgKCAQEAqXmfsU+lx+NFmn6tN17RTOyaddHqLnr/3rzEDIyT9TN+tF9TG7jmK7lJ | ||
| 12 | Jrj5arQ3nTFaLF8JuND2U1z/cLPw6/TX+1tE3v3CNUDSjaisyUDiUyp3TE8hMMMz | ||
| 13 | zfZQn0JsGgNhhWxqyzjhRQGtKL4+xtn8VsF/8zGgZYke7nlmVKz/FslDFTnNoodL | ||
| 14 | BAEGiu9JQS9qqpbSs20NdZ6LXPL2A4iTjnsNFBW3jIMVIn/JVVyaycU7ue2oFviD | ||
| 15 | vLNpkVZcR7A+jjIdIumOc5VSF0y7y74cQC5YwkR2mLK7UBYDK6NCY3ta/C4M8NsM | ||
| 16 | 0FpmvRl0+A1ivZtVwqI98dxDtp7HeQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0G | ||
| 17 | CSqGSIb3DQEBBQUAA4IBAQAjfNn5BCzxylBDakFQGWKE/P43PRibMOEzfd7+DzbY | ||
| 18 | WIekoz3i00DwoH3b6j4gwlDJRAOq4dF6/Pt/uBOHDo/op+ef+9ErmKPd+ehXN9h3 | ||
| 19 | 7QbccTgz7DtVwA4iRlDRLru+JuXzT+OsCHuFZMOLJ+KD2JAGh3W68JjdcLkrlcpt | ||
| 20 | AU0wc5aOHPPfEBdIah8y8QtNzXRVzoBt8zzvgCARkXxTS2u/9QaXR1hML0JtDgQS | ||
| 21 | SdZ6Kd8SN6yzqxD+buYD5sOfJmjBF/n3lqFHNMHnnGXy2TAXZtIAWzffU3A0cGPB | ||
| 22 | N6FZ026a86HbF1X4k+xszhbJu/ikczyuWnCJIg3fTYSD | ||
| 23 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/eng5.pem b/src/lib/libssl/src/certs/eng5.pem new file mode 100644 index 0000000000..3416ccad24 --- /dev/null +++ b/src/lib/libssl/src/certs/eng5.pem | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIID6TCCAtGgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBrjELMAkGA1UEBhMCQ0Ex | ||
| 3 | CzAJBgNVBAgTAk9OMRAwDgYDVQQHEwdUb3JvbnRvMRowGAYDVQQKExFUcmFkZXJF | ||
| 4 | bmdpbmUgSW5jLjEpMCcGA1UECxMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgRGl2 | ||
| 5 | aXNpb24xFTATBgNVBAMTDHRyYWRlcmVuZ2luZTEiMCAGCSqGSIb3DQEJARYTY2FA | ||
| 6 | dHJhZGVyZW5naW5lLmNvbTAeFw05ODAxMDEwMDAwMDBaFw0zODAxMTcwMDAwMDBa | ||
| 7 | MIGuMQswCQYDVQQGEwJDQTELMAkGA1UECBMCT04xEDAOBgNVBAcTB1Rvcm9udG8x | ||
| 8 | GjAYBgNVBAoTEVRyYWRlckVuZ2luZSBJbmMuMSkwJwYDVQQLEyBDZXJ0aWZpY2F0 | ||
| 9 | aW9uIEF1dGhvcml0eSBEaXZpc2lvbjEVMBMGA1UEAxMMdHJhZGVyZW5naW5lMSIw | ||
| 10 | IAYJKoZIhvcNAQkBFhNjYUB0cmFkZXJlbmdpbmUuY29tMIIBIjANBgkqhkiG9w0B | ||
| 11 | AQEFAAOCAQ8AMIIBCgKCAQEAzyX5QE+5SN+zgNn1v3zp9HmP4hQOWW8WuEVItZVP | ||
| 12 | 9bt/xj5NeJd1kyPL/SqnF2qHcL3o/74r0Ga55aKHniwKYgQTlp5ELGfQ568QQeN9 | ||
| 13 | xNIHtUXeStI9zCNZyZC+4YqObdMR/ivKA/WsLfUVMl2lV5JzJJz1BOE0gKEYiEyz | ||
| 14 | gIq5oLzkP/mOXoHRvWSZD2D0eHYIO7ovV2epVFK7g7p+dC4QoeIUEli+GF/Myg88 | ||
| 15 | dV/qmi+Sybck2RLPXa8Nh27/ETVQ7kE1Eafmx7EyCqIhG+5lwJAy3HwHUBwAYuzj | ||
| 16 | iuZz5lD8aQmr8SKuvy3eOH9SVN5wh3YBlrNGwTStkESVLwIDAQABoxAwDjAMBgNV | ||
| 17 | HRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAWOPAUhZd3x9EQiFJcuxFTMd9q | ||
| 18 | axgcriCzJsM6D96sYGko9xTeLhX/lr1bliVYI5AlupoLXAdMzGHJkOgaTirKjQXr | ||
| 19 | F9nymDdUWKe3TmwGob5016nQlH7qRKvGO3hka0rOGRK2U/2JT/4Qp8iH/DFi6cyM | ||
| 20 | uP0q8n64SAkxZXLzUuFQXqf7U/SNjzb9XJQEIAdjp7eYd3Qb4jDsDcX0FrKMF1aV | ||
| 21 | r0dCDnS7am7WTXPYCDGdSkPgEHEtLYIYH3lZp5sKdVZ9wl4F0WNFkRWRUr7AXPjw | ||
| 22 | 50uLmUNmKCd8JZLMGA1TRNSTi7U9EcrWt0OkMWm74T2WVnAgNsDv2WrWsGfj | ||
| 23 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/expired/RegTP-4R.pem b/src/lib/libssl/src/certs/expired/RegTP-4R.pem new file mode 100644 index 0000000000..6f2c6abccd --- /dev/null +++ b/src/lib/libssl/src/certs/expired/RegTP-4R.pem | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | issuer= CN=4R-CA 1:PN+0.2.262.1.10.7.20=#130131,O=Regulierungsbeh\C3\88orde f\C3\88ur Telekommunikation und Post,C=DE | ||
| 2 | notBefore=Jan 21 16:04:53 1999 GMT | ||
| 3 | notAfter=Jan 21 16:04:53 2004 GMT | ||
| 4 | subject= CN=4R-CA 1:PN+0.2.262.1.10.7.20=#130131,O=Regulierungsbeh\C3\88orde f\C3\88ur Telekommunikation und Post,C=DE | ||
| 5 | -----BEGIN CERTIFICATE----- | ||
| 6 | MIICZzCCAdOgAwIBAgIEOwVn1DAKBgYrJAMDAQIFADBvMQswCQYDVQQGEwJERTE9 | ||
| 7 | MDsGA1UEChQ0UmVndWxpZXJ1bmdzYmVoyG9yZGUgZsh1ciBUZWxla29tbXVuaWth | ||
| 8 | dGlvbiB1bmQgUG9zdDEhMAwGBwKCBgEKBxQTATEwEQYDVQQDFAo0Ui1DQSAxOlBO | ||
| 9 | MCIYDzE5OTkwMTIxMTYwNDUzWhgPMjAwNDAxMjExNjA0NTNaMG8xCzAJBgNVBAYT | ||
| 10 | AkRFMT0wOwYDVQQKFDRSZWd1bGllcnVuZ3NiZWjIb3JkZSBmyHVyIFRlbGVrb21t | ||
| 11 | dW5pa2F0aW9uIHVuZCBQb3N0MSEwDAYHAoIGAQoHFBMBMTARBgNVBAMUCjRSLUNB | ||
| 12 | IDE6UE4wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGAjzHbq2asUlqeWbXTQHso | ||
| 13 | aVF6YIPVH3c/B2cbuy9HJ/lnE6x0asOzM2DGDqi47xkdAxPc0LZ0fxO87rkmz7xs | ||
| 14 | jJObnVrMXpyUSDSp5Y0wqKJdsFdr6mGFOQZteIti8AJnr8xMkwnWVyuOlEXsFe1h | ||
| 15 | 5gxwQXrOcPinE6qu1t/3PmECBMAAAAGjEjAQMA4GA1UdDwEB/wQEAwIBBjAKBgYr | ||
| 16 | JAMDAQIFAAOBgQA+RdocBmA2VV9E5aKPBcp01tdZAvvW9Tve3docArVKR/4/yvSX | ||
| 17 | Z+wvzzk+uu4qBp49HN3nqPYMrzbTmjBFu4ce5fkZ7dHF0W1sSBL0rox5z36Aq2re | ||
| 18 | JjfEOEmSnNe0+opuh4FSVOssXblXTE8lEQU0FhhItgDx2ADnWZibaxLG4w== | ||
| 19 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/expired/factory.pem b/src/lib/libssl/src/certs/expired/factory.pem new file mode 100644 index 0000000000..8e28b391b2 --- /dev/null +++ b/src/lib/libssl/src/certs/expired/factory.pem | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIICTTCCAbagAwIBAgIBADANBgkqhkiG9w0BAQQFADBMMQswCQYDVQQGEwJHQjEM | ||
| 3 | MAoGA1UEChMDVUNMMRgwFgYDVQQLEw9JQ0UtVEVMIFByb2plY3QxFTATBgNVBAMT | ||
| 4 | DFRydXN0RmFjdG9yeTAeFw05NzA0MjIxNDM5MTRaFw05ODA0MjIxNDM5MTRaMEwx | ||
| 5 | CzAJBgNVBAYTAkdCMQwwCgYDVQQKEwNVQ0wxGDAWBgNVBAsTD0lDRS1URUwgUHJv | ||
| 6 | amVjdDEVMBMGA1UEAxMMVHJ1c3RGYWN0b3J5MIGcMAoGBFUIAQECAgQAA4GNADCB | ||
| 7 | iQKBgQCEieR8NcXkUW1f0G6aC6u0i8q/98JqS6RxK5YmHIGKCkuTWAUjzLfUa4dt | ||
| 8 | U9igGCjTuxaDqlzEim+t/02pmiBZT9HaX++35MjQPUWmsChcYU5WyzGErXi+rQaw | ||
| 9 | zlwS73zM8qiPj/97lXYycWhgL0VaiDSPxRXEUdWoaGruom4mNQIDAQABo0IwQDAd | ||
| 10 | BgNVHQ4EFgQUHal1LZr7oVg5z6lYzrhTgZRCmcUwDgYDVR0PAQH/BAQDAgH2MA8G | ||
| 11 | A1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAfaggfl6FZoioecjv0dq8 | ||
| 12 | /DXo/u11iMZvXn08gjX/zl2b4wtPbShOSY5FhkSm8GeySasz+/Nwb/uzfnIhokWi | ||
| 13 | lfPZHtlCWtXbIy/TN51eJyq04ceDCQDWvLC2enVg9KB+GJ34b5c5VaPRzq8MBxsA | ||
| 14 | S7ELuYGtmYgYm9NZOIr7yU0= | ||
| 15 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/expired/rsa-cca.pem b/src/lib/libssl/src/certs/expired/rsa-cca.pem new file mode 100644 index 0000000000..69f5c1c84c --- /dev/null +++ b/src/lib/libssl/src/certs/expired/rsa-cca.pem | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | subject=/C=US/O=RSA Data Security, Inc./OU=Commercial Certification Authority | ||
| 2 | issuer= /C=US/O=RSA Data Security, Inc./OU=Commercial Certification Authority | ||
| 3 | notBefore=941104185834Z | ||
| 4 | notAfter =991103185834Z | ||
| 5 | -----BEGIN X509 CERTIFICATE----- | ||
| 6 | |||
| 7 | MIICIzCCAZACBQJBAAAWMA0GCSqGSIb3DQEBAgUAMFwxCzAJBgNVBAYTAlVTMSAw | ||
| 8 | HgYDVQQKExdSU0EgRGF0YSBTZWN1cml0eSwgSW5jLjErMCkGA1UECxMiQ29tbWVy | ||
| 9 | Y2lhbCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05NDExMDQxODU4MzRaFw05 | ||
| 10 | OTExMDMxODU4MzRaMFwxCzAJBgNVBAYTAlVTMSAwHgYDVQQKExdSU0EgRGF0YSBT | ||
| 11 | ZWN1cml0eSwgSW5jLjErMCkGA1UECxMiQ29tbWVyY2lhbCBDZXJ0aWZpY2F0aW9u | ||
| 12 | IEF1dGhvcml0eTCBmzANBgkqhkiG9w0BAQEFAAOBiQAwgYUCfgCk+4Fie84QJ93o | ||
| 13 | 975sbsZwmdu41QUDaSiCnHJ/lj+O7Kwpkj+KFPhCdr69XQO5kNTQvAayUTNfxMK/ | ||
| 14 | touPmbZiImDd298ggrTKoi8tUO2UMt7gVY3UaOLgTNLNBRYulWZcYVI4HlGogqHE | ||
| 15 | 7yXpCuaLK44xZtn42f29O2nZ6wIDAQABMA0GCSqGSIb3DQEBAgUAA34AdrW2EP4j | ||
| 16 | 9/dZYkuwX5zBaLxJu7NJbyFHXSudVMQAKD+YufKKg5tgf+tQx6sFEC097TgCwaVI | ||
| 17 | 0v5loMC86qYjFmZsGySp8+x5NRhPJsjjr1BKx6cxa9B8GJ1Qv6km+iYrRpwUqbtb | ||
| 18 | MJhCKLVLU7tDCZJAuqiqWqTGtotXTcU= | ||
| 19 | -----END X509 CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/expired/vsign2.pem b/src/lib/libssl/src/certs/expired/vsign2.pem new file mode 100644 index 0000000000..d8bdd8c812 --- /dev/null +++ b/src/lib/libssl/src/certs/expired/vsign2.pem | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | subject=/C=US/O=VeriSign, Inc./OU=Class 2 Public Primary Certification Authority | ||
| 2 | notBefore=Jan 29 00:00:00 1996 GMT | ||
| 3 | notAfter=Jan 7 23:59:59 2004 GMT | ||
| 4 | -----BEGIN CERTIFICATE----- | ||
| 5 | MIICPTCCAaYCEQC6WslMBTuS1qe2307QU5INMA0GCSqGSIb3DQEBAgUAMF8xCzAJ | ||
| 6 | BgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE3MDUGA1UECxMuQ2xh | ||
| 7 | c3MgMiBQdWJsaWMgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05 | ||
| 8 | NjAxMjkwMDAwMDBaFw0wNDAxMDcyMzU5NTlaMF8xCzAJBgNVBAYTAlVTMRcwFQYD | ||
| 9 | VQQKEw5WZXJpU2lnbiwgSW5jLjE3MDUGA1UECxMuQ2xhc3MgMiBQdWJsaWMgUHJp | ||
| 10 | bWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCBnzANBgkqhkiG9w0BAQEFAAOB | ||
| 11 | jQAwgYkCgYEAtlqLow1qI4OAa885h/QhEzMGTCWi7VUSl8WngLn6g8EgoPovFQ18 | ||
| 12 | oWBrfnks+gYPOq72G2+x0v8vKFJfg31LxHq3+GYfgFT8t8KOWUoUV0bRmpO+QZED | ||
| 13 | uxWAk1zr58wIbD8+s0r8/0tsI9VQgiZEGY4jw3HqGSRHBJ51v8imAB8CAwEAATAN | ||
| 14 | BgkqhkiG9w0BAQIFAAOBgQC2AB+TV6QHp0DOZUA/VV7t7/pUSaUw1iF8YYfug5ML | ||
| 15 | v7Qz8pisnwa/TqjOFIFMywROWMPPX+5815pvy0GKt3+BuP+EYcYnQ2UdDOyxAArd | ||
| 16 | G6S7x3ggKLKi3TaVLuFUT79guXdoEZkj6OpS6KoATmdOu5C1RZtG644W78QzWzM9 | ||
| 17 | 1Q== | ||
| 18 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/wellsfgo.pem b/src/lib/libssl/src/certs/wellsfgo.pem new file mode 100644 index 0000000000..2ba88cdda7 --- /dev/null +++ b/src/lib/libssl/src/certs/wellsfgo.pem | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIID5TCCAs2gAwIBAgIEOeSXnjANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UEBhMC | ||
| 3 | VVMxFDASBgNVBAoTC1dlbGxzIEZhcmdvMSwwKgYDVQQLEyNXZWxscyBGYXJnbyBD | ||
| 4 | ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEvMC0GA1UEAxMmV2VsbHMgRmFyZ28gUm9v | ||
| 5 | dCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDAxMDExMTY0MTI4WhcNMjEwMTE0 | ||
| 6 | MTY0MTI4WjCBgjELMAkGA1UEBhMCVVMxFDASBgNVBAoTC1dlbGxzIEZhcmdvMSww | ||
| 7 | KgYDVQQLEyNXZWxscyBGYXJnbyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEvMC0G | ||
| 8 | A1UEAxMmV2VsbHMgRmFyZ28gUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEi | ||
| 9 | MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVqDM7Jvk0/82bfuUER84A4n13 | ||
| 10 | 5zHCLielTWi5MbqNQ1mXx3Oqfz1cQJ4F5aHiidlMuD+b+Qy0yGIZLEWukR5zcUHE | ||
| 11 | SxP9cMIlrCL1dQu3U+SlK93OvRw6esP3E48mVJwWa2uv+9iWsWCaSOAlIiR5NM4O | ||
| 12 | JgALTqv9i86C1y8IcGjBqAr5dE8Hq6T54oN+J3N0Prj5OEL8pahbSCOz6+MlsoCu | ||
| 13 | ltQKnMJ4msZoGK43YjdeUXWoWGPAUe5AeH6orxqg4bB4nVCMe+ez/I4jsNtlAHCE | ||
| 14 | AQgAFG5Uhpq6zPk3EPbg3oQtnaSFN9OH4xXQwReQfhkhahKpdv0SAulPIV4XAgMB | ||
| 15 | AAGjYTBfMA8GA1UdEwEB/wQFMAMBAf8wTAYDVR0gBEUwQzBBBgtghkgBhvt7hwcB | ||
| 16 | CzAyMDAGCCsGAQUFBwIBFiRodHRwOi8vd3d3LndlbGxzZmFyZ28uY29tL2NlcnRw | ||
| 17 | b2xpY3kwDQYJKoZIhvcNAQEFBQADggEBANIn3ZwKdyu7IvICtUpKkfnRLb7kuxpo | ||
| 18 | 7w6kAOnu5+/u9vnldKTC2FJYxHT7zmu1Oyl5GFrvm+0fazbuSCUlFLZWohDo7qd/ | ||
| 19 | 0D+j0MNdJu4HzMPBJCGHHt8qElNvQRbn7a6U+oxy+hNH8Dx+rn0ROhPs7fpvcmR7 | ||
| 20 | nX1/Jv16+yWt6j4pf0zjAFcysLPp7VMX2YuyFA4w6OXVE8Zkr8QA1dhYJPz1j+zx | ||
| 21 | x32l2w8n0cbyQIjmH/ZhqPRCyLk306m+LFZ4wnKbWV01QIroTmMatukgalHizqSQ | ||
| 22 | 33ZwmVxwQ023tqcZZE6St8WRPH9IFmV7Fv3L/PvZ1dZPIWU7Sn9Ho/s= | ||
| 23 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/crypto/aes/Makefile b/src/lib/libssl/src/crypto/aes/Makefile new file mode 100644 index 0000000000..a37c6f66a2 --- /dev/null +++ b/src/lib/libssl/src/crypto/aes/Makefile | |||
| @@ -0,0 +1,103 @@ | |||
| 1 | # | ||
| 2 | # crypto/aes/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= aes | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP= /usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | # CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr | ||
| 20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 21 | |||
| 22 | GENERAL=Makefile | ||
| 23 | #TEST=aestest.c | ||
| 24 | TEST= | ||
| 25 | APPS= | ||
| 26 | |||
| 27 | LIB=$(TOP)/libcrypto.a | ||
| 28 | LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c | ||
| 29 | LIBOBJ=aes_core.o aes_misc.o aes_ecb.o aes_cbc.o aes_cfb.o aes_ofb.o aes_ctr.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= aes.h | ||
| 34 | HEADER= aes_locl.h $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | $(LIBOBJ): $(LIBSRC) | ||
| 49 | |||
| 50 | files: | ||
| 51 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 52 | |||
| 53 | links: | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 57 | |||
| 58 | install: installs | ||
| 59 | |||
| 60 | installs: | ||
| 61 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 62 | do \ | ||
| 63 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 64 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 65 | done; | ||
| 66 | |||
| 67 | tags: | ||
| 68 | ctags $(SRC) | ||
| 69 | |||
| 70 | tests: | ||
| 71 | |||
| 72 | lint: | ||
| 73 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 74 | |||
| 75 | depend: | ||
| 76 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 77 | |||
| 78 | dclean: | ||
| 79 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 80 | mv -f Makefile.new $(MAKEFILE) | ||
| 81 | |||
| 82 | clean: | ||
| 83 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 84 | |||
| 85 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 86 | |||
| 87 | aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 88 | aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c aes_locl.h | ||
| 89 | aes_cfb.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 90 | aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 91 | aes_cfb.o: aes_cfb.c aes_locl.h | ||
| 92 | aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 93 | aes_core.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h | ||
| 94 | aes_core.o: aes_core.c aes_locl.h | ||
| 95 | aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 96 | aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h | ||
| 97 | aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 98 | aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h | ||
| 99 | aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 100 | aes_misc.o: ../../include/openssl/opensslconf.h | ||
| 101 | aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c | ||
| 102 | aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 103 | aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c | ||
diff --git a/src/lib/libssl/src/crypto/asn1/Makefile b/src/lib/libssl/src/crypto/asn1/Makefile new file mode 100644 index 0000000000..b11298d621 --- /dev/null +++ b/src/lib/libssl/src/crypto/asn1/Makefile | |||
| @@ -0,0 +1,1150 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/asn1/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= asn1 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile README | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c \ | ||
| 26 | a_print.c a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c \ | ||
| 27 | a_enum.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c \ | ||
| 28 | x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c x_bignum.c \ | ||
| 29 | x_long.c x_name.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c \ | ||
| 30 | d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c\ | ||
| 31 | t_req.c t_x509.c t_x509a.c t_crl.c t_pkey.c t_spki.c t_bitst.c \ | ||
| 32 | tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c \ | ||
| 33 | f_int.c f_string.c n_pkey.c \ | ||
| 34 | f_enum.c a_hdr.c x_pkey.c a_bool.c x_exten.c \ | ||
| 35 | asn1_par.c asn1_lib.c asn1_err.c a_meth.c a_bytes.c a_strnid.c \ | ||
| 36 | evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c asn_moid.c | ||
| 37 | LIBOBJ= a_object.o a_bitstr.o a_utctm.o a_gentm.o a_time.o a_int.o a_octet.o \ | ||
| 38 | a_print.o a_type.o a_set.o a_dup.o a_d2i_fp.o a_i2d_fp.o \ | ||
| 39 | a_enum.o a_utf8.o a_sign.o a_digest.o a_verify.o a_mbstr.o a_strex.o \ | ||
| 40 | x_algor.o x_val.o x_pubkey.o x_sig.o x_req.o x_attrib.o x_bignum.o \ | ||
| 41 | x_long.o x_name.o x_x509.o x_x509a.o x_crl.o x_info.o x_spki.o nsseq.o \ | ||
| 42 | d2i_pu.o d2i_pr.o i2d_pu.o i2d_pr.o \ | ||
| 43 | t_req.o t_x509.o t_x509a.o t_crl.o t_pkey.o t_spki.o t_bitst.o \ | ||
| 44 | tasn_new.o tasn_fre.o tasn_enc.o tasn_dec.o tasn_utl.o tasn_typ.o \ | ||
| 45 | f_int.o f_string.o n_pkey.o \ | ||
| 46 | f_enum.o a_hdr.o x_pkey.o a_bool.o x_exten.o \ | ||
| 47 | asn1_par.o asn1_lib.o asn1_err.o a_meth.o a_bytes.o a_strnid.o \ | ||
| 48 | evp_asn1.o asn_pack.o p5_pbe.o p5_pbev2.o p8_pkey.o asn_moid.o | ||
| 49 | |||
| 50 | SRC= $(LIBSRC) | ||
| 51 | |||
| 52 | EXHEADER= asn1.h asn1_mac.h asn1t.h | ||
| 53 | HEADER= $(EXHEADER) | ||
| 54 | |||
| 55 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 56 | |||
| 57 | top: | ||
| 58 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 59 | |||
| 60 | test: test.c | ||
| 61 | cc -g -I../../include -c test.c | ||
| 62 | cc -g -I../../include -o test test.o -L../.. -lcrypto | ||
| 63 | |||
| 64 | pk: pk.c | ||
| 65 | cc -g -I../../include -c pk.c | ||
| 66 | cc -g -I../../include -o pk pk.o -L../.. -lcrypto | ||
| 67 | |||
| 68 | all: lib | ||
| 69 | |||
| 70 | lib: $(LIBOBJ) | ||
| 71 | $(AR) $(LIB) $(LIBOBJ) | ||
| 72 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 73 | @touch lib | ||
| 74 | |||
| 75 | files: | ||
| 76 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 77 | |||
| 78 | links: | ||
| 79 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 80 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 81 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 82 | |||
| 83 | install: | ||
| 84 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 85 | do \ | ||
| 86 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 87 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 88 | done; | ||
| 89 | |||
| 90 | tags: | ||
| 91 | ctags $(SRC) | ||
| 92 | |||
| 93 | tests: | ||
| 94 | |||
| 95 | lint: | ||
| 96 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 97 | |||
| 98 | depend: | ||
| 99 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 100 | |||
| 101 | dclean: | ||
| 102 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 103 | mv -f Makefile.new $(MAKEFILE) | ||
| 104 | |||
| 105 | clean: | ||
| 106 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 107 | |||
| 108 | |||
| 109 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 110 | |||
| 111 | a_bitstr.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 112 | a_bitstr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 113 | a_bitstr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 114 | a_bitstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 115 | a_bitstr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 116 | a_bitstr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 117 | a_bitstr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 118 | a_bitstr.o: ../../include/openssl/symhacks.h ../cryptlib.h a_bitstr.c | ||
| 119 | a_bool.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 120 | a_bool.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 121 | a_bool.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 122 | a_bool.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 123 | a_bool.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 124 | a_bool.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 125 | a_bool.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 126 | a_bool.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 127 | a_bool.o: ../cryptlib.h a_bool.c | ||
| 128 | a_bytes.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 129 | a_bytes.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 130 | a_bytes.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 131 | a_bytes.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 132 | a_bytes.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 133 | a_bytes.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 134 | a_bytes.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 135 | a_bytes.o: ../../include/openssl/symhacks.h ../cryptlib.h a_bytes.c | ||
| 136 | a_d2i_fp.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 137 | a_d2i_fp.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 138 | a_d2i_fp.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 139 | a_d2i_fp.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 140 | a_d2i_fp.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 141 | a_d2i_fp.o: ../../include/openssl/opensslconf.h | ||
| 142 | a_d2i_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 143 | a_d2i_fp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 144 | a_d2i_fp.o: ../../include/openssl/symhacks.h ../cryptlib.h a_d2i_fp.c | ||
| 145 | a_digest.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 146 | a_digest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 147 | a_digest.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 148 | a_digest.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 149 | a_digest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 150 | a_digest.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 151 | a_digest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 152 | a_digest.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 153 | a_digest.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 154 | a_digest.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 155 | a_digest.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 156 | a_digest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 157 | a_digest.o: ../../include/openssl/opensslconf.h | ||
| 158 | a_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 159 | a_digest.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 160 | a_digest.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 161 | a_digest.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 162 | a_digest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 163 | a_digest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 164 | a_digest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 165 | a_digest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 166 | a_digest.o: ../cryptlib.h a_digest.c | ||
| 167 | a_dup.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 168 | a_dup.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 169 | a_dup.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 170 | a_dup.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 171 | a_dup.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 172 | a_dup.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 173 | a_dup.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 174 | a_dup.o: ../cryptlib.h a_dup.c | ||
| 175 | a_enum.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 176 | a_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 177 | a_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 178 | a_enum.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 179 | a_enum.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 180 | a_enum.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 181 | a_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 182 | a_enum.o: ../cryptlib.h a_enum.c | ||
| 183 | a_gentm.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 184 | a_gentm.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 185 | a_gentm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 186 | a_gentm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 187 | a_gentm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 188 | a_gentm.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 189 | a_gentm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 190 | a_gentm.o: ../../include/openssl/symhacks.h ../cryptlib.h ../o_time.h a_gentm.c | ||
| 191 | a_hdr.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 192 | a_hdr.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 193 | a_hdr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 194 | a_hdr.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 195 | a_hdr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 196 | a_hdr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 197 | a_hdr.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 198 | a_hdr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 199 | a_hdr.o: ../cryptlib.h a_hdr.c | ||
| 200 | a_i2d_fp.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 201 | a_i2d_fp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 202 | a_i2d_fp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 203 | a_i2d_fp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 204 | a_i2d_fp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 205 | a_i2d_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 206 | a_i2d_fp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 207 | a_i2d_fp.o: ../../include/openssl/symhacks.h ../cryptlib.h a_i2d_fp.c | ||
| 208 | a_int.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 209 | a_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 210 | a_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 211 | a_int.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 212 | a_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 213 | a_int.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 214 | a_int.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 215 | a_int.o: ../cryptlib.h a_int.c | ||
| 216 | a_mbstr.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 217 | a_mbstr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 218 | a_mbstr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 219 | a_mbstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 220 | a_mbstr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 221 | a_mbstr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 222 | a_mbstr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 223 | a_mbstr.o: ../../include/openssl/symhacks.h ../cryptlib.h a_mbstr.c | ||
| 224 | a_meth.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 225 | a_meth.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 226 | a_meth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 227 | a_meth.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 228 | a_meth.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 229 | a_meth.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 230 | a_meth.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 231 | a_meth.o: ../cryptlib.h a_meth.c | ||
| 232 | a_object.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 233 | a_object.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 234 | a_object.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 235 | a_object.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 236 | a_object.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 237 | a_object.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 238 | a_object.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 239 | a_object.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 240 | a_object.o: ../../include/openssl/symhacks.h ../cryptlib.h a_object.c | ||
| 241 | a_octet.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 242 | a_octet.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 243 | a_octet.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 244 | a_octet.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 245 | a_octet.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 246 | a_octet.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 247 | a_octet.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 248 | a_octet.o: ../../include/openssl/symhacks.h ../cryptlib.h a_octet.c | ||
| 249 | a_print.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 250 | a_print.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 251 | a_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 252 | a_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 253 | a_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 254 | a_print.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 255 | a_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 256 | a_print.o: ../../include/openssl/symhacks.h ../cryptlib.h a_print.c | ||
| 257 | a_set.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 258 | a_set.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 259 | a_set.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 260 | a_set.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 261 | a_set.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 262 | a_set.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 263 | a_set.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 264 | a_set.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 265 | a_set.o: ../cryptlib.h a_set.c | ||
| 266 | a_sign.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 267 | a_sign.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 268 | a_sign.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 269 | a_sign.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 270 | a_sign.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 271 | a_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 272 | a_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 273 | a_sign.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 274 | a_sign.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 275 | a_sign.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 276 | a_sign.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 277 | a_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 278 | a_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 279 | a_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 280 | a_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 281 | a_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 282 | a_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 283 | a_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 284 | a_sign.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 285 | a_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 286 | a_sign.o: ../cryptlib.h a_sign.c | ||
| 287 | a_strex.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 288 | a_strex.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 289 | a_strex.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 290 | a_strex.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 291 | a_strex.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 292 | a_strex.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 293 | a_strex.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 294 | a_strex.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 295 | a_strex.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 296 | a_strex.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 297 | a_strex.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 298 | a_strex.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 299 | a_strex.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 300 | a_strex.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 301 | a_strex.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 302 | a_strex.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 303 | a_strex.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 304 | a_strex.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 305 | a_strex.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 306 | a_strex.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 307 | a_strex.o: ../../include/openssl/x509_vfy.h ../cryptlib.h a_strex.c charmap.h | ||
| 308 | a_strnid.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 309 | a_strnid.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 310 | a_strnid.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 311 | a_strnid.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 312 | a_strnid.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 313 | a_strnid.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 314 | a_strnid.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 315 | a_strnid.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 316 | a_strnid.o: ../../include/openssl/symhacks.h ../cryptlib.h a_strnid.c | ||
| 317 | a_time.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 318 | a_time.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 319 | a_time.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 320 | a_time.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 321 | a_time.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 322 | a_time.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 323 | a_time.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 324 | a_time.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 325 | a_time.o: ../cryptlib.h ../o_time.h a_time.c | ||
| 326 | a_type.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 327 | a_type.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 328 | a_type.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 329 | a_type.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 330 | a_type.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 331 | a_type.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 332 | a_type.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 333 | a_type.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 334 | a_type.o: ../cryptlib.h a_type.c | ||
| 335 | a_utctm.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 336 | a_utctm.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 337 | a_utctm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 338 | a_utctm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 339 | a_utctm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 340 | a_utctm.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 341 | a_utctm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 342 | a_utctm.o: ../../include/openssl/symhacks.h ../cryptlib.h ../o_time.h a_utctm.c | ||
| 343 | a_utf8.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 344 | a_utf8.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 345 | a_utf8.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 346 | a_utf8.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 347 | a_utf8.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 348 | a_utf8.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 349 | a_utf8.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 350 | a_utf8.o: ../cryptlib.h a_utf8.c | ||
| 351 | a_verify.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 352 | a_verify.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 353 | a_verify.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 354 | a_verify.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 355 | a_verify.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 356 | a_verify.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 357 | a_verify.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 358 | a_verify.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 359 | a_verify.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 360 | a_verify.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 361 | a_verify.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 362 | a_verify.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 363 | a_verify.o: ../../include/openssl/opensslconf.h | ||
| 364 | a_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 365 | a_verify.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 366 | a_verify.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 367 | a_verify.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 368 | a_verify.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 369 | a_verify.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 370 | a_verify.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 371 | a_verify.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 372 | a_verify.o: ../cryptlib.h a_verify.c | ||
| 373 | asn1_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 374 | asn1_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 375 | asn1_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 376 | asn1_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 377 | asn1_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 378 | asn1_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 379 | asn1_err.o: ../../include/openssl/symhacks.h asn1_err.c | ||
| 380 | asn1_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 381 | asn1_lib.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 382 | asn1_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 383 | asn1_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 384 | asn1_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 385 | asn1_lib.o: ../../include/openssl/opensslconf.h | ||
| 386 | asn1_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 387 | asn1_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 388 | asn1_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h asn1_lib.c | ||
| 389 | asn1_par.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 390 | asn1_par.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 391 | asn1_par.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 392 | asn1_par.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 393 | asn1_par.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 394 | asn1_par.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 395 | asn1_par.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 396 | asn1_par.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 397 | asn1_par.o: ../../include/openssl/symhacks.h ../cryptlib.h asn1_par.c | ||
| 398 | asn_moid.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 399 | asn_moid.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 400 | asn_moid.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 401 | asn_moid.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 402 | asn_moid.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 403 | asn_moid.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 404 | asn_moid.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 405 | asn_moid.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 406 | asn_moid.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 407 | asn_moid.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 408 | asn_moid.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 409 | asn_moid.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 410 | asn_moid.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 411 | asn_moid.o: ../../include/openssl/opensslconf.h | ||
| 412 | asn_moid.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 413 | asn_moid.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 414 | asn_moid.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 415 | asn_moid.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 416 | asn_moid.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 417 | asn_moid.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 418 | asn_moid.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 419 | asn_moid.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 420 | asn_moid.o: ../cryptlib.h asn_moid.c | ||
| 421 | asn_pack.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 422 | asn_pack.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 423 | asn_pack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 424 | asn_pack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 425 | asn_pack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 426 | asn_pack.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 427 | asn_pack.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 428 | asn_pack.o: ../../include/openssl/symhacks.h ../cryptlib.h asn_pack.c | ||
| 429 | d2i_pr.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 430 | d2i_pr.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 431 | d2i_pr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 432 | d2i_pr.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 433 | d2i_pr.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 434 | d2i_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 435 | d2i_pr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 436 | d2i_pr.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 437 | d2i_pr.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 438 | d2i_pr.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 439 | d2i_pr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 440 | d2i_pr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 441 | d2i_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 442 | d2i_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 443 | d2i_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 444 | d2i_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 445 | d2i_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 446 | d2i_pr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 447 | d2i_pr.o: ../../include/openssl/ui_compat.h ../cryptlib.h d2i_pr.c | ||
| 448 | d2i_pu.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 449 | d2i_pu.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 450 | d2i_pu.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 451 | d2i_pu.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 452 | d2i_pu.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 453 | d2i_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 454 | d2i_pu.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 455 | d2i_pu.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 456 | d2i_pu.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 457 | d2i_pu.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 458 | d2i_pu.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 459 | d2i_pu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 460 | d2i_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 461 | d2i_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 462 | d2i_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 463 | d2i_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 464 | d2i_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 465 | d2i_pu.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 466 | d2i_pu.o: ../../include/openssl/ui_compat.h ../cryptlib.h d2i_pu.c | ||
| 467 | evp_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 468 | evp_asn1.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 469 | evp_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 470 | evp_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 471 | evp_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 472 | evp_asn1.o: ../../include/openssl/opensslconf.h | ||
| 473 | evp_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 474 | evp_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 475 | evp_asn1.o: ../../include/openssl/symhacks.h ../cryptlib.h evp_asn1.c | ||
| 476 | f_enum.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 477 | f_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 478 | f_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 479 | f_enum.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 480 | f_enum.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 481 | f_enum.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 482 | f_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 483 | f_enum.o: ../cryptlib.h f_enum.c | ||
| 484 | f_int.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 485 | f_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 486 | f_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 487 | f_int.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 488 | f_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 489 | f_int.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 490 | f_int.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 491 | f_int.o: ../cryptlib.h f_int.c | ||
| 492 | f_string.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 493 | f_string.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 494 | f_string.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 495 | f_string.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 496 | f_string.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 497 | f_string.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 498 | f_string.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 499 | f_string.o: ../../include/openssl/symhacks.h ../cryptlib.h f_string.c | ||
| 500 | i2d_pr.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 501 | i2d_pr.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 502 | i2d_pr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 503 | i2d_pr.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 504 | i2d_pr.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 505 | i2d_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 506 | i2d_pr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 507 | i2d_pr.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 508 | i2d_pr.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 509 | i2d_pr.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 510 | i2d_pr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 511 | i2d_pr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 512 | i2d_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 513 | i2d_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 514 | i2d_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 515 | i2d_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 516 | i2d_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 517 | i2d_pr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 518 | i2d_pr.o: ../../include/openssl/ui_compat.h ../cryptlib.h i2d_pr.c | ||
| 519 | i2d_pu.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 520 | i2d_pu.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 521 | i2d_pu.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 522 | i2d_pu.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 523 | i2d_pu.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 524 | i2d_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 525 | i2d_pu.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 526 | i2d_pu.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 527 | i2d_pu.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 528 | i2d_pu.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 529 | i2d_pu.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 530 | i2d_pu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 531 | i2d_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 532 | i2d_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 533 | i2d_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 534 | i2d_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 535 | i2d_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 536 | i2d_pu.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 537 | i2d_pu.o: ../../include/openssl/ui_compat.h ../cryptlib.h i2d_pu.c | ||
| 538 | n_pkey.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 539 | n_pkey.o: ../../include/openssl/asn1_mac.h ../../include/openssl/asn1t.h | ||
| 540 | n_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 541 | n_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 542 | n_pkey.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 543 | n_pkey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 544 | n_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 545 | n_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 546 | n_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 547 | n_pkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 548 | n_pkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 549 | n_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 550 | n_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 551 | n_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 552 | n_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 553 | n_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 554 | n_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 555 | n_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 556 | n_pkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 557 | n_pkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 558 | n_pkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 559 | n_pkey.o: ../cryptlib.h n_pkey.c | ||
| 560 | nsseq.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 561 | nsseq.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 562 | nsseq.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 563 | nsseq.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 564 | nsseq.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 565 | nsseq.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 566 | nsseq.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 567 | nsseq.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 568 | nsseq.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 569 | nsseq.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 570 | nsseq.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 571 | nsseq.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 572 | nsseq.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 573 | nsseq.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 574 | nsseq.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 575 | nsseq.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 576 | nsseq.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 577 | nsseq.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 578 | nsseq.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 579 | nsseq.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h nsseq.c | ||
| 580 | p5_pbe.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 581 | p5_pbe.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 582 | p5_pbe.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 583 | p5_pbe.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 584 | p5_pbe.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 585 | p5_pbe.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 586 | p5_pbe.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 587 | p5_pbe.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 588 | p5_pbe.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 589 | p5_pbe.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 590 | p5_pbe.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 591 | p5_pbe.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 592 | p5_pbe.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 593 | p5_pbe.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 594 | p5_pbe.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 595 | p5_pbe.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 596 | p5_pbe.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 597 | p5_pbe.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 598 | p5_pbe.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 599 | p5_pbe.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 600 | p5_pbe.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 601 | p5_pbe.o: ../cryptlib.h p5_pbe.c | ||
| 602 | p5_pbev2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 603 | p5_pbev2.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 604 | p5_pbev2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 605 | p5_pbev2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 606 | p5_pbev2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 607 | p5_pbev2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 608 | p5_pbev2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 609 | p5_pbev2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 610 | p5_pbev2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 611 | p5_pbev2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 612 | p5_pbev2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 613 | p5_pbev2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 614 | p5_pbev2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 615 | p5_pbev2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 616 | p5_pbev2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 617 | p5_pbev2.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 618 | p5_pbev2.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 619 | p5_pbev2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 620 | p5_pbev2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 621 | p5_pbev2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 622 | p5_pbev2.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 623 | p5_pbev2.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p5_pbev2.c | ||
| 624 | p8_pkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 625 | p8_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 626 | p8_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 627 | p8_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 628 | p8_pkey.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 629 | p8_pkey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 630 | p8_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 631 | p8_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 632 | p8_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 633 | p8_pkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 634 | p8_pkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 635 | p8_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 636 | p8_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 637 | p8_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 638 | p8_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 639 | p8_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 640 | p8_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 641 | p8_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 642 | p8_pkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 643 | p8_pkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 644 | p8_pkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 645 | p8_pkey.o: ../cryptlib.h p8_pkey.c | ||
| 646 | t_bitst.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 647 | t_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 648 | t_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 649 | t_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 650 | t_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 651 | t_bitst.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 652 | t_bitst.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 653 | t_bitst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 654 | t_bitst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 655 | t_bitst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 656 | t_bitst.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 657 | t_bitst.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 658 | t_bitst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 659 | t_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 660 | t_bitst.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 661 | t_bitst.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 662 | t_bitst.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 663 | t_bitst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 664 | t_bitst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 665 | t_bitst.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 666 | t_bitst.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 667 | t_bitst.o: ../../include/openssl/x509v3.h ../cryptlib.h t_bitst.c | ||
| 668 | t_crl.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 669 | t_crl.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 670 | t_crl.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 671 | t_crl.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 672 | t_crl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 673 | t_crl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 674 | t_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 675 | t_crl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 676 | t_crl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 677 | t_crl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 678 | t_crl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 679 | t_crl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 680 | t_crl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 681 | t_crl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 682 | t_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 683 | t_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 684 | t_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 685 | t_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 686 | t_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 687 | t_crl.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 688 | t_crl.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 689 | t_crl.o: ../cryptlib.h t_crl.c | ||
| 690 | t_pkey.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 691 | t_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 692 | t_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 693 | t_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 694 | t_pkey.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 695 | t_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 696 | t_pkey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h | ||
| 697 | t_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 698 | t_pkey.o: ../../include/openssl/symhacks.h ../cryptlib.h t_pkey.c | ||
| 699 | t_req.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 700 | t_req.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 701 | t_req.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 702 | t_req.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 703 | t_req.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 704 | t_req.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 705 | t_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 706 | t_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 707 | t_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 708 | t_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 709 | t_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 710 | t_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 711 | t_req.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 712 | t_req.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 713 | t_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 714 | t_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 715 | t_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 716 | t_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 717 | t_req.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 718 | t_req.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 719 | t_req.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 720 | t_req.o: ../cryptlib.h t_req.c | ||
| 721 | t_spki.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 722 | t_spki.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 723 | t_spki.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 724 | t_spki.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 725 | t_spki.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 726 | t_spki.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 727 | t_spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 728 | t_spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 729 | t_spki.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 730 | t_spki.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 731 | t_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 732 | t_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 733 | t_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 734 | t_spki.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 735 | t_spki.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 736 | t_spki.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 737 | t_spki.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 738 | t_spki.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 739 | t_spki.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 740 | t_spki.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 741 | t_spki.o: ../cryptlib.h t_spki.c | ||
| 742 | t_x509.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 743 | t_x509.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 744 | t_x509.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 745 | t_x509.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 746 | t_x509.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 747 | t_x509.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 748 | t_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 749 | t_x509.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 750 | t_x509.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 751 | t_x509.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 752 | t_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 753 | t_x509.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 754 | t_x509.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 755 | t_x509.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 756 | t_x509.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 757 | t_x509.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 758 | t_x509.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 759 | t_x509.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 760 | t_x509.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 761 | t_x509.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 762 | t_x509.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 763 | t_x509.o: ../cryptlib.h t_x509.c | ||
| 764 | t_x509a.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 765 | t_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 766 | t_x509a.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 767 | t_x509a.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 768 | t_x509a.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 769 | t_x509a.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 770 | t_x509a.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 771 | t_x509a.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 772 | t_x509a.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 773 | t_x509a.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 774 | t_x509a.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 775 | t_x509a.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 776 | t_x509a.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 777 | t_x509a.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 778 | t_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 779 | t_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 780 | t_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 781 | t_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 782 | t_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 783 | t_x509a.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 784 | t_x509a.o: ../../include/openssl/x509_vfy.h ../cryptlib.h t_x509a.c | ||
| 785 | tasn_dec.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 786 | tasn_dec.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 787 | tasn_dec.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 788 | tasn_dec.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 789 | tasn_dec.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 790 | tasn_dec.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 791 | tasn_dec.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 792 | tasn_dec.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 793 | tasn_dec.o: ../../include/openssl/symhacks.h tasn_dec.c | ||
| 794 | tasn_enc.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 795 | tasn_enc.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 796 | tasn_enc.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 797 | tasn_enc.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 798 | tasn_enc.o: ../../include/openssl/opensslconf.h | ||
| 799 | tasn_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 800 | tasn_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 801 | tasn_enc.o: ../../include/openssl/symhacks.h tasn_enc.c | ||
| 802 | tasn_fre.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 803 | tasn_fre.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 804 | tasn_fre.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 805 | tasn_fre.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 806 | tasn_fre.o: ../../include/openssl/opensslconf.h | ||
| 807 | tasn_fre.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 808 | tasn_fre.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 809 | tasn_fre.o: ../../include/openssl/symhacks.h tasn_fre.c | ||
| 810 | tasn_new.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 811 | tasn_new.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 812 | tasn_new.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 813 | tasn_new.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 814 | tasn_new.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 815 | tasn_new.o: ../../include/openssl/opensslconf.h | ||
| 816 | tasn_new.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 817 | tasn_new.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 818 | tasn_new.o: ../../include/openssl/symhacks.h tasn_new.c | ||
| 819 | tasn_typ.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 820 | tasn_typ.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 821 | tasn_typ.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 822 | tasn_typ.o: ../../include/openssl/opensslconf.h | ||
| 823 | tasn_typ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 824 | tasn_typ.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 825 | tasn_typ.o: ../../include/openssl/symhacks.h tasn_typ.c | ||
| 826 | tasn_utl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 827 | tasn_utl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 828 | tasn_utl.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 829 | tasn_utl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 830 | tasn_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 831 | tasn_utl.o: ../../include/openssl/opensslconf.h | ||
| 832 | tasn_utl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 833 | tasn_utl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 834 | tasn_utl.o: ../../include/openssl/symhacks.h tasn_utl.c | ||
| 835 | x_algor.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 836 | x_algor.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 837 | x_algor.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 838 | x_algor.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 839 | x_algor.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 840 | x_algor.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 841 | x_algor.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 842 | x_algor.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 843 | x_algor.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 844 | x_algor.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 845 | x_algor.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 846 | x_algor.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 847 | x_algor.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 848 | x_algor.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 849 | x_algor.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 850 | x_algor.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 851 | x_algor.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 852 | x_algor.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 853 | x_algor.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 854 | x_algor.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 855 | x_algor.o: x_algor.c | ||
| 856 | x_attrib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 857 | x_attrib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 858 | x_attrib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 859 | x_attrib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 860 | x_attrib.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 861 | x_attrib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 862 | x_attrib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 863 | x_attrib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 864 | x_attrib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 865 | x_attrib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 866 | x_attrib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 867 | x_attrib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 868 | x_attrib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 869 | x_attrib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 870 | x_attrib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 871 | x_attrib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 872 | x_attrib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 873 | x_attrib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 874 | x_attrib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 875 | x_attrib.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 876 | x_attrib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 877 | x_attrib.o: ../cryptlib.h x_attrib.c | ||
| 878 | x_bignum.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 879 | x_bignum.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 880 | x_bignum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 881 | x_bignum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 882 | x_bignum.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 883 | x_bignum.o: ../../include/openssl/opensslconf.h | ||
| 884 | x_bignum.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 885 | x_bignum.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 886 | x_bignum.o: ../../include/openssl/symhacks.h ../cryptlib.h x_bignum.c | ||
| 887 | x_crl.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 888 | x_crl.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 889 | x_crl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 890 | x_crl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 891 | x_crl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 892 | x_crl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 893 | x_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 894 | x_crl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 895 | x_crl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 896 | x_crl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 897 | x_crl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 898 | x_crl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 899 | x_crl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 900 | x_crl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 901 | x_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 902 | x_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 903 | x_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 904 | x_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 905 | x_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 906 | x_crl.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 907 | x_crl.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_crl.c | ||
| 908 | x_exten.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 909 | x_exten.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 910 | x_exten.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 911 | x_exten.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 912 | x_exten.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 913 | x_exten.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 914 | x_exten.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 915 | x_exten.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 916 | x_exten.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 917 | x_exten.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 918 | x_exten.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 919 | x_exten.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 920 | x_exten.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 921 | x_exten.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 922 | x_exten.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 923 | x_exten.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 924 | x_exten.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 925 | x_exten.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 926 | x_exten.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 927 | x_exten.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 928 | x_exten.o: x_exten.c | ||
| 929 | x_info.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 930 | x_info.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 931 | x_info.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 932 | x_info.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 933 | x_info.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 934 | x_info.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 935 | x_info.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 936 | x_info.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 937 | x_info.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 938 | x_info.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 939 | x_info.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 940 | x_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 941 | x_info.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 942 | x_info.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 943 | x_info.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 944 | x_info.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 945 | x_info.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 946 | x_info.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 947 | x_info.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 948 | x_info.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 949 | x_info.o: ../cryptlib.h x_info.c | ||
| 950 | x_long.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 951 | x_long.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 952 | x_long.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 953 | x_long.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 954 | x_long.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 955 | x_long.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 956 | x_long.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 957 | x_long.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 958 | x_long.o: ../cryptlib.h x_long.c | ||
| 959 | x_name.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 960 | x_name.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 961 | x_name.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 962 | x_name.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 963 | x_name.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 964 | x_name.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 965 | x_name.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 966 | x_name.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 967 | x_name.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 968 | x_name.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 969 | x_name.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 970 | x_name.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 971 | x_name.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 972 | x_name.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 973 | x_name.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 974 | x_name.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 975 | x_name.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 976 | x_name.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 977 | x_name.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 978 | x_name.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 979 | x_name.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_name.c | ||
| 980 | x_pkey.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 981 | x_pkey.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 982 | x_pkey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 983 | x_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 984 | x_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 985 | x_pkey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 986 | x_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 987 | x_pkey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 988 | x_pkey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 989 | x_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 990 | x_pkey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 991 | x_pkey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 992 | x_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 993 | x_pkey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 994 | x_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 995 | x_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 996 | x_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 997 | x_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 998 | x_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 999 | x_pkey.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1000 | x_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_pkey.c | ||
| 1001 | x_pubkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 1002 | x_pubkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 1003 | x_pubkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 1004 | x_pubkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 1005 | x_pubkey.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1006 | x_pubkey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1007 | x_pubkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1008 | x_pubkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1009 | x_pubkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1010 | x_pubkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1011 | x_pubkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1012 | x_pubkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1013 | x_pubkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1014 | x_pubkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1015 | x_pubkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1016 | x_pubkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1017 | x_pubkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1018 | x_pubkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1019 | x_pubkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1020 | x_pubkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1021 | x_pubkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1022 | x_pubkey.o: ../cryptlib.h x_pubkey.c | ||
| 1023 | x_req.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1024 | x_req.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1025 | x_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1026 | x_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1027 | x_req.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1028 | x_req.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1029 | x_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1030 | x_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1031 | x_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1032 | x_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1033 | x_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1034 | x_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1035 | x_req.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1036 | x_req.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1037 | x_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1038 | x_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1039 | x_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1040 | x_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1041 | x_req.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1042 | x_req.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1043 | x_req.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_req.c | ||
| 1044 | x_sig.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1045 | x_sig.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1046 | x_sig.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1047 | x_sig.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1048 | x_sig.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1049 | x_sig.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1050 | x_sig.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1051 | x_sig.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1052 | x_sig.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1053 | x_sig.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1054 | x_sig.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1055 | x_sig.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1056 | x_sig.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1057 | x_sig.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1058 | x_sig.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1059 | x_sig.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1060 | x_sig.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1061 | x_sig.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1062 | x_sig.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1063 | x_sig.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1064 | x_sig.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_sig.c | ||
| 1065 | x_spki.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1066 | x_spki.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1067 | x_spki.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1068 | x_spki.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1069 | x_spki.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1070 | x_spki.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1071 | x_spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1072 | x_spki.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1073 | x_spki.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1074 | x_spki.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1075 | x_spki.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1076 | x_spki.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1077 | x_spki.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1078 | x_spki.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1079 | x_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1080 | x_spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1081 | x_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1082 | x_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1083 | x_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1084 | x_spki.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1085 | x_spki.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_spki.c | ||
| 1086 | x_val.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1087 | x_val.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1088 | x_val.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1089 | x_val.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1090 | x_val.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1091 | x_val.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1092 | x_val.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1093 | x_val.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1094 | x_val.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1095 | x_val.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1096 | x_val.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1097 | x_val.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1098 | x_val.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1099 | x_val.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1100 | x_val.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1101 | x_val.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1102 | x_val.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1103 | x_val.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1104 | x_val.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1105 | x_val.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1106 | x_val.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_val.c | ||
| 1107 | x_x509.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1108 | x_x509.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1109 | x_x509.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1110 | x_x509.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1111 | x_x509.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 1112 | x_x509.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1113 | x_x509.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1114 | x_x509.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1115 | x_x509.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1116 | x_x509.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1117 | x_x509.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1118 | x_x509.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1119 | x_x509.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1120 | x_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1121 | x_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1122 | x_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1123 | x_x509.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1124 | x_x509.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1125 | x_x509.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1126 | x_x509.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1127 | x_x509.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1128 | x_x509.o: ../../include/openssl/x509v3.h ../cryptlib.h x_x509.c | ||
| 1129 | x_x509a.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 1130 | x_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 1131 | x_x509a.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 1132 | x_x509a.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 1133 | x_x509a.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1134 | x_x509a.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1135 | x_x509a.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1136 | x_x509a.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1137 | x_x509a.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1138 | x_x509a.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1139 | x_x509a.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1140 | x_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1141 | x_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1142 | x_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1143 | x_x509a.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1144 | x_x509a.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1145 | x_x509a.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1146 | x_x509a.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1147 | x_x509a.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1148 | x_x509a.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1149 | x_x509a.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1150 | x_x509a.o: ../cryptlib.h x_x509a.c | ||
diff --git a/src/lib/libssl/src/crypto/bf/Makefile b/src/lib/libssl/src/crypto/bf/Makefile new file mode 100644 index 0000000000..0e2121efdc --- /dev/null +++ b/src/lib/libssl/src/crypto/bf/Makefile | |||
| @@ -0,0 +1,116 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/blowfish/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= bf | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | BF_ENC= bf_enc.o | ||
| 20 | # or use | ||
| 21 | #DES_ENC= bx86-elf.o | ||
| 22 | |||
| 23 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 24 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 25 | |||
| 26 | GENERAL=Makefile | ||
| 27 | TEST=bftest.c | ||
| 28 | APPS= | ||
| 29 | |||
| 30 | LIB=$(TOP)/libcrypto.a | ||
| 31 | LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c | ||
| 32 | LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o | ||
| 33 | |||
| 34 | SRC= $(LIBSRC) | ||
| 35 | |||
| 36 | EXHEADER= blowfish.h | ||
| 37 | HEADER= bf_pi.h bf_locl.h $(EXHEADER) | ||
| 38 | |||
| 39 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 40 | |||
| 41 | top: | ||
| 42 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 43 | |||
| 44 | all: lib | ||
| 45 | |||
| 46 | lib: $(LIBOBJ) | ||
| 47 | $(AR) $(LIB) $(LIBOBJ) | ||
| 48 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 49 | @touch lib | ||
| 50 | |||
| 51 | # elf | ||
| 52 | asm/bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 53 | (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > bx86-elf.s) | ||
| 54 | |||
| 55 | # a.out | ||
| 56 | asm/bx86-out.o: asm/bx86unix.cpp | ||
| 57 | $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o | ||
| 58 | |||
| 59 | # bsdi | ||
| 60 | asm/bx86bsdi.o: asm/bx86unix.cpp | ||
| 61 | $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o | ||
| 62 | |||
| 63 | asm/bx86unix.cpp: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 64 | (cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp) | ||
| 65 | |||
| 66 | files: | ||
| 67 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 68 | |||
| 69 | links: | ||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 73 | |||
| 74 | install: installs | ||
| 75 | |||
| 76 | installs: | ||
| 77 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 78 | do \ | ||
| 79 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 80 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 81 | done; | ||
| 82 | |||
| 83 | tags: | ||
| 84 | ctags $(SRC) | ||
| 85 | |||
| 86 | tests: | ||
| 87 | |||
| 88 | lint: | ||
| 89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 90 | |||
| 91 | depend: | ||
| 92 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 93 | |||
| 94 | dclean: | ||
| 95 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 96 | mv -f Makefile.new $(MAKEFILE) | ||
| 97 | |||
| 98 | clean: | ||
| 99 | rm -f asm/bx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 100 | |||
| 101 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 102 | |||
| 103 | bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 104 | bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h | ||
| 105 | bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 106 | bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 107 | bf_ecb.o: bf_ecb.c bf_locl.h | ||
| 108 | bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 109 | bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h | ||
| 110 | bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 111 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c | ||
| 112 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h | ||
| 113 | bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 114 | bf_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 115 | bf_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 116 | bf_skey.o: bf_locl.h bf_pi.h bf_skey.c | ||
diff --git a/src/lib/libssl/src/crypto/bio/Makefile b/src/lib/libssl/src/crypto/bio/Makefile new file mode 100644 index 0000000000..19d9350760 --- /dev/null +++ b/src/lib/libssl/src/crypto/bio/Makefile | |||
| @@ -0,0 +1,214 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/bio/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= bio | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= bio_lib.c bio_cb.c bio_err.c \ | ||
| 26 | bss_mem.c bss_null.c bss_fd.c \ | ||
| 27 | bss_file.c bss_sock.c bss_conn.c \ | ||
| 28 | bf_null.c bf_buff.c b_print.c b_dump.c \ | ||
| 29 | b_sock.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c | ||
| 30 | # bf_lbuf.c | ||
| 31 | LIBOBJ= bio_lib.o bio_cb.o bio_err.o \ | ||
| 32 | bss_mem.o bss_null.o bss_fd.o \ | ||
| 33 | bss_file.o bss_sock.o bss_conn.o \ | ||
| 34 | bf_null.o bf_buff.o b_print.o b_dump.o \ | ||
| 35 | b_sock.o bss_acpt.o bf_nbio.o bss_log.o bss_bio.o | ||
| 36 | # bf_lbuf.o | ||
| 37 | |||
| 38 | SRC= $(LIBSRC) | ||
| 39 | |||
| 40 | EXHEADER= bio.h | ||
| 41 | HEADER= bss_file.c $(EXHEADER) | ||
| 42 | |||
| 43 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 44 | |||
| 45 | top: | ||
| 46 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 47 | |||
| 48 | all: lib | ||
| 49 | |||
| 50 | lib: $(LIBOBJ) | ||
| 51 | $(AR) $(LIB) $(LIBOBJ) | ||
| 52 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 53 | @touch lib | ||
| 54 | |||
| 55 | files: | ||
| 56 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 57 | |||
| 58 | links: | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 60 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 62 | |||
| 63 | install: | ||
| 64 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 65 | do \ | ||
| 66 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 67 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 68 | done; | ||
| 69 | |||
| 70 | tags: | ||
| 71 | ctags $(SRC) | ||
| 72 | |||
| 73 | tests: | ||
| 74 | |||
| 75 | lint: | ||
| 76 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 77 | |||
| 78 | depend: | ||
| 79 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 80 | |||
| 81 | dclean: | ||
| 82 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 83 | mv -f Makefile.new $(MAKEFILE) | ||
| 84 | |||
| 85 | clean: | ||
| 86 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 87 | |||
| 88 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 89 | |||
| 90 | b_dump.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 91 | b_dump.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 92 | b_dump.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 93 | b_dump.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 94 | b_dump.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 95 | b_dump.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 96 | b_dump.o: ../cryptlib.h b_dump.c | ||
| 97 | b_print.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 98 | b_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 99 | b_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 100 | b_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 101 | b_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 102 | b_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 103 | b_print.o: ../cryptlib.h b_print.c | ||
| 104 | b_sock.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 105 | b_sock.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 106 | b_sock.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 107 | b_sock.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 108 | b_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 109 | b_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 110 | b_sock.o: ../cryptlib.h b_sock.c | ||
| 111 | bf_buff.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 112 | bf_buff.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 113 | bf_buff.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 114 | bf_buff.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 115 | bf_buff.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 116 | bf_buff.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 117 | bf_buff.o: ../cryptlib.h bf_buff.c | ||
| 118 | bf_nbio.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 119 | bf_nbio.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 120 | bf_nbio.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 121 | bf_nbio.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 122 | bf_nbio.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 123 | bf_nbio.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 124 | bf_nbio.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 125 | bf_nbio.o: ../cryptlib.h bf_nbio.c | ||
| 126 | bf_null.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 127 | bf_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 128 | bf_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 129 | bf_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 130 | bf_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 131 | bf_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 132 | bf_null.o: ../cryptlib.h bf_null.c | ||
| 133 | bio_cb.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 134 | bio_cb.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 135 | bio_cb.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 136 | bio_cb.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 137 | bio_cb.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 138 | bio_cb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 139 | bio_cb.o: ../cryptlib.h bio_cb.c | ||
| 140 | bio_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 141 | bio_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 142 | bio_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 143 | bio_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 144 | bio_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 145 | bio_err.o: bio_err.c | ||
| 146 | bio_lib.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 147 | bio_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 148 | bio_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 149 | bio_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 150 | bio_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 151 | bio_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 152 | bio_lib.o: ../cryptlib.h bio_lib.c | ||
| 153 | bss_acpt.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 154 | bss_acpt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 155 | bss_acpt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 156 | bss_acpt.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 157 | bss_acpt.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 158 | bss_acpt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 159 | bss_acpt.o: ../cryptlib.h bss_acpt.c | ||
| 160 | bss_bio.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 161 | bss_bio.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 162 | bss_bio.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 163 | bss_bio.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 164 | bss_bio.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 165 | bss_bio.o: ../../include/openssl/symhacks.h bss_bio.c | ||
| 166 | bss_conn.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 167 | bss_conn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 168 | bss_conn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 169 | bss_conn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 170 | bss_conn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 171 | bss_conn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 172 | bss_conn.o: ../cryptlib.h bss_conn.c | ||
| 173 | bss_fd.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 174 | bss_fd.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 175 | bss_fd.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 176 | bss_fd.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 177 | bss_fd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 178 | bss_fd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 179 | bss_fd.o: ../cryptlib.h bss_fd.c | ||
| 180 | bss_file.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 181 | bss_file.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 182 | bss_file.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 183 | bss_file.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 184 | bss_file.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 185 | bss_file.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 186 | bss_file.o: ../cryptlib.h bss_file.c | ||
| 187 | bss_log.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 188 | bss_log.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 189 | bss_log.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 190 | bss_log.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 191 | bss_log.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 192 | bss_log.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 193 | bss_log.o: ../cryptlib.h bss_log.c | ||
| 194 | bss_mem.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 195 | bss_mem.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 196 | bss_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 197 | bss_mem.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 198 | bss_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 199 | bss_mem.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 200 | bss_mem.o: ../cryptlib.h bss_mem.c | ||
| 201 | bss_null.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 202 | bss_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 203 | bss_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 204 | bss_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 205 | bss_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 206 | bss_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 207 | bss_null.o: ../cryptlib.h bss_null.c | ||
| 208 | bss_sock.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 209 | bss_sock.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 210 | bss_sock.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 211 | bss_sock.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 212 | bss_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 213 | bss_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 214 | bss_sock.o: ../cryptlib.h bss_sock.c | ||
diff --git a/src/lib/libssl/src/crypto/bn/Makefile b/src/lib/libssl/src/crypto/bn/Makefile new file mode 100644 index 0000000000..f693d35d87 --- /dev/null +++ b/src/lib/libssl/src/crypto/bn/Makefile | |||
| @@ -0,0 +1,331 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/bn/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= bn | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | BN_ASM= bn_asm.o | ||
| 20 | # or use | ||
| 21 | #BN_ASM= bn86-elf.o | ||
| 22 | |||
| 23 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 24 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 25 | |||
| 26 | GENERAL=Makefile | ||
| 27 | TEST=bntest.c exptest.c | ||
| 28 | APPS= | ||
| 29 | |||
| 30 | LIB=$(TOP)/libcrypto.a | ||
| 31 | LIBSRC= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c \ | ||
| 32 | bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c \ | ||
| 33 | bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c bn_asm.c \ | ||
| 34 | bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c | ||
| 35 | |||
| 36 | LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_ctx.o bn_mul.o bn_mod.o \ | ||
| 37 | bn_print.o bn_rand.o bn_shift.o bn_word.o bn_blind.o \ | ||
| 38 | bn_kron.o bn_sqrt.o bn_gcd.o bn_prime.o bn_err.o bn_sqr.o $(BN_ASM) \ | ||
| 39 | bn_recp.o bn_mont.o bn_mpi.o bn_exp2.o | ||
| 40 | |||
| 41 | SRC= $(LIBSRC) | ||
| 42 | |||
| 43 | EXHEADER= bn.h | ||
| 44 | HEADER= bn_lcl.h bn_prime.h $(EXHEADER) | ||
| 45 | |||
| 46 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 47 | |||
| 48 | top: | ||
| 49 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 50 | |||
| 51 | all: lib | ||
| 52 | |||
| 53 | bn_prime.h: bn_prime.pl | ||
| 54 | $(PERL) bn_prime.pl >bn_prime.h | ||
| 55 | |||
| 56 | divtest: divtest.c ../../libcrypto.a | ||
| 57 | cc -I../../include divtest.c -o divtest ../../libcrypto.a | ||
| 58 | |||
| 59 | bnbug: bnbug.c ../../libcrypto.a top | ||
| 60 | cc -g -I../../include bnbug.c -o bnbug ../../libcrypto.a | ||
| 61 | |||
| 62 | lib: $(LIBOBJ) | ||
| 63 | $(AR) $(LIB) $(LIBOBJ) | ||
| 64 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 65 | @touch lib | ||
| 66 | |||
| 67 | # elf | ||
| 68 | asm/bn86-elf.s: asm/bn-586.pl ../perlasm/x86asm.pl | ||
| 69 | (cd asm; $(PERL) bn-586.pl elf $(CFLAGS) > bn86-elf.s) | ||
| 70 | |||
| 71 | asm/co86-elf.s: asm/co-586.pl ../perlasm/x86asm.pl | ||
| 72 | (cd asm; $(PERL) co-586.pl elf $(CFLAGS) > co86-elf.s) | ||
| 73 | |||
| 74 | # a.out | ||
| 75 | asm/bn86-out.o: asm/bn86unix.cpp | ||
| 76 | $(CPP) -DOUT asm/bn86unix.cpp | as -o asm/bn86-out.o | ||
| 77 | |||
| 78 | asm/co86-out.o: asm/co86unix.cpp | ||
| 79 | $(CPP) -DOUT asm/co86unix.cpp | as -o asm/co86-out.o | ||
| 80 | |||
| 81 | # bsdi | ||
| 82 | asm/bn86bsdi.o: asm/bn86unix.cpp | ||
| 83 | $(CPP) -DBSDI asm/bn86unix.cpp | sed 's/ :/:/' | as -o asm/bn86bsdi.o | ||
| 84 | |||
| 85 | asm/co86bsdi.o: asm/co86unix.cpp | ||
| 86 | $(CPP) -DBSDI asm/co86unix.cpp | sed 's/ :/:/' | as -o asm/co86bsdi.o | ||
| 87 | |||
| 88 | asm/bn86unix.cpp: asm/bn-586.pl ../perlasm/x86asm.pl | ||
| 89 | (cd asm; $(PERL) bn-586.pl cpp >bn86unix.cpp ) | ||
| 90 | |||
| 91 | asm/co86unix.cpp: asm/co-586.pl ../perlasm/x86asm.pl | ||
| 92 | (cd asm; $(PERL) co-586.pl cpp >co86unix.cpp ) | ||
| 93 | |||
| 94 | asm/sparcv8.o: asm/sparcv8.S | ||
| 95 | |||
| 96 | asm/sparcv8plus.o: asm/sparcv8plus.S | ||
| 97 | |||
| 98 | # Old GNU assembler doesn't understand V9 instructions, so we | ||
| 99 | # hire /usr/ccs/bin/as to do the job. Note that option is called | ||
| 100 | # *-gcc27, but even gcc 2>=8 users may experience similar problem | ||
| 101 | # if they didn't bother to upgrade GNU assembler. Such users should | ||
| 102 | # not choose this option, but be adviced to *remove* GNU assembler | ||
| 103 | # or upgrade it. | ||
| 104 | asm/sparcv8plus-gcc27.o: asm/sparcv8plus.S | ||
| 105 | $(CC) $(ASFLAGS) -E asm/sparcv8plus.S | \ | ||
| 106 | /usr/ccs/bin/as -xarch=v8plus - -o asm/sparcv8plus-gcc27.o | ||
| 107 | |||
| 108 | |||
| 109 | asm/ia64.o: asm/ia64.S | ||
| 110 | |||
| 111 | # Some compiler drivers (most notably HP-UX and Intel C++) don't | ||
| 112 | # understand .S extension:-( I wish I could pipe output from cc -E, | ||
| 113 | # but it's too compiler driver/ABI dependent to cover with a single | ||
| 114 | # rule... <appro@fy.chalmers.se> | ||
| 115 | asm/ia64-cpp.o: asm/ia64.S | ||
| 116 | $(CC) $(ASFLAGS) -E asm/ia64.S > /tmp/ia64.$$$$.s && \ | ||
| 117 | $(CC) $(ASFLAGS) -c -o asm/ia64-cpp.o /tmp/ia64.$$$$.s; \ | ||
| 118 | rm -f /tmp/ia64.$$$$.s | ||
| 119 | |||
| 120 | asm/x86_64-gcc.o: asm/x86_64-gcc.c | ||
| 121 | $(CC) $(ASFLAGS) -c -o $@ $< | ||
| 122 | |||
| 123 | asm/pa-risc2W.o: asm/pa-risc2W.s | ||
| 124 | /usr/ccs/bin/as -o asm/pa-risc2W.o asm/pa-risc2W.s | ||
| 125 | |||
| 126 | asm/linux_ppc32.s: asm/ppc.pl; $(PERL) $< $@ | ||
| 127 | asm/linux_ppc64.s: asm/ppc.pl; $(PERL) $< $@ | ||
| 128 | asm/aix_ppc32.s: asm/ppc.pl; $(PERL) asm/ppc.pl $@ | ||
| 129 | asm/aix_ppc64.s: asm/ppc.pl; $(PERL) asm/ppc.pl $@ | ||
| 130 | asm/osx_ppc32.s: asm/ppc.pl; $(PERL) $< $@ | ||
| 131 | |||
| 132 | files: | ||
| 133 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 134 | |||
| 135 | links: | ||
| 136 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 137 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 138 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 139 | |||
| 140 | install: | ||
| 141 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 142 | do \ | ||
| 143 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 144 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 145 | done; | ||
| 146 | |||
| 147 | exptest: | ||
| 148 | rm -f exptest | ||
| 149 | gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a | ||
| 150 | |||
| 151 | div: | ||
| 152 | rm -f a.out | ||
| 153 | gcc -I.. -g div.c ../../libcrypto.a | ||
| 154 | |||
| 155 | tags: | ||
| 156 | ctags $(SRC) | ||
| 157 | |||
| 158 | tests: | ||
| 159 | |||
| 160 | lint: | ||
| 161 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 162 | |||
| 163 | depend: | ||
| 164 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 165 | |||
| 166 | dclean: | ||
| 167 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 168 | mv -f Makefile.new $(MAKEFILE) | ||
| 169 | |||
| 170 | clean: | ||
| 171 | rm -f asm/co86unix.cpp asm/bn86unix.cpp asm/*-elf.* *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff bn_asm.s | ||
| 172 | |||
| 173 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 174 | |||
| 175 | bn_add.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 176 | bn_add.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 177 | bn_add.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 178 | bn_add.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 179 | bn_add.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 180 | bn_add.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 181 | bn_add.o: ../cryptlib.h bn_add.c bn_lcl.h | ||
| 182 | bn_asm.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 183 | bn_asm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 184 | bn_asm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 185 | bn_asm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 186 | bn_asm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 187 | bn_asm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 188 | bn_asm.o: ../cryptlib.h bn_asm.c bn_lcl.h | ||
| 189 | bn_blind.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 190 | bn_blind.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 191 | bn_blind.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 192 | bn_blind.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 193 | bn_blind.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 194 | bn_blind.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 195 | bn_blind.o: ../cryptlib.h bn_blind.c bn_lcl.h | ||
| 196 | bn_ctx.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 197 | bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 198 | bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 199 | bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 200 | bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 201 | bn_ctx.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 202 | bn_ctx.o: ../cryptlib.h bn_ctx.c bn_lcl.h | ||
| 203 | bn_div.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 204 | bn_div.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 205 | bn_div.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 206 | bn_div.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 207 | bn_div.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 208 | bn_div.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 209 | bn_div.o: ../cryptlib.h bn_div.c bn_lcl.h | ||
| 210 | bn_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 211 | bn_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 212 | bn_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 213 | bn_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 214 | bn_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 215 | bn_err.o: ../../include/openssl/symhacks.h bn_err.c | ||
| 216 | bn_exp.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 217 | bn_exp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 218 | bn_exp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 219 | bn_exp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 220 | bn_exp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 221 | bn_exp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 222 | bn_exp.o: ../cryptlib.h bn_exp.c bn_lcl.h | ||
| 223 | bn_exp2.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 224 | bn_exp2.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 225 | bn_exp2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 226 | bn_exp2.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 227 | bn_exp2.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 228 | bn_exp2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 229 | bn_exp2.o: ../cryptlib.h bn_exp2.c bn_lcl.h | ||
| 230 | bn_gcd.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 231 | bn_gcd.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 232 | bn_gcd.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 233 | bn_gcd.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 234 | bn_gcd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 235 | bn_gcd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 236 | bn_gcd.o: ../cryptlib.h bn_gcd.c bn_lcl.h | ||
| 237 | bn_kron.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 238 | bn_kron.o: ../../include/openssl/opensslconf.h bn_kron.c bn_lcl.h | ||
| 239 | bn_lib.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 240 | bn_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 241 | bn_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 242 | bn_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 243 | bn_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 244 | bn_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 245 | bn_lib.o: ../cryptlib.h bn_lcl.h bn_lib.c | ||
| 246 | bn_mod.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 247 | bn_mod.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 248 | bn_mod.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 249 | bn_mod.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 250 | bn_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 251 | bn_mod.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 252 | bn_mod.o: ../cryptlib.h bn_lcl.h bn_mod.c | ||
| 253 | bn_mont.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 254 | bn_mont.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 255 | bn_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 256 | bn_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 257 | bn_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 258 | bn_mont.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 259 | bn_mont.o: ../cryptlib.h bn_lcl.h bn_mont.c | ||
| 260 | bn_mpi.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 261 | bn_mpi.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 262 | bn_mpi.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 263 | bn_mpi.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 264 | bn_mpi.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 265 | bn_mpi.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 266 | bn_mpi.o: ../cryptlib.h bn_lcl.h bn_mpi.c | ||
| 267 | bn_mul.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 268 | bn_mul.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 269 | bn_mul.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 270 | bn_mul.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 271 | bn_mul.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 272 | bn_mul.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 273 | bn_mul.o: ../cryptlib.h bn_lcl.h bn_mul.c | ||
| 274 | bn_prime.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 275 | bn_prime.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 276 | bn_prime.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 277 | bn_prime.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 278 | bn_prime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 279 | bn_prime.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 280 | bn_prime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 281 | bn_prime.o: ../cryptlib.h bn_lcl.h bn_prime.c bn_prime.h | ||
| 282 | bn_print.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 283 | bn_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 284 | bn_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 285 | bn_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 286 | bn_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 287 | bn_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 288 | bn_print.o: ../cryptlib.h bn_lcl.h bn_print.c | ||
| 289 | bn_rand.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 290 | bn_rand.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 291 | bn_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 292 | bn_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 293 | bn_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 294 | bn_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 295 | bn_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 296 | bn_rand.o: ../cryptlib.h bn_lcl.h bn_rand.c | ||
| 297 | bn_recp.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 298 | bn_recp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 299 | bn_recp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 300 | bn_recp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 301 | bn_recp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 302 | bn_recp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 303 | bn_recp.o: ../cryptlib.h bn_lcl.h bn_recp.c | ||
| 304 | bn_shift.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 305 | bn_shift.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 306 | bn_shift.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 307 | bn_shift.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 308 | bn_shift.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 309 | bn_shift.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 310 | bn_shift.o: ../cryptlib.h bn_lcl.h bn_shift.c | ||
| 311 | bn_sqr.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 312 | bn_sqr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 313 | bn_sqr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 314 | bn_sqr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 315 | bn_sqr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 316 | bn_sqr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 317 | bn_sqr.o: ../cryptlib.h bn_lcl.h bn_sqr.c | ||
| 318 | bn_sqrt.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 319 | bn_sqrt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 320 | bn_sqrt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 321 | bn_sqrt.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 322 | bn_sqrt.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 323 | bn_sqrt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 324 | bn_sqrt.o: ../cryptlib.h bn_lcl.h bn_sqrt.c | ||
| 325 | bn_word.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 326 | bn_word.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 327 | bn_word.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 328 | bn_word.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 329 | bn_word.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 330 | bn_word.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 331 | bn_word.o: ../cryptlib.h bn_lcl.h bn_word.c | ||
diff --git a/src/lib/libssl/src/crypto/bn/asm/ppc.pl b/src/lib/libssl/src/crypto/bn/asm/ppc.pl new file mode 100644 index 0000000000..307c7ccb35 --- /dev/null +++ b/src/lib/libssl/src/crypto/bn/asm/ppc.pl | |||
| @@ -0,0 +1,2081 @@ | |||
| 1 | #!/usr/bin/env perl | ||
| 2 | # | ||
| 3 | # Implemented as a Perl wrapper as we want to support several different | ||
| 4 | # architectures with single file. We pick up the target based on the | ||
| 5 | # file name we are asked to generate. | ||
| 6 | # | ||
| 7 | # It should be noted though that this perl code is nothing like | ||
| 8 | # <openssl>/crypto/perlasm/x86*. In this case perl is used pretty much | ||
| 9 | # as pre-processor to cover for platform differences in name decoration, | ||
| 10 | # linker tables, 32-/64-bit instruction sets... | ||
| 11 | # | ||
| 12 | # As you might know there're several PowerPC ABI in use. Most notably | ||
| 13 | # Linux and AIX use different 32-bit ABIs. Good news are that these ABIs | ||
| 14 | # are similar enough to implement leaf(!) functions, which would be ABI | ||
| 15 | # neutral. And that's what you find here: ABI neutral leaf functions. | ||
| 16 | # In case you wonder what that is... | ||
| 17 | # | ||
| 18 | # AIX performance | ||
| 19 | # | ||
| 20 | # MEASUREMENTS WITH cc ON a 200 MhZ PowerPC 604e. | ||
| 21 | # | ||
| 22 | # The following is the performance of 32-bit compiler | ||
| 23 | # generated code: | ||
| 24 | # | ||
| 25 | # OpenSSL 0.9.6c 21 dec 2001 | ||
| 26 | # built on: Tue Jun 11 11:06:51 EDT 2002 | ||
| 27 | # options:bn(64,32) ... | ||
| 28 | #compiler: cc -DTHREADS -DAIX -DB_ENDIAN -DBN_LLONG -O3 | ||
| 29 | # sign verify sign/s verify/s | ||
| 30 | #rsa 512 bits 0.0098s 0.0009s 102.0 1170.6 | ||
| 31 | #rsa 1024 bits 0.0507s 0.0026s 19.7 387.5 | ||
| 32 | #rsa 2048 bits 0.3036s 0.0085s 3.3 117.1 | ||
| 33 | #rsa 4096 bits 2.0040s 0.0299s 0.5 33.4 | ||
| 34 | #dsa 512 bits 0.0087s 0.0106s 114.3 94.5 | ||
| 35 | #dsa 1024 bits 0.0256s 0.0313s 39.0 32.0 | ||
| 36 | # | ||
| 37 | # Same bechmark with this assembler code: | ||
| 38 | # | ||
| 39 | #rsa 512 bits 0.0056s 0.0005s 178.6 2049.2 | ||
| 40 | #rsa 1024 bits 0.0283s 0.0015s 35.3 674.1 | ||
| 41 | #rsa 2048 bits 0.1744s 0.0050s 5.7 201.2 | ||
| 42 | #rsa 4096 bits 1.1644s 0.0179s 0.9 55.7 | ||
| 43 | #dsa 512 bits 0.0052s 0.0062s 191.6 162.0 | ||
| 44 | #dsa 1024 bits 0.0149s 0.0180s 67.0 55.5 | ||
| 45 | # | ||
| 46 | # Number of operations increases by at almost 75% | ||
| 47 | # | ||
| 48 | # Here are performance numbers for 64-bit compiler | ||
| 49 | # generated code: | ||
| 50 | # | ||
| 51 | # OpenSSL 0.9.6g [engine] 9 Aug 2002 | ||
| 52 | # built on: Fri Apr 18 16:59:20 EDT 2003 | ||
| 53 | # options:bn(64,64) ... | ||
| 54 | # compiler: cc -DTHREADS -D_REENTRANT -q64 -DB_ENDIAN -O3 | ||
| 55 | # sign verify sign/s verify/s | ||
| 56 | #rsa 512 bits 0.0028s 0.0003s 357.1 3844.4 | ||
| 57 | #rsa 1024 bits 0.0148s 0.0008s 67.5 1239.7 | ||
| 58 | #rsa 2048 bits 0.0963s 0.0028s 10.4 353.0 | ||
| 59 | #rsa 4096 bits 0.6538s 0.0102s 1.5 98.1 | ||
| 60 | #dsa 512 bits 0.0026s 0.0032s 382.5 313.7 | ||
| 61 | #dsa 1024 bits 0.0081s 0.0099s 122.8 100.6 | ||
| 62 | # | ||
| 63 | # Same benchmark with this assembler code: | ||
| 64 | # | ||
| 65 | #rsa 512 bits 0.0020s 0.0002s 510.4 6273.7 | ||
| 66 | #rsa 1024 bits 0.0088s 0.0005s 114.1 2128.3 | ||
| 67 | #rsa 2048 bits 0.0540s 0.0016s 18.5 622.5 | ||
| 68 | #rsa 4096 bits 0.3700s 0.0058s 2.7 171.0 | ||
| 69 | #dsa 512 bits 0.0016s 0.0020s 610.7 507.1 | ||
| 70 | #dsa 1024 bits 0.0047s 0.0058s 212.5 173.2 | ||
| 71 | # | ||
| 72 | # Again, performance increases by at about 75% | ||
| 73 | # | ||
| 74 | # Mac OS X, Apple G5 1.8GHz (Note this is 32 bit code) | ||
| 75 | # OpenSSL 0.9.7c 30 Sep 2003 | ||
| 76 | # | ||
| 77 | # Original code. | ||
| 78 | # | ||
| 79 | #rsa 512 bits 0.0011s 0.0001s 906.1 11012.5 | ||
| 80 | #rsa 1024 bits 0.0060s 0.0003s 166.6 3363.1 | ||
| 81 | #rsa 2048 bits 0.0370s 0.0010s 27.1 982.4 | ||
| 82 | #rsa 4096 bits 0.2426s 0.0036s 4.1 280.4 | ||
| 83 | #dsa 512 bits 0.0010s 0.0012s 1038.1 841.5 | ||
| 84 | #dsa 1024 bits 0.0030s 0.0037s 329.6 269.7 | ||
| 85 | #dsa 2048 bits 0.0101s 0.0127s 98.9 78.6 | ||
| 86 | # | ||
| 87 | # Same benchmark with this assembler code: | ||
| 88 | # | ||
| 89 | #rsa 512 bits 0.0007s 0.0001s 1416.2 16645.9 | ||
| 90 | #rsa 1024 bits 0.0036s 0.0002s 274.4 5380.6 | ||
| 91 | #rsa 2048 bits 0.0222s 0.0006s 45.1 1589.5 | ||
| 92 | #rsa 4096 bits 0.1469s 0.0022s 6.8 449.6 | ||
| 93 | #dsa 512 bits 0.0006s 0.0007s 1664.2 1376.2 | ||
| 94 | #dsa 1024 bits 0.0018s 0.0023s 545.0 442.2 | ||
| 95 | #dsa 2048 bits 0.0061s 0.0075s 163.5 132.8 | ||
| 96 | # | ||
| 97 | # Performance increase of ~60% | ||
| 98 | # | ||
| 99 | # If you have comments or suggestions to improve code send | ||
| 100 | # me a note at schari@us.ibm.com | ||
| 101 | # | ||
| 102 | |||
| 103 | $opf = shift; | ||
| 104 | |||
| 105 | if ($opf =~ /32\.s/) { | ||
| 106 | $BITS= 32; | ||
| 107 | $BNSZ= $BITS/8; | ||
| 108 | $ISA= "\"ppc\""; | ||
| 109 | |||
| 110 | $LD= "lwz"; # load | ||
| 111 | $LDU= "lwzu"; # load and update | ||
| 112 | $ST= "stw"; # store | ||
| 113 | $STU= "stwu"; # store and update | ||
| 114 | $UMULL= "mullw"; # unsigned multiply low | ||
| 115 | $UMULH= "mulhwu"; # unsigned multiply high | ||
| 116 | $UDIV= "divwu"; # unsigned divide | ||
| 117 | $UCMPI= "cmplwi"; # unsigned compare with immediate | ||
| 118 | $UCMP= "cmplw"; # unsigned compare | ||
| 119 | $COUNTZ="cntlzw"; # count leading zeros | ||
| 120 | $SHL= "slw"; # shift left | ||
| 121 | $SHR= "srw"; # unsigned shift right | ||
| 122 | $SHRI= "srwi"; # unsigned shift right by immediate | ||
| 123 | $SHLI= "slwi"; # shift left by immediate | ||
| 124 | $CLRU= "clrlwi"; # clear upper bits | ||
| 125 | $INSR= "insrwi"; # insert right | ||
| 126 | $ROTL= "rotlwi"; # rotate left by immediate | ||
| 127 | } elsif ($opf =~ /64\.s/) { | ||
| 128 | $BITS= 64; | ||
| 129 | $BNSZ= $BITS/8; | ||
| 130 | $ISA= "\"ppc64\""; | ||
| 131 | |||
| 132 | # same as above, but 64-bit mnemonics... | ||
| 133 | $LD= "ld"; # load | ||
| 134 | $LDU= "ldu"; # load and update | ||
| 135 | $ST= "std"; # store | ||
| 136 | $STU= "stdu"; # store and update | ||
| 137 | $UMULL= "mulld"; # unsigned multiply low | ||
| 138 | $UMULH= "mulhdu"; # unsigned multiply high | ||
| 139 | $UDIV= "divdu"; # unsigned divide | ||
| 140 | $UCMPI= "cmpldi"; # unsigned compare with immediate | ||
| 141 | $UCMP= "cmpld"; # unsigned compare | ||
| 142 | $COUNTZ="cntlzd"; # count leading zeros | ||
| 143 | $SHL= "sld"; # shift left | ||
| 144 | $SHR= "srd"; # unsigned shift right | ||
| 145 | $SHRI= "srdi"; # unsigned shift right by immediate | ||
| 146 | $SHLI= "sldi"; # shift left by immediate | ||
| 147 | $CLRU= "clrldi"; # clear upper bits | ||
| 148 | $INSR= "insrdi"; # insert right | ||
| 149 | $ROTL= "rotldi"; # rotate left by immediate | ||
| 150 | } else { die "nonsense $opf"; } | ||
| 151 | |||
| 152 | ( defined shift || open STDOUT,">$opf" ) || die "can't open $opf: $!"; | ||
| 153 | |||
| 154 | # function entry points from the AIX code | ||
| 155 | # | ||
| 156 | # There are other, more elegant, ways to handle this. We (IBM) chose | ||
| 157 | # this approach as it plays well with scripts we run to 'namespace' | ||
| 158 | # OpenSSL .i.e. we add a prefix to all the public symbols so we can | ||
| 159 | # co-exist in the same process with other implementations of OpenSSL. | ||
| 160 | # 'cleverer' ways of doing these substitutions tend to hide data we | ||
| 161 | # need to be obvious. | ||
| 162 | # | ||
| 163 | my @items = ("bn_sqr_comba4", | ||
| 164 | "bn_sqr_comba8", | ||
| 165 | "bn_mul_comba4", | ||
| 166 | "bn_mul_comba8", | ||
| 167 | "bn_sub_words", | ||
| 168 | "bn_add_words", | ||
| 169 | "bn_div_words", | ||
| 170 | "bn_sqr_words", | ||
| 171 | "bn_mul_words", | ||
| 172 | "bn_mul_add_words"); | ||
| 173 | |||
| 174 | if ($opf =~ /linux/) { do_linux(); } | ||
| 175 | elsif ($opf =~ /aix/) { do_aix(); } | ||
| 176 | elsif ($opf =~ /osx/) { do_osx(); } | ||
| 177 | else { do_bsd(); } | ||
| 178 | |||
| 179 | sub do_linux { | ||
| 180 | $d=&data(); | ||
| 181 | |||
| 182 | if ($BITS==64) { | ||
| 183 | foreach $t (@items) { | ||
| 184 | $d =~ s/\.$t:/\ | ||
| 185 | \t.section\t".opd","aw"\ | ||
| 186 | \t.align\t3\ | ||
| 187 | \t.globl\t$t\ | ||
| 188 | $t:\ | ||
| 189 | \t.quad\t.$t,.TOC.\@tocbase,0\ | ||
| 190 | \t.size\t$t,24\ | ||
| 191 | \t.previous\n\ | ||
| 192 | \t.type\t.$t,\@function\ | ||
| 193 | \t.globl\t.$t\ | ||
| 194 | .$t:/g; | ||
| 195 | } | ||
| 196 | } | ||
| 197 | else { | ||
| 198 | foreach $t (@items) { | ||
| 199 | $d=~s/\.$t/$t/g; | ||
| 200 | } | ||
| 201 | } | ||
| 202 | # hide internal labels to avoid pollution of name table... | ||
| 203 | $d=~s/Lppcasm_/.Lppcasm_/gm; | ||
| 204 | print $d; | ||
| 205 | } | ||
| 206 | |||
| 207 | sub do_aix { | ||
| 208 | # AIX assembler is smart enough to please the linker without | ||
| 209 | # making us do something special... | ||
| 210 | print &data(); | ||
| 211 | } | ||
| 212 | |||
| 213 | # MacOSX 32 bit | ||
| 214 | sub do_osx { | ||
| 215 | $d=&data(); | ||
| 216 | # Change the bn symbol prefix from '.' to '_' | ||
| 217 | foreach $t (@items) { | ||
| 218 | $d=~s/\.$t/_$t/g; | ||
| 219 | } | ||
| 220 | # Change .machine to something OS X asm will accept | ||
| 221 | $d=~s/\.machine.*/.text/g; | ||
| 222 | $d=~s/\#/;/g; # change comment from '#' to ';' | ||
| 223 | print $d; | ||
| 224 | } | ||
| 225 | |||
| 226 | # BSD (Untested) | ||
| 227 | sub do_bsd { | ||
| 228 | $d=&data(); | ||
| 229 | foreach $t (@items) { | ||
| 230 | $d=~s/\.$t/_$t/g; | ||
| 231 | } | ||
| 232 | print $d; | ||
| 233 | } | ||
| 234 | |||
| 235 | sub data { | ||
| 236 | local($data)=<<EOF; | ||
| 237 | #-------------------------------------------------------------------- | ||
| 238 | # | ||
| 239 | # | ||
| 240 | # | ||
| 241 | # | ||
| 242 | # File: ppc32.s | ||
| 243 | # | ||
| 244 | # Created by: Suresh Chari | ||
| 245 | # IBM Thomas J. Watson Research Library | ||
| 246 | # Hawthorne, NY | ||
| 247 | # | ||
| 248 | # | ||
| 249 | # Description: Optimized assembly routines for OpenSSL crypto | ||
| 250 | # on the 32 bitPowerPC platform. | ||
| 251 | # | ||
| 252 | # | ||
| 253 | # Version History | ||
| 254 | # | ||
| 255 | # 2. Fixed bn_add,bn_sub and bn_div_words, added comments, | ||
| 256 | # cleaned up code. Also made a single version which can | ||
| 257 | # be used for both the AIX and Linux compilers. See NOTE | ||
| 258 | # below. | ||
| 259 | # 12/05/03 Suresh Chari | ||
| 260 | # (with lots of help from) Andy Polyakov | ||
| 261 | ## | ||
| 262 | # 1. Initial version 10/20/02 Suresh Chari | ||
| 263 | # | ||
| 264 | # | ||
| 265 | # The following file works for the xlc,cc | ||
| 266 | # and gcc compilers. | ||
| 267 | # | ||
| 268 | # NOTE: To get the file to link correctly with the gcc compiler | ||
| 269 | # you have to change the names of the routines and remove | ||
| 270 | # the first .(dot) character. This should automatically | ||
| 271 | # be done in the build process. | ||
| 272 | # | ||
| 273 | # Hand optimized assembly code for the following routines | ||
| 274 | # | ||
| 275 | # bn_sqr_comba4 | ||
| 276 | # bn_sqr_comba8 | ||
| 277 | # bn_mul_comba4 | ||
| 278 | # bn_mul_comba8 | ||
| 279 | # bn_sub_words | ||
| 280 | # bn_add_words | ||
| 281 | # bn_div_words | ||
| 282 | # bn_sqr_words | ||
| 283 | # bn_mul_words | ||
| 284 | # bn_mul_add_words | ||
| 285 | # | ||
| 286 | # NOTE: It is possible to optimize this code more for | ||
| 287 | # specific PowerPC or Power architectures. On the Northstar | ||
| 288 | # architecture the optimizations in this file do | ||
| 289 | # NOT provide much improvement. | ||
| 290 | # | ||
| 291 | # If you have comments or suggestions to improve code send | ||
| 292 | # me a note at schari\@us.ibm.com | ||
| 293 | # | ||
| 294 | #-------------------------------------------------------------------------- | ||
| 295 | # | ||
| 296 | # Defines to be used in the assembly code. | ||
| 297 | # | ||
| 298 | .set r0,0 # we use it as storage for value of 0 | ||
| 299 | .set SP,1 # preserved | ||
| 300 | .set RTOC,2 # preserved | ||
| 301 | .set r3,3 # 1st argument/return value | ||
| 302 | .set r4,4 # 2nd argument/volatile register | ||
| 303 | .set r5,5 # 3rd argument/volatile register | ||
| 304 | .set r6,6 # ... | ||
| 305 | .set r7,7 | ||
| 306 | .set r8,8 | ||
| 307 | .set r9,9 | ||
| 308 | .set r10,10 | ||
| 309 | .set r11,11 | ||
| 310 | .set r12,12 | ||
| 311 | .set r13,13 # not used, nor any other "below" it... | ||
| 312 | |||
| 313 | .set BO_IF_NOT,4 | ||
| 314 | .set BO_IF,12 | ||
| 315 | .set BO_dCTR_NZERO,16 | ||
| 316 | .set BO_dCTR_ZERO,18 | ||
| 317 | .set BO_ALWAYS,20 | ||
| 318 | .set CR0_LT,0; | ||
| 319 | .set CR0_GT,1; | ||
| 320 | .set CR0_EQ,2 | ||
| 321 | .set CR1_FX,4; | ||
| 322 | .set CR1_FEX,5; | ||
| 323 | .set CR1_VX,6 | ||
| 324 | .set LR,8 | ||
| 325 | |||
| 326 | # Declare function names to be global | ||
| 327 | # NOTE: For gcc these names MUST be changed to remove | ||
| 328 | # the first . i.e. for example change ".bn_sqr_comba4" | ||
| 329 | # to "bn_sqr_comba4". This should be automatically done | ||
| 330 | # in the build. | ||
| 331 | |||
| 332 | .globl .bn_sqr_comba4 | ||
| 333 | .globl .bn_sqr_comba8 | ||
| 334 | .globl .bn_mul_comba4 | ||
| 335 | .globl .bn_mul_comba8 | ||
| 336 | .globl .bn_sub_words | ||
| 337 | .globl .bn_add_words | ||
| 338 | .globl .bn_div_words | ||
| 339 | .globl .bn_sqr_words | ||
| 340 | .globl .bn_mul_words | ||
| 341 | .globl .bn_mul_add_words | ||
| 342 | |||
| 343 | # .text section | ||
| 344 | |||
| 345 | .machine $ISA | ||
| 346 | |||
| 347 | # | ||
| 348 | # NOTE: The following label name should be changed to | ||
| 349 | # "bn_sqr_comba4" i.e. remove the first dot | ||
| 350 | # for the gcc compiler. This should be automatically | ||
| 351 | # done in the build | ||
| 352 | # | ||
| 353 | |||
| 354 | .align 4 | ||
| 355 | .bn_sqr_comba4: | ||
| 356 | # | ||
| 357 | # Optimized version of bn_sqr_comba4. | ||
| 358 | # | ||
| 359 | # void bn_sqr_comba4(BN_ULONG *r, BN_ULONG *a) | ||
| 360 | # r3 contains r | ||
| 361 | # r4 contains a | ||
| 362 | # | ||
| 363 | # Freely use registers r5,r6,r7,r8,r9,r10,r11 as follows: | ||
| 364 | # | ||
| 365 | # r5,r6 are the two BN_ULONGs being multiplied. | ||
| 366 | # r7,r8 are the results of the 32x32 giving 64 bit multiply. | ||
| 367 | # r9,r10, r11 are the equivalents of c1,c2, c3. | ||
| 368 | # Here's the assembly | ||
| 369 | # | ||
| 370 | # | ||
| 371 | xor r0,r0,r0 # set r0 = 0. Used in the addze | ||
| 372 | # instructions below | ||
| 373 | |||
| 374 | #sqr_add_c(a,0,c1,c2,c3) | ||
| 375 | $LD r5,`0*$BNSZ`(r4) | ||
| 376 | $UMULL r9,r5,r5 | ||
| 377 | $UMULH r10,r5,r5 #in first iteration. No need | ||
| 378 | #to add since c1=c2=c3=0. | ||
| 379 | # Note c3(r11) is NOT set to 0 | ||
| 380 | # but will be. | ||
| 381 | |||
| 382 | $ST r9,`0*$BNSZ`(r3) # r[0]=c1; | ||
| 383 | # sqr_add_c2(a,1,0,c2,c3,c1); | ||
| 384 | $LD r6,`1*$BNSZ`(r4) | ||
| 385 | $UMULL r7,r5,r6 | ||
| 386 | $UMULH r8,r5,r6 | ||
| 387 | |||
| 388 | addc r7,r7,r7 # compute (r7,r8)=2*(r7,r8) | ||
| 389 | adde r8,r8,r8 | ||
| 390 | addze r9,r0 # catch carry if any. | ||
| 391 | # r9= r0(=0) and carry | ||
| 392 | |||
| 393 | addc r10,r7,r10 # now add to temp result. | ||
| 394 | addze r11,r8 # r8 added to r11 which is 0 | ||
| 395 | addze r9,r9 | ||
| 396 | |||
| 397 | $ST r10,`1*$BNSZ`(r3) #r[1]=c2; | ||
| 398 | #sqr_add_c(a,1,c3,c1,c2) | ||
| 399 | $UMULL r7,r6,r6 | ||
| 400 | $UMULH r8,r6,r6 | ||
| 401 | addc r11,r7,r11 | ||
| 402 | adde r9,r8,r9 | ||
| 403 | addze r10,r0 | ||
| 404 | #sqr_add_c2(a,2,0,c3,c1,c2) | ||
| 405 | $LD r6,`2*$BNSZ`(r4) | ||
| 406 | $UMULL r7,r5,r6 | ||
| 407 | $UMULH r8,r5,r6 | ||
| 408 | |||
| 409 | addc r7,r7,r7 | ||
| 410 | adde r8,r8,r8 | ||
| 411 | addze r10,r10 | ||
| 412 | |||
| 413 | addc r11,r7,r11 | ||
| 414 | adde r9,r8,r9 | ||
| 415 | addze r10,r10 | ||
| 416 | $ST r11,`2*$BNSZ`(r3) #r[2]=c3 | ||
| 417 | #sqr_add_c2(a,3,0,c1,c2,c3); | ||
| 418 | $LD r6,`3*$BNSZ`(r4) | ||
| 419 | $UMULL r7,r5,r6 | ||
| 420 | $UMULH r8,r5,r6 | ||
| 421 | addc r7,r7,r7 | ||
| 422 | adde r8,r8,r8 | ||
| 423 | addze r11,r0 | ||
| 424 | |||
| 425 | addc r9,r7,r9 | ||
| 426 | adde r10,r8,r10 | ||
| 427 | addze r11,r11 | ||
| 428 | #sqr_add_c2(a,2,1,c1,c2,c3); | ||
| 429 | $LD r5,`1*$BNSZ`(r4) | ||
| 430 | $LD r6,`2*$BNSZ`(r4) | ||
| 431 | $UMULL r7,r5,r6 | ||
| 432 | $UMULH r8,r5,r6 | ||
| 433 | |||
| 434 | addc r7,r7,r7 | ||
| 435 | adde r8,r8,r8 | ||
| 436 | addze r11,r11 | ||
| 437 | addc r9,r7,r9 | ||
| 438 | adde r10,r8,r10 | ||
| 439 | addze r11,r11 | ||
| 440 | $ST r9,`3*$BNSZ`(r3) #r[3]=c1 | ||
| 441 | #sqr_add_c(a,2,c2,c3,c1); | ||
| 442 | $UMULL r7,r6,r6 | ||
| 443 | $UMULH r8,r6,r6 | ||
| 444 | addc r10,r7,r10 | ||
| 445 | adde r11,r8,r11 | ||
| 446 | addze r9,r0 | ||
| 447 | #sqr_add_c2(a,3,1,c2,c3,c1); | ||
| 448 | $LD r6,`3*$BNSZ`(r4) | ||
| 449 | $UMULL r7,r5,r6 | ||
| 450 | $UMULH r8,r5,r6 | ||
| 451 | addc r7,r7,r7 | ||
| 452 | adde r8,r8,r8 | ||
| 453 | addze r9,r9 | ||
| 454 | |||
| 455 | addc r10,r7,r10 | ||
| 456 | adde r11,r8,r11 | ||
| 457 | addze r9,r9 | ||
| 458 | $ST r10,`4*$BNSZ`(r3) #r[4]=c2 | ||
| 459 | #sqr_add_c2(a,3,2,c3,c1,c2); | ||
| 460 | $LD r5,`2*$BNSZ`(r4) | ||
| 461 | $UMULL r7,r5,r6 | ||
| 462 | $UMULH r8,r5,r6 | ||
| 463 | addc r7,r7,r7 | ||
| 464 | adde r8,r8,r8 | ||
| 465 | addze r10,r0 | ||
| 466 | |||
| 467 | addc r11,r7,r11 | ||
| 468 | adde r9,r8,r9 | ||
| 469 | addze r10,r10 | ||
| 470 | $ST r11,`5*$BNSZ`(r3) #r[5] = c3 | ||
| 471 | #sqr_add_c(a,3,c1,c2,c3); | ||
| 472 | $UMULL r7,r6,r6 | ||
| 473 | $UMULH r8,r6,r6 | ||
| 474 | addc r9,r7,r9 | ||
| 475 | adde r10,r8,r10 | ||
| 476 | |||
| 477 | $ST r9,`6*$BNSZ`(r3) #r[6]=c1 | ||
| 478 | $ST r10,`7*$BNSZ`(r3) #r[7]=c2 | ||
| 479 | bclr BO_ALWAYS,CR0_LT | ||
| 480 | .long 0x00000000 | ||
| 481 | |||
| 482 | # | ||
| 483 | # NOTE: The following label name should be changed to | ||
| 484 | # "bn_sqr_comba8" i.e. remove the first dot | ||
| 485 | # for the gcc compiler. This should be automatically | ||
| 486 | # done in the build | ||
| 487 | # | ||
| 488 | |||
| 489 | .align 4 | ||
| 490 | .bn_sqr_comba8: | ||
| 491 | # | ||
| 492 | # This is an optimized version of the bn_sqr_comba8 routine. | ||
| 493 | # Tightly uses the adde instruction | ||
| 494 | # | ||
| 495 | # | ||
| 496 | # void bn_sqr_comba8(BN_ULONG *r, BN_ULONG *a) | ||
| 497 | # r3 contains r | ||
| 498 | # r4 contains a | ||
| 499 | # | ||
| 500 | # Freely use registers r5,r6,r7,r8,r9,r10,r11 as follows: | ||
| 501 | # | ||
| 502 | # r5,r6 are the two BN_ULONGs being multiplied. | ||
| 503 | # r7,r8 are the results of the 32x32 giving 64 bit multiply. | ||
| 504 | # r9,r10, r11 are the equivalents of c1,c2, c3. | ||
| 505 | # | ||
| 506 | # Possible optimization of loading all 8 longs of a into registers | ||
| 507 | # doesnt provide any speedup | ||
| 508 | # | ||
| 509 | |||
| 510 | xor r0,r0,r0 #set r0 = 0.Used in addze | ||
| 511 | #instructions below. | ||
| 512 | |||
| 513 | #sqr_add_c(a,0,c1,c2,c3); | ||
| 514 | $LD r5,`0*$BNSZ`(r4) | ||
| 515 | $UMULL r9,r5,r5 #1st iteration: no carries. | ||
| 516 | $UMULH r10,r5,r5 | ||
| 517 | $ST r9,`0*$BNSZ`(r3) # r[0]=c1; | ||
| 518 | #sqr_add_c2(a,1,0,c2,c3,c1); | ||
| 519 | $LD r6,`1*$BNSZ`(r4) | ||
| 520 | $UMULL r7,r5,r6 | ||
| 521 | $UMULH r8,r5,r6 | ||
| 522 | |||
| 523 | addc r10,r7,r10 #add the two register number | ||
| 524 | adde r11,r8,r0 # (r8,r7) to the three register | ||
| 525 | addze r9,r0 # number (r9,r11,r10).NOTE:r0=0 | ||
| 526 | |||
| 527 | addc r10,r7,r10 #add the two register number | ||
| 528 | adde r11,r8,r11 # (r8,r7) to the three register | ||
| 529 | addze r9,r9 # number (r9,r11,r10). | ||
| 530 | |||
| 531 | $ST r10,`1*$BNSZ`(r3) # r[1]=c2 | ||
| 532 | |||
| 533 | #sqr_add_c(a,1,c3,c1,c2); | ||
| 534 | $UMULL r7,r6,r6 | ||
| 535 | $UMULH r8,r6,r6 | ||
| 536 | addc r11,r7,r11 | ||
| 537 | adde r9,r8,r9 | ||
| 538 | addze r10,r0 | ||
| 539 | #sqr_add_c2(a,2,0,c3,c1,c2); | ||
| 540 | $LD r6,`2*$BNSZ`(r4) | ||
| 541 | $UMULL r7,r5,r6 | ||
| 542 | $UMULH r8,r5,r6 | ||
| 543 | |||
| 544 | addc r11,r7,r11 | ||
| 545 | adde r9,r8,r9 | ||
| 546 | addze r10,r10 | ||
| 547 | |||
| 548 | addc r11,r7,r11 | ||
| 549 | adde r9,r8,r9 | ||
| 550 | addze r10,r10 | ||
| 551 | |||
| 552 | $ST r11,`2*$BNSZ`(r3) #r[2]=c3 | ||
| 553 | #sqr_add_c2(a,3,0,c1,c2,c3); | ||
| 554 | $LD r6,`3*$BNSZ`(r4) #r6 = a[3]. r5 is already a[0]. | ||
| 555 | $UMULL r7,r5,r6 | ||
| 556 | $UMULH r8,r5,r6 | ||
| 557 | |||
| 558 | addc r9,r7,r9 | ||
| 559 | adde r10,r8,r10 | ||
| 560 | addze r11,r0 | ||
| 561 | |||
| 562 | addc r9,r7,r9 | ||
| 563 | adde r10,r8,r10 | ||
| 564 | addze r11,r11 | ||
| 565 | #sqr_add_c2(a,2,1,c1,c2,c3); | ||
| 566 | $LD r5,`1*$BNSZ`(r4) | ||
| 567 | $LD r6,`2*$BNSZ`(r4) | ||
| 568 | $UMULL r7,r5,r6 | ||
| 569 | $UMULH r8,r5,r6 | ||
| 570 | |||
| 571 | addc r9,r7,r9 | ||
| 572 | adde r10,r8,r10 | ||
| 573 | addze r11,r11 | ||
| 574 | |||
| 575 | addc r9,r7,r9 | ||
| 576 | adde r10,r8,r10 | ||
| 577 | addze r11,r11 | ||
| 578 | |||
| 579 | $ST r9,`3*$BNSZ`(r3) #r[3]=c1; | ||
| 580 | #sqr_add_c(a,2,c2,c3,c1); | ||
| 581 | $UMULL r7,r6,r6 | ||
| 582 | $UMULH r8,r6,r6 | ||
| 583 | |||
| 584 | addc r10,r7,r10 | ||
| 585 | adde r11,r8,r11 | ||
| 586 | addze r9,r0 | ||
| 587 | #sqr_add_c2(a,3,1,c2,c3,c1); | ||
| 588 | $LD r6,`3*$BNSZ`(r4) | ||
| 589 | $UMULL r7,r5,r6 | ||
| 590 | $UMULH r8,r5,r6 | ||
| 591 | |||
| 592 | addc r10,r7,r10 | ||
| 593 | adde r11,r8,r11 | ||
| 594 | addze r9,r9 | ||
| 595 | |||
| 596 | addc r10,r7,r10 | ||
| 597 | adde r11,r8,r11 | ||
| 598 | addze r9,r9 | ||
| 599 | #sqr_add_c2(a,4,0,c2,c3,c1); | ||
| 600 | $LD r5,`0*$BNSZ`(r4) | ||
| 601 | $LD r6,`4*$BNSZ`(r4) | ||
| 602 | $UMULL r7,r5,r6 | ||
| 603 | $UMULH r8,r5,r6 | ||
| 604 | |||
| 605 | addc r10,r7,r10 | ||
| 606 | adde r11,r8,r11 | ||
| 607 | addze r9,r9 | ||
| 608 | |||
| 609 | addc r10,r7,r10 | ||
| 610 | adde r11,r8,r11 | ||
| 611 | addze r9,r9 | ||
| 612 | $ST r10,`4*$BNSZ`(r3) #r[4]=c2; | ||
| 613 | #sqr_add_c2(a,5,0,c3,c1,c2); | ||
| 614 | $LD r6,`5*$BNSZ`(r4) | ||
| 615 | $UMULL r7,r5,r6 | ||
| 616 | $UMULH r8,r5,r6 | ||
| 617 | |||
| 618 | addc r11,r7,r11 | ||
| 619 | adde r9,r8,r9 | ||
| 620 | addze r10,r0 | ||
| 621 | |||
| 622 | addc r11,r7,r11 | ||
| 623 | adde r9,r8,r9 | ||
| 624 | addze r10,r10 | ||
| 625 | #sqr_add_c2(a,4,1,c3,c1,c2); | ||
| 626 | $LD r5,`1*$BNSZ`(r4) | ||
| 627 | $LD r6,`4*$BNSZ`(r4) | ||
| 628 | $UMULL r7,r5,r6 | ||
| 629 | $UMULH r8,r5,r6 | ||
| 630 | |||
| 631 | addc r11,r7,r11 | ||
| 632 | adde r9,r8,r9 | ||
| 633 | addze r10,r10 | ||
| 634 | |||
| 635 | addc r11,r7,r11 | ||
| 636 | adde r9,r8,r9 | ||
| 637 | addze r10,r10 | ||
| 638 | #sqr_add_c2(a,3,2,c3,c1,c2); | ||
| 639 | $LD r5,`2*$BNSZ`(r4) | ||
| 640 | $LD r6,`3*$BNSZ`(r4) | ||
| 641 | $UMULL r7,r5,r6 | ||
| 642 | $UMULH r8,r5,r6 | ||
| 643 | |||
| 644 | addc r11,r7,r11 | ||
| 645 | adde r9,r8,r9 | ||
| 646 | addze r10,r10 | ||
| 647 | |||
| 648 | addc r11,r7,r11 | ||
| 649 | adde r9,r8,r9 | ||
| 650 | addze r10,r10 | ||
| 651 | $ST r11,`5*$BNSZ`(r3) #r[5]=c3; | ||
| 652 | #sqr_add_c(a,3,c1,c2,c3); | ||
| 653 | $UMULL r7,r6,r6 | ||
| 654 | $UMULH r8,r6,r6 | ||
| 655 | addc r9,r7,r9 | ||
| 656 | adde r10,r8,r10 | ||
| 657 | addze r11,r0 | ||
| 658 | #sqr_add_c2(a,4,2,c1,c2,c3); | ||
| 659 | $LD r6,`4*$BNSZ`(r4) | ||
| 660 | $UMULL r7,r5,r6 | ||
| 661 | $UMULH r8,r5,r6 | ||
| 662 | |||
| 663 | addc r9,r7,r9 | ||
| 664 | adde r10,r8,r10 | ||
| 665 | addze r11,r11 | ||
| 666 | |||
| 667 | addc r9,r7,r9 | ||
| 668 | adde r10,r8,r10 | ||
| 669 | addze r11,r11 | ||
| 670 | #sqr_add_c2(a,5,1,c1,c2,c3); | ||
| 671 | $LD r5,`1*$BNSZ`(r4) | ||
| 672 | $LD r6,`5*$BNSZ`(r4) | ||
| 673 | $UMULL r7,r5,r6 | ||
| 674 | $UMULH r8,r5,r6 | ||
| 675 | |||
| 676 | addc r9,r7,r9 | ||
| 677 | adde r10,r8,r10 | ||
| 678 | addze r11,r11 | ||
| 679 | |||
| 680 | addc r9,r7,r9 | ||
| 681 | adde r10,r8,r10 | ||
| 682 | addze r11,r11 | ||
| 683 | #sqr_add_c2(a,6,0,c1,c2,c3); | ||
| 684 | $LD r5,`0*$BNSZ`(r4) | ||
| 685 | $LD r6,`6*$BNSZ`(r4) | ||
| 686 | $UMULL r7,r5,r6 | ||
| 687 | $UMULH r8,r5,r6 | ||
| 688 | addc r9,r7,r9 | ||
| 689 | adde r10,r8,r10 | ||
| 690 | addze r11,r11 | ||
| 691 | addc r9,r7,r9 | ||
| 692 | adde r10,r8,r10 | ||
| 693 | addze r11,r11 | ||
| 694 | $ST r9,`6*$BNSZ`(r3) #r[6]=c1; | ||
| 695 | #sqr_add_c2(a,7,0,c2,c3,c1); | ||
| 696 | $LD r6,`7*$BNSZ`(r4) | ||
| 697 | $UMULL r7,r5,r6 | ||
| 698 | $UMULH r8,r5,r6 | ||
| 699 | |||
| 700 | addc r10,r7,r10 | ||
| 701 | adde r11,r8,r11 | ||
| 702 | addze r9,r0 | ||
| 703 | addc r10,r7,r10 | ||
| 704 | adde r11,r8,r11 | ||
| 705 | addze r9,r9 | ||
| 706 | #sqr_add_c2(a,6,1,c2,c3,c1); | ||
| 707 | $LD r5,`1*$BNSZ`(r4) | ||
| 708 | $LD r6,`6*$BNSZ`(r4) | ||
| 709 | $UMULL r7,r5,r6 | ||
| 710 | $UMULH r8,r5,r6 | ||
| 711 | |||
| 712 | addc r10,r7,r10 | ||
| 713 | adde r11,r8,r11 | ||
| 714 | addze r9,r9 | ||
| 715 | addc r10,r7,r10 | ||
| 716 | adde r11,r8,r11 | ||
| 717 | addze r9,r9 | ||
| 718 | #sqr_add_c2(a,5,2,c2,c3,c1); | ||
| 719 | $LD r5,`2*$BNSZ`(r4) | ||
| 720 | $LD r6,`5*$BNSZ`(r4) | ||
| 721 | $UMULL r7,r5,r6 | ||
| 722 | $UMULH r8,r5,r6 | ||
| 723 | addc r10,r7,r10 | ||
| 724 | adde r11,r8,r11 | ||
| 725 | addze r9,r9 | ||
| 726 | addc r10,r7,r10 | ||
| 727 | adde r11,r8,r11 | ||
| 728 | addze r9,r9 | ||
| 729 | #sqr_add_c2(a,4,3,c2,c3,c1); | ||
| 730 | $LD r5,`3*$BNSZ`(r4) | ||
| 731 | $LD r6,`4*$BNSZ`(r4) | ||
| 732 | $UMULL r7,r5,r6 | ||
| 733 | $UMULH r8,r5,r6 | ||
| 734 | |||
| 735 | addc r10,r7,r10 | ||
| 736 | adde r11,r8,r11 | ||
| 737 | addze r9,r9 | ||
| 738 | addc r10,r7,r10 | ||
| 739 | adde r11,r8,r11 | ||
| 740 | addze r9,r9 | ||
| 741 | $ST r10,`7*$BNSZ`(r3) #r[7]=c2; | ||
| 742 | #sqr_add_c(a,4,c3,c1,c2); | ||
| 743 | $UMULL r7,r6,r6 | ||
| 744 | $UMULH r8,r6,r6 | ||
| 745 | addc r11,r7,r11 | ||
| 746 | adde r9,r8,r9 | ||
| 747 | addze r10,r0 | ||
| 748 | #sqr_add_c2(a,5,3,c3,c1,c2); | ||
| 749 | $LD r6,`5*$BNSZ`(r4) | ||
| 750 | $UMULL r7,r5,r6 | ||
| 751 | $UMULH r8,r5,r6 | ||
| 752 | addc r11,r7,r11 | ||
| 753 | adde r9,r8,r9 | ||
| 754 | addze r10,r10 | ||
| 755 | addc r11,r7,r11 | ||
| 756 | adde r9,r8,r9 | ||
| 757 | addze r10,r10 | ||
| 758 | #sqr_add_c2(a,6,2,c3,c1,c2); | ||
| 759 | $LD r5,`2*$BNSZ`(r4) | ||
| 760 | $LD r6,`6*$BNSZ`(r4) | ||
| 761 | $UMULL r7,r5,r6 | ||
| 762 | $UMULH r8,r5,r6 | ||
| 763 | addc r11,r7,r11 | ||
| 764 | adde r9,r8,r9 | ||
| 765 | addze r10,r10 | ||
| 766 | |||
| 767 | addc r11,r7,r11 | ||
| 768 | adde r9,r8,r9 | ||
| 769 | addze r10,r10 | ||
| 770 | #sqr_add_c2(a,7,1,c3,c1,c2); | ||
| 771 | $LD r5,`1*$BNSZ`(r4) | ||
| 772 | $LD r6,`7*$BNSZ`(r4) | ||
| 773 | $UMULL r7,r5,r6 | ||
| 774 | $UMULH r8,r5,r6 | ||
| 775 | addc r11,r7,r11 | ||
| 776 | adde r9,r8,r9 | ||
| 777 | addze r10,r10 | ||
| 778 | addc r11,r7,r11 | ||
| 779 | adde r9,r8,r9 | ||
| 780 | addze r10,r10 | ||
| 781 | $ST r11,`8*$BNSZ`(r3) #r[8]=c3; | ||
| 782 | #sqr_add_c2(a,7,2,c1,c2,c3); | ||
| 783 | $LD r5,`2*$BNSZ`(r4) | ||
| 784 | $UMULL r7,r5,r6 | ||
| 785 | $UMULH r8,r5,r6 | ||
| 786 | |||
| 787 | addc r9,r7,r9 | ||
| 788 | adde r10,r8,r10 | ||
| 789 | addze r11,r0 | ||
| 790 | addc r9,r7,r9 | ||
| 791 | adde r10,r8,r10 | ||
| 792 | addze r11,r11 | ||
| 793 | #sqr_add_c2(a,6,3,c1,c2,c3); | ||
| 794 | $LD r5,`3*$BNSZ`(r4) | ||
| 795 | $LD r6,`6*$BNSZ`(r4) | ||
| 796 | $UMULL r7,r5,r6 | ||
| 797 | $UMULH r8,r5,r6 | ||
| 798 | addc r9,r7,r9 | ||
| 799 | adde r10,r8,r10 | ||
| 800 | addze r11,r11 | ||
| 801 | addc r9,r7,r9 | ||
| 802 | adde r10,r8,r10 | ||
| 803 | addze r11,r11 | ||
| 804 | #sqr_add_c2(a,5,4,c1,c2,c3); | ||
| 805 | $LD r5,`4*$BNSZ`(r4) | ||
| 806 | $LD r6,`5*$BNSZ`(r4) | ||
| 807 | $UMULL r7,r5,r6 | ||
| 808 | $UMULH r8,r5,r6 | ||
| 809 | addc r9,r7,r9 | ||
| 810 | adde r10,r8,r10 | ||
| 811 | addze r11,r11 | ||
| 812 | addc r9,r7,r9 | ||
| 813 | adde r10,r8,r10 | ||
| 814 | addze r11,r11 | ||
| 815 | $ST r9,`9*$BNSZ`(r3) #r[9]=c1; | ||
| 816 | #sqr_add_c(a,5,c2,c3,c1); | ||
| 817 | $UMULL r7,r6,r6 | ||
| 818 | $UMULH r8,r6,r6 | ||
| 819 | addc r10,r7,r10 | ||
| 820 | adde r11,r8,r11 | ||
| 821 | addze r9,r0 | ||
| 822 | #sqr_add_c2(a,6,4,c2,c3,c1); | ||
| 823 | $LD r6,`6*$BNSZ`(r4) | ||
| 824 | $UMULL r7,r5,r6 | ||
| 825 | $UMULH r8,r5,r6 | ||
| 826 | addc r10,r7,r10 | ||
| 827 | adde r11,r8,r11 | ||
| 828 | addze r9,r9 | ||
| 829 | addc r10,r7,r10 | ||
| 830 | adde r11,r8,r11 | ||
| 831 | addze r9,r9 | ||
| 832 | #sqr_add_c2(a,7,3,c2,c3,c1); | ||
| 833 | $LD r5,`3*$BNSZ`(r4) | ||
| 834 | $LD r6,`7*$BNSZ`(r4) | ||
| 835 | $UMULL r7,r5,r6 | ||
| 836 | $UMULH r8,r5,r6 | ||
| 837 | addc r10,r7,r10 | ||
| 838 | adde r11,r8,r11 | ||
| 839 | addze r9,r9 | ||
| 840 | addc r10,r7,r10 | ||
| 841 | adde r11,r8,r11 | ||
| 842 | addze r9,r9 | ||
| 843 | $ST r10,`10*$BNSZ`(r3) #r[10]=c2; | ||
| 844 | #sqr_add_c2(a,7,4,c3,c1,c2); | ||
| 845 | $LD r5,`4*$BNSZ`(r4) | ||
| 846 | $UMULL r7,r5,r6 | ||
| 847 | $UMULH r8,r5,r6 | ||
| 848 | addc r11,r7,r11 | ||
| 849 | adde r9,r8,r9 | ||
| 850 | addze r10,r0 | ||
| 851 | addc r11,r7,r11 | ||
| 852 | adde r9,r8,r9 | ||
| 853 | addze r10,r10 | ||
| 854 | #sqr_add_c2(a,6,5,c3,c1,c2); | ||
| 855 | $LD r5,`5*$BNSZ`(r4) | ||
| 856 | $LD r6,`6*$BNSZ`(r4) | ||
| 857 | $UMULL r7,r5,r6 | ||
| 858 | $UMULH r8,r5,r6 | ||
| 859 | addc r11,r7,r11 | ||
| 860 | adde r9,r8,r9 | ||
| 861 | addze r10,r10 | ||
| 862 | addc r11,r7,r11 | ||
| 863 | adde r9,r8,r9 | ||
| 864 | addze r10,r10 | ||
| 865 | $ST r11,`11*$BNSZ`(r3) #r[11]=c3; | ||
| 866 | #sqr_add_c(a,6,c1,c2,c3); | ||
| 867 | $UMULL r7,r6,r6 | ||
| 868 | $UMULH r8,r6,r6 | ||
| 869 | addc r9,r7,r9 | ||
| 870 | adde r10,r8,r10 | ||
| 871 | addze r11,r0 | ||
| 872 | #sqr_add_c2(a,7,5,c1,c2,c3) | ||
| 873 | $LD r6,`7*$BNSZ`(r4) | ||
| 874 | $UMULL r7,r5,r6 | ||
| 875 | $UMULH r8,r5,r6 | ||
| 876 | addc r9,r7,r9 | ||
| 877 | adde r10,r8,r10 | ||
| 878 | addze r11,r11 | ||
| 879 | addc r9,r7,r9 | ||
| 880 | adde r10,r8,r10 | ||
| 881 | addze r11,r11 | ||
| 882 | $ST r9,`12*$BNSZ`(r3) #r[12]=c1; | ||
| 883 | |||
| 884 | #sqr_add_c2(a,7,6,c2,c3,c1) | ||
| 885 | $LD r5,`6*$BNSZ`(r4) | ||
| 886 | $UMULL r7,r5,r6 | ||
| 887 | $UMULH r8,r5,r6 | ||
| 888 | addc r10,r7,r10 | ||
| 889 | adde r11,r8,r11 | ||
| 890 | addze r9,r0 | ||
| 891 | addc r10,r7,r10 | ||
| 892 | adde r11,r8,r11 | ||
| 893 | addze r9,r9 | ||
| 894 | $ST r10,`13*$BNSZ`(r3) #r[13]=c2; | ||
| 895 | #sqr_add_c(a,7,c3,c1,c2); | ||
| 896 | $UMULL r7,r6,r6 | ||
| 897 | $UMULH r8,r6,r6 | ||
| 898 | addc r11,r7,r11 | ||
| 899 | adde r9,r8,r9 | ||
| 900 | $ST r11,`14*$BNSZ`(r3) #r[14]=c3; | ||
| 901 | $ST r9, `15*$BNSZ`(r3) #r[15]=c1; | ||
| 902 | |||
| 903 | |||
| 904 | bclr BO_ALWAYS,CR0_LT | ||
| 905 | |||
| 906 | .long 0x00000000 | ||
| 907 | |||
| 908 | # | ||
| 909 | # NOTE: The following label name should be changed to | ||
| 910 | # "bn_mul_comba4" i.e. remove the first dot | ||
| 911 | # for the gcc compiler. This should be automatically | ||
| 912 | # done in the build | ||
| 913 | # | ||
| 914 | |||
| 915 | .align 4 | ||
| 916 | .bn_mul_comba4: | ||
| 917 | # | ||
| 918 | # This is an optimized version of the bn_mul_comba4 routine. | ||
| 919 | # | ||
| 920 | # void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) | ||
| 921 | # r3 contains r | ||
| 922 | # r4 contains a | ||
| 923 | # r5 contains b | ||
| 924 | # r6, r7 are the 2 BN_ULONGs being multiplied. | ||
| 925 | # r8, r9 are the results of the 32x32 giving 64 multiply. | ||
| 926 | # r10, r11, r12 are the equivalents of c1, c2, and c3. | ||
| 927 | # | ||
| 928 | xor r0,r0,r0 #r0=0. Used in addze below. | ||
| 929 | #mul_add_c(a[0],b[0],c1,c2,c3); | ||
| 930 | $LD r6,`0*$BNSZ`(r4) | ||
| 931 | $LD r7,`0*$BNSZ`(r5) | ||
| 932 | $UMULL r10,r6,r7 | ||
| 933 | $UMULH r11,r6,r7 | ||
| 934 | $ST r10,`0*$BNSZ`(r3) #r[0]=c1 | ||
| 935 | #mul_add_c(a[0],b[1],c2,c3,c1); | ||
| 936 | $LD r7,`1*$BNSZ`(r5) | ||
| 937 | $UMULL r8,r6,r7 | ||
| 938 | $UMULH r9,r6,r7 | ||
| 939 | addc r11,r8,r11 | ||
| 940 | adde r12,r9,r0 | ||
| 941 | addze r10,r0 | ||
| 942 | #mul_add_c(a[1],b[0],c2,c3,c1); | ||
| 943 | $LD r6, `1*$BNSZ`(r4) | ||
| 944 | $LD r7, `0*$BNSZ`(r5) | ||
| 945 | $UMULL r8,r6,r7 | ||
| 946 | $UMULH r9,r6,r7 | ||
| 947 | addc r11,r8,r11 | ||
| 948 | adde r12,r9,r12 | ||
| 949 | addze r10,r10 | ||
| 950 | $ST r11,`1*$BNSZ`(r3) #r[1]=c2 | ||
| 951 | #mul_add_c(a[2],b[0],c3,c1,c2); | ||
| 952 | $LD r6,`2*$BNSZ`(r4) | ||
| 953 | $UMULL r8,r6,r7 | ||
| 954 | $UMULH r9,r6,r7 | ||
| 955 | addc r12,r8,r12 | ||
| 956 | adde r10,r9,r10 | ||
| 957 | addze r11,r0 | ||
| 958 | #mul_add_c(a[1],b[1],c3,c1,c2); | ||
| 959 | $LD r6,`1*$BNSZ`(r4) | ||
| 960 | $LD r7,`1*$BNSZ`(r5) | ||
| 961 | $UMULL r8,r6,r7 | ||
| 962 | $UMULH r9,r6,r7 | ||
| 963 | addc r12,r8,r12 | ||
| 964 | adde r10,r9,r10 | ||
| 965 | addze r11,r11 | ||
| 966 | #mul_add_c(a[0],b[2],c3,c1,c2); | ||
| 967 | $LD r6,`0*$BNSZ`(r4) | ||
| 968 | $LD r7,`2*$BNSZ`(r5) | ||
| 969 | $UMULL r8,r6,r7 | ||
| 970 | $UMULH r9,r6,r7 | ||
| 971 | addc r12,r8,r12 | ||
| 972 | adde r10,r9,r10 | ||
| 973 | addze r11,r11 | ||
| 974 | $ST r12,`2*$BNSZ`(r3) #r[2]=c3 | ||
| 975 | #mul_add_c(a[0],b[3],c1,c2,c3); | ||
| 976 | $LD r7,`3*$BNSZ`(r5) | ||
| 977 | $UMULL r8,r6,r7 | ||
| 978 | $UMULH r9,r6,r7 | ||
| 979 | addc r10,r8,r10 | ||
| 980 | adde r11,r9,r11 | ||
| 981 | addze r12,r0 | ||
| 982 | #mul_add_c(a[1],b[2],c1,c2,c3); | ||
| 983 | $LD r6,`1*$BNSZ`(r4) | ||
| 984 | $LD r7,`2*$BNSZ`(r5) | ||
| 985 | $UMULL r8,r6,r7 | ||
| 986 | $UMULH r9,r6,r7 | ||
| 987 | addc r10,r8,r10 | ||
| 988 | adde r11,r9,r11 | ||
| 989 | addze r12,r12 | ||
| 990 | #mul_add_c(a[2],b[1],c1,c2,c3); | ||
| 991 | $LD r6,`2*$BNSZ`(r4) | ||
| 992 | $LD r7,`1*$BNSZ`(r5) | ||
| 993 | $UMULL r8,r6,r7 | ||
| 994 | $UMULH r9,r6,r7 | ||
| 995 | addc r10,r8,r10 | ||
| 996 | adde r11,r9,r11 | ||
| 997 | addze r12,r12 | ||
| 998 | #mul_add_c(a[3],b[0],c1,c2,c3); | ||
| 999 | $LD r6,`3*$BNSZ`(r4) | ||
| 1000 | $LD r7,`0*$BNSZ`(r5) | ||
| 1001 | $UMULL r8,r6,r7 | ||
| 1002 | $UMULH r9,r6,r7 | ||
| 1003 | addc r10,r8,r10 | ||
| 1004 | adde r11,r9,r11 | ||
| 1005 | addze r12,r12 | ||
| 1006 | $ST r10,`3*$BNSZ`(r3) #r[3]=c1 | ||
| 1007 | #mul_add_c(a[3],b[1],c2,c3,c1); | ||
| 1008 | $LD r7,`1*$BNSZ`(r5) | ||
| 1009 | $UMULL r8,r6,r7 | ||
| 1010 | $UMULH r9,r6,r7 | ||
| 1011 | addc r11,r8,r11 | ||
| 1012 | adde r12,r9,r12 | ||
| 1013 | addze r10,r0 | ||
| 1014 | #mul_add_c(a[2],b[2],c2,c3,c1); | ||
| 1015 | $LD r6,`2*$BNSZ`(r4) | ||
| 1016 | $LD r7,`2*$BNSZ`(r5) | ||
| 1017 | $UMULL r8,r6,r7 | ||
| 1018 | $UMULH r9,r6,r7 | ||
| 1019 | addc r11,r8,r11 | ||
| 1020 | adde r12,r9,r12 | ||
| 1021 | addze r10,r10 | ||
| 1022 | #mul_add_c(a[1],b[3],c2,c3,c1); | ||
| 1023 | $LD r6,`1*$BNSZ`(r4) | ||
| 1024 | $LD r7,`3*$BNSZ`(r5) | ||
| 1025 | $UMULL r8,r6,r7 | ||
| 1026 | $UMULH r9,r6,r7 | ||
| 1027 | addc r11,r8,r11 | ||
| 1028 | adde r12,r9,r12 | ||
| 1029 | addze r10,r10 | ||
| 1030 | $ST r11,`4*$BNSZ`(r3) #r[4]=c2 | ||
| 1031 | #mul_add_c(a[2],b[3],c3,c1,c2); | ||
| 1032 | $LD r6,`2*$BNSZ`(r4) | ||
| 1033 | $UMULL r8,r6,r7 | ||
| 1034 | $UMULH r9,r6,r7 | ||
| 1035 | addc r12,r8,r12 | ||
| 1036 | adde r10,r9,r10 | ||
| 1037 | addze r11,r0 | ||
| 1038 | #mul_add_c(a[3],b[2],c3,c1,c2); | ||
| 1039 | $LD r6,`3*$BNSZ`(r4) | ||
| 1040 | $LD r7,`2*$BNSZ`(r4) | ||
| 1041 | $UMULL r8,r6,r7 | ||
| 1042 | $UMULH r9,r6,r7 | ||
| 1043 | addc r12,r8,r12 | ||
| 1044 | adde r10,r9,r10 | ||
| 1045 | addze r11,r11 | ||
| 1046 | $ST r12,`5*$BNSZ`(r3) #r[5]=c3 | ||
| 1047 | #mul_add_c(a[3],b[3],c1,c2,c3); | ||
| 1048 | $LD r7,`3*$BNSZ`(r5) | ||
| 1049 | $UMULL r8,r6,r7 | ||
| 1050 | $UMULH r9,r6,r7 | ||
| 1051 | addc r10,r8,r10 | ||
| 1052 | adde r11,r9,r11 | ||
| 1053 | |||
| 1054 | $ST r10,`6*$BNSZ`(r3) #r[6]=c1 | ||
| 1055 | $ST r11,`7*$BNSZ`(r3) #r[7]=c2 | ||
| 1056 | bclr BO_ALWAYS,CR0_LT | ||
| 1057 | .long 0x00000000 | ||
| 1058 | |||
| 1059 | # | ||
| 1060 | # NOTE: The following label name should be changed to | ||
| 1061 | # "bn_mul_comba8" i.e. remove the first dot | ||
| 1062 | # for the gcc compiler. This should be automatically | ||
| 1063 | # done in the build | ||
| 1064 | # | ||
| 1065 | |||
| 1066 | .align 4 | ||
| 1067 | .bn_mul_comba8: | ||
| 1068 | # | ||
| 1069 | # Optimized version of the bn_mul_comba8 routine. | ||
| 1070 | # | ||
| 1071 | # void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) | ||
| 1072 | # r3 contains r | ||
| 1073 | # r4 contains a | ||
| 1074 | # r5 contains b | ||
| 1075 | # r6, r7 are the 2 BN_ULONGs being multiplied. | ||
| 1076 | # r8, r9 are the results of the 32x32 giving 64 multiply. | ||
| 1077 | # r10, r11, r12 are the equivalents of c1, c2, and c3. | ||
| 1078 | # | ||
| 1079 | xor r0,r0,r0 #r0=0. Used in addze below. | ||
| 1080 | |||
| 1081 | #mul_add_c(a[0],b[0],c1,c2,c3); | ||
| 1082 | $LD r6,`0*$BNSZ`(r4) #a[0] | ||
| 1083 | $LD r7,`0*$BNSZ`(r5) #b[0] | ||
| 1084 | $UMULL r10,r6,r7 | ||
| 1085 | $UMULH r11,r6,r7 | ||
| 1086 | $ST r10,`0*$BNSZ`(r3) #r[0]=c1; | ||
| 1087 | #mul_add_c(a[0],b[1],c2,c3,c1); | ||
| 1088 | $LD r7,`1*$BNSZ`(r5) | ||
| 1089 | $UMULL r8,r6,r7 | ||
| 1090 | $UMULH r9,r6,r7 | ||
| 1091 | addc r11,r11,r8 | ||
| 1092 | addze r12,r9 # since we didnt set r12 to zero before. | ||
| 1093 | addze r10,r0 | ||
| 1094 | #mul_add_c(a[1],b[0],c2,c3,c1); | ||
| 1095 | $LD r6,`1*$BNSZ`(r4) | ||
| 1096 | $LD r7,`0*$BNSZ`(r5) | ||
| 1097 | $UMULL r8,r6,r7 | ||
| 1098 | $UMULH r9,r6,r7 | ||
| 1099 | addc r11,r11,r8 | ||
| 1100 | adde r12,r12,r9 | ||
| 1101 | addze r10,r10 | ||
| 1102 | $ST r11,`1*$BNSZ`(r3) #r[1]=c2; | ||
| 1103 | #mul_add_c(a[2],b[0],c3,c1,c2); | ||
| 1104 | $LD r6,`2*$BNSZ`(r4) | ||
| 1105 | $UMULL r8,r6,r7 | ||
| 1106 | $UMULH r9,r6,r7 | ||
| 1107 | addc r12,r12,r8 | ||
| 1108 | adde r10,r10,r9 | ||
| 1109 | addze r11,r0 | ||
| 1110 | #mul_add_c(a[1],b[1],c3,c1,c2); | ||
| 1111 | $LD r6,`1*$BNSZ`(r4) | ||
| 1112 | $LD r7,`1*$BNSZ`(r5) | ||
| 1113 | $UMULL r8,r6,r7 | ||
| 1114 | $UMULH r9,r6,r7 | ||
| 1115 | addc r12,r12,r8 | ||
| 1116 | adde r10,r10,r9 | ||
| 1117 | addze r11,r11 | ||
| 1118 | #mul_add_c(a[0],b[2],c3,c1,c2); | ||
| 1119 | $LD r6,`0*$BNSZ`(r4) | ||
| 1120 | $LD r7,`2*$BNSZ`(r5) | ||
| 1121 | $UMULL r8,r6,r7 | ||
| 1122 | $UMULH r9,r6,r7 | ||
| 1123 | addc r12,r12,r8 | ||
| 1124 | adde r10,r10,r9 | ||
| 1125 | addze r11,r11 | ||
| 1126 | $ST r12,`2*$BNSZ`(r3) #r[2]=c3; | ||
| 1127 | #mul_add_c(a[0],b[3],c1,c2,c3); | ||
| 1128 | $LD r7,`3*$BNSZ`(r5) | ||
| 1129 | $UMULL r8,r6,r7 | ||
| 1130 | $UMULH r9,r6,r7 | ||
| 1131 | addc r10,r10,r8 | ||
| 1132 | adde r11,r11,r9 | ||
| 1133 | addze r12,r0 | ||
| 1134 | #mul_add_c(a[1],b[2],c1,c2,c3); | ||
| 1135 | $LD r6,`1*$BNSZ`(r4) | ||
| 1136 | $LD r7,`2*$BNSZ`(r5) | ||
| 1137 | $UMULL r8,r6,r7 | ||
| 1138 | $UMULH r9,r6,r7 | ||
| 1139 | addc r10,r10,r8 | ||
| 1140 | adde r11,r11,r9 | ||
| 1141 | addze r12,r12 | ||
| 1142 | |||
| 1143 | #mul_add_c(a[2],b[1],c1,c2,c3); | ||
| 1144 | $LD r6,`2*$BNSZ`(r4) | ||
| 1145 | $LD r7,`1*$BNSZ`(r5) | ||
| 1146 | $UMULL r8,r6,r7 | ||
| 1147 | $UMULH r9,r6,r7 | ||
| 1148 | addc r10,r10,r8 | ||
| 1149 | adde r11,r11,r9 | ||
| 1150 | addze r12,r12 | ||
| 1151 | #mul_add_c(a[3],b[0],c1,c2,c3); | ||
| 1152 | $LD r6,`3*$BNSZ`(r4) | ||
| 1153 | $LD r7,`0*$BNSZ`(r5) | ||
| 1154 | $UMULL r8,r6,r7 | ||
| 1155 | $UMULH r9,r6,r7 | ||
| 1156 | addc r10,r10,r8 | ||
| 1157 | adde r11,r11,r9 | ||
| 1158 | addze r12,r12 | ||
| 1159 | $ST r10,`3*$BNSZ`(r3) #r[3]=c1; | ||
| 1160 | #mul_add_c(a[4],b[0],c2,c3,c1); | ||
| 1161 | $LD r6,`4*$BNSZ`(r4) | ||
| 1162 | $UMULL r8,r6,r7 | ||
| 1163 | $UMULH r9,r6,r7 | ||
| 1164 | addc r11,r11,r8 | ||
| 1165 | adde r12,r12,r9 | ||
| 1166 | addze r10,r0 | ||
| 1167 | #mul_add_c(a[3],b[1],c2,c3,c1); | ||
| 1168 | $LD r6,`3*$BNSZ`(r4) | ||
| 1169 | $LD r7,`1*$BNSZ`(r5) | ||
| 1170 | $UMULL r8,r6,r7 | ||
| 1171 | $UMULH r9,r6,r7 | ||
| 1172 | addc r11,r11,r8 | ||
| 1173 | adde r12,r12,r9 | ||
| 1174 | addze r10,r10 | ||
| 1175 | #mul_add_c(a[2],b[2],c2,c3,c1); | ||
| 1176 | $LD r6,`2*$BNSZ`(r4) | ||
| 1177 | $LD r7,`2*$BNSZ`(r5) | ||
| 1178 | $UMULL r8,r6,r7 | ||
| 1179 | $UMULH r9,r6,r7 | ||
| 1180 | addc r11,r11,r8 | ||
| 1181 | adde r12,r12,r9 | ||
| 1182 | addze r10,r10 | ||
| 1183 | #mul_add_c(a[1],b[3],c2,c3,c1); | ||
| 1184 | $LD r6,`1*$BNSZ`(r4) | ||
| 1185 | $LD r7,`3*$BNSZ`(r5) | ||
| 1186 | $UMULL r8,r6,r7 | ||
| 1187 | $UMULH r9,r6,r7 | ||
| 1188 | addc r11,r11,r8 | ||
| 1189 | adde r12,r12,r9 | ||
| 1190 | addze r10,r10 | ||
| 1191 | #mul_add_c(a[0],b[4],c2,c3,c1); | ||
| 1192 | $LD r6,`0*$BNSZ`(r4) | ||
| 1193 | $LD r7,`4*$BNSZ`(r5) | ||
| 1194 | $UMULL r8,r6,r7 | ||
| 1195 | $UMULH r9,r6,r7 | ||
| 1196 | addc r11,r11,r8 | ||
| 1197 | adde r12,r12,r9 | ||
| 1198 | addze r10,r10 | ||
| 1199 | $ST r11,`4*$BNSZ`(r3) #r[4]=c2; | ||
| 1200 | #mul_add_c(a[0],b[5],c3,c1,c2); | ||
| 1201 | $LD r7,`5*$BNSZ`(r5) | ||
| 1202 | $UMULL r8,r6,r7 | ||
| 1203 | $UMULH r9,r6,r7 | ||
| 1204 | addc r12,r12,r8 | ||
| 1205 | adde r10,r10,r9 | ||
| 1206 | addze r11,r0 | ||
| 1207 | #mul_add_c(a[1],b[4],c3,c1,c2); | ||
| 1208 | $LD r6,`1*$BNSZ`(r4) | ||
| 1209 | $LD r7,`4*$BNSZ`(r5) | ||
| 1210 | $UMULL r8,r6,r7 | ||
| 1211 | $UMULH r9,r6,r7 | ||
| 1212 | addc r12,r12,r8 | ||
| 1213 | adde r10,r10,r9 | ||
| 1214 | addze r11,r11 | ||
| 1215 | #mul_add_c(a[2],b[3],c3,c1,c2); | ||
| 1216 | $LD r6,`2*$BNSZ`(r4) | ||
| 1217 | $LD r7,`3*$BNSZ`(r5) | ||
| 1218 | $UMULL r8,r6,r7 | ||
| 1219 | $UMULH r9,r6,r7 | ||
| 1220 | addc r12,r12,r8 | ||
| 1221 | adde r10,r10,r9 | ||
| 1222 | addze r11,r11 | ||
| 1223 | #mul_add_c(a[3],b[2],c3,c1,c2); | ||
| 1224 | $LD r6,`3*$BNSZ`(r4) | ||
| 1225 | $LD r7,`2*$BNSZ`(r5) | ||
| 1226 | $UMULL r8,r6,r7 | ||
| 1227 | $UMULH r9,r6,r7 | ||
| 1228 | addc r12,r12,r8 | ||
| 1229 | adde r10,r10,r9 | ||
| 1230 | addze r11,r11 | ||
| 1231 | #mul_add_c(a[4],b[1],c3,c1,c2); | ||
| 1232 | $LD r6,`4*$BNSZ`(r4) | ||
| 1233 | $LD r7,`1*$BNSZ`(r5) | ||
| 1234 | $UMULL r8,r6,r7 | ||
| 1235 | $UMULH r9,r6,r7 | ||
| 1236 | addc r12,r12,r8 | ||
| 1237 | adde r10,r10,r9 | ||
| 1238 | addze r11,r11 | ||
| 1239 | #mul_add_c(a[5],b[0],c3,c1,c2); | ||
| 1240 | $LD r6,`5*$BNSZ`(r4) | ||
| 1241 | $LD r7,`0*$BNSZ`(r5) | ||
| 1242 | $UMULL r8,r6,r7 | ||
| 1243 | $UMULH r9,r6,r7 | ||
| 1244 | addc r12,r12,r8 | ||
| 1245 | adde r10,r10,r9 | ||
| 1246 | addze r11,r11 | ||
| 1247 | $ST r12,`5*$BNSZ`(r3) #r[5]=c3; | ||
| 1248 | #mul_add_c(a[6],b[0],c1,c2,c3); | ||
| 1249 | $LD r6,`6*$BNSZ`(r4) | ||
| 1250 | $UMULL r8,r6,r7 | ||
| 1251 | $UMULH r9,r6,r7 | ||
| 1252 | addc r10,r10,r8 | ||
| 1253 | adde r11,r11,r9 | ||
| 1254 | addze r12,r0 | ||
| 1255 | #mul_add_c(a[5],b[1],c1,c2,c3); | ||
| 1256 | $LD r6,`5*$BNSZ`(r4) | ||
| 1257 | $LD r7,`1*$BNSZ`(r5) | ||
| 1258 | $UMULL r8,r6,r7 | ||
| 1259 | $UMULH r9,r6,r7 | ||
| 1260 | addc r10,r10,r8 | ||
| 1261 | adde r11,r11,r9 | ||
| 1262 | addze r12,r12 | ||
| 1263 | #mul_add_c(a[4],b[2],c1,c2,c3); | ||
| 1264 | $LD r6,`4*$BNSZ`(r4) | ||
| 1265 | $LD r7,`2*$BNSZ`(r5) | ||
| 1266 | $UMULL r8,r6,r7 | ||
| 1267 | $UMULH r9,r6,r7 | ||
| 1268 | addc r10,r10,r8 | ||
| 1269 | adde r11,r11,r9 | ||
| 1270 | addze r12,r12 | ||
| 1271 | #mul_add_c(a[3],b[3],c1,c2,c3); | ||
| 1272 | $LD r6,`3*$BNSZ`(r4) | ||
| 1273 | $LD r7,`3*$BNSZ`(r5) | ||
| 1274 | $UMULL r8,r6,r7 | ||
| 1275 | $UMULH r9,r6,r7 | ||
| 1276 | addc r10,r10,r8 | ||
| 1277 | adde r11,r11,r9 | ||
| 1278 | addze r12,r12 | ||
| 1279 | #mul_add_c(a[2],b[4],c1,c2,c3); | ||
| 1280 | $LD r6,`2*$BNSZ`(r4) | ||
| 1281 | $LD r7,`4*$BNSZ`(r5) | ||
| 1282 | $UMULL r8,r6,r7 | ||
| 1283 | $UMULH r9,r6,r7 | ||
| 1284 | addc r10,r10,r8 | ||
| 1285 | adde r11,r11,r9 | ||
| 1286 | addze r12,r12 | ||
| 1287 | #mul_add_c(a[1],b[5],c1,c2,c3); | ||
| 1288 | $LD r6,`1*$BNSZ`(r4) | ||
| 1289 | $LD r7,`5*$BNSZ`(r5) | ||
| 1290 | $UMULL r8,r6,r7 | ||
| 1291 | $UMULH r9,r6,r7 | ||
| 1292 | addc r10,r10,r8 | ||
| 1293 | adde r11,r11,r9 | ||
| 1294 | addze r12,r12 | ||
| 1295 | #mul_add_c(a[0],b[6],c1,c2,c3); | ||
| 1296 | $LD r6,`0*$BNSZ`(r4) | ||
| 1297 | $LD r7,`6*$BNSZ`(r5) | ||
| 1298 | $UMULL r8,r6,r7 | ||
| 1299 | $UMULH r9,r6,r7 | ||
| 1300 | addc r10,r10,r8 | ||
| 1301 | adde r11,r11,r9 | ||
| 1302 | addze r12,r12 | ||
| 1303 | $ST r10,`6*$BNSZ`(r3) #r[6]=c1; | ||
| 1304 | #mul_add_c(a[0],b[7],c2,c3,c1); | ||
| 1305 | $LD r7,`7*$BNSZ`(r5) | ||
| 1306 | $UMULL r8,r6,r7 | ||
| 1307 | $UMULH r9,r6,r7 | ||
| 1308 | addc r11,r11,r8 | ||
| 1309 | adde r12,r12,r9 | ||
| 1310 | addze r10,r0 | ||
| 1311 | #mul_add_c(a[1],b[6],c2,c3,c1); | ||
| 1312 | $LD r6,`1*$BNSZ`(r4) | ||
| 1313 | $LD r7,`6*$BNSZ`(r5) | ||
| 1314 | $UMULL r8,r6,r7 | ||
| 1315 | $UMULH r9,r6,r7 | ||
| 1316 | addc r11,r11,r8 | ||
| 1317 | adde r12,r12,r9 | ||
| 1318 | addze r10,r10 | ||
| 1319 | #mul_add_c(a[2],b[5],c2,c3,c1); | ||
| 1320 | $LD r6,`2*$BNSZ`(r4) | ||
| 1321 | $LD r7,`5*$BNSZ`(r5) | ||
| 1322 | $UMULL r8,r6,r7 | ||
| 1323 | $UMULH r9,r6,r7 | ||
| 1324 | addc r11,r11,r8 | ||
| 1325 | adde r12,r12,r9 | ||
| 1326 | addze r10,r10 | ||
| 1327 | #mul_add_c(a[3],b[4],c2,c3,c1); | ||
| 1328 | $LD r6,`3*$BNSZ`(r4) | ||
| 1329 | $LD r7,`4*$BNSZ`(r5) | ||
| 1330 | $UMULL r8,r6,r7 | ||
| 1331 | $UMULH r9,r6,r7 | ||
| 1332 | addc r11,r11,r8 | ||
| 1333 | adde r12,r12,r9 | ||
| 1334 | addze r10,r10 | ||
| 1335 | #mul_add_c(a[4],b[3],c2,c3,c1); | ||
| 1336 | $LD r6,`4*$BNSZ`(r4) | ||
| 1337 | $LD r7,`3*$BNSZ`(r5) | ||
| 1338 | $UMULL r8,r6,r7 | ||
| 1339 | $UMULH r9,r6,r7 | ||
| 1340 | addc r11,r11,r8 | ||
| 1341 | adde r12,r12,r9 | ||
| 1342 | addze r10,r10 | ||
| 1343 | #mul_add_c(a[5],b[2],c2,c3,c1); | ||
| 1344 | $LD r6,`5*$BNSZ`(r4) | ||
| 1345 | $LD r7,`2*$BNSZ`(r5) | ||
| 1346 | $UMULL r8,r6,r7 | ||
| 1347 | $UMULH r9,r6,r7 | ||
| 1348 | addc r11,r11,r8 | ||
| 1349 | adde r12,r12,r9 | ||
| 1350 | addze r10,r10 | ||
| 1351 | #mul_add_c(a[6],b[1],c2,c3,c1); | ||
| 1352 | $LD r6,`6*$BNSZ`(r4) | ||
| 1353 | $LD r7,`1*$BNSZ`(r5) | ||
| 1354 | $UMULL r8,r6,r7 | ||
| 1355 | $UMULH r9,r6,r7 | ||
| 1356 | addc r11,r11,r8 | ||
| 1357 | adde r12,r12,r9 | ||
| 1358 | addze r10,r10 | ||
| 1359 | #mul_add_c(a[7],b[0],c2,c3,c1); | ||
| 1360 | $LD r6,`7*$BNSZ`(r4) | ||
| 1361 | $LD r7,`0*$BNSZ`(r5) | ||
| 1362 | $UMULL r8,r6,r7 | ||
| 1363 | $UMULH r9,r6,r7 | ||
| 1364 | addc r11,r11,r8 | ||
| 1365 | adde r12,r12,r9 | ||
| 1366 | addze r10,r10 | ||
| 1367 | $ST r11,`7*$BNSZ`(r3) #r[7]=c2; | ||
| 1368 | #mul_add_c(a[7],b[1],c3,c1,c2); | ||
| 1369 | $LD r7,`1*$BNSZ`(r5) | ||
| 1370 | $UMULL r8,r6,r7 | ||
| 1371 | $UMULH r9,r6,r7 | ||
| 1372 | addc r12,r12,r8 | ||
| 1373 | adde r10,r10,r9 | ||
| 1374 | addze r11,r0 | ||
| 1375 | #mul_add_c(a[6],b[2],c3,c1,c2); | ||
| 1376 | $LD r6,`6*$BNSZ`(r4) | ||
| 1377 | $LD r7,`2*$BNSZ`(r5) | ||
| 1378 | $UMULL r8,r6,r7 | ||
| 1379 | $UMULH r9,r6,r7 | ||
| 1380 | addc r12,r12,r8 | ||
| 1381 | adde r10,r10,r9 | ||
| 1382 | addze r11,r11 | ||
| 1383 | #mul_add_c(a[5],b[3],c3,c1,c2); | ||
| 1384 | $LD r6,`5*$BNSZ`(r4) | ||
| 1385 | $LD r7,`3*$BNSZ`(r5) | ||
| 1386 | $UMULL r8,r6,r7 | ||
| 1387 | $UMULH r9,r6,r7 | ||
| 1388 | addc r12,r12,r8 | ||
| 1389 | adde r10,r10,r9 | ||
| 1390 | addze r11,r11 | ||
| 1391 | #mul_add_c(a[4],b[4],c3,c1,c2); | ||
| 1392 | $LD r6,`4*$BNSZ`(r4) | ||
| 1393 | $LD r7,`4*$BNSZ`(r5) | ||
| 1394 | $UMULL r8,r6,r7 | ||
| 1395 | $UMULH r9,r6,r7 | ||
| 1396 | addc r12,r12,r8 | ||
| 1397 | adde r10,r10,r9 | ||
| 1398 | addze r11,r11 | ||
| 1399 | #mul_add_c(a[3],b[5],c3,c1,c2); | ||
| 1400 | $LD r6,`3*$BNSZ`(r4) | ||
| 1401 | $LD r7,`5*$BNSZ`(r5) | ||
| 1402 | $UMULL r8,r6,r7 | ||
| 1403 | $UMULH r9,r6,r7 | ||
| 1404 | addc r12,r12,r8 | ||
| 1405 | adde r10,r10,r9 | ||
| 1406 | addze r11,r11 | ||
| 1407 | #mul_add_c(a[2],b[6],c3,c1,c2); | ||
| 1408 | $LD r6,`2*$BNSZ`(r4) | ||
| 1409 | $LD r7,`6*$BNSZ`(r5) | ||
| 1410 | $UMULL r8,r6,r7 | ||
| 1411 | $UMULH r9,r6,r7 | ||
| 1412 | addc r12,r12,r8 | ||
| 1413 | adde r10,r10,r9 | ||
| 1414 | addze r11,r11 | ||
| 1415 | #mul_add_c(a[1],b[7],c3,c1,c2); | ||
| 1416 | $LD r6,`1*$BNSZ`(r4) | ||
| 1417 | $LD r7,`7*$BNSZ`(r5) | ||
| 1418 | $UMULL r8,r6,r7 | ||
| 1419 | $UMULH r9,r6,r7 | ||
| 1420 | addc r12,r12,r8 | ||
| 1421 | adde r10,r10,r9 | ||
| 1422 | addze r11,r11 | ||
| 1423 | $ST r12,`8*$BNSZ`(r3) #r[8]=c3; | ||
| 1424 | #mul_add_c(a[2],b[7],c1,c2,c3); | ||
| 1425 | $LD r6,`2*$BNSZ`(r4) | ||
| 1426 | $UMULL r8,r6,r7 | ||
| 1427 | $UMULH r9,r6,r7 | ||
| 1428 | addc r10,r10,r8 | ||
| 1429 | adde r11,r11,r9 | ||
| 1430 | addze r12,r0 | ||
| 1431 | #mul_add_c(a[3],b[6],c1,c2,c3); | ||
| 1432 | $LD r6,`3*$BNSZ`(r4) | ||
| 1433 | $LD r7,`6*$BNSZ`(r5) | ||
| 1434 | $UMULL r8,r6,r7 | ||
| 1435 | $UMULH r9,r6,r7 | ||
| 1436 | addc r10,r10,r8 | ||
| 1437 | adde r11,r11,r9 | ||
| 1438 | addze r12,r12 | ||
| 1439 | #mul_add_c(a[4],b[5],c1,c2,c3); | ||
| 1440 | $LD r6,`4*$BNSZ`(r4) | ||
| 1441 | $LD r7,`5*$BNSZ`(r5) | ||
| 1442 | $UMULL r8,r6,r7 | ||
| 1443 | $UMULH r9,r6,r7 | ||
| 1444 | addc r10,r10,r8 | ||
| 1445 | adde r11,r11,r9 | ||
| 1446 | addze r12,r12 | ||
| 1447 | #mul_add_c(a[5],b[4],c1,c2,c3); | ||
| 1448 | $LD r6,`5*$BNSZ`(r4) | ||
| 1449 | $LD r7,`4*$BNSZ`(r5) | ||
| 1450 | $UMULL r8,r6,r7 | ||
| 1451 | $UMULH r9,r6,r7 | ||
| 1452 | addc r10,r10,r8 | ||
| 1453 | adde r11,r11,r9 | ||
| 1454 | addze r12,r12 | ||
| 1455 | #mul_add_c(a[6],b[3],c1,c2,c3); | ||
| 1456 | $LD r6,`6*$BNSZ`(r4) | ||
| 1457 | $LD r7,`3*$BNSZ`(r5) | ||
| 1458 | $UMULL r8,r6,r7 | ||
| 1459 | $UMULH r9,r6,r7 | ||
| 1460 | addc r10,r10,r8 | ||
| 1461 | adde r11,r11,r9 | ||
| 1462 | addze r12,r12 | ||
| 1463 | #mul_add_c(a[7],b[2],c1,c2,c3); | ||
| 1464 | $LD r6,`7*$BNSZ`(r4) | ||
| 1465 | $LD r7,`2*$BNSZ`(r5) | ||
| 1466 | $UMULL r8,r6,r7 | ||
| 1467 | $UMULH r9,r6,r7 | ||
| 1468 | addc r10,r10,r8 | ||
| 1469 | adde r11,r11,r9 | ||
| 1470 | addze r12,r12 | ||
| 1471 | $ST r10,`9*$BNSZ`(r3) #r[9]=c1; | ||
| 1472 | #mul_add_c(a[7],b[3],c2,c3,c1); | ||
| 1473 | $LD r7,`3*$BNSZ`(r5) | ||
| 1474 | $UMULL r8,r6,r7 | ||
| 1475 | $UMULH r9,r6,r7 | ||
| 1476 | addc r11,r11,r8 | ||
| 1477 | adde r12,r12,r9 | ||
| 1478 | addze r10,r0 | ||
| 1479 | #mul_add_c(a[6],b[4],c2,c3,c1); | ||
| 1480 | $LD r6,`6*$BNSZ`(r4) | ||
| 1481 | $LD r7,`4*$BNSZ`(r5) | ||
| 1482 | $UMULL r8,r6,r7 | ||
| 1483 | $UMULH r9,r6,r7 | ||
| 1484 | addc r11,r11,r8 | ||
| 1485 | adde r12,r12,r9 | ||
| 1486 | addze r10,r10 | ||
| 1487 | #mul_add_c(a[5],b[5],c2,c3,c1); | ||
| 1488 | $LD r6,`5*$BNSZ`(r4) | ||
| 1489 | $LD r7,`5*$BNSZ`(r5) | ||
| 1490 | $UMULL r8,r6,r7 | ||
| 1491 | $UMULH r9,r6,r7 | ||
| 1492 | addc r11,r11,r8 | ||
| 1493 | adde r12,r12,r9 | ||
| 1494 | addze r10,r10 | ||
| 1495 | #mul_add_c(a[4],b[6],c2,c3,c1); | ||
| 1496 | $LD r6,`4*$BNSZ`(r4) | ||
| 1497 | $LD r7,`6*$BNSZ`(r5) | ||
| 1498 | $UMULL r8,r6,r7 | ||
| 1499 | $UMULH r9,r6,r7 | ||
| 1500 | addc r11,r11,r8 | ||
| 1501 | adde r12,r12,r9 | ||
| 1502 | addze r10,r10 | ||
| 1503 | #mul_add_c(a[3],b[7],c2,c3,c1); | ||
| 1504 | $LD r6,`3*$BNSZ`(r4) | ||
| 1505 | $LD r7,`7*$BNSZ`(r5) | ||
| 1506 | $UMULL r8,r6,r7 | ||
| 1507 | $UMULH r9,r6,r7 | ||
| 1508 | addc r11,r11,r8 | ||
| 1509 | adde r12,r12,r9 | ||
| 1510 | addze r10,r10 | ||
| 1511 | $ST r11,`10*$BNSZ`(r3) #r[10]=c2; | ||
| 1512 | #mul_add_c(a[4],b[7],c3,c1,c2); | ||
| 1513 | $LD r6,`4*$BNSZ`(r4) | ||
| 1514 | $UMULL r8,r6,r7 | ||
| 1515 | $UMULH r9,r6,r7 | ||
| 1516 | addc r12,r12,r8 | ||
| 1517 | adde r10,r10,r9 | ||
| 1518 | addze r11,r0 | ||
| 1519 | #mul_add_c(a[5],b[6],c3,c1,c2); | ||
| 1520 | $LD r6,`5*$BNSZ`(r4) | ||
| 1521 | $LD r7,`6*$BNSZ`(r5) | ||
| 1522 | $UMULL r8,r6,r7 | ||
| 1523 | $UMULH r9,r6,r7 | ||
| 1524 | addc r12,r12,r8 | ||
| 1525 | adde r10,r10,r9 | ||
| 1526 | addze r11,r11 | ||
| 1527 | #mul_add_c(a[6],b[5],c3,c1,c2); | ||
| 1528 | $LD r6,`6*$BNSZ`(r4) | ||
| 1529 | $LD r7,`5*$BNSZ`(r5) | ||
| 1530 | $UMULL r8,r6,r7 | ||
| 1531 | $UMULH r9,r6,r7 | ||
| 1532 | addc r12,r12,r8 | ||
| 1533 | adde r10,r10,r9 | ||
| 1534 | addze r11,r11 | ||
| 1535 | #mul_add_c(a[7],b[4],c3,c1,c2); | ||
| 1536 | $LD r6,`7*$BNSZ`(r4) | ||
| 1537 | $LD r7,`4*$BNSZ`(r5) | ||
| 1538 | $UMULL r8,r6,r7 | ||
| 1539 | $UMULH r9,r6,r7 | ||
| 1540 | addc r12,r12,r8 | ||
| 1541 | adde r10,r10,r9 | ||
| 1542 | addze r11,r11 | ||
| 1543 | $ST r12,`11*$BNSZ`(r3) #r[11]=c3; | ||
| 1544 | #mul_add_c(a[7],b[5],c1,c2,c3); | ||
| 1545 | $LD r7,`5*$BNSZ`(r5) | ||
| 1546 | $UMULL r8,r6,r7 | ||
| 1547 | $UMULH r9,r6,r7 | ||
| 1548 | addc r10,r10,r8 | ||
| 1549 | adde r11,r11,r9 | ||
| 1550 | addze r12,r0 | ||
| 1551 | #mul_add_c(a[6],b[6],c1,c2,c3); | ||
| 1552 | $LD r6,`6*$BNSZ`(r4) | ||
| 1553 | $LD r7,`6*$BNSZ`(r5) | ||
| 1554 | $UMULL r8,r6,r7 | ||
| 1555 | $UMULH r9,r6,r7 | ||
| 1556 | addc r10,r10,r8 | ||
| 1557 | adde r11,r11,r9 | ||
| 1558 | addze r12,r12 | ||
| 1559 | #mul_add_c(a[5],b[7],c1,c2,c3); | ||
| 1560 | $LD r6,`5*$BNSZ`(r4) | ||
| 1561 | $LD r7,`7*$BNSZ`(r5) | ||
| 1562 | $UMULL r8,r6,r7 | ||
| 1563 | $UMULH r9,r6,r7 | ||
| 1564 | addc r10,r10,r8 | ||
| 1565 | adde r11,r11,r9 | ||
| 1566 | addze r12,r12 | ||
| 1567 | $ST r10,`12*$BNSZ`(r3) #r[12]=c1; | ||
| 1568 | #mul_add_c(a[6],b[7],c2,c3,c1); | ||
| 1569 | $LD r6,`6*$BNSZ`(r4) | ||
| 1570 | $UMULL r8,r6,r7 | ||
| 1571 | $UMULH r9,r6,r7 | ||
| 1572 | addc r11,r11,r8 | ||
| 1573 | adde r12,r12,r9 | ||
| 1574 | addze r10,r0 | ||
| 1575 | #mul_add_c(a[7],b[6],c2,c3,c1); | ||
| 1576 | $LD r6,`7*$BNSZ`(r4) | ||
| 1577 | $LD r7,`6*$BNSZ`(r5) | ||
| 1578 | $UMULL r8,r6,r7 | ||
| 1579 | $UMULH r9,r6,r7 | ||
| 1580 | addc r11,r11,r8 | ||
| 1581 | adde r12,r12,r9 | ||
| 1582 | addze r10,r10 | ||
| 1583 | $ST r11,`13*$BNSZ`(r3) #r[13]=c2; | ||
| 1584 | #mul_add_c(a[7],b[7],c3,c1,c2); | ||
| 1585 | $LD r7,`7*$BNSZ`(r5) | ||
| 1586 | $UMULL r8,r6,r7 | ||
| 1587 | $UMULH r9,r6,r7 | ||
| 1588 | addc r12,r12,r8 | ||
| 1589 | adde r10,r10,r9 | ||
| 1590 | $ST r12,`14*$BNSZ`(r3) #r[14]=c3; | ||
| 1591 | $ST r10,`15*$BNSZ`(r3) #r[15]=c1; | ||
| 1592 | bclr BO_ALWAYS,CR0_LT | ||
| 1593 | .long 0x00000000 | ||
| 1594 | |||
| 1595 | # | ||
| 1596 | # NOTE: The following label name should be changed to | ||
| 1597 | # "bn_sub_words" i.e. remove the first dot | ||
| 1598 | # for the gcc compiler. This should be automatically | ||
| 1599 | # done in the build | ||
| 1600 | # | ||
| 1601 | # | ||
| 1602 | .align 4 | ||
| 1603 | .bn_sub_words: | ||
| 1604 | # | ||
| 1605 | # Handcoded version of bn_sub_words | ||
| 1606 | # | ||
| 1607 | #BN_ULONG bn_sub_words(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n) | ||
| 1608 | # | ||
| 1609 | # r3 = r | ||
| 1610 | # r4 = a | ||
| 1611 | # r5 = b | ||
| 1612 | # r6 = n | ||
| 1613 | # | ||
| 1614 | # Note: No loop unrolling done since this is not a performance | ||
| 1615 | # critical loop. | ||
| 1616 | |||
| 1617 | xor r0,r0,r0 #set r0 = 0 | ||
| 1618 | # | ||
| 1619 | # check for r6 = 0 AND set carry bit. | ||
| 1620 | # | ||
| 1621 | subfc. r7,r0,r6 # If r6 is 0 then result is 0. | ||
| 1622 | # if r6 > 0 then result !=0 | ||
| 1623 | # In either case carry bit is set. | ||
| 1624 | bc BO_IF,CR0_EQ,Lppcasm_sub_adios | ||
| 1625 | addi r4,r4,-$BNSZ | ||
| 1626 | addi r3,r3,-$BNSZ | ||
| 1627 | addi r5,r5,-$BNSZ | ||
| 1628 | mtctr r6 | ||
| 1629 | Lppcasm_sub_mainloop: | ||
| 1630 | $LDU r7,$BNSZ(r4) | ||
| 1631 | $LDU r8,$BNSZ(r5) | ||
| 1632 | subfe r6,r8,r7 # r6 = r7+carry bit + onescomplement(r8) | ||
| 1633 | # if carry = 1 this is r7-r8. Else it | ||
| 1634 | # is r7-r8 -1 as we need. | ||
| 1635 | $STU r6,$BNSZ(r3) | ||
| 1636 | bc BO_dCTR_NZERO,CR0_EQ,Lppcasm_sub_mainloop | ||
| 1637 | Lppcasm_sub_adios: | ||
| 1638 | subfze r3,r0 # if carry bit is set then r3 = 0 else -1 | ||
| 1639 | andi. r3,r3,1 # keep only last bit. | ||
| 1640 | bclr BO_ALWAYS,CR0_LT | ||
| 1641 | .long 0x00000000 | ||
| 1642 | |||
| 1643 | |||
| 1644 | # | ||
| 1645 | # NOTE: The following label name should be changed to | ||
| 1646 | # "bn_add_words" i.e. remove the first dot | ||
| 1647 | # for the gcc compiler. This should be automatically | ||
| 1648 | # done in the build | ||
| 1649 | # | ||
| 1650 | |||
| 1651 | .align 4 | ||
| 1652 | .bn_add_words: | ||
| 1653 | # | ||
| 1654 | # Handcoded version of bn_add_words | ||
| 1655 | # | ||
| 1656 | #BN_ULONG bn_add_words(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n) | ||
| 1657 | # | ||
| 1658 | # r3 = r | ||
| 1659 | # r4 = a | ||
| 1660 | # r5 = b | ||
| 1661 | # r6 = n | ||
| 1662 | # | ||
| 1663 | # Note: No loop unrolling done since this is not a performance | ||
| 1664 | # critical loop. | ||
| 1665 | |||
| 1666 | xor r0,r0,r0 | ||
| 1667 | # | ||
| 1668 | # check for r6 = 0. Is this needed? | ||
| 1669 | # | ||
| 1670 | addic. r6,r6,0 #test r6 and clear carry bit. | ||
| 1671 | bc BO_IF,CR0_EQ,Lppcasm_add_adios | ||
| 1672 | addi r4,r4,-$BNSZ | ||
| 1673 | addi r3,r3,-$BNSZ | ||
| 1674 | addi r5,r5,-$BNSZ | ||
| 1675 | mtctr r6 | ||
| 1676 | Lppcasm_add_mainloop: | ||
| 1677 | $LDU r7,$BNSZ(r4) | ||
| 1678 | $LDU r8,$BNSZ(r5) | ||
| 1679 | adde r8,r7,r8 | ||
| 1680 | $STU r8,$BNSZ(r3) | ||
| 1681 | bc BO_dCTR_NZERO,CR0_EQ,Lppcasm_add_mainloop | ||
| 1682 | Lppcasm_add_adios: | ||
| 1683 | addze r3,r0 #return carry bit. | ||
| 1684 | bclr BO_ALWAYS,CR0_LT | ||
| 1685 | .long 0x00000000 | ||
| 1686 | |||
| 1687 | # | ||
| 1688 | # NOTE: The following label name should be changed to | ||
| 1689 | # "bn_div_words" i.e. remove the first dot | ||
| 1690 | # for the gcc compiler. This should be automatically | ||
| 1691 | # done in the build | ||
| 1692 | # | ||
| 1693 | |||
| 1694 | .align 4 | ||
| 1695 | .bn_div_words: | ||
| 1696 | # | ||
| 1697 | # This is a cleaned up version of code generated by | ||
| 1698 | # the AIX compiler. The only optimization is to use | ||
| 1699 | # the PPC instruction to count leading zeros instead | ||
| 1700 | # of call to num_bits_word. Since this was compiled | ||
| 1701 | # only at level -O2 we can possibly squeeze it more? | ||
| 1702 | # | ||
| 1703 | # r3 = h | ||
| 1704 | # r4 = l | ||
| 1705 | # r5 = d | ||
| 1706 | |||
| 1707 | $UCMPI 0,r5,0 # compare r5 and 0 | ||
| 1708 | bc BO_IF_NOT,CR0_EQ,Lppcasm_div1 # proceed if d!=0 | ||
| 1709 | li r3,-1 # d=0 return -1 | ||
| 1710 | bclr BO_ALWAYS,CR0_LT | ||
| 1711 | Lppcasm_div1: | ||
| 1712 | xor r0,r0,r0 #r0=0 | ||
| 1713 | $COUNTZ r7,r5 #r7 = num leading 0s in d. | ||
| 1714 | subfic r8,r7,$BITS #r8 = BN_num_bits_word(d) | ||
| 1715 | cmpi 0,0,r8,$BITS # | ||
| 1716 | bc BO_IF,CR0_EQ,Lppcasm_div2 #proceed if (r8==$BITS) | ||
| 1717 | li r9,1 # r9=1 | ||
| 1718 | $SHL r10,r9,r8 # r9<<=r8 | ||
| 1719 | $UCMP 0,r3,r10 # | ||
| 1720 | bc BO_IF,CR0_GT,Lppcasm_div2 #or if (h > (1<<r8)) | ||
| 1721 | $UDIV r3,r3,r0 #if not assert(0) divide by 0! | ||
| 1722 | #that's how we signal overflow | ||
| 1723 | bclr BO_ALWAYS,CR0_LT #return. NEVER REACHED. | ||
| 1724 | Lppcasm_div2: | ||
| 1725 | $UCMP 0,r3,r5 #h>=d? | ||
| 1726 | bc BO_IF,CR0_LT,Lppcasm_div3 #goto Lppcasm_div3 if not | ||
| 1727 | subf r3,r5,r3 #h-=d ; | ||
| 1728 | Lppcasm_div3: #r7 = BN_BITS2-i. so r7=i | ||
| 1729 | cmpi 0,0,r7,0 # is (i == 0)? | ||
| 1730 | bc BO_IF,CR0_EQ,Lppcasm_div4 | ||
| 1731 | $SHL r3,r3,r7 # h = (h<< i) | ||
| 1732 | $SHR r8,r4,r8 # r8 = (l >> BN_BITS2 -i) | ||
| 1733 | $SHL r5,r5,r7 # d<<=i | ||
| 1734 | or r3,r3,r8 # h = (h<<i)|(l>>(BN_BITS2-i)) | ||
| 1735 | $SHL r4,r4,r7 # l <<=i | ||
| 1736 | Lppcasm_div4: | ||
| 1737 | $SHRI r9,r5,`$BITS/2` # r9 = dh | ||
| 1738 | # dl will be computed when needed | ||
| 1739 | # as it saves registers. | ||
| 1740 | li r6,2 #r6=2 | ||
| 1741 | mtctr r6 #counter will be in count. | ||
| 1742 | Lppcasm_divouterloop: | ||
| 1743 | $SHRI r8,r3,`$BITS/2` #r8 = (h>>BN_BITS4) | ||
| 1744 | $SHRI r11,r4,`$BITS/2` #r11= (l&BN_MASK2h)>>BN_BITS4 | ||
| 1745 | # compute here for innerloop. | ||
| 1746 | $UCMP 0,r8,r9 # is (h>>BN_BITS4)==dh | ||
| 1747 | bc BO_IF_NOT,CR0_EQ,Lppcasm_div5 # goto Lppcasm_div5 if not | ||
| 1748 | |||
| 1749 | li r8,-1 | ||
| 1750 | $CLRU r8,r8,`$BITS/2` #q = BN_MASK2l | ||
| 1751 | b Lppcasm_div6 | ||
| 1752 | Lppcasm_div5: | ||
| 1753 | $UDIV r8,r3,r9 #q = h/dh | ||
| 1754 | Lppcasm_div6: | ||
| 1755 | $UMULL r12,r9,r8 #th = q*dh | ||
| 1756 | $CLRU r10,r5,`$BITS/2` #r10=dl | ||
| 1757 | $UMULL r6,r8,r10 #tl = q*dl | ||
| 1758 | |||
| 1759 | Lppcasm_divinnerloop: | ||
| 1760 | subf r10,r12,r3 #t = h -th | ||
| 1761 | $SHRI r7,r10,`$BITS/2` #r7= (t &BN_MASK2H), sort of... | ||
| 1762 | addic. r7,r7,0 #test if r7 == 0. used below. | ||
| 1763 | # now want to compute | ||
| 1764 | # r7 = (t<<BN_BITS4)|((l&BN_MASK2h)>>BN_BITS4) | ||
| 1765 | # the following 2 instructions do that | ||
| 1766 | $SHLI r7,r10,`$BITS/2` # r7 = (t<<BN_BITS4) | ||
| 1767 | or r7,r7,r11 # r7|=((l&BN_MASK2h)>>BN_BITS4) | ||
| 1768 | $UCMP 1,r6,r7 # compare (tl <= r7) | ||
| 1769 | bc BO_IF_NOT,CR0_EQ,Lppcasm_divinnerexit | ||
| 1770 | bc BO_IF_NOT,CR1_FEX,Lppcasm_divinnerexit | ||
| 1771 | addi r8,r8,-1 #q-- | ||
| 1772 | subf r12,r9,r12 #th -=dh | ||
| 1773 | $CLRU r10,r5,`$BITS/2` #r10=dl. t is no longer needed in loop. | ||
| 1774 | subf r6,r10,r6 #tl -=dl | ||
| 1775 | b Lppcasm_divinnerloop | ||
| 1776 | Lppcasm_divinnerexit: | ||
| 1777 | $SHRI r10,r6,`$BITS/2` #t=(tl>>BN_BITS4) | ||
| 1778 | $SHLI r11,r6,`$BITS/2` #tl=(tl<<BN_BITS4)&BN_MASK2h; | ||
| 1779 | $UCMP 1,r4,r11 # compare l and tl | ||
| 1780 | add r12,r12,r10 # th+=t | ||
| 1781 | bc BO_IF_NOT,CR1_FX,Lppcasm_div7 # if (l>=tl) goto Lppcasm_div7 | ||
| 1782 | addi r12,r12,1 # th++ | ||
| 1783 | Lppcasm_div7: | ||
| 1784 | subf r11,r11,r4 #r11=l-tl | ||
| 1785 | $UCMP 1,r3,r12 #compare h and th | ||
| 1786 | bc BO_IF_NOT,CR1_FX,Lppcasm_div8 #if (h>=th) goto Lppcasm_div8 | ||
| 1787 | addi r8,r8,-1 # q-- | ||
| 1788 | add r3,r5,r3 # h+=d | ||
| 1789 | Lppcasm_div8: | ||
| 1790 | subf r12,r12,r3 #r12 = h-th | ||
| 1791 | $SHLI r4,r11,`$BITS/2` #l=(l&BN_MASK2l)<<BN_BITS4 | ||
| 1792 | # want to compute | ||
| 1793 | # h = ((h<<BN_BITS4)|(l>>BN_BITS4))&BN_MASK2 | ||
| 1794 | # the following 2 instructions will do this. | ||
| 1795 | $INSR r11,r12,`$BITS/2`,`$BITS/2` # r11 is the value we want rotated $BITS/2. | ||
| 1796 | $ROTL r3,r11,`$BITS/2` # rotate by $BITS/2 and store in r3 | ||
| 1797 | bc BO_dCTR_ZERO,CR0_EQ,Lppcasm_div9#if (count==0) break ; | ||
| 1798 | $SHLI r0,r8,`$BITS/2` #ret =q<<BN_BITS4 | ||
| 1799 | b Lppcasm_divouterloop | ||
| 1800 | Lppcasm_div9: | ||
| 1801 | or r3,r8,r0 | ||
| 1802 | bclr BO_ALWAYS,CR0_LT | ||
| 1803 | .long 0x00000000 | ||
| 1804 | |||
| 1805 | # | ||
| 1806 | # NOTE: The following label name should be changed to | ||
| 1807 | # "bn_sqr_words" i.e. remove the first dot | ||
| 1808 | # for the gcc compiler. This should be automatically | ||
| 1809 | # done in the build | ||
| 1810 | # | ||
| 1811 | .align 4 | ||
| 1812 | .bn_sqr_words: | ||
| 1813 | # | ||
| 1814 | # Optimized version of bn_sqr_words | ||
| 1815 | # | ||
| 1816 | # void bn_sqr_words(BN_ULONG *r, BN_ULONG *a, int n) | ||
| 1817 | # | ||
| 1818 | # r3 = r | ||
| 1819 | # r4 = a | ||
| 1820 | # r5 = n | ||
| 1821 | # | ||
| 1822 | # r6 = a[i]. | ||
| 1823 | # r7,r8 = product. | ||
| 1824 | # | ||
| 1825 | # No unrolling done here. Not performance critical. | ||
| 1826 | |||
| 1827 | addic. r5,r5,0 #test r5. | ||
| 1828 | bc BO_IF,CR0_EQ,Lppcasm_sqr_adios | ||
| 1829 | addi r4,r4,-$BNSZ | ||
| 1830 | addi r3,r3,-$BNSZ | ||
| 1831 | mtctr r5 | ||
| 1832 | Lppcasm_sqr_mainloop: | ||
| 1833 | #sqr(r[0],r[1],a[0]); | ||
| 1834 | $LDU r6,$BNSZ(r4) | ||
| 1835 | $UMULL r7,r6,r6 | ||
| 1836 | $UMULH r8,r6,r6 | ||
| 1837 | $STU r7,$BNSZ(r3) | ||
| 1838 | $STU r8,$BNSZ(r3) | ||
| 1839 | bc BO_dCTR_NZERO,CR0_EQ,Lppcasm_sqr_mainloop | ||
| 1840 | Lppcasm_sqr_adios: | ||
| 1841 | bclr BO_ALWAYS,CR0_LT | ||
| 1842 | .long 0x00000000 | ||
| 1843 | |||
| 1844 | |||
| 1845 | # | ||
| 1846 | # NOTE: The following label name should be changed to | ||
| 1847 | # "bn_mul_words" i.e. remove the first dot | ||
| 1848 | # for the gcc compiler. This should be automatically | ||
| 1849 | # done in the build | ||
| 1850 | # | ||
| 1851 | |||
| 1852 | .align 4 | ||
| 1853 | .bn_mul_words: | ||
| 1854 | # | ||
| 1855 | # BN_ULONG bn_mul_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w) | ||
| 1856 | # | ||
| 1857 | # r3 = rp | ||
| 1858 | # r4 = ap | ||
| 1859 | # r5 = num | ||
| 1860 | # r6 = w | ||
| 1861 | xor r0,r0,r0 | ||
| 1862 | xor r12,r12,r12 # used for carry | ||
| 1863 | rlwinm. r7,r5,30,2,31 # num >> 2 | ||
| 1864 | bc BO_IF,CR0_EQ,Lppcasm_mw_REM | ||
| 1865 | mtctr r7 | ||
| 1866 | Lppcasm_mw_LOOP: | ||
| 1867 | #mul(rp[0],ap[0],w,c1); | ||
| 1868 | $LD r8,`0*$BNSZ`(r4) | ||
| 1869 | $UMULL r9,r6,r8 | ||
| 1870 | $UMULH r10,r6,r8 | ||
| 1871 | addc r9,r9,r12 | ||
| 1872 | #addze r10,r10 #carry is NOT ignored. | ||
| 1873 | #will be taken care of | ||
| 1874 | #in second spin below | ||
| 1875 | #using adde. | ||
| 1876 | $ST r9,`0*$BNSZ`(r3) | ||
| 1877 | #mul(rp[1],ap[1],w,c1); | ||
| 1878 | $LD r8,`1*$BNSZ`(r4) | ||
| 1879 | $UMULL r11,r6,r8 | ||
| 1880 | $UMULH r12,r6,r8 | ||
| 1881 | adde r11,r11,r10 | ||
| 1882 | #addze r12,r12 | ||
| 1883 | $ST r11,`1*$BNSZ`(r3) | ||
| 1884 | #mul(rp[2],ap[2],w,c1); | ||
| 1885 | $LD r8,`2*$BNSZ`(r4) | ||
| 1886 | $UMULL r9,r6,r8 | ||
| 1887 | $UMULH r10,r6,r8 | ||
| 1888 | adde r9,r9,r12 | ||
| 1889 | #addze r10,r10 | ||
| 1890 | $ST r9,`2*$BNSZ`(r3) | ||
| 1891 | #mul_add(rp[3],ap[3],w,c1); | ||
| 1892 | $LD r8,`3*$BNSZ`(r4) | ||
| 1893 | $UMULL r11,r6,r8 | ||
| 1894 | $UMULH r12,r6,r8 | ||
| 1895 | adde r11,r11,r10 | ||
| 1896 | addze r12,r12 #this spin we collect carry into | ||
| 1897 | #r12 | ||
| 1898 | $ST r11,`3*$BNSZ`(r3) | ||
| 1899 | |||
| 1900 | addi r3,r3,`4*$BNSZ` | ||
| 1901 | addi r4,r4,`4*$BNSZ` | ||
| 1902 | bc BO_dCTR_NZERO,CR0_EQ,Lppcasm_mw_LOOP | ||
| 1903 | |||
| 1904 | Lppcasm_mw_REM: | ||
| 1905 | andi. r5,r5,0x3 | ||
| 1906 | bc BO_IF,CR0_EQ,Lppcasm_mw_OVER | ||
| 1907 | #mul(rp[0],ap[0],w,c1); | ||
| 1908 | $LD r8,`0*$BNSZ`(r4) | ||
| 1909 | $UMULL r9,r6,r8 | ||
| 1910 | $UMULH r10,r6,r8 | ||
| 1911 | addc r9,r9,r12 | ||
| 1912 | addze r10,r10 | ||
| 1913 | $ST r9,`0*$BNSZ`(r3) | ||
| 1914 | addi r12,r10,0 | ||
| 1915 | |||
| 1916 | addi r5,r5,-1 | ||
| 1917 | cmpli 0,0,r5,0 | ||
| 1918 | bc BO_IF,CR0_EQ,Lppcasm_mw_OVER | ||
| 1919 | |||
| 1920 | |||
| 1921 | #mul(rp[1],ap[1],w,c1); | ||
| 1922 | $LD r8,`1*$BNSZ`(r4) | ||
| 1923 | $UMULL r9,r6,r8 | ||
| 1924 | $UMULH r10,r6,r8 | ||
| 1925 | addc r9,r9,r12 | ||
| 1926 | addze r10,r10 | ||
| 1927 | $ST r9,`1*$BNSZ`(r3) | ||
| 1928 | addi r12,r10,0 | ||
| 1929 | |||
| 1930 | addi r5,r5,-1 | ||
| 1931 | cmpli 0,0,r5,0 | ||
| 1932 | bc BO_IF,CR0_EQ,Lppcasm_mw_OVER | ||
| 1933 | |||
| 1934 | #mul_add(rp[2],ap[2],w,c1); | ||
| 1935 | $LD r8,`2*$BNSZ`(r4) | ||
| 1936 | $UMULL r9,r6,r8 | ||
| 1937 | $UMULH r10,r6,r8 | ||
| 1938 | addc r9,r9,r12 | ||
| 1939 | addze r10,r10 | ||
| 1940 | $ST r9,`2*$BNSZ`(r3) | ||
| 1941 | addi r12,r10,0 | ||
| 1942 | |||
| 1943 | Lppcasm_mw_OVER: | ||
| 1944 | addi r3,r12,0 | ||
| 1945 | bclr BO_ALWAYS,CR0_LT | ||
| 1946 | .long 0x00000000 | ||
| 1947 | |||
| 1948 | # | ||
| 1949 | # NOTE: The following label name should be changed to | ||
| 1950 | # "bn_mul_add_words" i.e. remove the first dot | ||
| 1951 | # for the gcc compiler. This should be automatically | ||
| 1952 | # done in the build | ||
| 1953 | # | ||
| 1954 | |||
| 1955 | .align 4 | ||
| 1956 | .bn_mul_add_words: | ||
| 1957 | # | ||
| 1958 | # BN_ULONG bn_mul_add_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w) | ||
| 1959 | # | ||
| 1960 | # r3 = rp | ||
| 1961 | # r4 = ap | ||
| 1962 | # r5 = num | ||
| 1963 | # r6 = w | ||
| 1964 | # | ||
| 1965 | # empirical evidence suggests that unrolled version performs best!! | ||
| 1966 | # | ||
| 1967 | xor r0,r0,r0 #r0 = 0 | ||
| 1968 | xor r12,r12,r12 #r12 = 0 . used for carry | ||
| 1969 | rlwinm. r7,r5,30,2,31 # num >> 2 | ||
| 1970 | bc BO_IF,CR0_EQ,Lppcasm_maw_leftover # if (num < 4) go LPPCASM_maw_leftover | ||
| 1971 | mtctr r7 | ||
| 1972 | Lppcasm_maw_mainloop: | ||
| 1973 | #mul_add(rp[0],ap[0],w,c1); | ||
| 1974 | $LD r8,`0*$BNSZ`(r4) | ||
| 1975 | $LD r11,`0*$BNSZ`(r3) | ||
| 1976 | $UMULL r9,r6,r8 | ||
| 1977 | $UMULH r10,r6,r8 | ||
| 1978 | addc r9,r9,r12 #r12 is carry. | ||
| 1979 | addze r10,r10 | ||
| 1980 | addc r9,r9,r11 | ||
| 1981 | #addze r10,r10 | ||
| 1982 | #the above instruction addze | ||
| 1983 | #is NOT needed. Carry will NOT | ||
| 1984 | #be ignored. It's not affected | ||
| 1985 | #by multiply and will be collected | ||
| 1986 | #in the next spin | ||
| 1987 | $ST r9,`0*$BNSZ`(r3) | ||
| 1988 | |||
| 1989 | #mul_add(rp[1],ap[1],w,c1); | ||
| 1990 | $LD r8,`1*$BNSZ`(r4) | ||
| 1991 | $LD r9,`1*$BNSZ`(r3) | ||
| 1992 | $UMULL r11,r6,r8 | ||
| 1993 | $UMULH r12,r6,r8 | ||
| 1994 | adde r11,r11,r10 #r10 is carry. | ||
| 1995 | addze r12,r12 | ||
| 1996 | addc r11,r11,r9 | ||
| 1997 | #addze r12,r12 | ||
| 1998 | $ST r11,`1*$BNSZ`(r3) | ||
| 1999 | |||
| 2000 | #mul_add(rp[2],ap[2],w,c1); | ||
| 2001 | $LD r8,`2*$BNSZ`(r4) | ||
| 2002 | $UMULL r9,r6,r8 | ||
| 2003 | $LD r11,`2*$BNSZ`(r3) | ||
| 2004 | $UMULH r10,r6,r8 | ||
| 2005 | adde r9,r9,r12 | ||
| 2006 | addze r10,r10 | ||
| 2007 | addc r9,r9,r11 | ||
| 2008 | #addze r10,r10 | ||
| 2009 | $ST r9,`2*$BNSZ`(r3) | ||
| 2010 | |||
| 2011 | #mul_add(rp[3],ap[3],w,c1); | ||
| 2012 | $LD r8,`3*$BNSZ`(r4) | ||
| 2013 | $UMULL r11,r6,r8 | ||
| 2014 | $LD r9,`3*$BNSZ`(r3) | ||
| 2015 | $UMULH r12,r6,r8 | ||
| 2016 | adde r11,r11,r10 | ||
| 2017 | addze r12,r12 | ||
| 2018 | addc r11,r11,r9 | ||
| 2019 | addze r12,r12 | ||
| 2020 | $ST r11,`3*$BNSZ`(r3) | ||
| 2021 | addi r3,r3,`4*$BNSZ` | ||
| 2022 | addi r4,r4,`4*$BNSZ` | ||
| 2023 | bc BO_dCTR_NZERO,CR0_EQ,Lppcasm_maw_mainloop | ||
| 2024 | |||
| 2025 | Lppcasm_maw_leftover: | ||
| 2026 | andi. r5,r5,0x3 | ||
| 2027 | bc BO_IF,CR0_EQ,Lppcasm_maw_adios | ||
| 2028 | addi r3,r3,-$BNSZ | ||
| 2029 | addi r4,r4,-$BNSZ | ||
| 2030 | #mul_add(rp[0],ap[0],w,c1); | ||
| 2031 | mtctr r5 | ||
| 2032 | $LDU r8,$BNSZ(r4) | ||
| 2033 | $UMULL r9,r6,r8 | ||
| 2034 | $UMULH r10,r6,r8 | ||
| 2035 | $LDU r11,$BNSZ(r3) | ||
| 2036 | addc r9,r9,r11 | ||
| 2037 | addze r10,r10 | ||
| 2038 | addc r9,r9,r12 | ||
| 2039 | addze r12,r10 | ||
| 2040 | $ST r9,0(r3) | ||
| 2041 | |||
| 2042 | bc BO_dCTR_ZERO,CR0_EQ,Lppcasm_maw_adios | ||
| 2043 | #mul_add(rp[1],ap[1],w,c1); | ||
| 2044 | $LDU r8,$BNSZ(r4) | ||
| 2045 | $UMULL r9,r6,r8 | ||
| 2046 | $UMULH r10,r6,r8 | ||
| 2047 | $LDU r11,$BNSZ(r3) | ||
| 2048 | addc r9,r9,r11 | ||
| 2049 | addze r10,r10 | ||
| 2050 | addc r9,r9,r12 | ||
| 2051 | addze r12,r10 | ||
| 2052 | $ST r9,0(r3) | ||
| 2053 | |||
| 2054 | bc BO_dCTR_ZERO,CR0_EQ,Lppcasm_maw_adios | ||
| 2055 | #mul_add(rp[2],ap[2],w,c1); | ||
| 2056 | $LDU r8,$BNSZ(r4) | ||
| 2057 | $UMULL r9,r6,r8 | ||
| 2058 | $UMULH r10,r6,r8 | ||
| 2059 | $LDU r11,$BNSZ(r3) | ||
| 2060 | addc r9,r9,r11 | ||
| 2061 | addze r10,r10 | ||
| 2062 | addc r9,r9,r12 | ||
| 2063 | addze r12,r10 | ||
| 2064 | $ST r9,0(r3) | ||
| 2065 | |||
| 2066 | Lppcasm_maw_adios: | ||
| 2067 | addi r3,r12,0 | ||
| 2068 | bclr BO_ALWAYS,CR0_LT | ||
| 2069 | .long 0x00000000 | ||
| 2070 | .align 4 | ||
| 2071 | EOF | ||
| 2072 | $data =~ s/\`([^\`]*)\`/eval $1/gem; | ||
| 2073 | |||
| 2074 | # if some assembler chokes on some simplified mnemonic, | ||
| 2075 | # this is the spot to fix it up, e.g.: | ||
| 2076 | # GNU as doesn't seem to accept cmplw, 32-bit unsigned compare | ||
| 2077 | $data =~ s/^(\s*)cmplw(\s+)([^,]+),(.*)/$1cmpl$2$3,0,$4/gm; | ||
| 2078 | # assembler X doesn't accept li, load immediate value | ||
| 2079 | #$data =~ s/^(\s*)li(\s+)([^,]+),(.*)/$1addi$2$3,0,$4/gm; | ||
| 2080 | return($data); | ||
| 2081 | } | ||
diff --git a/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c b/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c index 450e8e4322..7378344251 100644 --- a/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c +++ b/src/lib/libssl/src/crypto/bn/asm/x86_64-gcc.c | |||
| @@ -13,20 +13,42 @@ | |||
| 13 | * A. Well, that's because this code is basically a quick-n-dirty | 13 | * A. Well, that's because this code is basically a quick-n-dirty |
| 14 | * proof-of-concept hack. As you can see it's implemented with | 14 | * proof-of-concept hack. As you can see it's implemented with |
| 15 | * inline assembler, which means that you're bound to GCC and that | 15 | * inline assembler, which means that you're bound to GCC and that |
| 16 | * there must be a room for fine-tuning. | 16 | * there might be enough room for further improvement. |
| 17 | * | 17 | * |
| 18 | * Q. Why inline assembler? | 18 | * Q. Why inline assembler? |
| 19 | * A. x86_64 features own ABI I'm not familiar with. Which is why | 19 | * A. x86_64 features own ABI which I'm not familiar with. This is |
| 20 | * I decided to let the compiler take care of subroutine | 20 | * why I decided to let the compiler take care of subroutine |
| 21 | * prologue/epilogue as well as register allocation. | 21 | * prologue/epilogue as well as register allocation. For reference. |
| 22 | * Win64 implements different ABI for AMD64, different from Linux. | ||
| 22 | * | 23 | * |
| 23 | * Q. How much faster does it get? | 24 | * Q. How much faster does it get? |
| 24 | * A. Unfortunately people sitting on x86_64 hardware are prohibited | 25 | * A. 'apps/openssl speed rsa dsa' output with no-asm: |
| 25 | * to disclose the performance numbers, so they (SuSE labs to be | 26 | * |
| 26 | * specific) wouldn't tell me. However! Very similar coding technique | 27 | * sign verify sign/s verify/s |
| 27 | * (reaching out for 128-bit result from 64x64-bit multiplication) | 28 | * rsa 512 bits 0.0006s 0.0001s 1683.8 18456.2 |
| 28 | * results in >3 times performance improvement on MIPS and I see no | 29 | * rsa 1024 bits 0.0028s 0.0002s 356.0 6407.0 |
| 29 | * reason why gain on x86_64 would be so much different:-) | 30 | * rsa 2048 bits 0.0172s 0.0005s 58.0 1957.8 |
| 31 | * rsa 4096 bits 0.1155s 0.0018s 8.7 555.6 | ||
| 32 | * sign verify sign/s verify/s | ||
| 33 | * dsa 512 bits 0.0005s 0.0006s 2100.8 1768.3 | ||
| 34 | * dsa 1024 bits 0.0014s 0.0018s 692.3 559.2 | ||
| 35 | * dsa 2048 bits 0.0049s 0.0061s 204.7 165.0 | ||
| 36 | * | ||
| 37 | * 'apps/openssl speed rsa dsa' output with this module: | ||
| 38 | * | ||
| 39 | * sign verify sign/s verify/s | ||
| 40 | * rsa 512 bits 0.0004s 0.0000s 2767.1 33297.9 | ||
| 41 | * rsa 1024 bits 0.0012s 0.0001s 867.4 14674.7 | ||
| 42 | * rsa 2048 bits 0.0061s 0.0002s 164.0 5270.0 | ||
| 43 | * rsa 4096 bits 0.0384s 0.0006s 26.1 1650.8 | ||
| 44 | * sign verify sign/s verify/s | ||
| 45 | * dsa 512 bits 0.0002s 0.0003s 4442.2 3786.3 | ||
| 46 | * dsa 1024 bits 0.0005s 0.0007s 1835.1 1497.4 | ||
| 47 | * dsa 2048 bits 0.0016s 0.0020s 620.4 504.6 | ||
| 48 | * | ||
| 49 | * For the reference. IA-32 assembler implementation performs | ||
| 50 | * very much like 64-bit code compiled with no-asm on the same | ||
| 51 | * machine. | ||
| 30 | */ | 52 | */ |
| 31 | 53 | ||
| 32 | #define BN_ULONG unsigned long | 54 | #define BN_ULONG unsigned long |
| @@ -151,7 +173,7 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d) | |||
| 151 | } | 173 | } |
| 152 | 174 | ||
| 153 | BN_ULONG bn_add_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n) | 175 | BN_ULONG bn_add_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n) |
| 154 | { BN_ULONG ret,i; | 176 | { BN_ULONG ret=0,i=0; |
| 155 | 177 | ||
| 156 | if (n <= 0) return 0; | 178 | if (n <= 0) return 0; |
| 157 | 179 | ||
| @@ -164,7 +186,7 @@ BN_ULONG bn_add_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n) | |||
| 164 | " leaq 1(%2),%2 \n" | 186 | " leaq 1(%2),%2 \n" |
| 165 | " loop 1b \n" | 187 | " loop 1b \n" |
| 166 | " sbbq %0,%0 \n" | 188 | " sbbq %0,%0 \n" |
| 167 | : "+a"(ret),"+c"(n),"+r"(i) | 189 | : "=&a"(ret),"+c"(n),"=&r"(i) |
| 168 | : "r"(rp),"r"(ap),"r"(bp) | 190 | : "r"(rp),"r"(ap),"r"(bp) |
| 169 | : "cc" | 191 | : "cc" |
| 170 | ); | 192 | ); |
| @@ -174,7 +196,7 @@ BN_ULONG bn_add_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n) | |||
| 174 | 196 | ||
| 175 | #ifndef SIMICS | 197 | #ifndef SIMICS |
| 176 | BN_ULONG bn_sub_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n) | 198 | BN_ULONG bn_sub_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n) |
| 177 | { BN_ULONG ret,i; | 199 | { BN_ULONG ret=0,i=0; |
| 178 | 200 | ||
| 179 | if (n <= 0) return 0; | 201 | if (n <= 0) return 0; |
| 180 | 202 | ||
| @@ -187,7 +209,7 @@ BN_ULONG bn_sub_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n) | |||
| 187 | " leaq 1(%2),%2 \n" | 209 | " leaq 1(%2),%2 \n" |
| 188 | " loop 1b \n" | 210 | " loop 1b \n" |
| 189 | " sbbq %0,%0 \n" | 211 | " sbbq %0,%0 \n" |
| 190 | : "+a"(ret),"+c"(n),"+r"(i) | 212 | : "=&a"(ret),"+c"(n),"=&r"(i) |
| 191 | : "r"(rp),"r"(ap),"r"(bp) | 213 | : "r"(rp),"r"(ap),"r"(bp) |
| 192 | : "cc" | 214 | : "cc" |
| 193 | ); | 215 | ); |
| @@ -318,7 +340,6 @@ BN_ULONG bn_sub_words(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n) | |||
| 318 | 340 | ||
| 319 | void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) | 341 | void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) |
| 320 | { | 342 | { |
| 321 | BN_ULONG bl,bh; | ||
| 322 | BN_ULONG t1,t2; | 343 | BN_ULONG t1,t2; |
| 323 | BN_ULONG c1,c2,c3; | 344 | BN_ULONG c1,c2,c3; |
| 324 | 345 | ||
| @@ -423,7 +444,6 @@ void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) | |||
| 423 | 444 | ||
| 424 | void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) | 445 | void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) |
| 425 | { | 446 | { |
| 426 | BN_ULONG bl,bh; | ||
| 427 | BN_ULONG t1,t2; | 447 | BN_ULONG t1,t2; |
| 428 | BN_ULONG c1,c2,c3; | 448 | BN_ULONG c1,c2,c3; |
| 429 | 449 | ||
| @@ -464,7 +484,6 @@ void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) | |||
| 464 | 484 | ||
| 465 | void bn_sqr_comba8(BN_ULONG *r, BN_ULONG *a) | 485 | void bn_sqr_comba8(BN_ULONG *r, BN_ULONG *a) |
| 466 | { | 486 | { |
| 467 | BN_ULONG bl,bh; | ||
| 468 | BN_ULONG t1,t2; | 487 | BN_ULONG t1,t2; |
| 469 | BN_ULONG c1,c2,c3; | 488 | BN_ULONG c1,c2,c3; |
| 470 | 489 | ||
| @@ -541,7 +560,6 @@ void bn_sqr_comba8(BN_ULONG *r, BN_ULONG *a) | |||
| 541 | 560 | ||
| 542 | void bn_sqr_comba4(BN_ULONG *r, BN_ULONG *a) | 561 | void bn_sqr_comba4(BN_ULONG *r, BN_ULONG *a) |
| 543 | { | 562 | { |
| 544 | BN_ULONG bl,bh; | ||
| 545 | BN_ULONG t1,t2; | 563 | BN_ULONG t1,t2; |
| 546 | BN_ULONG c1,c2,c3; | 564 | BN_ULONG c1,c2,c3; |
| 547 | 565 | ||
diff --git a/src/lib/libssl/src/crypto/buffer/Makefile b/src/lib/libssl/src/crypto/buffer/Makefile new file mode 100644 index 0000000000..3911baf513 --- /dev/null +++ b/src/lib/libssl/src/crypto/buffer/Makefile | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/buffer/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= buffer | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= buffer.c buf_err.c | ||
| 26 | LIBOBJ= buffer.o buf_err.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= buffer.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | buf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 81 | buf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 82 | buf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 83 | buf_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 84 | buf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 85 | buf_err.o: ../../include/openssl/symhacks.h buf_err.c | ||
| 86 | buffer.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 87 | buffer.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 88 | buffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 89 | buffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 90 | buffer.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 91 | buffer.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 92 | buffer.o: ../cryptlib.h buffer.c | ||
diff --git a/src/lib/libssl/src/crypto/cast/Makefile b/src/lib/libssl/src/crypto/cast/Makefile new file mode 100644 index 0000000000..8b0d04bb7c --- /dev/null +++ b/src/lib/libssl/src/crypto/cast/Makefile | |||
| @@ -0,0 +1,120 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/cast/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= cast | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CAST_ENC=c_enc.o | ||
| 20 | # or use | ||
| 21 | #CAST_ENC=asm/cx86-elf.o | ||
| 22 | #CAST_ENC=asm/cx86-out.o | ||
| 23 | #CAST_ENC=asm/cx86-sol.o | ||
| 24 | #CAST_ENC=asm/cx86bdsi.o | ||
| 25 | |||
| 26 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 27 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 28 | |||
| 29 | GENERAL=Makefile | ||
| 30 | TEST=casttest.c | ||
| 31 | APPS= | ||
| 32 | |||
| 33 | LIB=$(TOP)/libcrypto.a | ||
| 34 | LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c | ||
| 35 | LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o | ||
| 36 | |||
| 37 | SRC= $(LIBSRC) | ||
| 38 | |||
| 39 | EXHEADER= cast.h | ||
| 40 | HEADER= cast_s.h cast_lcl.h $(EXHEADER) | ||
| 41 | |||
| 42 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 43 | |||
| 44 | top: | ||
| 45 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 46 | |||
| 47 | all: lib | ||
| 48 | |||
| 49 | lib: $(LIBOBJ) | ||
| 50 | $(AR) $(LIB) $(LIBOBJ) | ||
| 51 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 52 | @touch lib | ||
| 53 | |||
| 54 | # elf | ||
| 55 | asm/cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 56 | (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > cx86-elf.s) | ||
| 57 | |||
| 58 | # a.out | ||
| 59 | asm/cx86-out.o: asm/cx86unix.cpp | ||
| 60 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | ||
| 61 | |||
| 62 | # bsdi | ||
| 63 | asm/cx86bsdi.o: asm/cx86unix.cpp | ||
| 64 | $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o | ||
| 65 | |||
| 66 | asm/cx86unix.cpp: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 67 | (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp) | ||
| 68 | |||
| 69 | files: | ||
| 70 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 71 | |||
| 72 | links: | ||
| 73 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 75 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 76 | |||
| 77 | install: | ||
| 78 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 79 | do \ | ||
| 80 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 81 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 82 | done; | ||
| 83 | |||
| 84 | tags: | ||
| 85 | ctags $(SRC) | ||
| 86 | |||
| 87 | tests: | ||
| 88 | |||
| 89 | lint: | ||
| 90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 91 | |||
| 92 | depend: | ||
| 93 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 94 | |||
| 95 | dclean: | ||
| 96 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 97 | mv -f Makefile.new $(MAKEFILE) | ||
| 98 | |||
| 99 | clean: | ||
| 100 | rm -f asm/cx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 101 | |||
| 102 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 103 | |||
| 104 | c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 105 | c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 106 | c_cfb64.o: c_cfb64.c cast_lcl.h | ||
| 107 | c_ecb.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 108 | c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 109 | c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h | ||
| 110 | c_enc.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 111 | c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 112 | c_enc.o: c_enc.c cast_lcl.h | ||
| 113 | c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 114 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 115 | c_ofb64.o: c_ofb64.c cast_lcl.h | ||
| 116 | c_skey.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 117 | c_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 118 | c_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 119 | c_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 120 | c_skey.o: ../../include/openssl/symhacks.h c_skey.c cast_lcl.h cast_s.h | ||
diff --git a/src/lib/libssl/src/crypto/comp/Makefile b/src/lib/libssl/src/crypto/comp/Makefile new file mode 100644 index 0000000000..68109a8013 --- /dev/null +++ b/src/lib/libssl/src/crypto/comp/Makefile | |||
| @@ -0,0 +1,113 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/comp/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= comp | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= comp_lib.c comp_err.c \ | ||
| 26 | c_rle.c c_zlib.c | ||
| 27 | |||
| 28 | LIBOBJ= comp_lib.o comp_err.o \ | ||
| 29 | c_rle.o c_zlib.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= comp.h | ||
| 34 | HEADER= $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 84 | c_rle.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | ||
| 85 | c_rle.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 86 | c_rle.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 87 | c_rle.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 88 | c_rle.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 89 | c_rle.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h c_rle.c | ||
| 90 | c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 91 | c_zlib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | ||
| 92 | c_zlib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 93 | c_zlib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 94 | c_zlib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 95 | c_zlib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 96 | c_zlib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 97 | c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 98 | c_zlib.o: c_zlib.c | ||
| 99 | comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h | ||
| 100 | comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 101 | comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 102 | comp_err.o: ../../include/openssl/opensslconf.h | ||
| 103 | comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 104 | comp_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 105 | comp_err.o: comp_err.c | ||
| 106 | comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 107 | comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | ||
| 108 | comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 109 | comp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 110 | comp_lib.o: ../../include/openssl/opensslconf.h | ||
| 111 | comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 112 | comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 113 | comp_lib.o: ../../include/openssl/symhacks.h comp_lib.c | ||
diff --git a/src/lib/libssl/src/crypto/conf/Makefile b/src/lib/libssl/src/crypto/conf/Makefile new file mode 100644 index 0000000000..6d2f8ffd9a --- /dev/null +++ b/src/lib/libssl/src/crypto/conf/Makefile | |||
| @@ -0,0 +1,181 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/conf/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= conf | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c \ | ||
| 26 | conf_mall.c conf_sap.c | ||
| 27 | |||
| 28 | LIBOBJ= conf_err.o conf_lib.o conf_api.o conf_def.o conf_mod.o \ | ||
| 29 | conf_mall.o conf_sap.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= conf.h conf_api.h | ||
| 34 | HEADER= conf_def.h $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | conf_api.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 84 | conf_api.o: ../../include/openssl/conf.h ../../include/openssl/conf_api.h | ||
| 85 | conf_api.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 86 | conf_api.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 87 | conf_api.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 88 | conf_api.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 89 | conf_api.o: conf_api.c | ||
| 90 | conf_def.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 91 | conf_def.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 92 | conf_def.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h | ||
| 93 | conf_def.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 94 | conf_def.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 95 | conf_def.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 96 | conf_def.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 97 | conf_def.o: ../cryptlib.h conf_def.c conf_def.h | ||
| 98 | conf_err.o: ../../include/openssl/bio.h ../../include/openssl/conf.h | ||
| 99 | conf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 100 | conf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 101 | conf_err.o: ../../include/openssl/opensslconf.h | ||
| 102 | conf_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 103 | conf_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 104 | conf_err.o: conf_err.c | ||
| 105 | conf_lib.o: ../../include/openssl/bio.h ../../include/openssl/conf.h | ||
| 106 | conf_lib.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h | ||
| 107 | conf_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 108 | conf_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 109 | conf_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 110 | conf_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 111 | conf_lib.o: conf_lib.c | ||
| 112 | conf_mall.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 113 | conf_mall.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 114 | conf_mall.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 115 | conf_mall.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 116 | conf_mall.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 117 | conf_mall.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 118 | conf_mall.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 119 | conf_mall.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 120 | conf_mall.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 121 | conf_mall.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 122 | conf_mall.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 123 | conf_mall.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 124 | conf_mall.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 125 | conf_mall.o: ../../include/openssl/objects.h | ||
| 126 | conf_mall.o: ../../include/openssl/opensslconf.h | ||
| 127 | conf_mall.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 128 | conf_mall.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 129 | conf_mall.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 130 | conf_mall.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 131 | conf_mall.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 132 | conf_mall.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 133 | conf_mall.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 134 | conf_mall.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 135 | conf_mall.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_mall.c | ||
| 136 | conf_mod.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 137 | conf_mod.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 138 | conf_mod.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 139 | conf_mod.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 140 | conf_mod.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 141 | conf_mod.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 142 | conf_mod.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 143 | conf_mod.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 144 | conf_mod.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 145 | conf_mod.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 146 | conf_mod.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 147 | conf_mod.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 148 | conf_mod.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 149 | conf_mod.o: ../../include/openssl/opensslconf.h | ||
| 150 | conf_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 151 | conf_mod.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 152 | conf_mod.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 153 | conf_mod.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 154 | conf_mod.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 155 | conf_mod.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 156 | conf_mod.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 157 | conf_mod.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 158 | conf_mod.o: ../cryptlib.h conf_mod.c | ||
| 159 | conf_sap.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 160 | conf_sap.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 161 | conf_sap.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 162 | conf_sap.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 163 | conf_sap.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 164 | conf_sap.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 165 | conf_sap.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 166 | conf_sap.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 167 | conf_sap.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 168 | conf_sap.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 169 | conf_sap.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 170 | conf_sap.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 171 | conf_sap.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 172 | conf_sap.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 173 | conf_sap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 174 | conf_sap.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 175 | conf_sap.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 176 | conf_sap.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 177 | conf_sap.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 178 | conf_sap.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 179 | conf_sap.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 180 | conf_sap.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 181 | conf_sap.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_sap.c | ||
diff --git a/src/lib/libssl/src/crypto/des/FILES0 b/src/lib/libssl/src/crypto/des/FILES0 index 4c7ea2de7a..1c2e1f75b9 100644 --- a/src/lib/libssl/src/crypto/des/FILES0 +++ b/src/lib/libssl/src/crypto/des/FILES0 | |||
| @@ -8,7 +8,7 @@ README - What this package is. | |||
| 8 | VERSION - Which version this is and what was changed. | 8 | VERSION - Which version this is and what was changed. |
| 9 | KERBEROS - Kerberos version 4 notes. | 9 | KERBEROS - Kerberos version 4 notes. |
| 10 | Makefile.PL - An old makefile to build with perl5, not current. | 10 | Makefile.PL - An old makefile to build with perl5, not current. |
| 11 | Makefile.ssl - The SSLeay makefile | 11 | Makefile - The SSLeay makefile |
| 12 | Makefile.uni - The normal unix makefile. | 12 | Makefile.uni - The normal unix makefile. |
| 13 | GNUmakefile - The makefile for use with glibc. | 13 | GNUmakefile - The makefile for use with glibc. |
| 14 | makefile.bc - A Borland C makefile | 14 | makefile.bc - A Borland C makefile |
diff --git a/src/lib/libssl/src/crypto/des/Makefile b/src/lib/libssl/src/crypto/des/Makefile new file mode 100644 index 0000000000..655f2ea1a8 --- /dev/null +++ b/src/lib/libssl/src/crypto/des/Makefile | |||
| @@ -0,0 +1,314 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/des/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= des | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES=-I$(TOP) -I../../include | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | RANLIB= ranlib | ||
| 19 | DES_ENC= des_enc.o fcrypt_b.o | ||
| 20 | # or use | ||
| 21 | #DES_ENC= dx86-elf.o yx86-elf.o | ||
| 22 | |||
| 23 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 24 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 25 | |||
| 26 | GENERAL=Makefile | ||
| 27 | TEST=destest.c | ||
| 28 | APPS= | ||
| 29 | |||
| 30 | LIB=$(TOP)/libcrypto.a | ||
| 31 | LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ | ||
| 32 | ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \ | ||
| 33 | fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \ | ||
| 34 | qud_cksm.c rand_key.c rpc_enc.c set_key.c \ | ||
| 35 | des_enc.c fcrypt_b.c \ | ||
| 36 | xcbc_enc.c \ | ||
| 37 | str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \ | ||
| 38 | read2pwd.c | ||
| 39 | |||
| 40 | LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \ | ||
| 41 | ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ | ||
| 42 | enc_read.o enc_writ.o ofb64enc.o \ | ||
| 43 | ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ | ||
| 44 | ${DES_ENC} \ | ||
| 45 | fcrypt.o xcbc_enc.o rpc_enc.o cbc_cksm.o \ | ||
| 46 | ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o | ||
| 47 | |||
| 48 | SRC= $(LIBSRC) | ||
| 49 | |||
| 50 | EXHEADER= des.h des_old.h | ||
| 51 | HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER) | ||
| 52 | |||
| 53 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 54 | |||
| 55 | top: | ||
| 56 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 57 | |||
| 58 | all: lib | ||
| 59 | |||
| 60 | lib: $(LIBOBJ) | ||
| 61 | $(AR) $(LIB) $(LIBOBJ) | ||
| 62 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 63 | @touch lib | ||
| 64 | |||
| 65 | des: des.o cbc3_enc.o lib | ||
| 66 | $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB) | ||
| 67 | |||
| 68 | # elf | ||
| 69 | asm/dx86-elf.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 70 | (cd asm; $(PERL) des-586.pl elf $(CFLAGS) > dx86-elf.s) | ||
| 71 | |||
| 72 | asm/yx86-elf.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 73 | (cd asm; $(PERL) crypt586.pl elf $(CFLAGS) > yx86-elf.s) | ||
| 74 | |||
| 75 | # a.out | ||
| 76 | asm/dx86-out.o: asm/dx86unix.cpp | ||
| 77 | $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o | ||
| 78 | |||
| 79 | asm/yx86-out.o: asm/yx86unix.cpp | ||
| 80 | $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o | ||
| 81 | |||
| 82 | # bsdi | ||
| 83 | asm/dx86bsdi.o: asm/dx86unix.cpp | ||
| 84 | $(CPP) -DBSDI asm/dx86unix.cpp | sed 's/ :/:/' | as -o asm/dx86bsdi.o | ||
| 85 | |||
| 86 | asm/yx86bsdi.o: asm/yx86unix.cpp | ||
| 87 | $(CPP) -DBSDI asm/yx86unix.cpp | sed 's/ :/:/' | as -o asm/yx86bsdi.o | ||
| 88 | |||
| 89 | asm/dx86unix.cpp: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 90 | (cd asm; $(PERL) des-586.pl cpp >dx86unix.cpp) | ||
| 91 | |||
| 92 | asm/yx86unix.cpp: asm/crypt586.pl ../perlasm/x86asm.pl | ||
| 93 | (cd asm; $(PERL) crypt586.pl cpp >yx86unix.cpp) | ||
| 94 | |||
| 95 | files: | ||
| 96 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 97 | |||
| 98 | links: | ||
| 99 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 100 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 101 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 102 | |||
| 103 | install: installs | ||
| 104 | |||
| 105 | installs: | ||
| 106 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 107 | do \ | ||
| 108 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 109 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 110 | done; | ||
| 111 | |||
| 112 | tags: | ||
| 113 | ctags $(SRC) | ||
| 114 | |||
| 115 | tests: | ||
| 116 | |||
| 117 | lint: | ||
| 118 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 119 | |||
| 120 | depend: | ||
| 121 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 122 | |||
| 123 | dclean: | ||
| 124 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 125 | mv -f Makefile.new $(MAKEFILE) | ||
| 126 | |||
| 127 | clean: | ||
| 128 | rm -f asm/dx86unix.cpp asm/yx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff | ||
| 129 | |||
| 130 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 131 | |||
| 132 | cbc_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 133 | cbc_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 134 | cbc_cksm.o: ../../include/openssl/opensslconf.h | ||
| 135 | cbc_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 136 | cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 137 | cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 138 | cbc_cksm.o: cbc_cksm.c des_locl.h | ||
| 139 | cbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 140 | cbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 141 | cbc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 142 | cbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 143 | cbc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 144 | cbc_enc.o: ../../include/openssl/ui_compat.h cbc_enc.c des_locl.h ncbc_enc.c | ||
| 145 | cfb64ede.o: ../../e_os.h ../../include/openssl/crypto.h | ||
| 146 | cfb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 147 | cfb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 148 | cfb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 149 | cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 150 | cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 151 | cfb64ede.o: cfb64ede.c des_locl.h | ||
| 152 | cfb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 153 | cfb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 154 | cfb64enc.o: ../../include/openssl/opensslconf.h | ||
| 155 | cfb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 156 | cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 157 | cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 158 | cfb64enc.o: cfb64enc.c des_locl.h | ||
| 159 | cfb_enc.o: ../../e_os.h ../../include/openssl/crypto.h | ||
| 160 | cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 161 | cfb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 162 | cfb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 163 | cfb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 164 | cfb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 165 | cfb_enc.o: cfb_enc.c des_locl.h | ||
| 166 | des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 167 | des_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 168 | des_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 169 | des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 170 | des_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 171 | des_enc.o: ../../include/openssl/ui_compat.h des_enc.c des_locl.h ncbc_enc.c | ||
| 172 | des_old.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 173 | des_old.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 174 | des_old.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 175 | des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 176 | des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 177 | des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 178 | des_old.o: ../../include/openssl/ui_compat.h des_old.c | ||
| 179 | des_old2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 180 | des_old2.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 181 | des_old2.o: ../../include/openssl/opensslconf.h | ||
| 182 | des_old2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 183 | des_old2.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 184 | des_old2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 185 | des_old2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 186 | des_old2.o: des_old2.c | ||
| 187 | ecb3_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 188 | ecb3_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 189 | ecb3_enc.o: ../../include/openssl/opensslconf.h | ||
| 190 | ecb3_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 191 | ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 192 | ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 193 | ecb3_enc.o: des_locl.h ecb3_enc.c | ||
| 194 | ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 195 | ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 196 | ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 197 | ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 198 | ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 199 | ecb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 200 | ecb_enc.o: des_locl.h des_ver.h ecb_enc.c spr.h | ||
| 201 | ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 202 | ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 203 | ede_cbcm_enc.o: ../../include/openssl/opensslconf.h | ||
| 204 | ede_cbcm_enc.o: ../../include/openssl/opensslv.h | ||
| 205 | ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 206 | ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 207 | ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c | ||
| 208 | enc_read.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 209 | enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 210 | enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 211 | enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 212 | enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 213 | enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 214 | enc_read.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 215 | enc_read.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 216 | enc_read.o: ../cryptlib.h des_locl.h enc_read.c | ||
| 217 | enc_writ.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 218 | enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 219 | enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 220 | enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 221 | enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 222 | enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 223 | enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 224 | enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 225 | enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 226 | enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c | ||
| 227 | fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 228 | fcrypt.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 229 | fcrypt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 230 | fcrypt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 231 | fcrypt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 232 | fcrypt.o: ../../include/openssl/ui_compat.h des_locl.h fcrypt.c | ||
| 233 | fcrypt_b.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 234 | fcrypt_b.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 235 | fcrypt_b.o: ../../include/openssl/opensslconf.h | ||
| 236 | fcrypt_b.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 237 | fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 238 | fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 239 | fcrypt_b.o: des_locl.h fcrypt_b.c | ||
| 240 | ofb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 241 | ofb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 242 | ofb64ede.o: ../../include/openssl/opensslconf.h | ||
| 243 | ofb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 244 | ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 245 | ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 246 | ofb64ede.o: des_locl.h ofb64ede.c | ||
| 247 | ofb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 248 | ofb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 249 | ofb64enc.o: ../../include/openssl/opensslconf.h | ||
| 250 | ofb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 251 | ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 252 | ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 253 | ofb64enc.o: des_locl.h ofb64enc.c | ||
| 254 | ofb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 255 | ofb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 256 | ofb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 257 | ofb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 258 | ofb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 259 | ofb_enc.o: ../../include/openssl/ui_compat.h des_locl.h ofb_enc.c | ||
| 260 | pcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 261 | pcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 262 | pcbc_enc.o: ../../include/openssl/opensslconf.h | ||
| 263 | pcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 264 | pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 265 | pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 266 | pcbc_enc.o: des_locl.h pcbc_enc.c | ||
| 267 | qud_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 268 | qud_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 269 | qud_cksm.o: ../../include/openssl/opensslconf.h | ||
| 270 | qud_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 271 | qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 272 | qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 273 | qud_cksm.o: des_locl.h qud_cksm.c | ||
| 274 | rand_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 275 | rand_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 276 | rand_key.o: ../../include/openssl/opensslconf.h | ||
| 277 | rand_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 278 | rand_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 279 | rand_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 280 | rand_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 281 | rand_key.o: rand_key.c | ||
| 282 | read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 283 | read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 284 | read2pwd.o: ../../include/openssl/opensslconf.h | ||
| 285 | read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 286 | read2pwd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 287 | read2pwd.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 288 | read2pwd.o: read2pwd.c | ||
| 289 | rpc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 290 | rpc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 291 | rpc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 292 | rpc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 293 | rpc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 294 | rpc_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h rpc_des.h | ||
| 295 | rpc_enc.o: rpc_enc.c | ||
| 296 | set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 297 | set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 298 | set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 299 | set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 300 | set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 301 | set_key.o: ../../include/openssl/ui_compat.h des_locl.h set_key.c | ||
| 302 | str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 303 | str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 304 | str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 305 | str2key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 306 | str2key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 307 | str2key.o: ../../include/openssl/ui_compat.h des_locl.h str2key.c | ||
| 308 | xcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 309 | xcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 310 | xcbc_enc.o: ../../include/openssl/opensslconf.h | ||
| 311 | xcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 312 | xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 313 | xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 314 | xcbc_enc.o: des_locl.h xcbc_enc.c | ||
diff --git a/src/lib/libssl/src/crypto/dh/Makefile b/src/lib/libssl/src/crypto/dh/Makefile new file mode 100644 index 0000000000..c091a8130a --- /dev/null +++ b/src/lib/libssl/src/crypto/dh/Makefile | |||
| @@ -0,0 +1,131 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/dh/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dh | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= dhtest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c | ||
| 26 | LIBOBJ= dh_asn1.o dh_gen.o dh_key.o dh_lib.o dh_check.o dh_err.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= dh.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | dh_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 81 | dh_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 82 | dh_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 83 | dh_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 84 | dh_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 85 | dh_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 86 | dh_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 87 | dh_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 88 | dh_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 89 | dh_asn1.o: ../../include/openssl/symhacks.h ../cryptlib.h dh_asn1.c | ||
| 90 | dh_check.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 91 | dh_check.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 92 | dh_check.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h | ||
| 93 | dh_check.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 94 | dh_check.o: ../../include/openssl/opensslconf.h | ||
| 95 | dh_check.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 96 | dh_check.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 97 | dh_check.o: ../../include/openssl/symhacks.h ../cryptlib.h dh_check.c | ||
| 98 | dh_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 99 | dh_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 100 | dh_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 101 | dh_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 102 | dh_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 103 | dh_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 104 | dh_err.o: ../../include/openssl/symhacks.h dh_err.c | ||
| 105 | dh_gen.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 106 | dh_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 107 | dh_gen.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h | ||
| 108 | dh_gen.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 109 | dh_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 110 | dh_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 111 | dh_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 112 | dh_gen.o: ../cryptlib.h dh_gen.c | ||
| 113 | dh_key.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 114 | dh_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 115 | dh_key.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h | ||
| 116 | dh_key.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 117 | dh_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 118 | dh_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 119 | dh_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 120 | dh_key.o: ../../include/openssl/symhacks.h ../cryptlib.h dh_key.c | ||
| 121 | dh_lib.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 122 | dh_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 123 | dh_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 124 | dh_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 125 | dh_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 126 | dh_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 127 | dh_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 128 | dh_lib.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 129 | dh_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 130 | dh_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 131 | dh_lib.o: ../cryptlib.h dh_lib.c | ||
diff --git a/src/lib/libssl/src/crypto/dsa/Makefile b/src/lib/libssl/src/crypto/dsa/Makefile new file mode 100644 index 0000000000..3a55058973 --- /dev/null +++ b/src/lib/libssl/src/crypto/dsa/Makefile | |||
| @@ -0,0 +1,173 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/dsa/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dsa | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=dsatest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= dsa_gen.c dsa_key.c dsa_lib.c dsa_asn1.c dsa_vrf.c dsa_sign.c \ | ||
| 26 | dsa_err.c dsa_ossl.c | ||
| 27 | LIBOBJ= dsa_gen.o dsa_key.o dsa_lib.o dsa_asn1.o dsa_vrf.o dsa_sign.o \ | ||
| 28 | dsa_err.o dsa_ossl.o | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= dsa.h | ||
| 33 | HEADER= $(EXHEADER) | ||
| 34 | |||
| 35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 36 | |||
| 37 | top: | ||
| 38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 39 | |||
| 40 | all: lib | ||
| 41 | |||
| 42 | lib: $(LIBOBJ) | ||
| 43 | $(AR) $(LIB) $(LIBOBJ) | ||
| 44 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | files: | ||
| 48 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 49 | |||
| 50 | links: | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | dsa_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 83 | dsa_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 84 | dsa_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 85 | dsa_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 86 | dsa_asn1.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 87 | dsa_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 88 | dsa_asn1.o: ../../include/openssl/opensslconf.h | ||
| 89 | dsa_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 90 | dsa_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 91 | dsa_asn1.o: ../../include/openssl/symhacks.h ../cryptlib.h dsa_asn1.c | ||
| 92 | dsa_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 93 | dsa_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 94 | dsa_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 95 | dsa_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 96 | dsa_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 97 | dsa_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 98 | dsa_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 99 | dsa_err.o: dsa_err.c | ||
| 100 | dsa_gen.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 101 | dsa_gen.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 102 | dsa_gen.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 103 | dsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 104 | dsa_gen.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 105 | dsa_gen.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 106 | dsa_gen.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 107 | dsa_gen.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 108 | dsa_gen.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 109 | dsa_gen.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 110 | dsa_gen.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 111 | dsa_gen.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 112 | dsa_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 113 | dsa_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 114 | dsa_gen.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 115 | dsa_gen.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 116 | dsa_gen.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 117 | dsa_gen.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 118 | dsa_gen.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 119 | dsa_gen.o: ../../include/openssl/ui_compat.h ../cryptlib.h dsa_gen.c | ||
| 120 | dsa_key.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 121 | dsa_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 122 | dsa_key.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 123 | dsa_key.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 124 | dsa_key.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 125 | dsa_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 126 | dsa_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 127 | dsa_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 128 | dsa_key.o: ../cryptlib.h dsa_key.c | ||
| 129 | dsa_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 130 | dsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 131 | dsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 132 | dsa_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 133 | dsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 134 | dsa_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 135 | dsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 136 | dsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 137 | dsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 138 | dsa_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 139 | dsa_lib.o: ../../include/openssl/ui.h ../cryptlib.h dsa_lib.c | ||
| 140 | dsa_ossl.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 141 | dsa_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 142 | dsa_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 143 | dsa_ossl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 144 | dsa_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 145 | dsa_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 146 | dsa_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 147 | dsa_ossl.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 148 | dsa_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 149 | dsa_ossl.o: ../cryptlib.h dsa_ossl.c | ||
| 150 | dsa_sign.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 151 | dsa_sign.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 152 | dsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 153 | dsa_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 154 | dsa_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 155 | dsa_sign.o: ../../include/openssl/err.h ../../include/openssl/fips.h | ||
| 156 | dsa_sign.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 157 | dsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 158 | dsa_sign.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 159 | dsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 160 | dsa_sign.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 161 | dsa_sign.o: ../cryptlib.h dsa_sign.c | ||
| 162 | dsa_vrf.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 163 | dsa_vrf.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 164 | dsa_vrf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 165 | dsa_vrf.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 166 | dsa_vrf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 167 | dsa_vrf.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 168 | dsa_vrf.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 169 | dsa_vrf.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 170 | dsa_vrf.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 171 | dsa_vrf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 172 | dsa_vrf.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 173 | dsa_vrf.o: ../../include/openssl/ui.h ../cryptlib.h dsa_vrf.c | ||
diff --git a/src/lib/libssl/src/crypto/dso/Makefile b/src/lib/libssl/src/crypto/dso/Makefile new file mode 100644 index 0000000000..168951bc3e --- /dev/null +++ b/src/lib/libssl/src/crypto/dso/Makefile | |||
| @@ -0,0 +1,140 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/dso/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dso | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c \ | ||
| 26 | dso_openssl.c dso_win32.c dso_vms.c | ||
| 27 | LIBOBJ= dso_dl.o dso_dlfcn.o dso_err.o dso_lib.o dso_null.o \ | ||
| 28 | dso_openssl.o dso_win32.o dso_vms.o | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= dso.h | ||
| 33 | HEADER= $(EXHEADER) | ||
| 34 | |||
| 35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 36 | |||
| 37 | top: | ||
| 38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 39 | |||
| 40 | all: lib | ||
| 41 | |||
| 42 | lib: $(LIBOBJ) | ||
| 43 | $(AR) $(LIB) $(LIBOBJ) | ||
| 44 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | files: | ||
| 48 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 49 | |||
| 50 | links: | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | dso_dl.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 83 | dso_dl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 84 | dso_dl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 85 | dso_dl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 86 | dso_dl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 87 | dso_dl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 88 | dso_dl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_dl.c | ||
| 89 | dso_dlfcn.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 90 | dso_dlfcn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 91 | dso_dlfcn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 92 | dso_dlfcn.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 93 | dso_dlfcn.o: ../../include/openssl/opensslconf.h | ||
| 94 | dso_dlfcn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 95 | dso_dlfcn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 96 | dso_dlfcn.o: ../cryptlib.h dso_dlfcn.c | ||
| 97 | dso_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 98 | dso_err.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 99 | dso_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 100 | dso_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 101 | dso_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 102 | dso_err.o: ../../include/openssl/symhacks.h dso_err.c | ||
| 103 | dso_lib.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 104 | dso_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 105 | dso_lib.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 106 | dso_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 107 | dso_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 108 | dso_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 109 | dso_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_lib.c | ||
| 110 | dso_null.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 111 | dso_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 112 | dso_null.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 113 | dso_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 114 | dso_null.o: ../../include/openssl/opensslconf.h | ||
| 115 | dso_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 116 | dso_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 117 | dso_null.o: ../cryptlib.h dso_null.c | ||
| 118 | dso_openssl.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 119 | dso_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 120 | dso_openssl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 121 | dso_openssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 122 | dso_openssl.o: ../../include/openssl/opensslconf.h | ||
| 123 | dso_openssl.o: ../../include/openssl/opensslv.h | ||
| 124 | dso_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 125 | dso_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_openssl.c | ||
| 126 | dso_vms.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 127 | dso_vms.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 128 | dso_vms.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 129 | dso_vms.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 130 | dso_vms.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 131 | dso_vms.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 132 | dso_vms.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_vms.c | ||
| 133 | dso_win32.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 134 | dso_win32.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 135 | dso_win32.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 136 | dso_win32.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 137 | dso_win32.o: ../../include/openssl/opensslconf.h | ||
| 138 | dso_win32.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 139 | dso_win32.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 140 | dso_win32.o: ../cryptlib.h dso_win32.c | ||
diff --git a/src/lib/libssl/src/crypto/ec/Makefile b/src/lib/libssl/src/crypto/ec/Makefile new file mode 100644 index 0000000000..8f03658ad4 --- /dev/null +++ b/src/lib/libssl/src/crypto/ec/Makefile | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | # | ||
| 2 | # crypto/ec/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ec | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=ectest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_recp.c ecp_nist.c ec_cvt.c ec_mult.c \ | ||
| 26 | ec_err.c | ||
| 27 | |||
| 28 | LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_recp.o ecp_nist.o ec_cvt.o ec_mult.o \ | ||
| 29 | ec_err.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= ec.h | ||
| 34 | HEADER= ec_lcl.h $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 84 | ec_cvt.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | ||
| 85 | ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h | ||
| 86 | ec_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 87 | ec_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 88 | ec_err.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 89 | ec_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 90 | ec_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 91 | ec_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 92 | ec_err.o: ec_err.c | ||
| 93 | ec_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 94 | ec_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 95 | ec_lib.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 96 | ec_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 97 | ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 98 | ec_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 99 | ec_lib.o: ec_lcl.h ec_lib.c | ||
| 100 | ec_mult.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 101 | ec_mult.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 102 | ec_mult.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 103 | ec_mult.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 104 | ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 105 | ec_mult.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 106 | ec_mult.o: ec_lcl.h ec_mult.c | ||
| 107 | ecp_mont.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 108 | ecp_mont.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 109 | ecp_mont.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 110 | ecp_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 111 | ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 112 | ecp_mont.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 113 | ecp_mont.o: ec_lcl.h ecp_mont.c | ||
| 114 | ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 115 | ecp_nist.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | ||
| 116 | ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c | ||
| 117 | ecp_recp.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 118 | ecp_recp.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | ||
| 119 | ecp_recp.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_recp.c | ||
| 120 | ecp_smpl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 121 | ecp_smpl.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 122 | ecp_smpl.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 123 | ecp_smpl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 124 | ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 125 | ecp_smpl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 126 | ecp_smpl.o: ec_lcl.h ecp_smpl.c | ||
diff --git a/src/lib/libssl/src/crypto/engine/Makefile b/src/lib/libssl/src/crypto/engine/Makefile new file mode 100644 index 0000000000..38f83f1654 --- /dev/null +++ b/src/lib/libssl/src/crypto/engine/Makefile | |||
| @@ -0,0 +1,536 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/engine/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= engine | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= enginetest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c \ | ||
| 26 | eng_table.c eng_pkey.c eng_fat.c eng_all.c \ | ||
| 27 | tb_rsa.c tb_dsa.c tb_dh.c tb_rand.c tb_cipher.c tb_digest.c \ | ||
| 28 | eng_openssl.c eng_dyn.c eng_cnf.c \ | ||
| 29 | hw_atalla.c hw_cswift.c hw_ncipher.c hw_nuron.c hw_ubsec.c \ | ||
| 30 | hw_cryptodev.c hw_aep.c hw_sureware.c hw_4758_cca.c | ||
| 31 | LIBOBJ= eng_err.o eng_lib.o eng_list.o eng_init.o eng_ctrl.o \ | ||
| 32 | eng_table.o eng_pkey.o eng_fat.o eng_all.o \ | ||
| 33 | tb_rsa.o tb_dsa.o tb_dh.o tb_rand.o tb_cipher.o tb_digest.o \ | ||
| 34 | eng_openssl.o eng_dyn.o eng_cnf.o \ | ||
| 35 | hw_atalla.o hw_cswift.o hw_ncipher.o hw_nuron.o hw_ubsec.o \ | ||
| 36 | hw_cryptodev.o hw_aep.o hw_sureware.o hw_4758_cca.o | ||
| 37 | |||
| 38 | SRC= $(LIBSRC) | ||
| 39 | |||
| 40 | EXHEADER= engine.h | ||
| 41 | HEADER= $(EXHEADER) | ||
| 42 | |||
| 43 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 44 | |||
| 45 | top: | ||
| 46 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 47 | |||
| 48 | all: lib | ||
| 49 | |||
| 50 | lib: $(LIBOBJ) | ||
| 51 | $(AR) $(LIB) $(LIBOBJ) | ||
| 52 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 53 | @touch lib | ||
| 54 | |||
| 55 | files: | ||
| 56 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 57 | |||
| 58 | links: | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 60 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 62 | |||
| 63 | install: | ||
| 64 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 65 | do \ | ||
| 66 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 67 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 68 | done; | ||
| 69 | |||
| 70 | tags: | ||
| 71 | ctags $(SRC) | ||
| 72 | |||
| 73 | errors: | ||
| 74 | $(PERL) $(TOP)/util/mkerr.pl -conf hw.ec \ | ||
| 75 | -nostatic -staticloader -write hw_*.c | ||
| 76 | |||
| 77 | tests: | ||
| 78 | |||
| 79 | lint: | ||
| 80 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 81 | |||
| 82 | depend: | ||
| 83 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 84 | |||
| 85 | dclean: | ||
| 86 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 87 | mv -f Makefile.new $(MAKEFILE) | ||
| 88 | |||
| 89 | clean: | ||
| 90 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 91 | |||
| 92 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 93 | |||
| 94 | eng_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 95 | eng_all.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 96 | eng_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 97 | eng_all.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 98 | eng_all.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 99 | eng_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 100 | eng_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 101 | eng_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 102 | eng_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 103 | eng_all.o: ../../include/openssl/ui.h eng_all.c eng_int.h | ||
| 104 | eng_cnf.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 105 | eng_cnf.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 106 | eng_cnf.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 107 | eng_cnf.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 108 | eng_cnf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 109 | eng_cnf.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 110 | eng_cnf.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 111 | eng_cnf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 112 | eng_cnf.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 113 | eng_cnf.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 114 | eng_cnf.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 115 | eng_cnf.o: ../cryptlib.h eng_cnf.c | ||
| 116 | eng_ctrl.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 117 | eng_ctrl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 118 | eng_ctrl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 119 | eng_ctrl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 120 | eng_ctrl.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 121 | eng_ctrl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 122 | eng_ctrl.o: ../../include/openssl/opensslconf.h | ||
| 123 | eng_ctrl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 124 | eng_ctrl.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 125 | eng_ctrl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 126 | eng_ctrl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 127 | eng_ctrl.o: ../cryptlib.h eng_ctrl.c eng_int.h | ||
| 128 | eng_dyn.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 129 | eng_dyn.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 130 | eng_dyn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 131 | eng_dyn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 132 | eng_dyn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 133 | eng_dyn.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 134 | eng_dyn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 135 | eng_dyn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 136 | eng_dyn.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 137 | eng_dyn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 138 | eng_dyn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 139 | eng_dyn.o: ../cryptlib.h eng_dyn.c eng_int.h | ||
| 140 | eng_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 141 | eng_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 142 | eng_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 143 | eng_err.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 144 | eng_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 145 | eng_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 146 | eng_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 147 | eng_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 148 | eng_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 149 | eng_err.o: ../../include/openssl/ui.h eng_err.c | ||
| 150 | eng_fat.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 151 | eng_fat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 152 | eng_fat.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 153 | eng_fat.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 154 | eng_fat.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 155 | eng_fat.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 156 | eng_fat.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 157 | eng_fat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 158 | eng_fat.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 159 | eng_fat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 160 | eng_fat.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 161 | eng_fat.o: ../cryptlib.h eng_fat.c eng_int.h | ||
| 162 | eng_init.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 163 | eng_init.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 164 | eng_init.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 165 | eng_init.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 166 | eng_init.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 167 | eng_init.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 168 | eng_init.o: ../../include/openssl/opensslconf.h | ||
| 169 | eng_init.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 170 | eng_init.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 171 | eng_init.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 172 | eng_init.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 173 | eng_init.o: ../cryptlib.h eng_init.c eng_int.h | ||
| 174 | eng_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 175 | eng_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 176 | eng_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 177 | eng_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 178 | eng_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 179 | eng_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 180 | eng_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 181 | eng_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 182 | eng_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 183 | eng_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 184 | eng_lib.o: ../../include/openssl/ui.h ../cryptlib.h eng_int.h eng_lib.c | ||
| 185 | eng_list.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 186 | eng_list.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 187 | eng_list.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 188 | eng_list.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 189 | eng_list.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 190 | eng_list.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 191 | eng_list.o: ../../include/openssl/opensslconf.h | ||
| 192 | eng_list.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 193 | eng_list.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 194 | eng_list.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 195 | eng_list.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 196 | eng_list.o: ../cryptlib.h eng_int.h eng_list.c | ||
| 197 | eng_openssl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 198 | eng_openssl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 199 | eng_openssl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 200 | eng_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 201 | eng_openssl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 202 | eng_openssl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 203 | eng_openssl.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 204 | eng_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 205 | eng_openssl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 206 | eng_openssl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 207 | eng_openssl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 208 | eng_openssl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 209 | eng_openssl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 210 | eng_openssl.o: ../../include/openssl/opensslconf.h | ||
| 211 | eng_openssl.o: ../../include/openssl/opensslv.h | ||
| 212 | eng_openssl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 213 | eng_openssl.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 214 | eng_openssl.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 215 | eng_openssl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 216 | eng_openssl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 217 | eng_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 218 | eng_openssl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 219 | eng_openssl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 220 | eng_openssl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 221 | eng_openssl.o: ../cryptlib.h eng_openssl.c | ||
| 222 | eng_pkey.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 223 | eng_pkey.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 224 | eng_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 225 | eng_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 226 | eng_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 227 | eng_pkey.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 228 | eng_pkey.o: ../../include/openssl/opensslconf.h | ||
| 229 | eng_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 230 | eng_pkey.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 231 | eng_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 232 | eng_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 233 | eng_pkey.o: ../cryptlib.h eng_int.h eng_pkey.c | ||
| 234 | eng_table.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 235 | eng_table.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 236 | eng_table.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 237 | eng_table.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 238 | eng_table.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 239 | eng_table.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 240 | eng_table.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 241 | eng_table.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 242 | eng_table.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 243 | eng_table.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 244 | eng_table.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 245 | eng_table.o: ../../include/openssl/objects.h | ||
| 246 | eng_table.o: ../../include/openssl/opensslconf.h | ||
| 247 | eng_table.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 248 | eng_table.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 249 | eng_table.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 250 | eng_table.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 251 | eng_table.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 252 | eng_table.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 253 | eng_table.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 254 | eng_table.o: eng_int.h eng_table.c | ||
| 255 | hw_4758_cca.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 256 | hw_4758_cca.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 257 | hw_4758_cca.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 258 | hw_4758_cca.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 259 | hw_4758_cca.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 260 | hw_4758_cca.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 261 | hw_4758_cca.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 262 | hw_4758_cca.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 263 | hw_4758_cca.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 264 | hw_4758_cca.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 265 | hw_4758_cca.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 266 | hw_4758_cca.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 267 | hw_4758_cca.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 268 | hw_4758_cca.o: ../../include/openssl/opensslconf.h | ||
| 269 | hw_4758_cca.o: ../../include/openssl/opensslv.h | ||
| 270 | hw_4758_cca.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 271 | hw_4758_cca.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 272 | hw_4758_cca.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 273 | hw_4758_cca.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 274 | hw_4758_cca.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 275 | hw_4758_cca.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 276 | hw_4758_cca.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 277 | hw_4758_cca.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 278 | hw_4758_cca.o: ../cryptlib.h hw_4758_cca.c hw_4758_cca_err.c hw_4758_cca_err.h | ||
| 279 | hw_4758_cca.o: vendor_defns/hw_4758_cca.h | ||
| 280 | hw_aep.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 281 | hw_aep.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 282 | hw_aep.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 283 | hw_aep.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 284 | hw_aep.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 285 | hw_aep.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 286 | hw_aep.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 287 | hw_aep.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 288 | hw_aep.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 289 | hw_aep.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 290 | hw_aep.o: ../../include/openssl/ui.h hw_aep.c hw_aep_err.c hw_aep_err.h | ||
| 291 | hw_aep.o: vendor_defns/aep.h | ||
| 292 | hw_atalla.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 293 | hw_atalla.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 294 | hw_atalla.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 295 | hw_atalla.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 296 | hw_atalla.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 297 | hw_atalla.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 298 | hw_atalla.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 299 | hw_atalla.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 300 | hw_atalla.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 301 | hw_atalla.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 302 | hw_atalla.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 303 | hw_atalla.o: ../cryptlib.h hw_atalla.c hw_atalla_err.c hw_atalla_err.h | ||
| 304 | hw_atalla.o: vendor_defns/atalla.h | ||
| 305 | hw_cryptodev.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 306 | hw_cryptodev.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 307 | hw_cryptodev.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 308 | hw_cryptodev.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 309 | hw_cryptodev.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 310 | hw_cryptodev.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 311 | hw_cryptodev.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 312 | hw_cryptodev.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 313 | hw_cryptodev.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 314 | hw_cryptodev.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 315 | hw_cryptodev.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 316 | hw_cryptodev.o: ../../include/openssl/objects.h | ||
| 317 | hw_cryptodev.o: ../../include/openssl/opensslconf.h | ||
| 318 | hw_cryptodev.o: ../../include/openssl/opensslv.h | ||
| 319 | hw_cryptodev.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 320 | hw_cryptodev.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 321 | hw_cryptodev.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 322 | hw_cryptodev.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 323 | hw_cryptodev.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 324 | hw_cryptodev.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 325 | hw_cryptodev.o: ../../include/openssl/ui_compat.h hw_cryptodev.c | ||
| 326 | hw_cswift.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 327 | hw_cswift.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 328 | hw_cswift.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 329 | hw_cswift.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 330 | hw_cswift.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 331 | hw_cswift.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 332 | hw_cswift.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 333 | hw_cswift.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 334 | hw_cswift.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 335 | hw_cswift.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 336 | hw_cswift.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 337 | hw_cswift.o: ../cryptlib.h hw_cswift.c hw_cswift_err.c hw_cswift_err.h | ||
| 338 | hw_cswift.o: vendor_defns/cswift.h | ||
| 339 | hw_ncipher.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 340 | hw_ncipher.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 341 | hw_ncipher.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 342 | hw_ncipher.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 343 | hw_ncipher.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 344 | hw_ncipher.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 345 | hw_ncipher.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 346 | hw_ncipher.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 347 | hw_ncipher.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 348 | hw_ncipher.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 349 | hw_ncipher.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 350 | hw_ncipher.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 351 | hw_ncipher.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 352 | hw_ncipher.o: ../../include/openssl/opensslconf.h | ||
| 353 | hw_ncipher.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 354 | hw_ncipher.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 355 | hw_ncipher.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 356 | hw_ncipher.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 357 | hw_ncipher.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 358 | hw_ncipher.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 359 | hw_ncipher.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 360 | hw_ncipher.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 361 | hw_ncipher.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 362 | hw_ncipher.o: ../../include/openssl/x509_vfy.h ../cryptlib.h hw_ncipher.c | ||
| 363 | hw_ncipher.o: hw_ncipher_err.c hw_ncipher_err.h vendor_defns/hwcryptohook.h | ||
| 364 | hw_nuron.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 365 | hw_nuron.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 366 | hw_nuron.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 367 | hw_nuron.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 368 | hw_nuron.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 369 | hw_nuron.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 370 | hw_nuron.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 371 | hw_nuron.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 372 | hw_nuron.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 373 | hw_nuron.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 374 | hw_nuron.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 375 | hw_nuron.o: ../cryptlib.h hw_nuron.c hw_nuron_err.c hw_nuron_err.h | ||
| 376 | hw_sureware.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 377 | hw_sureware.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 378 | hw_sureware.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 379 | hw_sureware.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 380 | hw_sureware.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 381 | hw_sureware.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 382 | hw_sureware.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 383 | hw_sureware.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 384 | hw_sureware.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 385 | hw_sureware.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 386 | hw_sureware.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 387 | hw_sureware.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 388 | hw_sureware.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 389 | hw_sureware.o: ../../include/openssl/opensslconf.h | ||
| 390 | hw_sureware.o: ../../include/openssl/opensslv.h | ||
| 391 | hw_sureware.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 392 | hw_sureware.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 393 | hw_sureware.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 394 | hw_sureware.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 395 | hw_sureware.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 396 | hw_sureware.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 397 | hw_sureware.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 398 | hw_sureware.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 399 | hw_sureware.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 400 | hw_sureware.o: ../cryptlib.h eng_int.h engine.h hw_sureware.c hw_sureware_err.c | ||
| 401 | hw_sureware.o: hw_sureware_err.h vendor_defns/sureware.h | ||
| 402 | hw_ubsec.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 403 | hw_ubsec.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 404 | hw_ubsec.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 405 | hw_ubsec.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 406 | hw_ubsec.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 407 | hw_ubsec.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 408 | hw_ubsec.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 409 | hw_ubsec.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 410 | hw_ubsec.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 411 | hw_ubsec.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 412 | hw_ubsec.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 413 | hw_ubsec.o: ../cryptlib.h hw_ubsec.c hw_ubsec_err.c hw_ubsec_err.h | ||
| 414 | hw_ubsec.o: vendor_defns/hw_ubsec.h | ||
| 415 | tb_cipher.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 416 | tb_cipher.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 417 | tb_cipher.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 418 | tb_cipher.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 419 | tb_cipher.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 420 | tb_cipher.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 421 | tb_cipher.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 422 | tb_cipher.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 423 | tb_cipher.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 424 | tb_cipher.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 425 | tb_cipher.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 426 | tb_cipher.o: ../../include/openssl/objects.h | ||
| 427 | tb_cipher.o: ../../include/openssl/opensslconf.h | ||
| 428 | tb_cipher.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 429 | tb_cipher.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 430 | tb_cipher.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 431 | tb_cipher.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 432 | tb_cipher.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 433 | tb_cipher.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 434 | tb_cipher.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 435 | tb_cipher.o: eng_int.h tb_cipher.c | ||
| 436 | tb_dh.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 437 | tb_dh.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 438 | tb_dh.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 439 | tb_dh.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 440 | tb_dh.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 441 | tb_dh.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 442 | tb_dh.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 443 | tb_dh.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 444 | tb_dh.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 445 | tb_dh.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 446 | tb_dh.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 447 | tb_dh.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 448 | tb_dh.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 449 | tb_dh.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 450 | tb_dh.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 451 | tb_dh.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 452 | tb_dh.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 453 | tb_dh.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 454 | tb_dh.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h eng_int.h | ||
| 455 | tb_dh.o: tb_dh.c | ||
| 456 | tb_digest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 457 | tb_digest.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 458 | tb_digest.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 459 | tb_digest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 460 | tb_digest.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 461 | tb_digest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 462 | tb_digest.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 463 | tb_digest.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 464 | tb_digest.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 465 | tb_digest.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 466 | tb_digest.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 467 | tb_digest.o: ../../include/openssl/objects.h | ||
| 468 | tb_digest.o: ../../include/openssl/opensslconf.h | ||
| 469 | tb_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 470 | tb_digest.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 471 | tb_digest.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 472 | tb_digest.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 473 | tb_digest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 474 | tb_digest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 475 | tb_digest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 476 | tb_digest.o: eng_int.h tb_digest.c | ||
| 477 | tb_dsa.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 478 | tb_dsa.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 479 | tb_dsa.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 480 | tb_dsa.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 481 | tb_dsa.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 482 | tb_dsa.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 483 | tb_dsa.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 484 | tb_dsa.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 485 | tb_dsa.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 486 | tb_dsa.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 487 | tb_dsa.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 488 | tb_dsa.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 489 | tb_dsa.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 490 | tb_dsa.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 491 | tb_dsa.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 492 | tb_dsa.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 493 | tb_dsa.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 494 | tb_dsa.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 495 | tb_dsa.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 496 | tb_dsa.o: eng_int.h tb_dsa.c | ||
| 497 | tb_rand.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 498 | tb_rand.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 499 | tb_rand.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 500 | tb_rand.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 501 | tb_rand.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 502 | tb_rand.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 503 | tb_rand.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 504 | tb_rand.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 505 | tb_rand.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 506 | tb_rand.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 507 | tb_rand.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 508 | tb_rand.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 509 | tb_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 510 | tb_rand.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 511 | tb_rand.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 512 | tb_rand.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 513 | tb_rand.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 514 | tb_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 515 | tb_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 516 | tb_rand.o: eng_int.h tb_rand.c | ||
| 517 | tb_rsa.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 518 | tb_rsa.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 519 | tb_rsa.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 520 | tb_rsa.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 521 | tb_rsa.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 522 | tb_rsa.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 523 | tb_rsa.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 524 | tb_rsa.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 525 | tb_rsa.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 526 | tb_rsa.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 527 | tb_rsa.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 528 | tb_rsa.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 529 | tb_rsa.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 530 | tb_rsa.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 531 | tb_rsa.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 532 | tb_rsa.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 533 | tb_rsa.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 534 | tb_rsa.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 535 | tb_rsa.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 536 | tb_rsa.o: eng_int.h tb_rsa.c | ||
diff --git a/src/lib/libssl/src/crypto/engine/vendor_defns/sureware.h b/src/lib/libssl/src/crypto/engine/vendor_defns/sureware.h index 1d3789219d..4bc22027f9 100644 --- a/src/lib/libssl/src/crypto/engine/vendor_defns/sureware.h +++ b/src/lib/libssl/src/crypto/engine/vendor_defns/sureware.h | |||
| @@ -232,7 +232,7 @@ extern SW_EXPORT SureWareHook_Dsa_Sign_t SureWareHook_Dsa_Sign; | |||
| 232 | * mlen,elen and dlen are all multiple of sizeof(unsigned long) | 232 | * mlen,elen and dlen are all multiple of sizeof(unsigned long) |
| 233 | */ | 233 | */ |
| 234 | typedef int SureWareHook_Mod_Exp_t(char*const msg,int mlen,const unsigned long *mod, | 234 | typedef int SureWareHook_Mod_Exp_t(char*const msg,int mlen,const unsigned long *mod, |
| 235 | int elen,const unsigned long *exp, | 235 | int elen,const unsigned long *exponent, |
| 236 | int dlen,unsigned long *data, | 236 | int dlen,unsigned long *data, |
| 237 | unsigned long *res); | 237 | unsigned long *res); |
| 238 | extern SW_EXPORT SureWareHook_Mod_Exp_t SureWareHook_Mod_Exp; | 238 | extern SW_EXPORT SureWareHook_Mod_Exp_t SureWareHook_Mod_Exp; |
diff --git a/src/lib/libssl/src/crypto/err/Makefile b/src/lib/libssl/src/crypto/err/Makefile new file mode 100644 index 0000000000..149f3e0eb9 --- /dev/null +++ b/src/lib/libssl/src/crypto/err/Makefile | |||
| @@ -0,0 +1,118 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/err/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= err | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=err.c err_all.c err_prn.c | ||
| 26 | LIBOBJ=err.o err_all.o err_prn.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= err.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | err.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 81 | err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 82 | err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 83 | err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 84 | err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 85 | err.o: ../../include/openssl/symhacks.h ../cryptlib.h err.c | ||
| 86 | err_all.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 87 | err_all.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 88 | err_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 89 | err_all.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 90 | err_all.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 91 | err_all.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 92 | err_all.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 93 | err_all.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 94 | err_all.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 95 | err_all.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | ||
| 96 | err_all.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 97 | err_all.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 98 | err_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 99 | err_all.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 100 | err_all.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 101 | err_all.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 102 | err_all.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h | ||
| 103 | err_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 104 | err_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 105 | err_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 106 | err_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 107 | err_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 108 | err_all.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 109 | err_all.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 110 | err_all.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 111 | err_all.o: err_all.c | ||
| 112 | err_prn.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 113 | err_prn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 114 | err_prn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 115 | err_prn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 116 | err_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 117 | err_prn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 118 | err_prn.o: ../cryptlib.h err_prn.c | ||
diff --git a/src/lib/libssl/src/crypto/evp/Makefile b/src/lib/libssl/src/crypto/evp/Makefile new file mode 100644 index 0000000000..5027a3855a --- /dev/null +++ b/src/lib/libssl/src/crypto/evp/Makefile | |||
| @@ -0,0 +1,1076 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/evp/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= evp | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=evp_test.c | ||
| 22 | TESTDATA=evptests.txt | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= encode.c digest.c evp_enc.c evp_key.c evp_acnf.c \ | ||
| 27 | e_des.c e_bf.c e_idea.c e_des3.c \ | ||
| 28 | e_rc4.c e_aes.c names.c \ | ||
| 29 | e_xcbc_d.c e_rc2.c e_cast.c e_rc5.c \ | ||
| 30 | m_null.c m_md2.c m_md4.c m_md5.c m_sha.c m_sha1.c \ | ||
| 31 | m_dss.c m_dss1.c m_mdc2.c m_ripemd.c \ | ||
| 32 | p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c \ | ||
| 33 | bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c \ | ||
| 34 | c_all.c c_allc.c c_alld.c evp_lib.c bio_ok.c \ | ||
| 35 | evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c \ | ||
| 36 | e_old.c | ||
| 37 | |||
| 38 | LIBOBJ= encode.o digest.o evp_enc.o evp_key.o evp_acnf.o \ | ||
| 39 | e_des.o e_bf.o e_idea.o e_des3.o \ | ||
| 40 | e_rc4.o e_aes.o names.o \ | ||
| 41 | e_xcbc_d.o e_rc2.o e_cast.o e_rc5.o \ | ||
| 42 | m_null.o m_md2.o m_md4.o m_md5.o m_sha.o m_sha1.o \ | ||
| 43 | m_dss.o m_dss1.o m_mdc2.o m_ripemd.o \ | ||
| 44 | p_open.o p_seal.o p_sign.o p_verify.o p_lib.o p_enc.o p_dec.o \ | ||
| 45 | bio_md.o bio_b64.o bio_enc.o evp_err.o e_null.o \ | ||
| 46 | c_all.o c_allc.o c_alld.o evp_lib.o bio_ok.o \ | ||
| 47 | evp_pkey.o evp_pbe.o p5_crpt.o p5_crpt2.o \ | ||
| 48 | e_old.o | ||
| 49 | |||
| 50 | SRC= $(LIBSRC) | ||
| 51 | |||
| 52 | EXHEADER= evp.h | ||
| 53 | HEADER= $(EXHEADER) | ||
| 54 | |||
| 55 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 56 | |||
| 57 | top: | ||
| 58 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 59 | |||
| 60 | all: lib | ||
| 61 | |||
| 62 | lib: $(LIBOBJ) | ||
| 63 | $(AR) $(LIB) $(LIBOBJ) | ||
| 64 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 65 | @touch lib | ||
| 66 | |||
| 67 | files: | ||
| 68 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 69 | |||
| 70 | links: | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 73 | cp $(TESTDATA) ../../test | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 75 | |||
| 76 | install: | ||
| 77 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 78 | do \ | ||
| 79 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 80 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 81 | done; | ||
| 82 | |||
| 83 | tags: | ||
| 84 | ctags $(SRC) | ||
| 85 | |||
| 86 | tests: | ||
| 87 | |||
| 88 | lint: | ||
| 89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 90 | |||
| 91 | depend: | ||
| 92 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 93 | |||
| 94 | dclean: | ||
| 95 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 96 | mv -f Makefile.new $(MAKEFILE) | ||
| 97 | |||
| 98 | clean: | ||
| 99 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 100 | |||
| 101 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 102 | |||
| 103 | bio_b64.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 104 | bio_b64.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 105 | bio_b64.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 106 | bio_b64.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 107 | bio_b64.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 108 | bio_b64.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 109 | bio_b64.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 110 | bio_b64.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 111 | bio_b64.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 112 | bio_b64.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 113 | bio_b64.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 114 | bio_b64.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 115 | bio_b64.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 116 | bio_b64.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 117 | bio_b64.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 118 | bio_b64.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 119 | bio_b64.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 120 | bio_b64.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 121 | bio_b64.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 122 | bio_b64.o: ../cryptlib.h bio_b64.c | ||
| 123 | bio_enc.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 124 | bio_enc.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 125 | bio_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 126 | bio_enc.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 127 | bio_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 128 | bio_enc.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 129 | bio_enc.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 130 | bio_enc.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 131 | bio_enc.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 132 | bio_enc.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 133 | bio_enc.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 134 | bio_enc.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 135 | bio_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 136 | bio_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 137 | bio_enc.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 138 | bio_enc.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 139 | bio_enc.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 140 | bio_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 141 | bio_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 142 | bio_enc.o: ../cryptlib.h bio_enc.c | ||
| 143 | bio_md.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 144 | bio_md.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 145 | bio_md.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 146 | bio_md.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 147 | bio_md.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 148 | bio_md.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 149 | bio_md.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 150 | bio_md.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 151 | bio_md.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 152 | bio_md.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 153 | bio_md.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 154 | bio_md.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 155 | bio_md.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 156 | bio_md.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 157 | bio_md.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 158 | bio_md.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 159 | bio_md.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 160 | bio_md.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 161 | bio_md.o: ../../include/openssl/ui_compat.h ../cryptlib.h bio_md.c | ||
| 162 | bio_ok.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 163 | bio_ok.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 164 | bio_ok.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 165 | bio_ok.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 166 | bio_ok.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 167 | bio_ok.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 168 | bio_ok.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 169 | bio_ok.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 170 | bio_ok.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 171 | bio_ok.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 172 | bio_ok.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 173 | bio_ok.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 174 | bio_ok.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 175 | bio_ok.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 176 | bio_ok.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 177 | bio_ok.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 178 | bio_ok.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 179 | bio_ok.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 180 | bio_ok.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 181 | bio_ok.o: ../cryptlib.h bio_ok.c | ||
| 182 | c_all.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 183 | c_all.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 184 | c_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 185 | c_all.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 186 | c_all.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 187 | c_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 188 | c_all.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 189 | c_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 190 | c_all.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 191 | c_all.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 192 | c_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 193 | c_all.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 194 | c_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 195 | c_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 196 | c_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 197 | c_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 198 | c_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 199 | c_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 200 | c_all.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 201 | c_all.o: ../../include/openssl/ui_compat.h ../cryptlib.h c_all.c | ||
| 202 | c_allc.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 203 | c_allc.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 204 | c_allc.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 205 | c_allc.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 206 | c_allc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 207 | c_allc.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 208 | c_allc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 209 | c_allc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 210 | c_allc.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 211 | c_allc.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 212 | c_allc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 213 | c_allc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 214 | c_allc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 215 | c_allc.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 216 | c_allc.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 217 | c_allc.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 218 | c_allc.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 219 | c_allc.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 220 | c_allc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 221 | c_allc.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 222 | c_allc.o: ../../include/openssl/x509_vfy.h ../cryptlib.h c_allc.c | ||
| 223 | c_alld.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 224 | c_alld.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 225 | c_alld.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 226 | c_alld.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 227 | c_alld.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 228 | c_alld.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 229 | c_alld.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 230 | c_alld.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 231 | c_alld.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 232 | c_alld.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 233 | c_alld.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 234 | c_alld.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 235 | c_alld.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 236 | c_alld.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 237 | c_alld.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 238 | c_alld.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 239 | c_alld.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 240 | c_alld.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 241 | c_alld.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 242 | c_alld.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 243 | c_alld.o: ../../include/openssl/x509_vfy.h ../cryptlib.h c_alld.c | ||
| 244 | digest.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 245 | digest.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 246 | digest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 247 | digest.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 248 | digest.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 249 | digest.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 250 | digest.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 251 | digest.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 252 | digest.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 253 | digest.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 254 | digest.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 255 | digest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 256 | digest.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 257 | digest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 258 | digest.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 259 | digest.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 260 | digest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 261 | digest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 262 | digest.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 263 | digest.o: ../../include/openssl/ui_compat.h ../cryptlib.h digest.c | ||
| 264 | e_aes.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 265 | e_aes.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 266 | e_aes.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 267 | e_aes.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 268 | e_aes.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 269 | e_aes.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 270 | e_aes.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 271 | e_aes.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 272 | e_aes.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 273 | e_aes.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 274 | e_aes.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 275 | e_aes.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 276 | e_aes.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 277 | e_aes.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 278 | e_aes.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 279 | e_aes.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 280 | e_aes.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 281 | e_aes.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h e_aes.c | ||
| 282 | e_aes.o: evp_locl.h | ||
| 283 | e_bf.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 284 | e_bf.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 285 | e_bf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 286 | e_bf.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 287 | e_bf.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 288 | e_bf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 289 | e_bf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 290 | e_bf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 291 | e_bf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 292 | e_bf.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 293 | e_bf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 294 | e_bf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 295 | e_bf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 296 | e_bf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 297 | e_bf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 298 | e_bf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 299 | e_bf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 300 | e_bf.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 301 | e_bf.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_bf.c evp_locl.h | ||
| 302 | e_cast.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 303 | e_cast.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 304 | e_cast.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 305 | e_cast.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 306 | e_cast.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 307 | e_cast.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 308 | e_cast.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 309 | e_cast.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 310 | e_cast.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 311 | e_cast.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 312 | e_cast.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 313 | e_cast.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 314 | e_cast.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 315 | e_cast.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 316 | e_cast.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 317 | e_cast.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 318 | e_cast.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 319 | e_cast.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 320 | e_cast.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_cast.c evp_locl.h | ||
| 321 | e_des.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 322 | e_des.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 323 | e_des.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 324 | e_des.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 325 | e_des.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 326 | e_des.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 327 | e_des.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 328 | e_des.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 329 | e_des.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 330 | e_des.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 331 | e_des.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 332 | e_des.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 333 | e_des.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 334 | e_des.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 335 | e_des.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 336 | e_des.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 337 | e_des.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 338 | e_des.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 339 | e_des.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_des.c evp_locl.h | ||
| 340 | e_des3.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 341 | e_des3.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 342 | e_des3.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 343 | e_des3.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 344 | e_des3.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 345 | e_des3.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 346 | e_des3.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 347 | e_des3.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 348 | e_des3.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 349 | e_des3.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 350 | e_des3.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 351 | e_des3.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 352 | e_des3.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 353 | e_des3.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 354 | e_des3.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 355 | e_des3.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 356 | e_des3.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 357 | e_des3.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 358 | e_des3.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_des3.c evp_locl.h | ||
| 359 | e_idea.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 360 | e_idea.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 361 | e_idea.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 362 | e_idea.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 363 | e_idea.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 364 | e_idea.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 365 | e_idea.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 366 | e_idea.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 367 | e_idea.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 368 | e_idea.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 369 | e_idea.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 370 | e_idea.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 371 | e_idea.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 372 | e_idea.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 373 | e_idea.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 374 | e_idea.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 375 | e_idea.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 376 | e_idea.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 377 | e_idea.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_idea.c evp_locl.h | ||
| 378 | e_null.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 379 | e_null.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 380 | e_null.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 381 | e_null.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 382 | e_null.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 383 | e_null.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 384 | e_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 385 | e_null.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 386 | e_null.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 387 | e_null.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 388 | e_null.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 389 | e_null.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 390 | e_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 391 | e_null.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 392 | e_null.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 393 | e_null.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 394 | e_null.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 395 | e_null.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 396 | e_null.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_null.c | ||
| 397 | e_old.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 398 | e_old.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 399 | e_old.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 400 | e_old.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 401 | e_old.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 402 | e_old.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 403 | e_old.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 404 | e_old.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 405 | e_old.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 406 | e_old.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 407 | e_old.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 408 | e_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 409 | e_old.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 410 | e_old.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 411 | e_old.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 412 | e_old.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 413 | e_old.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h e_old.c | ||
| 414 | e_rc2.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 415 | e_rc2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 416 | e_rc2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 417 | e_rc2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 418 | e_rc2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 419 | e_rc2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 420 | e_rc2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 421 | e_rc2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 422 | e_rc2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 423 | e_rc2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 424 | e_rc2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 425 | e_rc2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 426 | e_rc2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 427 | e_rc2.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 428 | e_rc2.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 429 | e_rc2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 430 | e_rc2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 431 | e_rc2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 432 | e_rc2.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_rc2.c evp_locl.h | ||
| 433 | e_rc4.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 434 | e_rc4.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 435 | e_rc4.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 436 | e_rc4.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 437 | e_rc4.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 438 | e_rc4.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 439 | e_rc4.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 440 | e_rc4.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 441 | e_rc4.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 442 | e_rc4.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 443 | e_rc4.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 444 | e_rc4.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 445 | e_rc4.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 446 | e_rc4.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 447 | e_rc4.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 448 | e_rc4.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 449 | e_rc4.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 450 | e_rc4.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 451 | e_rc4.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_rc4.c evp_locl.h | ||
| 452 | e_rc5.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 453 | e_rc5.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 454 | e_rc5.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 455 | e_rc5.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 456 | e_rc5.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 457 | e_rc5.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 458 | e_rc5.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 459 | e_rc5.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 460 | e_rc5.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 461 | e_rc5.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 462 | e_rc5.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 463 | e_rc5.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 464 | e_rc5.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 465 | e_rc5.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 466 | e_rc5.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 467 | e_rc5.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 468 | e_rc5.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 469 | e_rc5.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 470 | e_rc5.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_rc5.c evp_locl.h | ||
| 471 | e_xcbc_d.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 472 | e_xcbc_d.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 473 | e_xcbc_d.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 474 | e_xcbc_d.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 475 | e_xcbc_d.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 476 | e_xcbc_d.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 477 | e_xcbc_d.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 478 | e_xcbc_d.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 479 | e_xcbc_d.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 480 | e_xcbc_d.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 481 | e_xcbc_d.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 482 | e_xcbc_d.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 483 | e_xcbc_d.o: ../../include/openssl/opensslconf.h | ||
| 484 | e_xcbc_d.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 485 | e_xcbc_d.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 486 | e_xcbc_d.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 487 | e_xcbc_d.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 488 | e_xcbc_d.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 489 | e_xcbc_d.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 490 | e_xcbc_d.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_xcbc_d.c | ||
| 491 | encode.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 492 | encode.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 493 | encode.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 494 | encode.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 495 | encode.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 496 | encode.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 497 | encode.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 498 | encode.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 499 | encode.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 500 | encode.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 501 | encode.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 502 | encode.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 503 | encode.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 504 | encode.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 505 | encode.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 506 | encode.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 507 | encode.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 508 | encode.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 509 | encode.o: ../../include/openssl/ui_compat.h ../cryptlib.h encode.c | ||
| 510 | evp_acnf.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 511 | evp_acnf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 512 | evp_acnf.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 513 | evp_acnf.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 514 | evp_acnf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 515 | evp_acnf.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 516 | evp_acnf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 517 | evp_acnf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 518 | evp_acnf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 519 | evp_acnf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 520 | evp_acnf.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 521 | evp_acnf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 522 | evp_acnf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 523 | evp_acnf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 524 | evp_acnf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 525 | evp_acnf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 526 | evp_acnf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 527 | evp_acnf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 528 | evp_acnf.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 529 | evp_acnf.o: ../../include/openssl/ui_compat.h ../cryptlib.h evp_acnf.c | ||
| 530 | evp_enc.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 531 | evp_enc.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 532 | evp_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 533 | evp_enc.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 534 | evp_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 535 | evp_enc.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 536 | evp_enc.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 537 | evp_enc.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 538 | evp_enc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 539 | evp_enc.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 540 | evp_enc.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 541 | evp_enc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 542 | evp_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 543 | evp_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 544 | evp_enc.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 545 | evp_enc.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 546 | evp_enc.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 547 | evp_enc.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 548 | evp_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 549 | evp_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 550 | evp_enc.o: ../cryptlib.h evp_enc.c evp_locl.h | ||
| 551 | evp_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 552 | evp_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 553 | evp_err.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 554 | evp_err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 555 | evp_err.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 556 | evp_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 557 | evp_err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 558 | evp_err.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 559 | evp_err.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 560 | evp_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 561 | evp_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 562 | evp_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 563 | evp_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 564 | evp_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 565 | evp_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 566 | evp_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 567 | evp_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 568 | evp_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 569 | evp_err.o: evp_err.c | ||
| 570 | evp_key.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 571 | evp_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 572 | evp_key.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 573 | evp_key.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 574 | evp_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 575 | evp_key.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 576 | evp_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 577 | evp_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 578 | evp_key.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 579 | evp_key.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 580 | evp_key.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 581 | evp_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 582 | evp_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 583 | evp_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 584 | evp_key.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 585 | evp_key.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 586 | evp_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 587 | evp_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 588 | evp_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 589 | evp_key.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 590 | evp_key.o: ../../include/openssl/x509_vfy.h ../cryptlib.h evp_key.c | ||
| 591 | evp_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 592 | evp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 593 | evp_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 594 | evp_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 595 | evp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 596 | evp_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 597 | evp_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 598 | evp_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 599 | evp_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 600 | evp_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 601 | evp_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 602 | evp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 603 | evp_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 604 | evp_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 605 | evp_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 606 | evp_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 607 | evp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 608 | evp_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 609 | evp_lib.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 610 | evp_lib.o: ../cryptlib.h evp_lib.c | ||
| 611 | evp_pbe.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 612 | evp_pbe.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 613 | evp_pbe.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 614 | evp_pbe.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 615 | evp_pbe.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 616 | evp_pbe.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 617 | evp_pbe.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 618 | evp_pbe.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 619 | evp_pbe.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 620 | evp_pbe.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 621 | evp_pbe.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 622 | evp_pbe.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 623 | evp_pbe.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 624 | evp_pbe.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 625 | evp_pbe.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 626 | evp_pbe.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 627 | evp_pbe.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 628 | evp_pbe.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 629 | evp_pbe.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 630 | evp_pbe.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 631 | evp_pbe.o: ../../include/openssl/x509_vfy.h ../cryptlib.h evp_pbe.c | ||
| 632 | evp_pkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 633 | evp_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 634 | evp_pkey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 635 | evp_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 636 | evp_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 637 | evp_pkey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 638 | evp_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 639 | evp_pkey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 640 | evp_pkey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 641 | evp_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 642 | evp_pkey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 643 | evp_pkey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 644 | evp_pkey.o: ../../include/openssl/opensslconf.h | ||
| 645 | evp_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 646 | evp_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 647 | evp_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 648 | evp_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 649 | evp_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 650 | evp_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 651 | evp_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 652 | evp_pkey.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 653 | evp_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h evp_pkey.c | ||
| 654 | m_dss.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 655 | m_dss.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 656 | m_dss.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 657 | m_dss.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 658 | m_dss.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 659 | m_dss.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 660 | m_dss.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 661 | m_dss.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 662 | m_dss.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 663 | m_dss.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 664 | m_dss.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 665 | m_dss.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 666 | m_dss.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 667 | m_dss.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 668 | m_dss.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 669 | m_dss.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 670 | m_dss.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 671 | m_dss.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 672 | m_dss.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 673 | m_dss.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 674 | m_dss.o: ../cryptlib.h m_dss.c | ||
| 675 | m_dss1.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 676 | m_dss1.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 677 | m_dss1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 678 | m_dss1.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 679 | m_dss1.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 680 | m_dss1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 681 | m_dss1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 682 | m_dss1.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 683 | m_dss1.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 684 | m_dss1.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 685 | m_dss1.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 686 | m_dss1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 687 | m_dss1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 688 | m_dss1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 689 | m_dss1.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 690 | m_dss1.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 691 | m_dss1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 692 | m_dss1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 693 | m_dss1.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 694 | m_dss1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 695 | m_dss1.o: ../cryptlib.h m_dss1.c | ||
| 696 | m_md2.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 697 | m_md2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 698 | m_md2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 699 | m_md2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 700 | m_md2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 701 | m_md2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 702 | m_md2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 703 | m_md2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 704 | m_md2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 705 | m_md2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 706 | m_md2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 707 | m_md2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 708 | m_md2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 709 | m_md2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 710 | m_md2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 711 | m_md2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 712 | m_md2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 713 | m_md2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 714 | m_md2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 715 | m_md2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 716 | m_md2.o: ../cryptlib.h evp_locl.h m_md2.c | ||
| 717 | m_md4.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 718 | m_md4.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 719 | m_md4.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 720 | m_md4.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 721 | m_md4.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 722 | m_md4.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 723 | m_md4.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 724 | m_md4.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 725 | m_md4.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 726 | m_md4.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 727 | m_md4.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 728 | m_md4.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 729 | m_md4.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 730 | m_md4.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 731 | m_md4.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 732 | m_md4.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 733 | m_md4.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 734 | m_md4.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 735 | m_md4.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 736 | m_md4.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 737 | m_md4.o: ../cryptlib.h evp_locl.h m_md4.c | ||
| 738 | m_md5.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 739 | m_md5.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 740 | m_md5.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 741 | m_md5.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 742 | m_md5.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 743 | m_md5.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 744 | m_md5.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 745 | m_md5.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 746 | m_md5.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 747 | m_md5.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 748 | m_md5.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 749 | m_md5.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 750 | m_md5.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 751 | m_md5.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 752 | m_md5.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 753 | m_md5.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 754 | m_md5.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 755 | m_md5.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 756 | m_md5.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 757 | m_md5.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 758 | m_md5.o: ../cryptlib.h evp_locl.h m_md5.c | ||
| 759 | m_mdc2.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 760 | m_mdc2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 761 | m_mdc2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 762 | m_mdc2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 763 | m_mdc2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 764 | m_mdc2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 765 | m_mdc2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 766 | m_mdc2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 767 | m_mdc2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 768 | m_mdc2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 769 | m_mdc2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 770 | m_mdc2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 771 | m_mdc2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 772 | m_mdc2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 773 | m_mdc2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 774 | m_mdc2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 775 | m_mdc2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 776 | m_mdc2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 777 | m_mdc2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 778 | m_mdc2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 779 | m_mdc2.o: ../cryptlib.h evp_locl.h m_mdc2.c | ||
| 780 | m_null.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 781 | m_null.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 782 | m_null.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 783 | m_null.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 784 | m_null.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 785 | m_null.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 786 | m_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 787 | m_null.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 788 | m_null.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 789 | m_null.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 790 | m_null.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 791 | m_null.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 792 | m_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 793 | m_null.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 794 | m_null.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 795 | m_null.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 796 | m_null.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 797 | m_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 798 | m_null.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 799 | m_null.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 800 | m_null.o: ../cryptlib.h m_null.c | ||
| 801 | m_ripemd.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 802 | m_ripemd.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 803 | m_ripemd.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 804 | m_ripemd.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 805 | m_ripemd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 806 | m_ripemd.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 807 | m_ripemd.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 808 | m_ripemd.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 809 | m_ripemd.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 810 | m_ripemd.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 811 | m_ripemd.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 812 | m_ripemd.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 813 | m_ripemd.o: ../../include/openssl/opensslconf.h | ||
| 814 | m_ripemd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 815 | m_ripemd.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 816 | m_ripemd.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 817 | m_ripemd.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 818 | m_ripemd.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 819 | m_ripemd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 820 | m_ripemd.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 821 | m_ripemd.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 822 | m_ripemd.o: ../cryptlib.h m_ripemd.c | ||
| 823 | m_sha.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 824 | m_sha.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 825 | m_sha.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 826 | m_sha.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 827 | m_sha.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 828 | m_sha.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 829 | m_sha.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 830 | m_sha.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 831 | m_sha.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 832 | m_sha.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 833 | m_sha.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 834 | m_sha.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 835 | m_sha.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 836 | m_sha.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 837 | m_sha.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 838 | m_sha.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 839 | m_sha.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 840 | m_sha.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 841 | m_sha.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 842 | m_sha.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 843 | m_sha.o: ../cryptlib.h evp_locl.h m_sha.c | ||
| 844 | m_sha1.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 845 | m_sha1.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 846 | m_sha1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 847 | m_sha1.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 848 | m_sha1.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 849 | m_sha1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 850 | m_sha1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 851 | m_sha1.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 852 | m_sha1.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 853 | m_sha1.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 854 | m_sha1.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 855 | m_sha1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 856 | m_sha1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 857 | m_sha1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 858 | m_sha1.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 859 | m_sha1.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 860 | m_sha1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 861 | m_sha1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 862 | m_sha1.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 863 | m_sha1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 864 | m_sha1.o: ../cryptlib.h m_sha1.c | ||
| 865 | names.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 866 | names.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 867 | names.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 868 | names.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 869 | names.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 870 | names.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 871 | names.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 872 | names.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 873 | names.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 874 | names.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 875 | names.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 876 | names.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 877 | names.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 878 | names.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 879 | names.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 880 | names.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 881 | names.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 882 | names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 883 | names.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 884 | names.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 885 | names.o: ../cryptlib.h names.c | ||
| 886 | p5_crpt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 887 | p5_crpt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 888 | p5_crpt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 889 | p5_crpt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 890 | p5_crpt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 891 | p5_crpt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 892 | p5_crpt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 893 | p5_crpt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 894 | p5_crpt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 895 | p5_crpt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 896 | p5_crpt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 897 | p5_crpt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 898 | p5_crpt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 899 | p5_crpt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 900 | p5_crpt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 901 | p5_crpt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 902 | p5_crpt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 903 | p5_crpt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 904 | p5_crpt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 905 | p5_crpt.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 906 | p5_crpt.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p5_crpt.c | ||
| 907 | p5_crpt2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 908 | p5_crpt2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 909 | p5_crpt2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 910 | p5_crpt2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 911 | p5_crpt2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 912 | p5_crpt2.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 913 | p5_crpt2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 914 | p5_crpt2.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 915 | p5_crpt2.o: ../../include/openssl/hmac.h ../../include/openssl/idea.h | ||
| 916 | p5_crpt2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 917 | p5_crpt2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 918 | p5_crpt2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 919 | p5_crpt2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 920 | p5_crpt2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 921 | p5_crpt2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 922 | p5_crpt2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 923 | p5_crpt2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 924 | p5_crpt2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 925 | p5_crpt2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 926 | p5_crpt2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 927 | p5_crpt2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 928 | p5_crpt2.o: ../cryptlib.h p5_crpt2.c | ||
| 929 | p_dec.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 930 | p_dec.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 931 | p_dec.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 932 | p_dec.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 933 | p_dec.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 934 | p_dec.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 935 | p_dec.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 936 | p_dec.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 937 | p_dec.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 938 | p_dec.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 939 | p_dec.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 940 | p_dec.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 941 | p_dec.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 942 | p_dec.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 943 | p_dec.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 944 | p_dec.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 945 | p_dec.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 946 | p_dec.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 947 | p_dec.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 948 | p_dec.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 949 | p_dec.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_dec.c | ||
| 950 | p_enc.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 951 | p_enc.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 952 | p_enc.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 953 | p_enc.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 954 | p_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 955 | p_enc.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 956 | p_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 957 | p_enc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 958 | p_enc.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 959 | p_enc.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 960 | p_enc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 961 | p_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 962 | p_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 963 | p_enc.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 964 | p_enc.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 965 | p_enc.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 966 | p_enc.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 967 | p_enc.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 968 | p_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 969 | p_enc.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 970 | p_enc.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_enc.c | ||
| 971 | p_lib.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 972 | p_lib.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 973 | p_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 974 | p_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 975 | p_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 976 | p_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 977 | p_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 978 | p_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 979 | p_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 980 | p_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 981 | p_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 982 | p_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 983 | p_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 984 | p_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 985 | p_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 986 | p_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 987 | p_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 988 | p_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 989 | p_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 990 | p_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 991 | p_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_lib.c | ||
| 992 | p_open.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 993 | p_open.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 994 | p_open.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 995 | p_open.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 996 | p_open.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 997 | p_open.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 998 | p_open.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 999 | p_open.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1000 | p_open.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1001 | p_open.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1002 | p_open.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1003 | p_open.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1004 | p_open.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1005 | p_open.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1006 | p_open.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1007 | p_open.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1008 | p_open.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1009 | p_open.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1010 | p_open.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1011 | p_open.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1012 | p_open.o: ../cryptlib.h p_open.c | ||
| 1013 | p_seal.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1014 | p_seal.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 1015 | p_seal.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 1016 | p_seal.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1017 | p_seal.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1018 | p_seal.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1019 | p_seal.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1020 | p_seal.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1021 | p_seal.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1022 | p_seal.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1023 | p_seal.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1024 | p_seal.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1025 | p_seal.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1026 | p_seal.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 1027 | p_seal.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1028 | p_seal.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1029 | p_seal.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1030 | p_seal.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1031 | p_seal.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1032 | p_seal.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1033 | p_seal.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_seal.c | ||
| 1034 | p_sign.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1035 | p_sign.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 1036 | p_sign.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 1037 | p_sign.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1038 | p_sign.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1039 | p_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1040 | p_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1041 | p_sign.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1042 | p_sign.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1043 | p_sign.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1044 | p_sign.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1045 | p_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1046 | p_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1047 | p_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1048 | p_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1049 | p_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1050 | p_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1051 | p_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1052 | p_sign.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1053 | p_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1054 | p_sign.o: ../cryptlib.h p_sign.c | ||
| 1055 | p_verify.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 1056 | p_verify.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 1057 | p_verify.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1058 | p_verify.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1059 | p_verify.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1060 | p_verify.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1061 | p_verify.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1062 | p_verify.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1063 | p_verify.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1064 | p_verify.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1065 | p_verify.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1066 | p_verify.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1067 | p_verify.o: ../../include/openssl/opensslconf.h | ||
| 1068 | p_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1069 | p_verify.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1070 | p_verify.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1071 | p_verify.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1072 | p_verify.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1073 | p_verify.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1074 | p_verify.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1075 | p_verify.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1076 | p_verify.o: ../cryptlib.h p_verify.c | ||
diff --git a/src/lib/libssl/src/crypto/evp/e_old.c b/src/lib/libssl/src/crypto/evp/e_old.c new file mode 100644 index 0000000000..92dc498945 --- /dev/null +++ b/src/lib/libssl/src/crypto/evp/e_old.c | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | /* crypto/evp/e_old.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2004. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <openssl/evp.h> | ||
| 60 | |||
| 61 | /* Define some deprecated functions, so older programs | ||
| 62 | don't crash and burn too quickly. On Windows and VMS, | ||
| 63 | these will never be used, since functions and variables | ||
| 64 | in shared libraries are selected by entry point location, | ||
| 65 | not by name. */ | ||
| 66 | |||
| 67 | #ifndef OPENSSL_NO_BF | ||
| 68 | #undef EVP_bf_cfb | ||
| 69 | const EVP_CIPHER *EVP_bf_cfb(void) { return EVP_bf_cfb64(); } | ||
| 70 | #endif | ||
| 71 | |||
| 72 | #ifndef OPENSSL_NO_DES | ||
| 73 | #undef EVP_des_cfb | ||
| 74 | const EVP_CIPHER *EVP_des_cfb(void) { return EVP_des_cfb64(); } | ||
| 75 | #undef EVP_des_ede3_cfb | ||
| 76 | const EVP_CIPHER *EVP_des_ede3_cfb(void) { return EVP_des_ede3_cfb64(); } | ||
| 77 | #undef EVP_des_ede_cfb | ||
| 78 | const EVP_CIPHER *EVP_des_ede_cfb(void) { return EVP_des_ede_cfb64(); } | ||
| 79 | #endif | ||
| 80 | |||
| 81 | #ifndef OPENSSL_NO_IDEA | ||
| 82 | #undef EVP_idea_cfb | ||
| 83 | const EVP_CIPHER *EVP_idea_cfb(void) { return EVP_idea_cfb64(); } | ||
| 84 | #endif | ||
| 85 | |||
| 86 | #ifndef OPENSSL_NO_RC2 | ||
| 87 | #undef EVP_rc2_cfb | ||
| 88 | const EVP_CIPHER *EVP_rc2_cfb(void) { return EVP_rc2_cfb64(); } | ||
| 89 | #endif | ||
| 90 | |||
| 91 | #ifndef OPENSSL_NO_CAST | ||
| 92 | #undef EVP_cast5_cfb | ||
| 93 | const EVP_CIPHER *EVP_cast5_cfb(void) { return EVP_cast5_cfb64(); } | ||
| 94 | #endif | ||
| 95 | |||
| 96 | #ifndef OPENSSL_NO_RC5 | ||
| 97 | #undef EVP_rc5_32_12_16_cfb | ||
| 98 | const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void) { return EVP_rc5_32_12_16_cfb64(); } | ||
| 99 | #endif | ||
| 100 | |||
| 101 | #ifndef OPENSSL_NO_AES | ||
| 102 | #undef EVP_aes_128_cfb | ||
| 103 | const EVP_CIPHER *EVP_aes_128_cfb(void) { return EVP_aes_128_cfb128(); } | ||
| 104 | #undef EVP_aes_192_cfb | ||
| 105 | const EVP_CIPHER *EVP_aes_192_cfb(void) { return EVP_aes_192_cfb128(); } | ||
| 106 | #undef EVP_aes_256_cfb | ||
| 107 | const EVP_CIPHER *EVP_aes_256_cfb(void) { return EVP_aes_256_cfb128(); } | ||
| 108 | #endif | ||
diff --git a/src/lib/libssl/src/crypto/hmac/Makefile b/src/lib/libssl/src/crypto/hmac/Makefile new file mode 100644 index 0000000000..f634dab79d --- /dev/null +++ b/src/lib/libssl/src/crypto/hmac/Makefile | |||
| @@ -0,0 +1,99 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= hmac | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=hmactest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=hmac.c | ||
| 26 | LIBOBJ=hmac.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= hmac.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | hmac.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 81 | hmac.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 82 | hmac.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 83 | hmac.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 84 | hmac.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 85 | hmac.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 86 | hmac.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 87 | hmac.o: ../../include/openssl/evp.h ../../include/openssl/hmac.h | ||
| 88 | hmac.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 89 | hmac.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 90 | hmac.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 91 | hmac.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 92 | hmac.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 93 | hmac.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 94 | hmac.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 95 | hmac.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 96 | hmac.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 97 | hmac.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 98 | hmac.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 99 | hmac.o: ../cryptlib.h hmac.c | ||
diff --git a/src/lib/libssl/src/crypto/idea/Makefile b/src/lib/libssl/src/crypto/idea/Makefile new file mode 100644 index 0000000000..f652783027 --- /dev/null +++ b/src/lib/libssl/src/crypto/idea/Makefile | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/idea/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= idea | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=ideatest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c | ||
| 26 | LIBOBJ=i_cbc.o i_cfb64.o i_ofb64.o i_ecb.o i_skey.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= idea.h | ||
| 31 | HEADER= idea_lcl.h $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | i_cbc.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 81 | i_cbc.o: i_cbc.c idea_lcl.h | ||
| 82 | i_cfb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 83 | i_cfb64.o: i_cfb64.c idea_lcl.h | ||
| 84 | i_ecb.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 85 | i_ecb.o: ../../include/openssl/opensslv.h i_ecb.c idea_lcl.h | ||
| 86 | i_ofb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 87 | i_ofb64.o: i_ofb64.c idea_lcl.h | ||
| 88 | i_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 89 | i_skey.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 90 | i_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 91 | i_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 92 | i_skey.o: i_skey.c idea_lcl.h | ||
diff --git a/src/lib/libssl/src/crypto/krb5/Makefile b/src/lib/libssl/src/crypto/krb5/Makefile new file mode 100644 index 0000000000..25cc695e8d --- /dev/null +++ b/src/lib/libssl/src/crypto/krb5/Makefile | |||
| @@ -0,0 +1,88 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/krb5/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= krb5 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile README | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= krb5_asn.c | ||
| 26 | |||
| 27 | LIBOBJ= krb5_asn.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= krb5_asn.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 53 | |||
| 54 | install: | ||
| 55 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 56 | do \ | ||
| 57 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 58 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 59 | done; | ||
| 60 | |||
| 61 | tags: | ||
| 62 | ctags $(SRC) | ||
| 63 | |||
| 64 | tests: | ||
| 65 | |||
| 66 | lint: | ||
| 67 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 68 | |||
| 69 | depend: | ||
| 70 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 71 | |||
| 72 | dclean: | ||
| 73 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 74 | mv -f Makefile.new $(MAKEFILE) | ||
| 75 | |||
| 76 | clean: | ||
| 77 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 78 | |||
| 79 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 80 | |||
| 81 | krb5_asn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 82 | krb5_asn.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 83 | krb5_asn.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 84 | krb5_asn.o: ../../include/openssl/krb5_asn.h | ||
| 85 | krb5_asn.o: ../../include/openssl/opensslconf.h | ||
| 86 | krb5_asn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 87 | krb5_asn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 88 | krb5_asn.o: ../../include/openssl/symhacks.h krb5_asn.c | ||
diff --git a/src/lib/libssl/src/crypto/lhash/Makefile b/src/lib/libssl/src/crypto/lhash/Makefile new file mode 100644 index 0000000000..d325a1644d --- /dev/null +++ b/src/lib/libssl/src/crypto/lhash/Makefile | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/lhash/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= lhash | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=lhash.c lh_stats.c | ||
| 26 | LIBOBJ=lhash.o lh_stats.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= lhash.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | lh_stats.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 81 | lh_stats.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 82 | lh_stats.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 83 | lh_stats.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 84 | lh_stats.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 85 | lh_stats.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 86 | lh_stats.o: ../cryptlib.h lh_stats.c | ||
| 87 | lhash.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 88 | lhash.o: ../../include/openssl/e_os2.h ../../include/openssl/lhash.h | ||
| 89 | lhash.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 90 | lhash.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 91 | lhash.o: ../../include/openssl/symhacks.h lhash.c | ||
diff --git a/src/lib/libssl/src/crypto/md2/Makefile b/src/lib/libssl/src/crypto/md2/Makefile new file mode 100644 index 0000000000..90628511da --- /dev/null +++ b/src/lib/libssl/src/crypto/md2/Makefile | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= md2 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=md2test.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=md2_dgst.c md2_one.c | ||
| 26 | LIBOBJ=md2_dgst.o md2_one.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= md2.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | md2_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 81 | md2_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 82 | md2_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 83 | md2_dgst.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h | ||
| 84 | md2_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 85 | md2_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 86 | md2_dgst.o: md2_dgst.c | ||
| 87 | md2_one.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 88 | md2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 89 | md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 90 | md2_one.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 91 | md2_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 92 | md2_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 93 | md2_one.o: ../../include/openssl/symhacks.h ../cryptlib.h md2_one.c | ||
diff --git a/src/lib/libssl/src/crypto/md4/Makefile b/src/lib/libssl/src/crypto/md4/Makefile new file mode 100644 index 0000000000..0b7c8d7ad8 --- /dev/null +++ b/src/lib/libssl/src/crypto/md4/Makefile | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md4/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= md4 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=md4test.c | ||
| 23 | APPS=md4.c | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=md4_dgst.c md4_one.c | ||
| 27 | LIBOBJ=md4_dgst.o md4_one.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= md4.h | ||
| 32 | HEADER= md4_locl.h $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 53 | |||
| 54 | install: | ||
| 55 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 56 | do \ | ||
| 57 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 58 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 59 | done; | ||
| 60 | |||
| 61 | tags: | ||
| 62 | ctags $(SRC) | ||
| 63 | |||
| 64 | tests: | ||
| 65 | |||
| 66 | lint: | ||
| 67 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 68 | |||
| 69 | depend: | ||
| 70 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 71 | |||
| 72 | dclean: | ||
| 73 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 74 | mv -f Makefile.new $(MAKEFILE) | ||
| 75 | |||
| 76 | clean: | ||
| 77 | rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 78 | |||
| 79 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 80 | |||
| 81 | md4_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 82 | md4_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 83 | md4_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 84 | md4_dgst.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h | ||
| 85 | md4_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 86 | md4_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 87 | md4_dgst.o: ../md32_common.h md4_dgst.c md4_locl.h | ||
| 88 | md4_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 89 | md4_one.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h | ||
| 90 | md4_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 91 | md4_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 92 | md4_one.o: md4_one.c | ||
diff --git a/src/lib/libssl/src/crypto/md5/Makefile b/src/lib/libssl/src/crypto/md5/Makefile new file mode 100644 index 0000000000..832446fff2 --- /dev/null +++ b/src/lib/libssl/src/crypto/md5/Makefile | |||
| @@ -0,0 +1,128 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md5/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= md5 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES=-I.. -I$(TOP) -I../../include | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | MD5_ASM_OBJ= | ||
| 20 | |||
| 21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 22 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 23 | |||
| 24 | GENERAL=Makefile | ||
| 25 | TEST=md5test.c | ||
| 26 | APPS= | ||
| 27 | |||
| 28 | LIB=$(TOP)/libcrypto.a | ||
| 29 | LIBSRC=md5_dgst.c md5_one.c | ||
| 30 | LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ) | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= md5.h | ||
| 35 | HEADER= md5_locl.h $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | # elf | ||
| 50 | asm/mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl | ||
| 51 | (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > mx86-elf.s) | ||
| 52 | |||
| 53 | # a.out | ||
| 54 | asm/mx86-out.o: asm/mx86unix.cpp | ||
| 55 | $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o | ||
| 56 | |||
| 57 | # bsdi | ||
| 58 | asm/mx86bsdi.o: asm/mx86unix.cpp | ||
| 59 | $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o | ||
| 60 | |||
| 61 | asm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl | ||
| 62 | (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp) | ||
| 63 | |||
| 64 | asm/md5-sparcv8plus.o: asm/md5-sparcv9.S | ||
| 65 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
| 66 | -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S | ||
| 67 | |||
| 68 | # Old GNU assembler doesn't understand V9 instructions, so we | ||
| 69 | # hire /usr/ccs/bin/as to do the job. Note that option is called | ||
| 70 | # *-gcc27, but even gcc 2>=8 users may experience similar problem | ||
| 71 | # if they didn't bother to upgrade GNU assembler. Such users should | ||
| 72 | # not choose this option, but be adviced to *remove* GNU assembler | ||
| 73 | # or upgrade it. | ||
| 74 | asm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S | ||
| 75 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \ | ||
| 76 | /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o | ||
| 77 | |||
| 78 | asm/md5-sparcv9.o: asm/md5-sparcv9.S | ||
| 79 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
| 80 | -o asm/md5-sparcv9.o asm/md5-sparcv9.S | ||
| 81 | |||
| 82 | files: | ||
| 83 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 84 | |||
| 85 | links: | ||
| 86 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 87 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 88 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 89 | |||
| 90 | install: | ||
| 91 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 92 | do \ | ||
| 93 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 94 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 95 | done; | ||
| 96 | |||
| 97 | tags: | ||
| 98 | ctags $(SRC) | ||
| 99 | |||
| 100 | tests: | ||
| 101 | |||
| 102 | lint: | ||
| 103 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 104 | |||
| 105 | depend: | ||
| 106 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 107 | |||
| 108 | dclean: | ||
| 109 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 110 | mv -f Makefile.new $(MAKEFILE) | ||
| 111 | |||
| 112 | clean: | ||
| 113 | rm -f asm/mx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 114 | |||
| 115 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 116 | |||
| 117 | md5_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 118 | md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 119 | md5_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 120 | md5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h | ||
| 121 | md5_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 122 | md5_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 123 | md5_dgst.o: ../md32_common.h md5_dgst.c md5_locl.h | ||
| 124 | md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 125 | md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h | ||
| 126 | md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 127 | md5_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 128 | md5_one.o: md5_one.c | ||
diff --git a/src/lib/libssl/src/crypto/o_str.c b/src/lib/libssl/src/crypto/o_str.c new file mode 100644 index 0000000000..da8860491d --- /dev/null +++ b/src/lib/libssl/src/crypto/o_str.c | |||
| @@ -0,0 +1,96 @@ | |||
| 1 | /* crypto/o_str.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2003. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <ctype.h> | ||
| 60 | #include <e_os.h> | ||
| 61 | #include "o_str.h" | ||
| 62 | |||
| 63 | int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) | ||
| 64 | { | ||
| 65 | #if defined(OPENSSL_IMPLEMENTS_strncasecmp) | ||
| 66 | while (*str1 && *str2 && n) | ||
| 67 | { | ||
| 68 | int res = toupper(*str1) - toupper(*str2); | ||
| 69 | if (res) return res < 0 ? -1 : 1; | ||
| 70 | str1++; | ||
| 71 | str2++; | ||
| 72 | n--; | ||
| 73 | } | ||
| 74 | if (n == 0) | ||
| 75 | return 0; | ||
| 76 | if (*str1) | ||
| 77 | return 1; | ||
| 78 | if (*str2) | ||
| 79 | return -1; | ||
| 80 | return 0; | ||
| 81 | #else | ||
| 82 | /* Recursion hazard warning! Whenever strncasecmp is #defined as | ||
| 83 | * OPENSSL_strncasecmp, OPENSSL_IMPLEMENTS_strncasecmp must be | ||
| 84 | * defined as well. */ | ||
| 85 | return strncasecmp(str1, str2, n); | ||
| 86 | #endif | ||
| 87 | } | ||
| 88 | int OPENSSL_strcasecmp(const char *str1, const char *str2) | ||
| 89 | { | ||
| 90 | #if defined(OPENSSL_IMPLEMENTS_strncasecmp) | ||
| 91 | return OPENSSL_strncasecmp(str1, str2, (size_t)-1); | ||
| 92 | #else | ||
| 93 | return strcasecmp(str1, str2); | ||
| 94 | #endif | ||
| 95 | } | ||
| 96 | |||
diff --git a/src/lib/libssl/src/crypto/o_str.h b/src/lib/libssl/src/crypto/o_str.h new file mode 100644 index 0000000000..4a70a9e00b --- /dev/null +++ b/src/lib/libssl/src/crypto/o_str.h | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | /* crypto/o_str.h -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2003. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * licensing@OpenSSL.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #ifndef HEADER_O_STR_H | ||
| 60 | #define HEADER_O_STR_H | ||
| 61 | |||
| 62 | #include <stddef.h> /* to get size_t */ | ||
| 63 | |||
| 64 | int OPENSSL_strcasecmp(const char *str1, const char *str2); | ||
| 65 | int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n); | ||
| 66 | |||
| 67 | #endif | ||
diff --git a/src/lib/libssl/src/crypto/objects/Makefile b/src/lib/libssl/src/crypto/objects/Makefile new file mode 100644 index 0000000000..e449147129 --- /dev/null +++ b/src/lib/libssl/src/crypto/objects/Makefile | |||
| @@ -0,0 +1,122 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/objects/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= objects | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | PERL= perl | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile README | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c | ||
| 27 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= objects.h obj_mac.h | ||
| 32 | HEADER= $(EXHEADER) obj_dat.h | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: obj_dat.h lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | obj_dat.h: obj_dat.pl obj_mac.h | ||
| 47 | $(PERL) obj_dat.pl obj_mac.h obj_dat.h | ||
| 48 | |||
| 49 | # objects.pl both reads and writes obj_mac.num | ||
| 50 | obj_mac.h: objects.pl objects.txt obj_mac.num | ||
| 51 | $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h | ||
| 52 | @sleep 1; touch obj_mac.h; sleep 1 | ||
| 53 | |||
| 54 | files: | ||
| 55 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 56 | |||
| 57 | links: | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 60 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 61 | |||
| 62 | install: | ||
| 63 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 64 | do \ | ||
| 65 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 66 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 67 | done; | ||
| 68 | |||
| 69 | tags: | ||
| 70 | ctags $(SRC) | ||
| 71 | |||
| 72 | tests: | ||
| 73 | |||
| 74 | lint: | ||
| 75 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 76 | |||
| 77 | depend: | ||
| 78 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 79 | |||
| 80 | dclean: | ||
| 81 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 82 | mv -f Makefile.new $(MAKEFILE) | ||
| 83 | |||
| 84 | clean: | ||
| 85 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 86 | |||
| 87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 88 | |||
| 89 | o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 90 | o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 91 | o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 92 | o_names.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 93 | o_names.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 94 | o_names.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 95 | o_names.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 96 | o_names.o: ../../include/openssl/symhacks.h o_names.c | ||
| 97 | obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 98 | obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 99 | obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 100 | obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 101 | obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 102 | obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 103 | obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 104 | obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 105 | obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h | ||
| 106 | obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 107 | obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 108 | obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 109 | obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 110 | obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 111 | obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 112 | obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 113 | obj_err.o: ../../include/openssl/symhacks.h obj_err.c | ||
| 114 | obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 115 | obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 116 | obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 117 | obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 118 | obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 119 | obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 120 | obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 121 | obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 122 | obj_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_lib.c | ||
diff --git a/src/lib/libssl/src/crypto/ocsp/Makefile b/src/lib/libssl/src/crypto/ocsp/Makefile new file mode 100644 index 0000000000..59f7098d9e --- /dev/null +++ b/src/lib/libssl/src/crypto/ocsp/Makefile | |||
| @@ -0,0 +1,291 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/ocsp/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ocsp | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile README | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c \ | ||
| 26 | ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c | ||
| 27 | |||
| 28 | LIBOBJ= ocsp_asn.o ocsp_ext.o ocsp_ht.o ocsp_lib.o ocsp_cl.o \ | ||
| 29 | ocsp_srv.o ocsp_prn.o ocsp_vfy.o ocsp_err.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= ocsp.h | ||
| 34 | HEADER= $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | ocsp_asn.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 84 | ocsp_asn.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 85 | ocsp_asn.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 86 | ocsp_asn.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 87 | ocsp_asn.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 88 | ocsp_asn.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 89 | ocsp_asn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 90 | ocsp_asn.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h | ||
| 91 | ocsp_asn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 92 | ocsp_asn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 93 | ocsp_asn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 94 | ocsp_asn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 95 | ocsp_asn.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 96 | ocsp_asn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 97 | ocsp_asn.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 98 | ocsp_asn.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 99 | ocsp_asn.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 100 | ocsp_asn.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 101 | ocsp_asn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 102 | ocsp_asn.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 103 | ocsp_asn.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 104 | ocsp_asn.o: ../../include/openssl/x509v3.h ocsp_asn.c | ||
| 105 | ocsp_cl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 106 | ocsp_cl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 107 | ocsp_cl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 108 | ocsp_cl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 109 | ocsp_cl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 110 | ocsp_cl.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 111 | ocsp_cl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 112 | ocsp_cl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 113 | ocsp_cl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 114 | ocsp_cl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 115 | ocsp_cl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 116 | ocsp_cl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 117 | ocsp_cl.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 118 | ocsp_cl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 119 | ocsp_cl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 120 | ocsp_cl.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 121 | ocsp_cl.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 122 | ocsp_cl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 123 | ocsp_cl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 124 | ocsp_cl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 125 | ocsp_cl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 126 | ocsp_cl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 127 | ocsp_cl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 128 | ocsp_cl.o: ../../include/openssl/x509v3.h ../cryptlib.h ocsp_cl.c | ||
| 129 | ocsp_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 130 | ocsp_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 131 | ocsp_err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 132 | ocsp_err.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 133 | ocsp_err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 134 | ocsp_err.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 135 | ocsp_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 136 | ocsp_err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 137 | ocsp_err.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 138 | ocsp_err.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 139 | ocsp_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 140 | ocsp_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 141 | ocsp_err.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 142 | ocsp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 143 | ocsp_err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 144 | ocsp_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 145 | ocsp_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 146 | ocsp_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 147 | ocsp_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 148 | ocsp_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 149 | ocsp_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 150 | ocsp_err.o: ../../include/openssl/x509v3.h ocsp_err.c | ||
| 151 | ocsp_ext.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 152 | ocsp_ext.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 153 | ocsp_ext.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 154 | ocsp_ext.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 155 | ocsp_ext.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 156 | ocsp_ext.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 157 | ocsp_ext.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 158 | ocsp_ext.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 159 | ocsp_ext.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 160 | ocsp_ext.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 161 | ocsp_ext.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 162 | ocsp_ext.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 163 | ocsp_ext.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 164 | ocsp_ext.o: ../../include/openssl/opensslconf.h | ||
| 165 | ocsp_ext.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 166 | ocsp_ext.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 167 | ocsp_ext.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 168 | ocsp_ext.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 169 | ocsp_ext.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 170 | ocsp_ext.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 171 | ocsp_ext.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 172 | ocsp_ext.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 173 | ocsp_ext.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 174 | ocsp_ext.o: ../cryptlib.h ocsp_ext.c | ||
| 175 | ocsp_ht.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 176 | ocsp_ht.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 177 | ocsp_ht.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 178 | ocsp_ht.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 179 | ocsp_ht.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 180 | ocsp_ht.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 181 | ocsp_ht.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 182 | ocsp_ht.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 183 | ocsp_ht.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 184 | ocsp_ht.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 185 | ocsp_ht.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 186 | ocsp_ht.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 187 | ocsp_ht.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 188 | ocsp_ht.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 189 | ocsp_ht.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 190 | ocsp_ht.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 191 | ocsp_ht.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 192 | ocsp_ht.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 193 | ocsp_ht.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 194 | ocsp_ht.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 195 | ocsp_ht.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 196 | ocsp_ht.o: ../../include/openssl/x509v3.h ocsp_ht.c | ||
| 197 | ocsp_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 198 | ocsp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 199 | ocsp_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 200 | ocsp_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 201 | ocsp_lib.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 202 | ocsp_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 203 | ocsp_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 204 | ocsp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 205 | ocsp_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 206 | ocsp_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 207 | ocsp_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 208 | ocsp_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 209 | ocsp_lib.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 210 | ocsp_lib.o: ../../include/openssl/opensslconf.h | ||
| 211 | ocsp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 212 | ocsp_lib.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 213 | ocsp_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 214 | ocsp_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 215 | ocsp_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 216 | ocsp_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 217 | ocsp_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 218 | ocsp_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 219 | ocsp_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 220 | ocsp_lib.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 221 | ocsp_lib.o: ../cryptlib.h ocsp_lib.c | ||
| 222 | ocsp_prn.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 223 | ocsp_prn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 224 | ocsp_prn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 225 | ocsp_prn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 226 | ocsp_prn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 227 | ocsp_prn.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 228 | ocsp_prn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 229 | ocsp_prn.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 230 | ocsp_prn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 231 | ocsp_prn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 232 | ocsp_prn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 233 | ocsp_prn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 234 | ocsp_prn.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 235 | ocsp_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 236 | ocsp_prn.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 237 | ocsp_prn.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 238 | ocsp_prn.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 239 | ocsp_prn.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 240 | ocsp_prn.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 241 | ocsp_prn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 242 | ocsp_prn.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 243 | ocsp_prn.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 244 | ocsp_prn.o: ../../include/openssl/x509v3.h ocsp_prn.c | ||
| 245 | ocsp_srv.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 246 | ocsp_srv.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 247 | ocsp_srv.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 248 | ocsp_srv.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 249 | ocsp_srv.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 250 | ocsp_srv.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 251 | ocsp_srv.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 252 | ocsp_srv.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 253 | ocsp_srv.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 254 | ocsp_srv.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 255 | ocsp_srv.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 256 | ocsp_srv.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 257 | ocsp_srv.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 258 | ocsp_srv.o: ../../include/openssl/opensslconf.h | ||
| 259 | ocsp_srv.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 260 | ocsp_srv.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 261 | ocsp_srv.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 262 | ocsp_srv.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 263 | ocsp_srv.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 264 | ocsp_srv.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 265 | ocsp_srv.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 266 | ocsp_srv.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 267 | ocsp_srv.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 268 | ocsp_srv.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 269 | ocsp_srv.o: ../cryptlib.h ocsp_srv.c | ||
| 270 | ocsp_vfy.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 271 | ocsp_vfy.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 272 | ocsp_vfy.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 273 | ocsp_vfy.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 274 | ocsp_vfy.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 275 | ocsp_vfy.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 276 | ocsp_vfy.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 277 | ocsp_vfy.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 278 | ocsp_vfy.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 279 | ocsp_vfy.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 280 | ocsp_vfy.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 281 | ocsp_vfy.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 282 | ocsp_vfy.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 283 | ocsp_vfy.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 284 | ocsp_vfy.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 285 | ocsp_vfy.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 286 | ocsp_vfy.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 287 | ocsp_vfy.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 288 | ocsp_vfy.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 289 | ocsp_vfy.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 290 | ocsp_vfy.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 291 | ocsp_vfy.o: ../../include/openssl/x509v3.h ocsp_vfy.c | ||
diff --git a/src/lib/libssl/src/crypto/pem/Makefile b/src/lib/libssl/src/crypto/pem/Makefile new file mode 100644 index 0000000000..f3dfea2ac8 --- /dev/null +++ b/src/lib/libssl/src/crypto/pem/Makefile | |||
| @@ -0,0 +1,335 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/pem/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pem | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c \ | ||
| 26 | pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c | ||
| 27 | |||
| 28 | LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o pem_err.o \ | ||
| 29 | pem_x509.o pem_xaux.o pem_oth.o pem_pk8.o pem_pkey.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= pem.h pem2.h | ||
| 34 | HEADER= $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | pem_all.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 84 | pem_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 85 | pem_all.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 86 | pem_all.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 87 | pem_all.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 88 | pem_all.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 89 | pem_all.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 90 | pem_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 91 | pem_all.o: ../../include/openssl/fips.h ../../include/openssl/idea.h | ||
| 92 | pem_all.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 93 | pem_all.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 94 | pem_all.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 95 | pem_all.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 96 | pem_all.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 97 | pem_all.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 98 | pem_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 99 | pem_all.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 100 | pem_all.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 101 | pem_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 102 | pem_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 103 | pem_all.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 104 | pem_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 105 | pem_all.o: ../cryptlib.h pem_all.c | ||
| 106 | pem_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 107 | pem_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 108 | pem_err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 109 | pem_err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 110 | pem_err.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 111 | pem_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 112 | pem_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 113 | pem_err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 114 | pem_err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 115 | pem_err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 116 | pem_err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 117 | pem_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 118 | pem_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 119 | pem_err.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 120 | pem_err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 121 | pem_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 122 | pem_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 123 | pem_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 124 | pem_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 125 | pem_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 126 | pem_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 127 | pem_err.o: pem_err.c | ||
| 128 | pem_info.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 129 | pem_info.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 130 | pem_info.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 131 | pem_info.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 132 | pem_info.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 133 | pem_info.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 134 | pem_info.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 135 | pem_info.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 136 | pem_info.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 137 | pem_info.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 138 | pem_info.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 139 | pem_info.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 140 | pem_info.o: ../../include/openssl/opensslconf.h | ||
| 141 | pem_info.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 142 | pem_info.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 143 | pem_info.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 144 | pem_info.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 145 | pem_info.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 146 | pem_info.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 147 | pem_info.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 148 | pem_info.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 149 | pem_info.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 150 | pem_info.o: ../cryptlib.h pem_info.c | ||
| 151 | pem_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 152 | pem_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 153 | pem_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 154 | pem_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 155 | pem_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 156 | pem_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 157 | pem_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 158 | pem_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 159 | pem_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 160 | pem_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 161 | pem_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 162 | pem_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 163 | pem_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 164 | pem_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 165 | pem_lib.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h | ||
| 166 | pem_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 167 | pem_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 168 | pem_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 169 | pem_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 170 | pem_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 171 | pem_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 172 | pem_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 173 | pem_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_lib.c | ||
| 174 | pem_oth.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 175 | pem_oth.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 176 | pem_oth.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 177 | pem_oth.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 178 | pem_oth.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 179 | pem_oth.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 180 | pem_oth.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 181 | pem_oth.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 182 | pem_oth.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 183 | pem_oth.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 184 | pem_oth.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 185 | pem_oth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 186 | pem_oth.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 187 | pem_oth.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 188 | pem_oth.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 189 | pem_oth.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 190 | pem_oth.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 191 | pem_oth.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 192 | pem_oth.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 193 | pem_oth.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 194 | pem_oth.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 195 | pem_oth.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 196 | pem_oth.o: ../cryptlib.h pem_oth.c | ||
| 197 | pem_pk8.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 198 | pem_pk8.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 199 | pem_pk8.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 200 | pem_pk8.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 201 | pem_pk8.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 202 | pem_pk8.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 203 | pem_pk8.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 204 | pem_pk8.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 205 | pem_pk8.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 206 | pem_pk8.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 207 | pem_pk8.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 208 | pem_pk8.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 209 | pem_pk8.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 210 | pem_pk8.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 211 | pem_pk8.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h | ||
| 212 | pem_pk8.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 213 | pem_pk8.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 214 | pem_pk8.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 215 | pem_pk8.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 216 | pem_pk8.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 217 | pem_pk8.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 218 | pem_pk8.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 219 | pem_pk8.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_pk8.c | ||
| 220 | pem_pkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 221 | pem_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 222 | pem_pkey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 223 | pem_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 224 | pem_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 225 | pem_pkey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 226 | pem_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 227 | pem_pkey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 228 | pem_pkey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 229 | pem_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 230 | pem_pkey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 231 | pem_pkey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 232 | pem_pkey.o: ../../include/openssl/opensslconf.h | ||
| 233 | pem_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 234 | pem_pkey.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 235 | pem_pkey.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 236 | pem_pkey.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 237 | pem_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 238 | pem_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 239 | pem_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 240 | pem_pkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 241 | pem_pkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 242 | pem_pkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 243 | pem_pkey.o: ../cryptlib.h pem_pkey.c | ||
| 244 | pem_seal.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 245 | pem_seal.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 246 | pem_seal.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 247 | pem_seal.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 248 | pem_seal.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 249 | pem_seal.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 250 | pem_seal.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 251 | pem_seal.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 252 | pem_seal.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 253 | pem_seal.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 254 | pem_seal.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 255 | pem_seal.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 256 | pem_seal.o: ../../include/openssl/opensslconf.h | ||
| 257 | pem_seal.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 258 | pem_seal.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 259 | pem_seal.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 260 | pem_seal.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 261 | pem_seal.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 262 | pem_seal.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 263 | pem_seal.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 264 | pem_seal.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 265 | pem_seal.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 266 | pem_seal.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_seal.c | ||
| 267 | pem_sign.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 268 | pem_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 269 | pem_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 270 | pem_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 271 | pem_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 272 | pem_sign.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 273 | pem_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 274 | pem_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 275 | pem_sign.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 276 | pem_sign.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 277 | pem_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 278 | pem_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 279 | pem_sign.o: ../../include/openssl/opensslconf.h | ||
| 280 | pem_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 281 | pem_sign.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 282 | pem_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 283 | pem_sign.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 284 | pem_sign.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 285 | pem_sign.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 286 | pem_sign.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 287 | pem_sign.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 288 | pem_sign.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 289 | pem_sign.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_sign.c | ||
| 290 | pem_x509.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 291 | pem_x509.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 292 | pem_x509.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 293 | pem_x509.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 294 | pem_x509.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 295 | pem_x509.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 296 | pem_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 297 | pem_x509.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 298 | pem_x509.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 299 | pem_x509.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 300 | pem_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 301 | pem_x509.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 302 | pem_x509.o: ../../include/openssl/opensslconf.h | ||
| 303 | pem_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 304 | pem_x509.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 305 | pem_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 306 | pem_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 307 | pem_x509.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 308 | pem_x509.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 309 | pem_x509.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 310 | pem_x509.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 311 | pem_x509.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 312 | pem_x509.o: ../cryptlib.h pem_x509.c | ||
| 313 | pem_xaux.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 314 | pem_xaux.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 315 | pem_xaux.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 316 | pem_xaux.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 317 | pem_xaux.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 318 | pem_xaux.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 319 | pem_xaux.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 320 | pem_xaux.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 321 | pem_xaux.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 322 | pem_xaux.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 323 | pem_xaux.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 324 | pem_xaux.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 325 | pem_xaux.o: ../../include/openssl/opensslconf.h | ||
| 326 | pem_xaux.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 327 | pem_xaux.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 328 | pem_xaux.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 329 | pem_xaux.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 330 | pem_xaux.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 331 | pem_xaux.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 332 | pem_xaux.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 333 | pem_xaux.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 334 | pem_xaux.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 335 | pem_xaux.o: ../cryptlib.h pem_xaux.c | ||
diff --git a/src/lib/libssl/src/crypto/pkcs12/Makefile b/src/lib/libssl/src/crypto/pkcs12/Makefile new file mode 100644 index 0000000000..854b641f7c --- /dev/null +++ b/src/lib/libssl/src/crypto/pkcs12/Makefile | |||
| @@ -0,0 +1,415 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/pkcs12/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pkcs12 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c \ | ||
| 26 | p12_init.c p12_key.c p12_kiss.c p12_mutl.c\ | ||
| 27 | p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c | ||
| 28 | LIBOBJ= p12_add.o p12_asn.o p12_attr.o p12_crpt.o p12_crt.o p12_decr.o \ | ||
| 29 | p12_init.o p12_key.o p12_kiss.o p12_mutl.o\ | ||
| 30 | p12_utl.o p12_npas.o pk12err.o p12_p8d.o p12_p8e.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= pkcs12.h | ||
| 35 | HEADER= $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | test: | ||
| 43 | |||
| 44 | all: lib | ||
| 45 | |||
| 46 | lib: $(LIBOBJ) | ||
| 47 | $(AR) $(LIB) $(LIBOBJ) | ||
| 48 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 49 | @touch lib | ||
| 50 | |||
| 51 | files: | ||
| 52 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 53 | |||
| 54 | links: | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 58 | |||
| 59 | install: | ||
| 60 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 61 | do \ | ||
| 62 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 63 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 64 | done; | ||
| 65 | |||
| 66 | tags: | ||
| 67 | ctags $(SRC) | ||
| 68 | |||
| 69 | tests: | ||
| 70 | |||
| 71 | lint: | ||
| 72 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 73 | |||
| 74 | depend: | ||
| 75 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 76 | |||
| 77 | dclean: | ||
| 78 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 79 | mv -f Makefile.new $(MAKEFILE) | ||
| 80 | |||
| 81 | clean: | ||
| 82 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 83 | |||
| 84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 85 | |||
| 86 | p12_add.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 87 | p12_add.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 88 | p12_add.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 89 | p12_add.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 90 | p12_add.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 91 | p12_add.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 92 | p12_add.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 93 | p12_add.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 94 | p12_add.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 95 | p12_add.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 96 | p12_add.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 97 | p12_add.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 98 | p12_add.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 99 | p12_add.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 100 | p12_add.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 101 | p12_add.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 102 | p12_add.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 103 | p12_add.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 104 | p12_add.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 105 | p12_add.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 106 | p12_add.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 107 | p12_add.o: ../cryptlib.h p12_add.c | ||
| 108 | p12_asn.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 109 | p12_asn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 110 | p12_asn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 111 | p12_asn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 112 | p12_asn.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 113 | p12_asn.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 114 | p12_asn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 115 | p12_asn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 116 | p12_asn.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 117 | p12_asn.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 118 | p12_asn.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 119 | p12_asn.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 120 | p12_asn.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 121 | p12_asn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 122 | p12_asn.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 123 | p12_asn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 124 | p12_asn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 125 | p12_asn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 126 | p12_asn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 127 | p12_asn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 128 | p12_asn.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 129 | p12_asn.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_asn.c | ||
| 130 | p12_attr.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 131 | p12_attr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 132 | p12_attr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 133 | p12_attr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 134 | p12_attr.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 135 | p12_attr.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 136 | p12_attr.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 137 | p12_attr.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 138 | p12_attr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 139 | p12_attr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 140 | p12_attr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 141 | p12_attr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 142 | p12_attr.o: ../../include/openssl/opensslconf.h | ||
| 143 | p12_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 144 | p12_attr.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 145 | p12_attr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 146 | p12_attr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 147 | p12_attr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 148 | p12_attr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 149 | p12_attr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 150 | p12_attr.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 151 | p12_attr.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_attr.c | ||
| 152 | p12_crpt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 153 | p12_crpt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 154 | p12_crpt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 155 | p12_crpt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 156 | p12_crpt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 157 | p12_crpt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 158 | p12_crpt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 159 | p12_crpt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 160 | p12_crpt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 161 | p12_crpt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 162 | p12_crpt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 163 | p12_crpt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 164 | p12_crpt.o: ../../include/openssl/opensslconf.h | ||
| 165 | p12_crpt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 166 | p12_crpt.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 167 | p12_crpt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 168 | p12_crpt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 169 | p12_crpt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 170 | p12_crpt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 171 | p12_crpt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 172 | p12_crpt.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 173 | p12_crpt.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_crpt.c | ||
| 174 | p12_crt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 175 | p12_crt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 176 | p12_crt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 177 | p12_crt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 178 | p12_crt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 179 | p12_crt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 180 | p12_crt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 181 | p12_crt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 182 | p12_crt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 183 | p12_crt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 184 | p12_crt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 185 | p12_crt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 186 | p12_crt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 187 | p12_crt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 188 | p12_crt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 189 | p12_crt.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 190 | p12_crt.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 191 | p12_crt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 192 | p12_crt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 193 | p12_crt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 194 | p12_crt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 195 | p12_crt.o: ../cryptlib.h p12_crt.c | ||
| 196 | p12_decr.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 197 | p12_decr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 198 | p12_decr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 199 | p12_decr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 200 | p12_decr.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 201 | p12_decr.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 202 | p12_decr.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 203 | p12_decr.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 204 | p12_decr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 205 | p12_decr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 206 | p12_decr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 207 | p12_decr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 208 | p12_decr.o: ../../include/openssl/opensslconf.h | ||
| 209 | p12_decr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 210 | p12_decr.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 211 | p12_decr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 212 | p12_decr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 213 | p12_decr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 214 | p12_decr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 215 | p12_decr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 216 | p12_decr.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 217 | p12_decr.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_decr.c | ||
| 218 | p12_init.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 219 | p12_init.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 220 | p12_init.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 221 | p12_init.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 222 | p12_init.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 223 | p12_init.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 224 | p12_init.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 225 | p12_init.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 226 | p12_init.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 227 | p12_init.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 228 | p12_init.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 229 | p12_init.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 230 | p12_init.o: ../../include/openssl/opensslconf.h | ||
| 231 | p12_init.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 232 | p12_init.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 233 | p12_init.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 234 | p12_init.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 235 | p12_init.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 236 | p12_init.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 237 | p12_init.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 238 | p12_init.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 239 | p12_init.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_init.c | ||
| 240 | p12_key.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 241 | p12_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 242 | p12_key.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 243 | p12_key.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 244 | p12_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 245 | p12_key.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 246 | p12_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 247 | p12_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 248 | p12_key.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 249 | p12_key.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 250 | p12_key.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 251 | p12_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 252 | p12_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 253 | p12_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 254 | p12_key.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 255 | p12_key.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 256 | p12_key.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 257 | p12_key.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 258 | p12_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 259 | p12_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 260 | p12_key.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 261 | p12_key.o: ../cryptlib.h p12_key.c | ||
| 262 | p12_kiss.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 263 | p12_kiss.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 264 | p12_kiss.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 265 | p12_kiss.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 266 | p12_kiss.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 267 | p12_kiss.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 268 | p12_kiss.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 269 | p12_kiss.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 270 | p12_kiss.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 271 | p12_kiss.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 272 | p12_kiss.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 273 | p12_kiss.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 274 | p12_kiss.o: ../../include/openssl/opensslconf.h | ||
| 275 | p12_kiss.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 276 | p12_kiss.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 277 | p12_kiss.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 278 | p12_kiss.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 279 | p12_kiss.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 280 | p12_kiss.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 281 | p12_kiss.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 282 | p12_kiss.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 283 | p12_kiss.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_kiss.c | ||
| 284 | p12_mutl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 285 | p12_mutl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 286 | p12_mutl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 287 | p12_mutl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 288 | p12_mutl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 289 | p12_mutl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 290 | p12_mutl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 291 | p12_mutl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 292 | p12_mutl.o: ../../include/openssl/hmac.h ../../include/openssl/idea.h | ||
| 293 | p12_mutl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 294 | p12_mutl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 295 | p12_mutl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 296 | p12_mutl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 297 | p12_mutl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 298 | p12_mutl.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 299 | p12_mutl.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 300 | p12_mutl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 301 | p12_mutl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 302 | p12_mutl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 303 | p12_mutl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 304 | p12_mutl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 305 | p12_mutl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 306 | p12_mutl.o: ../cryptlib.h p12_mutl.c | ||
| 307 | p12_npas.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 308 | p12_npas.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 309 | p12_npas.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 310 | p12_npas.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 311 | p12_npas.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 312 | p12_npas.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 313 | p12_npas.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 314 | p12_npas.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 315 | p12_npas.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 316 | p12_npas.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 317 | p12_npas.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 318 | p12_npas.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 319 | p12_npas.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 320 | p12_npas.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 321 | p12_npas.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 322 | p12_npas.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 323 | p12_npas.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 324 | p12_npas.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 325 | p12_npas.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 326 | p12_npas.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 327 | p12_npas.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 328 | p12_npas.o: ../../include/openssl/x509_vfy.h p12_npas.c | ||
| 329 | p12_p8d.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 330 | p12_p8d.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 331 | p12_p8d.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 332 | p12_p8d.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 333 | p12_p8d.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 334 | p12_p8d.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 335 | p12_p8d.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 336 | p12_p8d.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 337 | p12_p8d.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 338 | p12_p8d.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 339 | p12_p8d.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 340 | p12_p8d.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 341 | p12_p8d.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 342 | p12_p8d.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 343 | p12_p8d.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 344 | p12_p8d.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 345 | p12_p8d.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 346 | p12_p8d.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 347 | p12_p8d.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 348 | p12_p8d.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 349 | p12_p8d.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 350 | p12_p8d.o: ../cryptlib.h p12_p8d.c | ||
| 351 | p12_p8e.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 352 | p12_p8e.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 353 | p12_p8e.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 354 | p12_p8e.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 355 | p12_p8e.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 356 | p12_p8e.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 357 | p12_p8e.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 358 | p12_p8e.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 359 | p12_p8e.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 360 | p12_p8e.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 361 | p12_p8e.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 362 | p12_p8e.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 363 | p12_p8e.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 364 | p12_p8e.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 365 | p12_p8e.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 366 | p12_p8e.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 367 | p12_p8e.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 368 | p12_p8e.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 369 | p12_p8e.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 370 | p12_p8e.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 371 | p12_p8e.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 372 | p12_p8e.o: ../cryptlib.h p12_p8e.c | ||
| 373 | p12_utl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 374 | p12_utl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 375 | p12_utl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 376 | p12_utl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 377 | p12_utl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 378 | p12_utl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 379 | p12_utl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 380 | p12_utl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 381 | p12_utl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 382 | p12_utl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 383 | p12_utl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 384 | p12_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 385 | p12_utl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 386 | p12_utl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 387 | p12_utl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 388 | p12_utl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 389 | p12_utl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 390 | p12_utl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 391 | p12_utl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 392 | p12_utl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 393 | p12_utl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 394 | p12_utl.o: ../cryptlib.h p12_utl.c | ||
| 395 | pk12err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 396 | pk12err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 397 | pk12err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 398 | pk12err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 399 | pk12err.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 400 | pk12err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 401 | pk12err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 402 | pk12err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 403 | pk12err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 404 | pk12err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 405 | pk12err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 406 | pk12err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 407 | pk12err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 408 | pk12err.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 409 | pk12err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 410 | pk12err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 411 | pk12err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 412 | pk12err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 413 | pk12err.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 414 | pk12err.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 415 | pk12err.o: ../../include/openssl/x509_vfy.h pk12err.c | ||
diff --git a/src/lib/libssl/src/crypto/pkcs7/Makefile b/src/lib/libssl/src/crypto/pkcs7/Makefile new file mode 100644 index 0000000000..f15c65f690 --- /dev/null +++ b/src/lib/libssl/src/crypto/pkcs7/Makefile | |||
| @@ -0,0 +1,241 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/pkcs7/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pkcs7 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | PEX_LIBS= | ||
| 19 | EX_LIBS= | ||
| 20 | |||
| 21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 22 | |||
| 23 | GENERAL=Makefile README | ||
| 24 | TEST= | ||
| 25 | APPS= | ||
| 26 | |||
| 27 | LIB=$(TOP)/libcrypto.a | ||
| 28 | LIBSRC= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c \ | ||
| 29 | pk7_mime.c | ||
| 30 | LIBOBJ= pk7_asn1.o pk7_lib.o pkcs7err.o pk7_doit.o pk7_smime.o pk7_attr.o \ | ||
| 31 | pk7_mime.o | ||
| 32 | |||
| 33 | SRC= $(LIBSRC) | ||
| 34 | |||
| 35 | EXHEADER= pkcs7.h | ||
| 36 | HEADER= $(EXHEADER) | ||
| 37 | |||
| 38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 39 | |||
| 40 | top: | ||
| 41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 42 | |||
| 43 | test: | ||
| 44 | |||
| 45 | all: lib | ||
| 46 | |||
| 47 | testapps: enc dec sign verify | ||
| 48 | |||
| 49 | enc: enc.o lib | ||
| 50 | $(CC) $(CFLAGS) -o enc enc.o $(PEX_LIBS) $(LIB) $(EX_LIBS) | ||
| 51 | |||
| 52 | dec: dec.o lib | ||
| 53 | $(CC) $(CFLAGS) -o dec dec.o $(PEX_LIBS) $(LIB) $(EX_LIBS) | ||
| 54 | |||
| 55 | sign: sign.o lib | ||
| 56 | $(CC) $(CFLAGS) -o sign sign.o $(PEX_LIBS) $(LIB) $(EX_LIBS) | ||
| 57 | |||
| 58 | verify: verify.o example.o lib | ||
| 59 | $(CC) $(CFLAGS) -o verify verify.o $(PEX_LIBS) example.o $(LIB) $(EX_LIBS) | ||
| 60 | |||
| 61 | lib: $(LIBOBJ) | ||
| 62 | $(AR) $(LIB) $(LIBOBJ) | ||
| 63 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 64 | @touch lib | ||
| 65 | |||
| 66 | files: | ||
| 67 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 68 | |||
| 69 | links: | ||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 73 | |||
| 74 | install: | ||
| 75 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 76 | do \ | ||
| 77 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 78 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 79 | done; | ||
| 80 | |||
| 81 | tags: | ||
| 82 | ctags $(SRC) | ||
| 83 | |||
| 84 | tests: | ||
| 85 | |||
| 86 | lint: | ||
| 87 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 88 | |||
| 89 | depend: | ||
| 90 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 91 | |||
| 92 | dclean: | ||
| 93 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 94 | mv -f Makefile.new $(MAKEFILE) | ||
| 95 | |||
| 96 | clean: | ||
| 97 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff enc dec sign verify | ||
| 98 | |||
| 99 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 100 | |||
| 101 | pk7_asn1.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 102 | pk7_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 103 | pk7_asn1.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 104 | pk7_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 105 | pk7_asn1.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 106 | pk7_asn1.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 107 | pk7_asn1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 108 | pk7_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 109 | pk7_asn1.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 110 | pk7_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 111 | pk7_asn1.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 112 | pk7_asn1.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 113 | pk7_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 114 | pk7_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 115 | pk7_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 116 | pk7_asn1.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 117 | pk7_asn1.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 118 | pk7_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 119 | pk7_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 120 | pk7_asn1.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 121 | pk7_asn1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 122 | pk7_asn1.o: ../cryptlib.h pk7_asn1.c | ||
| 123 | pk7_attr.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 124 | pk7_attr.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 125 | pk7_attr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 126 | pk7_attr.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 127 | pk7_attr.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 128 | pk7_attr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 129 | pk7_attr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 130 | pk7_attr.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 131 | pk7_attr.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 132 | pk7_attr.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 133 | pk7_attr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 134 | pk7_attr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 135 | pk7_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 136 | pk7_attr.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 137 | pk7_attr.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 138 | pk7_attr.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 139 | pk7_attr.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 140 | pk7_attr.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 141 | pk7_attr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 142 | pk7_attr.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 143 | pk7_attr.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 144 | pk7_attr.o: pk7_attr.c | ||
| 145 | pk7_doit.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 146 | pk7_doit.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 147 | pk7_doit.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 148 | pk7_doit.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 149 | pk7_doit.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 150 | pk7_doit.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 151 | pk7_doit.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 152 | pk7_doit.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 153 | pk7_doit.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 154 | pk7_doit.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 155 | pk7_doit.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 156 | pk7_doit.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 157 | pk7_doit.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 158 | pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 159 | pk7_doit.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 160 | pk7_doit.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 161 | pk7_doit.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 162 | pk7_doit.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 163 | pk7_doit.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 164 | pk7_doit.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 165 | pk7_doit.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 166 | pk7_doit.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 167 | pk7_doit.o: ../cryptlib.h pk7_doit.c | ||
| 168 | pk7_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 169 | pk7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 170 | pk7_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 171 | pk7_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 172 | pk7_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 173 | pk7_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 174 | pk7_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 175 | pk7_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 176 | pk7_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 177 | pk7_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 178 | pk7_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 179 | pk7_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 180 | pk7_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 181 | pk7_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 182 | pk7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 183 | pk7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 184 | pk7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 185 | pk7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 186 | pk7_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 187 | pk7_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 188 | pk7_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_lib.c | ||
| 189 | pk7_mime.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 190 | pk7_mime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 191 | pk7_mime.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 192 | pk7_mime.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 193 | pk7_mime.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 194 | pk7_mime.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 195 | pk7_mime.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 196 | pk7_mime.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 197 | pk7_mime.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 198 | pk7_mime.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 199 | pk7_mime.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 200 | pk7_mime.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 201 | pk7_mime.o: ../../include/openssl/opensslconf.h | ||
| 202 | pk7_mime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 203 | pk7_mime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 204 | pk7_mime.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 205 | pk7_mime.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 206 | pk7_mime.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 207 | pk7_mime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 208 | pk7_mime.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 209 | pk7_mime.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 210 | pk7_mime.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_mime.c | ||
| 211 | pk7_smime.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 212 | pk7_smime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 213 | pk7_smime.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 214 | pk7_smime.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 215 | pk7_smime.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 216 | pk7_smime.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 217 | pk7_smime.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 218 | pk7_smime.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 219 | pk7_smime.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 220 | pk7_smime.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 221 | pk7_smime.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 222 | pk7_smime.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 223 | pk7_smime.o: ../../include/openssl/objects.h | ||
| 224 | pk7_smime.o: ../../include/openssl/opensslconf.h | ||
| 225 | pk7_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 226 | pk7_smime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 227 | pk7_smime.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 228 | pk7_smime.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 229 | pk7_smime.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 230 | pk7_smime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 231 | pk7_smime.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 232 | pk7_smime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 233 | pk7_smime.o: ../../include/openssl/x509v3.h ../cryptlib.h pk7_smime.c | ||
| 234 | pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 235 | pkcs7err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 236 | pkcs7err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 237 | pkcs7err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 238 | pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 239 | pkcs7err.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 240 | pkcs7err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 241 | pkcs7err.o: pkcs7err.c | ||
diff --git a/src/lib/libssl/src/crypto/rand/Makefile b/src/lib/libssl/src/crypto/rand/Makefile new file mode 100644 index 0000000000..665eaa18e5 --- /dev/null +++ b/src/lib/libssl/src/crypto/rand/Makefile | |||
| @@ -0,0 +1,196 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rand/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rand | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= randtest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c \ | ||
| 26 | rand_win.c rand_unix.c rand_os2.c | ||
| 27 | LIBOBJ=md_rand.o randfile.o rand_lib.o rand_err.o rand_egd.o \ | ||
| 28 | rand_win.o rand_unix.o rand_os2.o | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= rand.h | ||
| 33 | HEADER= $(EXHEADER) | ||
| 34 | |||
| 35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 36 | |||
| 37 | top: | ||
| 38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 39 | |||
| 40 | all: lib | ||
| 41 | |||
| 42 | lib: $(LIBOBJ) | ||
| 43 | $(AR) $(LIB) $(LIBOBJ) | ||
| 44 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | files: | ||
| 48 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 49 | |||
| 50 | links: | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | md_rand.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 83 | md_rand.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 84 | md_rand.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 85 | md_rand.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 86 | md_rand.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 87 | md_rand.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 88 | md_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 89 | md_rand.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | ||
| 90 | md_rand.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 91 | md_rand.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 92 | md_rand.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 93 | md_rand.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 94 | md_rand.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 95 | md_rand.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 96 | md_rand.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 97 | md_rand.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 98 | md_rand.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 99 | md_rand.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 100 | md_rand.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 101 | md_rand.o: ../../include/openssl/ui_compat.h md_rand.c rand_lcl.h | ||
| 102 | rand_egd.o: ../../include/openssl/buffer.h ../../include/openssl/e_os2.h | ||
| 103 | rand_egd.o: ../../include/openssl/opensslconf.h | ||
| 104 | rand_egd.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 105 | rand_egd.o: rand_egd.c | ||
| 106 | rand_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 107 | rand_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 108 | rand_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 109 | rand_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 110 | rand_err.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 111 | rand_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 112 | rand_err.o: rand_err.c | ||
| 113 | rand_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 114 | rand_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 115 | rand_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 116 | rand_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 117 | rand_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 118 | rand_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 119 | rand_lib.o: ../../include/openssl/err.h ../../include/openssl/fips.h | ||
| 120 | rand_lib.o: ../../include/openssl/fips_rand.h ../../include/openssl/lhash.h | ||
| 121 | rand_lib.o: ../../include/openssl/opensslconf.h | ||
| 122 | rand_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 123 | rand_lib.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 124 | rand_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 125 | rand_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 126 | rand_lib.o: ../../include/openssl/ui_compat.h ../cryptlib.h rand_lib.c | ||
| 127 | rand_os2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 128 | rand_os2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 129 | rand_os2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 130 | rand_os2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 131 | rand_os2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 132 | rand_os2.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 133 | rand_os2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 134 | rand_os2.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 135 | rand_os2.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 136 | rand_os2.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 137 | rand_os2.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 138 | rand_os2.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 139 | rand_os2.o: ../../include/openssl/opensslconf.h | ||
| 140 | rand_os2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 141 | rand_os2.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 142 | rand_os2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 143 | rand_os2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 144 | rand_os2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 145 | rand_os2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 146 | rand_os2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 147 | rand_os2.o: ../cryptlib.h rand_lcl.h rand_os2.c | ||
| 148 | rand_unix.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 149 | rand_unix.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 150 | rand_unix.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 151 | rand_unix.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 152 | rand_unix.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 153 | rand_unix.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 154 | rand_unix.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 155 | rand_unix.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 156 | rand_unix.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 157 | rand_unix.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 158 | rand_unix.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 159 | rand_unix.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 160 | rand_unix.o: ../../include/openssl/opensslconf.h | ||
| 161 | rand_unix.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 162 | rand_unix.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 163 | rand_unix.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 164 | rand_unix.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 165 | rand_unix.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 166 | rand_unix.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 167 | rand_unix.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 168 | rand_unix.o: ../cryptlib.h rand_lcl.h rand_unix.c | ||
| 169 | rand_win.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 170 | rand_win.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 171 | rand_win.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 172 | rand_win.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 173 | rand_win.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 174 | rand_win.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 175 | rand_win.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 176 | rand_win.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 177 | rand_win.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 178 | rand_win.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 179 | rand_win.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 180 | rand_win.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 181 | rand_win.o: ../../include/openssl/opensslconf.h | ||
| 182 | rand_win.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 183 | rand_win.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 184 | rand_win.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 185 | rand_win.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 186 | rand_win.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 187 | rand_win.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 188 | rand_win.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 189 | rand_win.o: ../cryptlib.h rand_lcl.h rand_win.c | ||
| 190 | randfile.o: ../../e_os.h ../../include/openssl/buffer.h | ||
| 191 | randfile.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 192 | randfile.o: ../../include/openssl/opensslconf.h | ||
| 193 | randfile.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 194 | randfile.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 195 | randfile.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 196 | randfile.o: randfile.c | ||
diff --git a/src/lib/libssl/src/crypto/rc2/Makefile b/src/lib/libssl/src/crypto/rc2/Makefile new file mode 100644 index 0000000000..18edaca6c6 --- /dev/null +++ b/src/lib/libssl/src/crypto/rc2/Makefile | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rc2/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rc2 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=rc2test.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c | ||
| 26 | LIBOBJ=rc2_ecb.o rc2_skey.o rc2_cbc.o rc2cfb64.o rc2ofb64.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= rc2.h | ||
| 31 | HEADER= rc2_locl.h $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | rc2_cbc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h | ||
| 81 | rc2_cbc.o: rc2_cbc.c rc2_locl.h | ||
| 82 | rc2_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 83 | rc2_ecb.o: ../../include/openssl/rc2.h rc2_ecb.c rc2_locl.h | ||
| 84 | rc2_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 85 | rc2_skey.o: ../../include/openssl/opensslconf.h | ||
| 86 | rc2_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h | ||
| 87 | rc2_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 88 | rc2_skey.o: ../../include/openssl/symhacks.h rc2_locl.h rc2_skey.c | ||
| 89 | rc2cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h | ||
| 90 | rc2cfb64.o: rc2_locl.h rc2cfb64.c | ||
| 91 | rc2ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h | ||
| 92 | rc2ofb64.o: rc2_locl.h rc2ofb64.c | ||
diff --git a/src/lib/libssl/src/crypto/rc4/Makefile b/src/lib/libssl/src/crypto/rc4/Makefile new file mode 100644 index 0000000000..64e06924f4 --- /dev/null +++ b/src/lib/libssl/src/crypto/rc4/Makefile | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rc4/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rc4 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | RC4_ENC=rc4_enc.o | ||
| 20 | # or use | ||
| 21 | #RC4_ENC=asm/rx86-elf.o | ||
| 22 | #RC4_ENC=asm/rx86-out.o | ||
| 23 | #RC4_ENC=asm/rx86-sol.o | ||
| 24 | #RC4_ENC=asm/rx86bdsi.o | ||
| 25 | |||
| 26 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 27 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 28 | |||
| 29 | GENERAL=Makefile | ||
| 30 | TEST=rc4test.c | ||
| 31 | APPS= | ||
| 32 | |||
| 33 | LIB=$(TOP)/libcrypto.a | ||
| 34 | LIBSRC=rc4_skey.c rc4_enc.c | ||
| 35 | LIBOBJ=rc4_skey.o $(RC4_ENC) | ||
| 36 | |||
| 37 | SRC= $(LIBSRC) | ||
| 38 | |||
| 39 | EXHEADER= rc4.h | ||
| 40 | HEADER= $(EXHEADER) rc4_locl.h | ||
| 41 | |||
| 42 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 43 | |||
| 44 | top: | ||
| 45 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 46 | |||
| 47 | all: lib | ||
| 48 | |||
| 49 | lib: $(LIBOBJ) | ||
| 50 | $(AR) $(LIB) $(LIBOBJ) | ||
| 51 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 52 | @touch lib | ||
| 53 | |||
| 54 | # elf | ||
| 55 | asm/rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
| 56 | (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > rx86-elf.s) | ||
| 57 | |||
| 58 | # a.out | ||
| 59 | asm/rx86-out.o: asm/rx86unix.cpp | ||
| 60 | $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o | ||
| 61 | |||
| 62 | # bsdi | ||
| 63 | asm/rx86bsdi.o: asm/rx86unix.cpp | ||
| 64 | $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o | ||
| 65 | |||
| 66 | asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
| 67 | (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp) | ||
| 68 | |||
| 69 | asm/rc4-amd64.s: asm/rc4-amd64.pl; $(PERL) asm/rc4-amd64.pl $@ | ||
| 70 | |||
| 71 | asm/rc4-ia64.s: asm/rc4-ia64.S | ||
| 72 | $(CC) $(CFLAGS) -E asm/rc4-ia64.S > $@ | ||
| 73 | |||
| 74 | files: | ||
| 75 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 76 | |||
| 77 | links: | ||
| 78 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 79 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 80 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 81 | |||
| 82 | install: | ||
| 83 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 84 | do \ | ||
| 85 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 86 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 87 | done; | ||
| 88 | |||
| 89 | tags: | ||
| 90 | ctags $(SRC) | ||
| 91 | |||
| 92 | tests: | ||
| 93 | |||
| 94 | lint: | ||
| 95 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 96 | |||
| 97 | depend: | ||
| 98 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 99 | |||
| 100 | dclean: | ||
| 101 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 102 | mv -f Makefile.new $(MAKEFILE) | ||
| 103 | |||
| 104 | clean: | ||
| 105 | rm -f asm/rx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
| 106 | |||
| 107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 108 | |||
| 109 | rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 110 | rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 111 | rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 112 | rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 113 | rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
| 114 | rc4_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 115 | rc4_enc.o: ../../include/openssl/symhacks.h ../cryptlib.h rc4_enc.c rc4_locl.h | ||
| 116 | rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 117 | rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 118 | rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 119 | rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 120 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
| 121 | rc4_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 122 | rc4_skey.o: ../../include/openssl/symhacks.h ../cryptlib.h rc4_locl.h | ||
| 123 | rc4_skey.o: rc4_skey.c | ||
diff --git a/src/lib/libssl/src/crypto/rc4/asm/rc4-ia64.S b/src/lib/libssl/src/crypto/rc4/asm/rc4-ia64.S new file mode 100644 index 0000000000..b517d2e88f --- /dev/null +++ b/src/lib/libssl/src/crypto/rc4/asm/rc4-ia64.S | |||
| @@ -0,0 +1,157 @@ | |||
| 1 | // ==================================================================== | ||
| 2 | // Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL | ||
| 3 | // project. | ||
| 4 | // | ||
| 5 | // Rights for redistribution and usage in source and binary forms are | ||
| 6 | // granted according to the OpenSSL license. Warranty of any kind is | ||
| 7 | // disclaimed. | ||
| 8 | // ==================================================================== | ||
| 9 | |||
| 10 | .ident "rc4-ia64.S, Version 1.1" | ||
| 11 | .ident "IA-64 ISA artwork by Andy Polyakov <appro@fy.chalmers.se>" | ||
| 12 | |||
| 13 | // What's wrong with compiler generated code? Because of the nature of | ||
| 14 | // C language, compiler doesn't [dare to] reorder load and stores. But | ||
| 15 | // being memory-bound, RC4 should benefit from reorder [on in-order- | ||
| 16 | // execution core such as IA-64]. But what can we reorder? At the very | ||
| 17 | // least we can safely reorder references to key schedule in respect | ||
| 18 | // to input and output streams. Secondly, from the first [close] glance | ||
| 19 | // it appeared that it's possible to pull up some references to | ||
| 20 | // elements of the key schedule itself. Original rationale ["prior | ||
| 21 | // loads are not safe only for "degenerated" key schedule, when some | ||
| 22 | // elements equal to the same value"] was kind of sloppy. I should have | ||
| 23 | // formulated as it really was: if we assume that pulling up reference | ||
| 24 | // to key[x+1] is not safe, then it would mean that key schedule would | ||
| 25 | // "degenerate," which is never the case. The problem is that this | ||
| 26 | // holds true in respect to references to key[x], but not to key[y]. | ||
| 27 | // Legitimate "collisions" do occur within every 256^2 bytes window. | ||
| 28 | // Fortunately there're enough free instruction slots to keep prior | ||
| 29 | // reference to key[x+1], detect "collision" and compensate for it. | ||
| 30 | // All this without sacrificing a single clock cycle:-) | ||
| 31 | // Furthermore. In order to compress loop body to the minimum, I chose | ||
| 32 | // to deploy deposit instruction, which substitutes for the whole | ||
| 33 | // key->data+((x&255)<<log2(sizeof(key->data[0]))). This unfortunately | ||
| 34 | // requires key->data to be aligned at sizeof(key->data) boundary. | ||
| 35 | // This is why you'll find "RC4_INT pad[512-256-2];" addenum to RC4_KEY | ||
| 36 | // and "d=(RC4_INT *)(((size_t)(d+255))&~(sizeof(key->data)-1));" in | ||
| 37 | // rc4_skey.c [and rc4_enc.c, where it's retained for debugging | ||
| 38 | // purposes]. Throughput is ~210MBps on 900MHz CPU, which is is >3x | ||
| 39 | // faster than gcc generated code and +30% - if compared to HP-UX C. | ||
| 40 | // Unrolling loop below should give >30% on top of that... | ||
| 41 | |||
| 42 | .text | ||
| 43 | .explicit | ||
| 44 | |||
| 45 | #if defined(_HPUX_SOURCE) && !defined(_LP64) | ||
| 46 | # define ADDP addp4 | ||
| 47 | #else | ||
| 48 | # define ADDP add | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #define SZ 4 // this is set to sizeof(RC4_INT) | ||
| 52 | // SZ==4 seems to be optimal. At least SZ==8 is not any faster, not for | ||
| 53 | // assembler implementation, while SZ==1 code is ~30% slower. | ||
| 54 | #if SZ==1 // RC4_INT is unsigned char | ||
| 55 | # define LDKEY ld1 | ||
| 56 | # define STKEY st1 | ||
| 57 | # define OFF 0 | ||
| 58 | #elif SZ==4 // RC4_INT is unsigned int | ||
| 59 | # define LDKEY ld4 | ||
| 60 | # define STKEY st4 | ||
| 61 | # define OFF 2 | ||
| 62 | #elif SZ==8 // RC4_INT is unsigned long | ||
| 63 | # define LDKEY ld8 | ||
| 64 | # define STKEY st8 | ||
| 65 | # define OFF 3 | ||
| 66 | #endif | ||
| 67 | |||
| 68 | out=r8; // [expanded] output pointer | ||
| 69 | inp=r9; // [expanded] output pointer | ||
| 70 | prsave=r10; | ||
| 71 | key=r28; // [expanded] pointer to RC4_KEY | ||
| 72 | ksch=r29; // (key->data+255)[&~(sizeof(key->data)-1)] | ||
| 73 | xx=r30; | ||
| 74 | yy=r31; | ||
| 75 | |||
| 76 | // void RC4(RC4_KEY *key,size_t len,const void *inp,void *out); | ||
| 77 | .global RC4# | ||
| 78 | .proc RC4# | ||
| 79 | .align 32 | ||
| 80 | .skip 16 | ||
| 81 | RC4: | ||
| 82 | .prologue | ||
| 83 | .fframe 0 | ||
| 84 | .save ar.pfs,r2 | ||
| 85 | .save ar.lc,r3 | ||
| 86 | .save pr,prsave | ||
| 87 | { .mii; alloc r2=ar.pfs,4,12,0,16 | ||
| 88 | mov prsave=pr | ||
| 89 | ADDP key=0,in0 };; | ||
| 90 | { .mib; cmp.eq p6,p0=0,in1 // len==0? | ||
| 91 | mov r3=ar.lc | ||
| 92 | (p6) br.ret.spnt.many b0 };; // emergency exit | ||
| 93 | |||
| 94 | .body | ||
| 95 | .rotr dat[4],key_x[4],tx[2],rnd[2],key_y[2],ty[1]; | ||
| 96 | |||
| 97 | { .mib; LDKEY xx=[key],SZ // load key->x | ||
| 98 | add in1=-1,in1 // adjust len for loop counter | ||
| 99 | nop.b 0 } | ||
| 100 | { .mib; ADDP inp=0,in2 | ||
| 101 | ADDP out=0,in3 | ||
| 102 | brp.loop.imp .Ltop,.Lexit-16 };; | ||
| 103 | { .mmi; LDKEY yy=[key] // load key->y | ||
| 104 | add ksch=(255+1)*SZ,key // as ksch will be used with | ||
| 105 | // deposit instruction only, | ||
| 106 | // I don't have to &~255... | ||
| 107 | mov ar.lc=in1 } | ||
| 108 | { .mmi; mov key_y[1]=r0 // guarantee inequality | ||
| 109 | // in first iteration | ||
| 110 | add xx=1,xx | ||
| 111 | mov pr.rot=1<<16 };; | ||
| 112 | { .mii; nop.m 0 | ||
| 113 | dep key_x[1]=xx,ksch,OFF,8 | ||
| 114 | mov ar.ec=3 };; // note that epilogue counter | ||
| 115 | // is off by 1. I compensate | ||
| 116 | // for this at exit... | ||
| 117 | .Ltop: | ||
| 118 | // The loop is scheduled for 3*(n+2) spin-rate on Itanium 2, which | ||
| 119 | // theoretically gives asymptotic performance of clock frequency | ||
| 120 | // divided by 3 bytes per seconds, or 500MBps on 1.5GHz CPU. Measured | ||
| 121 | // performance however is distinctly lower than 1/4:-( The culplrit | ||
| 122 | // seems to be *(out++)=dat, which inadvertently splits the bundle, | ||
| 123 | // even though there is M-port available... Unrolling is due... | ||
| 124 | // Unrolled loop should collect output with variable shift instruction | ||
| 125 | // in order to avoid starvation for integer shifter... It should be | ||
| 126 | // possible to get pretty close to theoretical peak... | ||
| 127 | { .mmi; (p16) LDKEY tx[0]=[key_x[1]] // tx=key[xx] | ||
| 128 | (p17) LDKEY ty[0]=[key_y[1]] // ty=key[yy] | ||
| 129 | (p18) dep rnd[1]=rnd[1],ksch,OFF,8} // &key[(tx+ty)&255] | ||
| 130 | { .mmi; (p19) st1 [out]=dat[3],1 // *(out++)=dat | ||
| 131 | (p16) add xx=1,xx // x++ | ||
| 132 | (p16) cmp.ne.unc p20,p21=key_x[1],key_y[1] };; | ||
| 133 | { .mmi; (p18) LDKEY rnd[1]=[rnd[1]] // rnd=key[(tx+ty)&255] | ||
| 134 | (p16) ld1 dat[0]=[inp],1 // dat=*(inp++) | ||
| 135 | (p16) dep key_x[0]=xx,ksch,OFF,8 } // &key[xx&255] | ||
| 136 | .pred.rel "mutex",p20,p21 | ||
| 137 | { .mmi; (p21) add yy=yy,tx[1] // (p16) | ||
| 138 | (p20) add yy=yy,tx[0] // (p16) y+=tx | ||
| 139 | (p21) mov tx[0]=tx[1] };; // (p16) | ||
| 140 | { .mmi; (p17) STKEY [key_y[1]]=tx[1] // key[yy]=tx | ||
| 141 | (p17) STKEY [key_x[2]]=ty[0] // key[xx]=ty | ||
| 142 | (p16) dep key_y[0]=yy,ksch,OFF,8 } // &key[yy&255] | ||
| 143 | { .mmb; (p17) add rnd[0]=tx[1],ty[0] // tx+=ty | ||
| 144 | (p18) xor dat[2]=dat[2],rnd[1] // dat^=rnd | ||
| 145 | br.ctop.sptk .Ltop };; | ||
| 146 | .Lexit: | ||
| 147 | { .mib; STKEY [key]=yy,-SZ // save key->y | ||
| 148 | mov pr=prsave,0x1ffff | ||
| 149 | nop.b 0 } | ||
| 150 | { .mib; st1 [out]=dat[3],1 // compensate for truncated | ||
| 151 | // epilogue counter | ||
| 152 | add xx=-1,xx | ||
| 153 | nop.b 0 };; | ||
| 154 | { .mib; STKEY [key]=xx // save key->x | ||
| 155 | mov ar.lc=r3 | ||
| 156 | br.ret.sptk.many b0 };; | ||
| 157 | .endp RC4# | ||
diff --git a/src/lib/libssl/src/crypto/rc5/Makefile b/src/lib/libssl/src/crypto/rc5/Makefile new file mode 100644 index 0000000000..3a8d309b29 --- /dev/null +++ b/src/lib/libssl/src/crypto/rc5/Makefile | |||
| @@ -0,0 +1,110 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rc5/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rc5 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | RC5_ENC= rc5_enc.o | ||
| 20 | # or use | ||
| 21 | #DES_ENC= r586-elf.o | ||
| 22 | |||
| 23 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 24 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 25 | |||
| 26 | GENERAL=Makefile | ||
| 27 | TEST=rc5test.c | ||
| 28 | APPS= | ||
| 29 | |||
| 30 | LIB=$(TOP)/libcrypto.a | ||
| 31 | LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c | ||
| 32 | LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o | ||
| 33 | |||
| 34 | SRC= $(LIBSRC) | ||
| 35 | |||
| 36 | EXHEADER= rc5.h | ||
| 37 | HEADER= rc5_locl.h $(EXHEADER) | ||
| 38 | |||
| 39 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 40 | |||
| 41 | top: | ||
| 42 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 43 | |||
| 44 | all: lib | ||
| 45 | |||
| 46 | lib: $(LIBOBJ) | ||
| 47 | $(AR) $(LIB) $(LIBOBJ) | ||
| 48 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 49 | @touch lib | ||
| 50 | |||
| 51 | # elf | ||
| 52 | asm/r586-elf.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 53 | (cd asm; $(PERL) rc5-586.pl elf $(CFLAGS) > r586-elf.s) | ||
| 54 | |||
| 55 | # a.out | ||
| 56 | asm/r586-out.o: asm/r586unix.cpp | ||
| 57 | $(CPP) -DOUT asm/r586unix.cpp | as -o asm/r586-out.o | ||
| 58 | |||
| 59 | # bsdi | ||
| 60 | asm/r586bsdi.o: asm/r586unix.cpp | ||
| 61 | $(CPP) -DBSDI asm/r586unix.cpp | sed 's/ :/:/' | as -o asm/r586bsdi.o | ||
| 62 | |||
| 63 | asm/r586unix.cpp: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 64 | (cd asm; $(PERL) rc5-586.pl cpp >r586unix.cpp) | ||
| 65 | |||
| 66 | files: | ||
| 67 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 68 | |||
| 69 | links: | ||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 73 | |||
| 74 | install: | ||
| 75 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 76 | do \ | ||
| 77 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 78 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 79 | done; | ||
| 80 | |||
| 81 | tags: | ||
| 82 | ctags $(SRC) | ||
| 83 | |||
| 84 | tests: | ||
| 85 | |||
| 86 | lint: | ||
| 87 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 88 | |||
| 89 | depend: | ||
| 90 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 91 | |||
| 92 | dclean: | ||
| 93 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 94 | mv -f Makefile.new $(MAKEFILE) | ||
| 95 | |||
| 96 | clean: | ||
| 97 | rm -f asm/r586unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 98 | |||
| 99 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 100 | |||
| 101 | rc5_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/rc5.h | ||
| 102 | rc5_ecb.o: rc5_ecb.c rc5_locl.h | ||
| 103 | rc5_enc.o: ../../include/openssl/rc5.h rc5_enc.c rc5_locl.h | ||
| 104 | rc5_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 105 | rc5_skey.o: ../../include/openssl/opensslconf.h | ||
| 106 | rc5_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc5.h | ||
| 107 | rc5_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 108 | rc5_skey.o: ../../include/openssl/symhacks.h rc5_locl.h rc5_skey.c | ||
| 109 | rc5cfb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5cfb64.c | ||
| 110 | rc5ofb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5ofb64.c | ||
diff --git a/src/lib/libssl/src/crypto/ripemd/Makefile b/src/lib/libssl/src/crypto/ripemd/Makefile new file mode 100644 index 0000000000..dc086e3434 --- /dev/null +++ b/src/lib/libssl/src/crypto/ripemd/Makefile | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/ripemd/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ripemd | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | RIP_ASM_OBJ= | ||
| 20 | |||
| 21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 22 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 23 | |||
| 24 | GENERAL=Makefile | ||
| 25 | TEST=rmdtest.c | ||
| 26 | APPS= | ||
| 27 | |||
| 28 | LIB=$(TOP)/libcrypto.a | ||
| 29 | LIBSRC=rmd_dgst.c rmd_one.c | ||
| 30 | LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ) | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= ripemd.h | ||
| 35 | HEADER= rmd_locl.h rmdconst.h $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | # elf | ||
| 50 | asm/rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl | ||
| 51 | (cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > rm86-elf.s) | ||
| 52 | |||
| 53 | # a.out | ||
| 54 | asm/rm86-out.o: asm/rm86unix.cpp | ||
| 55 | $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o | ||
| 56 | |||
| 57 | # bsdi | ||
| 58 | asm/rm86bsdi.o: asm/rm86unix.cpp | ||
| 59 | $(CPP) -DBSDI asm/rm86unix.cpp | sed 's/ :/:/' | as -o asm/rm86bsdi.o | ||
| 60 | |||
| 61 | asm/rm86unix.cpp: asm/rmd-586.pl ../perlasm/x86asm.pl | ||
| 62 | (cd asm; $(PERL) rmd-586.pl cpp >rm86unix.cpp) | ||
| 63 | |||
| 64 | files: | ||
| 65 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 66 | |||
| 67 | links: | ||
| 68 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 69 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 71 | |||
| 72 | install: | ||
| 73 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 74 | do \ | ||
| 75 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 76 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 77 | done; | ||
| 78 | |||
| 79 | tags: | ||
| 80 | ctags $(SRC) | ||
| 81 | |||
| 82 | tests: | ||
| 83 | |||
| 84 | lint: | ||
| 85 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 86 | |||
| 87 | depend: | ||
| 88 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 89 | |||
| 90 | dclean: | ||
| 91 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 92 | mv -f Makefile.new $(MAKEFILE) | ||
| 93 | |||
| 94 | clean: | ||
| 95 | rm -f asm/rm86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 96 | |||
| 97 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 98 | |||
| 99 | rmd_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 100 | rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 101 | rmd_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 102 | rmd_dgst.o: ../../include/openssl/opensslconf.h | ||
| 103 | rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h | ||
| 104 | rmd_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 105 | rmd_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h rmd_dgst.c | ||
| 106 | rmd_dgst.o: rmd_locl.h rmdconst.h | ||
| 107 | rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 108 | rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 109 | rmd_one.o: ../../include/openssl/ripemd.h ../../include/openssl/safestack.h | ||
| 110 | rmd_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 111 | rmd_one.o: rmd_one.c | ||
diff --git a/src/lib/libssl/src/crypto/rsa/Makefile b/src/lib/libssl/src/crypto/rsa/Makefile new file mode 100644 index 0000000000..5748b0d3d0 --- /dev/null +++ b/src/lib/libssl/src/crypto/rsa/Makefile | |||
| @@ -0,0 +1,239 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rsa/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rsa | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=rsa_test.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c \ | ||
| 26 | rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c rsa_chk.c rsa_null.c \ | ||
| 27 | rsa_asn1.c | ||
| 28 | LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o rsa_err.o \ | ||
| 29 | rsa_pk1.o rsa_ssl.o rsa_none.o rsa_oaep.o rsa_chk.o rsa_null.o \ | ||
| 30 | rsa_asn1.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= rsa.h | ||
| 35 | HEADER= $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 56 | |||
| 57 | install: | ||
| 58 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 59 | do \ | ||
| 60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 62 | done; | ||
| 63 | |||
| 64 | tags: | ||
| 65 | ctags $(SRC) | ||
| 66 | |||
| 67 | tests: | ||
| 68 | |||
| 69 | lint: | ||
| 70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 71 | |||
| 72 | depend: | ||
| 73 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 74 | |||
| 75 | dclean: | ||
| 76 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 77 | mv -f Makefile.new $(MAKEFILE) | ||
| 78 | |||
| 79 | clean: | ||
| 80 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 81 | |||
| 82 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 83 | |||
| 84 | rsa_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 85 | rsa_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 86 | rsa_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 87 | rsa_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 88 | rsa_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 89 | rsa_asn1.o: ../../include/openssl/opensslconf.h | ||
| 90 | rsa_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 91 | rsa_asn1.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 92 | rsa_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 93 | rsa_asn1.o: ../cryptlib.h rsa_asn1.c | ||
| 94 | rsa_chk.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 95 | rsa_chk.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 96 | rsa_chk.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 97 | rsa_chk.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 98 | rsa_chk.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 99 | rsa_chk.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 100 | rsa_chk.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 101 | rsa_chk.o: rsa_chk.c | ||
| 102 | rsa_eay.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 103 | rsa_eay.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 104 | rsa_eay.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 105 | rsa_eay.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 106 | rsa_eay.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 107 | rsa_eay.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 108 | rsa_eay.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 109 | rsa_eay.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 110 | rsa_eay.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_eay.c | ||
| 111 | rsa_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 112 | rsa_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 113 | rsa_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 114 | rsa_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 115 | rsa_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 116 | rsa_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 117 | rsa_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 118 | rsa_err.o: rsa_err.c | ||
| 119 | rsa_gen.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 120 | rsa_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 121 | rsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 122 | rsa_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 123 | rsa_gen.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 124 | rsa_gen.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 125 | rsa_gen.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 126 | rsa_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 127 | rsa_gen.o: ../cryptlib.h rsa_gen.c | ||
| 128 | rsa_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 129 | rsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 130 | rsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 131 | rsa_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 132 | rsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 133 | rsa_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 134 | rsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 135 | rsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 136 | rsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 137 | rsa_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 138 | rsa_lib.o: ../../include/openssl/ui.h ../cryptlib.h rsa_lib.c | ||
| 139 | rsa_none.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 140 | rsa_none.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 141 | rsa_none.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 142 | rsa_none.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 143 | rsa_none.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 144 | rsa_none.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 145 | rsa_none.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 146 | rsa_none.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 147 | rsa_none.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_none.c | ||
| 148 | rsa_null.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 149 | rsa_null.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 150 | rsa_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 151 | rsa_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 152 | rsa_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 153 | rsa_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 154 | rsa_null.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 155 | rsa_null.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 156 | rsa_null.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_null.c | ||
| 157 | rsa_oaep.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 158 | rsa_oaep.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 159 | rsa_oaep.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 160 | rsa_oaep.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 161 | rsa_oaep.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 162 | rsa_oaep.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 163 | rsa_oaep.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 164 | rsa_oaep.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 165 | rsa_oaep.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 166 | rsa_oaep.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 167 | rsa_oaep.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 168 | rsa_oaep.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 169 | rsa_oaep.o: ../../include/openssl/opensslconf.h | ||
| 170 | rsa_oaep.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 171 | rsa_oaep.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 172 | rsa_oaep.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 173 | rsa_oaep.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 174 | rsa_oaep.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 175 | rsa_oaep.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 176 | rsa_oaep.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 177 | rsa_oaep.o: ../cryptlib.h rsa_oaep.c | ||
| 178 | rsa_pk1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 179 | rsa_pk1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 180 | rsa_pk1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 181 | rsa_pk1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 182 | rsa_pk1.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 183 | rsa_pk1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 184 | rsa_pk1.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 185 | rsa_pk1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 186 | rsa_pk1.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_pk1.c | ||
| 187 | rsa_saos.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 188 | rsa_saos.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 189 | rsa_saos.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 190 | rsa_saos.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 191 | rsa_saos.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 192 | rsa_saos.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 193 | rsa_saos.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 194 | rsa_saos.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 195 | rsa_saos.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 196 | rsa_saos.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 197 | rsa_saos.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 198 | rsa_saos.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 199 | rsa_saos.o: ../../include/openssl/opensslconf.h | ||
| 200 | rsa_saos.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 201 | rsa_saos.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 202 | rsa_saos.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 203 | rsa_saos.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 204 | rsa_saos.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 205 | rsa_saos.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 206 | rsa_saos.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 207 | rsa_saos.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 208 | rsa_saos.o: ../cryptlib.h rsa_saos.c | ||
| 209 | rsa_sign.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 210 | rsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 211 | rsa_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 212 | rsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 213 | rsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 214 | rsa_sign.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 215 | rsa_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 216 | rsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 217 | rsa_sign.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 218 | rsa_sign.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 219 | rsa_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 220 | rsa_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 221 | rsa_sign.o: ../../include/openssl/opensslconf.h | ||
| 222 | rsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 223 | rsa_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 224 | rsa_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 225 | rsa_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 226 | rsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 227 | rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 228 | rsa_sign.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 229 | rsa_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 230 | rsa_sign.o: ../cryptlib.h rsa_sign.c | ||
| 231 | rsa_ssl.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 232 | rsa_ssl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 233 | rsa_ssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 234 | rsa_ssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 235 | rsa_ssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 236 | rsa_ssl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 237 | rsa_ssl.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 238 | rsa_ssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 239 | rsa_ssl.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_ssl.c | ||
diff --git a/src/lib/libssl/src/crypto/sha/Makefile b/src/lib/libssl/src/crypto/sha/Makefile new file mode 100644 index 0000000000..0426786aa0 --- /dev/null +++ b/src/lib/libssl/src/crypto/sha/Makefile | |||
| @@ -0,0 +1,127 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/sha/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= sha | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | SHA1_ASM_OBJ= | ||
| 20 | |||
| 21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 22 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 23 | |||
| 24 | GENERAL=Makefile | ||
| 25 | TEST=shatest.c sha1test.c | ||
| 26 | APPS= | ||
| 27 | |||
| 28 | LIB=$(TOP)/libcrypto.a | ||
| 29 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c | ||
| 30 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= sha.h | ||
| 35 | HEADER= sha_locl.h $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | # elf | ||
| 50 | asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl | ||
| 51 | (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s) | ||
| 52 | |||
| 53 | # a.out | ||
| 54 | asm/sx86-out.o: asm/sx86unix.cpp | ||
| 55 | $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o | ||
| 56 | |||
| 57 | # bsdi | ||
| 58 | asm/sx86bsdi.o: asm/sx86unix.cpp | ||
| 59 | $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o | ||
| 60 | |||
| 61 | asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl | ||
| 62 | (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp) | ||
| 63 | |||
| 64 | asm/sha1-ia64.s: asm/sha1-ia64.pl | ||
| 65 | (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@ | ||
| 66 | |||
| 67 | files: | ||
| 68 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 69 | |||
| 70 | links: | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 73 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 74 | |||
| 75 | install: | ||
| 76 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 77 | do \ | ||
| 78 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 79 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 80 | done; | ||
| 81 | |||
| 82 | tags: | ||
| 83 | ctags $(SRC) | ||
| 84 | |||
| 85 | tests: | ||
| 86 | |||
| 87 | lint: | ||
| 88 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 89 | |||
| 90 | depend: | ||
| 91 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 92 | |||
| 93 | dclean: | ||
| 94 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 95 | mv -f Makefile.new $(MAKEFILE) | ||
| 96 | |||
| 97 | clean: | ||
| 98 | rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
| 99 | |||
| 100 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 101 | |||
| 102 | sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 103 | sha1_one.o: ../../include/openssl/opensslconf.h | ||
| 104 | sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 105 | sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 106 | sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c | ||
| 107 | sha1dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 108 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 109 | sha1dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 110 | sha1dgst.o: ../../include/openssl/opensslconf.h | ||
| 111 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 112 | sha1dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 113 | sha1dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha1dgst.c | ||
| 114 | sha1dgst.o: sha_locl.h | ||
| 115 | sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 116 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 117 | sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 118 | sha_dgst.o: ../../include/openssl/opensslconf.h | ||
| 119 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 120 | sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 121 | sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c | ||
| 122 | sha_dgst.o: sha_locl.h | ||
| 123 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 124 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 125 | sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 126 | sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 127 | sha_one.o: sha_one.c | ||
diff --git a/src/lib/libssl/src/crypto/sha/asm/sha1-ia64.pl b/src/lib/libssl/src/crypto/sha/asm/sha1-ia64.pl new file mode 100644 index 0000000000..cb9dfad124 --- /dev/null +++ b/src/lib/libssl/src/crypto/sha/asm/sha1-ia64.pl | |||
| @@ -0,0 +1,549 @@ | |||
| 1 | #!/usr/bin/env perl | ||
| 2 | # | ||
| 3 | # ==================================================================== | ||
| 4 | # Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL | ||
| 5 | # project. Rights for redistribution and usage in source and binary | ||
| 6 | # forms are granted according to the OpenSSL license. | ||
| 7 | # ==================================================================== | ||
| 8 | # | ||
| 9 | # Eternal question is what's wrong with compiler generated code? The | ||
| 10 | # trick is that it's possible to reduce the number of shifts required | ||
| 11 | # to perform rotations by maintaining copy of 32-bit value in upper | ||
| 12 | # bits of 64-bit register. Just follow mux2 and shrp instructions... | ||
| 13 | # Performance under big-endian OS such as HP-UX is 179MBps*1GHz, which | ||
| 14 | # is >50% better than HP C and >2x better than gcc. As of this moment | ||
| 15 | # performance under little-endian OS such as Linux and Windows will be | ||
| 16 | # a bit lower, because data has to be picked in reverse byte-order. | ||
| 17 | # It's possible to resolve this issue by implementing third function, | ||
| 18 | # sha1_block_asm_data_order_aligned, which would temporarily flip | ||
| 19 | # BE field in User Mask register... | ||
| 20 | |||
| 21 | $code=<<___; | ||
| 22 | .ident \"sha1-ia64.s, version 1.0\" | ||
| 23 | .ident \"IA-64 ISA artwork by Andy Polyakov <appro\@fy.chalmers.se>\" | ||
| 24 | .explicit | ||
| 25 | |||
| 26 | ___ | ||
| 27 | |||
| 28 | |||
| 29 | if ($^O eq "hpux") { | ||
| 30 | $ADDP="addp4"; | ||
| 31 | for (@ARGV) { $ADDP="add" if (/[\+DD|\-mlp]64/); } | ||
| 32 | } else { $ADDP="add"; } | ||
| 33 | for (@ARGV) { $big_endian=1 if (/\-DB_ENDIAN/); | ||
| 34 | $big_endian=0 if (/\-DL_ENDIAN/); } | ||
| 35 | if (!defined($big_endian)) | ||
| 36 | { $big_endian=(unpack('L',pack('N',1))==1); } | ||
| 37 | |||
| 38 | #$human=1; | ||
| 39 | if ($human) { # useful for visual code auditing... | ||
| 40 | ($A,$B,$C,$D,$E,$T) = ("A","B","C","D","E","T"); | ||
| 41 | ($h0,$h1,$h2,$h3,$h4) = ("h0","h1","h2","h3","h4"); | ||
| 42 | ($K_00_19, $K_20_39, $K_40_59, $K_60_79) = | ||
| 43 | ( "K_00_19","K_20_39","K_40_59","K_60_79" ); | ||
| 44 | @X= ( "X0", "X1", "X2", "X3", "X4", "X5", "X6", "X7", | ||
| 45 | "X8", "X9","X10","X11","X12","X13","X14","X15" ); | ||
| 46 | } | ||
| 47 | else { | ||
| 48 | ($A,$B,$C,$D,$E,$T) = ("loc0","loc1","loc2","loc3","loc4","loc5"); | ||
| 49 | ($h0,$h1,$h2,$h3,$h4) = ("loc6","loc7","loc8","loc9","loc10"); | ||
| 50 | ($K_00_19, $K_20_39, $K_40_59, $K_60_79) = | ||
| 51 | ( "r14", "r15", "loc11", "loc12" ); | ||
| 52 | @X= ( "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", | ||
| 53 | "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31" ); | ||
| 54 | } | ||
| 55 | |||
| 56 | sub BODY_00_15 { | ||
| 57 | local *code=shift; | ||
| 58 | local ($i,$a,$b,$c,$d,$e,$f,$unaligned)=@_; | ||
| 59 | |||
| 60 | if ($unaligned) { | ||
| 61 | $code.=<<___; | ||
| 62 | { .mmi; ld1 tmp0=[inp],2 // MSB | ||
| 63 | ld1 tmp1=[tmp3],2 };; | ||
| 64 | { .mmi; ld1 tmp2=[inp],2 | ||
| 65 | ld1 $X[$i&0xf]=[tmp3],2 // LSB | ||
| 66 | dep tmp1=tmp0,tmp1,8,8 };; | ||
| 67 | { .mii; cmp.ne p16,p0=r0,r0 // no misaligned prefetch | ||
| 68 | dep $X[$i&0xf]=tmp2,$X[$i&0xf],8,8;; | ||
| 69 | dep $X[$i&0xf]=tmp1,$X[$i&0xf],16,16 };; | ||
| 70 | { .mmi; nop.m 0 | ||
| 71 | ___ | ||
| 72 | } | ||
| 73 | elsif ($i<15) { | ||
| 74 | $code.=<<___; | ||
| 75 | { .mmi; ld4 $X[($i+1)&0xf]=[inp],4 // prefetch | ||
| 76 | ___ | ||
| 77 | } | ||
| 78 | else { | ||
| 79 | $code.=<<___; | ||
| 80 | { .mmi; nop.m 0 | ||
| 81 | ___ | ||
| 82 | } | ||
| 83 | if ($i<15) { | ||
| 84 | $code.=<<___; | ||
| 85 | and tmp0=$c,$b | ||
| 86 | dep.z tmp5=$a,5,27 } // a<<5 | ||
| 87 | { .mmi; andcm tmp1=$d,$b | ||
| 88 | add tmp4=$e,$K_00_19 };; | ||
| 89 | { .mmi; or tmp0=tmp0,tmp1 // F_00_19(b,c,d)=(b&c)|(~b&d) | ||
| 90 | add $f=tmp4,$X[$i&0xf] // f=xi+e+K_00_19 | ||
| 91 | extr.u tmp1=$a,27,5 };; // a>>27 | ||
| 92 | { .mib; add $f=$f,tmp0 // f+=F_00_19(b,c,d) | ||
| 93 | shrp $b=tmp6,tmp6,2 } // b=ROTATE(b,30) | ||
| 94 | { .mib; or tmp1=tmp1,tmp5 // ROTATE(a,5) | ||
| 95 | mux2 tmp6=$a,0x44 };; // see b in next iteration | ||
| 96 | { .mii; add $f=$f,tmp1 // f+=ROTATE(a,5) | ||
| 97 | mux2 $X[$i&0xf]=$X[$i&0xf],0x44 | ||
| 98 | nop.i 0 };; | ||
| 99 | |||
| 100 | ___ | ||
| 101 | } | ||
| 102 | else { | ||
| 103 | $code.=<<___; | ||
| 104 | and tmp0=$c,$b | ||
| 105 | dep.z tmp5=$a,5,27 } // a<<5 ;;? | ||
| 106 | { .mmi; andcm tmp1=$d,$b | ||
| 107 | add tmp4=$e,$K_00_19 };; | ||
| 108 | { .mmi; or tmp0=tmp0,tmp1 // F_00_19(b,c,d)=(b&c)|(~b&d) | ||
| 109 | add $f=tmp4,$X[$i&0xf] // f=xi+e+K_00_19 | ||
| 110 | extr.u tmp1=$a,27,5 } // a>>27 | ||
| 111 | { .mmi; xor tmp2=$X[($i+0+1)&0xf],$X[($i+2+1)&0xf] // +1 | ||
| 112 | xor tmp3=$X[($i+8+1)&0xf],$X[($i+13+1)&0xf] // +1 | ||
| 113 | nop.i 0 };; | ||
| 114 | { .mmi; add $f=$f,tmp0 // f+=F_00_19(b,c,d) | ||
| 115 | xor tmp2=tmp2,tmp3 // +1 | ||
| 116 | shrp $b=tmp6,tmp6,2 } // b=ROTATE(b,30) | ||
| 117 | { .mmi; or tmp1=tmp1,tmp5 // ROTATE(a,5) | ||
| 118 | mux2 tmp6=$a,0x44 };; // see b in next iteration | ||
| 119 | { .mii; add $f=$f,tmp1 // f+=ROTATE(a,5) | ||
| 120 | shrp $e=tmp2,tmp2,31 // f+1=ROTATE(x[0]^x[2]^x[8]^x[13],1) | ||
| 121 | mux2 $X[$i&0xf]=$X[$i&0xf],0x44 };; | ||
| 122 | |||
| 123 | ___ | ||
| 124 | } | ||
| 125 | } | ||
| 126 | |||
| 127 | sub BODY_16_19 { | ||
| 128 | local *code=shift; | ||
| 129 | local ($i,$a,$b,$c,$d,$e,$f)=@_; | ||
| 130 | |||
| 131 | $code.=<<___; | ||
| 132 | { .mmi; mov $X[$i&0xf]=$f // Xupdate | ||
| 133 | and tmp0=$c,$b | ||
| 134 | dep.z tmp5=$a,5,27 } // a<<5 | ||
| 135 | { .mmi; andcm tmp1=$d,$b | ||
| 136 | add tmp4=$e,$K_00_19 };; | ||
| 137 | { .mmi; or tmp0=tmp0,tmp1 // F_00_19(b,c,d)=(b&c)|(~b&d) | ||
| 138 | add $f=$f,tmp4 // f+=e+K_00_19 | ||
| 139 | extr.u tmp1=$a,27,5 } // a>>27 | ||
| 140 | { .mmi; xor tmp2=$X[($i+0+1)&0xf],$X[($i+2+1)&0xf] // +1 | ||
| 141 | xor tmp3=$X[($i+8+1)&0xf],$X[($i+13+1)&0xf] // +1 | ||
| 142 | nop.i 0 };; | ||
| 143 | { .mmi; add $f=$f,tmp0 // f+=F_00_19(b,c,d) | ||
| 144 | xor tmp2=tmp2,tmp3 // +1 | ||
| 145 | shrp $b=tmp6,tmp6,2 } // b=ROTATE(b,30) | ||
| 146 | { .mmi; or tmp1=tmp1,tmp5 // ROTATE(a,5) | ||
| 147 | mux2 tmp6=$a,0x44 };; // see b in next iteration | ||
| 148 | { .mii; add $f=$f,tmp1 // f+=ROTATE(a,5) | ||
| 149 | shrp $e=tmp2,tmp2,31 // f+1=ROTATE(x[0]^x[2]^x[8]^x[13],1) | ||
| 150 | nop.i 0 };; | ||
| 151 | |||
| 152 | ___ | ||
| 153 | } | ||
| 154 | |||
| 155 | sub BODY_20_39 { | ||
| 156 | local *code=shift; | ||
| 157 | local ($i,$a,$b,$c,$d,$e,$f,$Konst)=@_; | ||
| 158 | $Konst = $K_20_39 if (!defined($Konst)); | ||
| 159 | |||
| 160 | if ($i<79) { | ||
| 161 | $code.=<<___; | ||
| 162 | { .mib; mov $X[$i&0xf]=$f // Xupdate | ||
| 163 | dep.z tmp5=$a,5,27 } // a<<5 | ||
| 164 | { .mib; xor tmp0=$c,$b | ||
| 165 | add tmp4=$e,$Konst };; | ||
| 166 | { .mmi; xor tmp0=tmp0,$d // F_20_39(b,c,d)=b^c^d | ||
| 167 | add $f=$f,tmp4 // f+=e+K_20_39 | ||
| 168 | extr.u tmp1=$a,27,5 } // a>>27 | ||
| 169 | { .mmi; xor tmp2=$X[($i+0+1)&0xf],$X[($i+2+1)&0xf] // +1 | ||
| 170 | xor tmp3=$X[($i+8+1)&0xf],$X[($i+13+1)&0xf] // +1 | ||
| 171 | nop.i 0 };; | ||
| 172 | { .mmi; add $f=$f,tmp0 // f+=F_20_39(b,c,d) | ||
| 173 | xor tmp2=tmp2,tmp3 // +1 | ||
| 174 | shrp $b=tmp6,tmp6,2 } // b=ROTATE(b,30) | ||
| 175 | { .mmi; or tmp1=tmp1,tmp5 // ROTATE(a,5) | ||
| 176 | mux2 tmp6=$a,0x44 };; // see b in next iteration | ||
| 177 | { .mii; add $f=$f,tmp1 // f+=ROTATE(a,5) | ||
| 178 | shrp $e=tmp2,tmp2,31 // f+1=ROTATE(x[0]^x[2]^x[8]^x[13],1) | ||
| 179 | nop.i 0 };; | ||
| 180 | |||
| 181 | ___ | ||
| 182 | } | ||
| 183 | else { | ||
| 184 | $code.=<<___; | ||
| 185 | { .mib; mov $X[$i&0xf]=$f // Xupdate | ||
| 186 | dep.z tmp5=$a,5,27 } // a<<5 | ||
| 187 | { .mib; xor tmp0=$c,$b | ||
| 188 | add tmp4=$e,$Konst };; | ||
| 189 | { .mib; xor tmp0=tmp0,$d // F_20_39(b,c,d)=b^c^d | ||
| 190 | extr.u tmp1=$a,27,5 } // a>>27 | ||
| 191 | { .mib; add $f=$f,tmp4 // f+=e+K_20_39 | ||
| 192 | add $h1=$h1,$a };; // wrap up | ||
| 193 | { .mmi; | ||
| 194 | (p16) ld4.s $X[0]=[inp],4 // non-faulting prefetch | ||
| 195 | add $f=$f,tmp0 // f+=F_20_39(b,c,d) | ||
| 196 | shrp $b=tmp6,tmp6,2 } // b=ROTATE(b,30) ;;? | ||
| 197 | { .mmi; or tmp1=tmp1,tmp5 // ROTATE(a,5) | ||
| 198 | add $h3=$h3,$c };; // wrap up | ||
| 199 | { .mib; add tmp3=1,inp // used in unaligned codepath | ||
| 200 | add $f=$f,tmp1 } // f+=ROTATE(a,5) | ||
| 201 | { .mib; add $h2=$h2,$b // wrap up | ||
| 202 | add $h4=$h4,$d };; // wrap up | ||
| 203 | |||
| 204 | ___ | ||
| 205 | } | ||
| 206 | } | ||
| 207 | |||
| 208 | sub BODY_40_59 { | ||
| 209 | local *code=shift; | ||
| 210 | local ($i,$a,$b,$c,$d,$e,$f)=@_; | ||
| 211 | |||
| 212 | $code.=<<___; | ||
| 213 | { .mmi; mov $X[$i&0xf]=$f // Xupdate | ||
| 214 | and tmp0=$c,$b | ||
| 215 | dep.z tmp5=$a,5,27 } // a<<5 | ||
| 216 | { .mmi; and tmp1=$d,$b | ||
| 217 | add tmp4=$e,$K_40_59 };; | ||
| 218 | { .mmi; or tmp0=tmp0,tmp1 // (b&c)|(b&d) | ||
| 219 | add $f=$f,tmp4 // f+=e+K_40_59 | ||
| 220 | extr.u tmp1=$a,27,5 } // a>>27 | ||
| 221 | { .mmi; and tmp4=$c,$d | ||
| 222 | xor tmp2=$X[($i+0+1)&0xf],$X[($i+2+1)&0xf] // +1 | ||
| 223 | xor tmp3=$X[($i+8+1)&0xf],$X[($i+13+1)&0xf] // +1 | ||
| 224 | };; | ||
| 225 | { .mmi; or tmp1=tmp1,tmp5 // ROTATE(a,5) | ||
| 226 | xor tmp2=tmp2,tmp3 // +1 | ||
| 227 | shrp $b=tmp6,tmp6,2 } // b=ROTATE(b,30) | ||
| 228 | { .mmi; or tmp0=tmp0,tmp4 // F_40_59(b,c,d)=(b&c)|(b&d)|(c&d) | ||
| 229 | mux2 tmp6=$a,0x44 };; // see b in next iteration | ||
| 230 | { .mii; add $f=$f,tmp0 // f+=F_40_59(b,c,d) | ||
| 231 | shrp $e=tmp2,tmp2,31;; // f+1=ROTATE(x[0]^x[2]^x[8]^x[13],1) | ||
| 232 | add $f=$f,tmp1 };; // f+=ROTATE(a,5) | ||
| 233 | |||
| 234 | ___ | ||
| 235 | } | ||
| 236 | sub BODY_60_79 { &BODY_20_39(@_,$K_60_79); } | ||
| 237 | |||
| 238 | $code.=<<___; | ||
| 239 | .text | ||
| 240 | |||
| 241 | tmp0=r8; | ||
| 242 | tmp1=r9; | ||
| 243 | tmp2=r10; | ||
| 244 | tmp3=r11; | ||
| 245 | ctx=r32; // in0 | ||
| 246 | inp=r33; // in1 | ||
| 247 | |||
| 248 | // void sha1_block_asm_host_order(SHA_CTX *c,const void *p,size_t num); | ||
| 249 | .global sha1_block_asm_host_order# | ||
| 250 | .proc sha1_block_asm_host_order# | ||
| 251 | .align 32 | ||
| 252 | sha1_block_asm_host_order: | ||
| 253 | .prologue | ||
| 254 | .fframe 0 | ||
| 255 | .save ar.pfs,r0 | ||
| 256 | .save ar.lc,r3 | ||
| 257 | { .mmi; alloc tmp1=ar.pfs,3,15,0,0 | ||
| 258 | $ADDP tmp0=4,ctx | ||
| 259 | mov r3=ar.lc } | ||
| 260 | { .mmi; $ADDP ctx=0,ctx | ||
| 261 | $ADDP inp=0,inp | ||
| 262 | mov r2=pr };; | ||
| 263 | tmp4=in2; | ||
| 264 | tmp5=loc13; | ||
| 265 | tmp6=loc14; | ||
| 266 | .body | ||
| 267 | { .mlx; ld4 $h0=[ctx],8 | ||
| 268 | movl $K_00_19=0x5a827999 } | ||
| 269 | { .mlx; ld4 $h1=[tmp0],8 | ||
| 270 | movl $K_20_39=0x6ed9eba1 };; | ||
| 271 | { .mlx; ld4 $h2=[ctx],8 | ||
| 272 | movl $K_40_59=0x8f1bbcdc } | ||
| 273 | { .mlx; ld4 $h3=[tmp0] | ||
| 274 | movl $K_60_79=0xca62c1d6 };; | ||
| 275 | { .mmi; ld4 $h4=[ctx],-16 | ||
| 276 | add in2=-1,in2 // adjust num for ar.lc | ||
| 277 | mov ar.ec=1 };; | ||
| 278 | { .mmi; ld4 $X[0]=[inp],4 // prefetch | ||
| 279 | cmp.ne p16,p0=r0,in2 // prefecth at loop end | ||
| 280 | mov ar.lc=in2 };; // brp.loop.imp: too far | ||
| 281 | |||
| 282 | .Lhtop: | ||
| 283 | { .mmi; mov $A=$h0 | ||
| 284 | mov $B=$h1 | ||
| 285 | mux2 tmp6=$h1,0x44 } | ||
| 286 | { .mmi; mov $C=$h2 | ||
| 287 | mov $D=$h3 | ||
| 288 | mov $E=$h4 };; | ||
| 289 | |||
| 290 | ___ | ||
| 291 | |||
| 292 | &BODY_00_15(\$code, 0,$A,$B,$C,$D,$E,$T); | ||
| 293 | &BODY_00_15(\$code, 1,$T,$A,$B,$C,$D,$E); | ||
| 294 | &BODY_00_15(\$code, 2,$E,$T,$A,$B,$C,$D); | ||
| 295 | &BODY_00_15(\$code, 3,$D,$E,$T,$A,$B,$C); | ||
| 296 | &BODY_00_15(\$code, 4,$C,$D,$E,$T,$A,$B); | ||
| 297 | &BODY_00_15(\$code, 5,$B,$C,$D,$E,$T,$A); | ||
| 298 | &BODY_00_15(\$code, 6,$A,$B,$C,$D,$E,$T); | ||
| 299 | &BODY_00_15(\$code, 7,$T,$A,$B,$C,$D,$E); | ||
| 300 | &BODY_00_15(\$code, 8,$E,$T,$A,$B,$C,$D); | ||
| 301 | &BODY_00_15(\$code, 9,$D,$E,$T,$A,$B,$C); | ||
| 302 | &BODY_00_15(\$code,10,$C,$D,$E,$T,$A,$B); | ||
| 303 | &BODY_00_15(\$code,11,$B,$C,$D,$E,$T,$A); | ||
| 304 | &BODY_00_15(\$code,12,$A,$B,$C,$D,$E,$T); | ||
| 305 | &BODY_00_15(\$code,13,$T,$A,$B,$C,$D,$E); | ||
| 306 | &BODY_00_15(\$code,14,$E,$T,$A,$B,$C,$D); | ||
| 307 | &BODY_00_15(\$code,15,$D,$E,$T,$A,$B,$C); | ||
| 308 | |||
| 309 | &BODY_16_19(\$code,16,$C,$D,$E,$T,$A,$B); | ||
| 310 | &BODY_16_19(\$code,17,$B,$C,$D,$E,$T,$A); | ||
| 311 | &BODY_16_19(\$code,18,$A,$B,$C,$D,$E,$T); | ||
| 312 | &BODY_16_19(\$code,19,$T,$A,$B,$C,$D,$E); | ||
| 313 | |||
| 314 | &BODY_20_39(\$code,20,$E,$T,$A,$B,$C,$D); | ||
| 315 | &BODY_20_39(\$code,21,$D,$E,$T,$A,$B,$C); | ||
| 316 | &BODY_20_39(\$code,22,$C,$D,$E,$T,$A,$B); | ||
| 317 | &BODY_20_39(\$code,23,$B,$C,$D,$E,$T,$A); | ||
| 318 | &BODY_20_39(\$code,24,$A,$B,$C,$D,$E,$T); | ||
| 319 | &BODY_20_39(\$code,25,$T,$A,$B,$C,$D,$E); | ||
| 320 | &BODY_20_39(\$code,26,$E,$T,$A,$B,$C,$D); | ||
| 321 | &BODY_20_39(\$code,27,$D,$E,$T,$A,$B,$C); | ||
| 322 | &BODY_20_39(\$code,28,$C,$D,$E,$T,$A,$B); | ||
| 323 | &BODY_20_39(\$code,29,$B,$C,$D,$E,$T,$A); | ||
| 324 | &BODY_20_39(\$code,30,$A,$B,$C,$D,$E,$T); | ||
| 325 | &BODY_20_39(\$code,31,$T,$A,$B,$C,$D,$E); | ||
| 326 | &BODY_20_39(\$code,32,$E,$T,$A,$B,$C,$D); | ||
| 327 | &BODY_20_39(\$code,33,$D,$E,$T,$A,$B,$C); | ||
| 328 | &BODY_20_39(\$code,34,$C,$D,$E,$T,$A,$B); | ||
| 329 | &BODY_20_39(\$code,35,$B,$C,$D,$E,$T,$A); | ||
| 330 | &BODY_20_39(\$code,36,$A,$B,$C,$D,$E,$T); | ||
| 331 | &BODY_20_39(\$code,37,$T,$A,$B,$C,$D,$E); | ||
| 332 | &BODY_20_39(\$code,38,$E,$T,$A,$B,$C,$D); | ||
| 333 | &BODY_20_39(\$code,39,$D,$E,$T,$A,$B,$C); | ||
| 334 | |||
| 335 | &BODY_40_59(\$code,40,$C,$D,$E,$T,$A,$B); | ||
| 336 | &BODY_40_59(\$code,41,$B,$C,$D,$E,$T,$A); | ||
| 337 | &BODY_40_59(\$code,42,$A,$B,$C,$D,$E,$T); | ||
| 338 | &BODY_40_59(\$code,43,$T,$A,$B,$C,$D,$E); | ||
| 339 | &BODY_40_59(\$code,44,$E,$T,$A,$B,$C,$D); | ||
| 340 | &BODY_40_59(\$code,45,$D,$E,$T,$A,$B,$C); | ||
| 341 | &BODY_40_59(\$code,46,$C,$D,$E,$T,$A,$B); | ||
| 342 | &BODY_40_59(\$code,47,$B,$C,$D,$E,$T,$A); | ||
| 343 | &BODY_40_59(\$code,48,$A,$B,$C,$D,$E,$T); | ||
| 344 | &BODY_40_59(\$code,49,$T,$A,$B,$C,$D,$E); | ||
| 345 | &BODY_40_59(\$code,50,$E,$T,$A,$B,$C,$D); | ||
| 346 | &BODY_40_59(\$code,51,$D,$E,$T,$A,$B,$C); | ||
| 347 | &BODY_40_59(\$code,52,$C,$D,$E,$T,$A,$B); | ||
| 348 | &BODY_40_59(\$code,53,$B,$C,$D,$E,$T,$A); | ||
| 349 | &BODY_40_59(\$code,54,$A,$B,$C,$D,$E,$T); | ||
| 350 | &BODY_40_59(\$code,55,$T,$A,$B,$C,$D,$E); | ||
| 351 | &BODY_40_59(\$code,56,$E,$T,$A,$B,$C,$D); | ||
| 352 | &BODY_40_59(\$code,57,$D,$E,$T,$A,$B,$C); | ||
| 353 | &BODY_40_59(\$code,58,$C,$D,$E,$T,$A,$B); | ||
| 354 | &BODY_40_59(\$code,59,$B,$C,$D,$E,$T,$A); | ||
| 355 | |||
| 356 | &BODY_60_79(\$code,60,$A,$B,$C,$D,$E,$T); | ||
| 357 | &BODY_60_79(\$code,61,$T,$A,$B,$C,$D,$E); | ||
| 358 | &BODY_60_79(\$code,62,$E,$T,$A,$B,$C,$D); | ||
| 359 | &BODY_60_79(\$code,63,$D,$E,$T,$A,$B,$C); | ||
| 360 | &BODY_60_79(\$code,64,$C,$D,$E,$T,$A,$B); | ||
| 361 | &BODY_60_79(\$code,65,$B,$C,$D,$E,$T,$A); | ||
| 362 | &BODY_60_79(\$code,66,$A,$B,$C,$D,$E,$T); | ||
| 363 | &BODY_60_79(\$code,67,$T,$A,$B,$C,$D,$E); | ||
| 364 | &BODY_60_79(\$code,68,$E,$T,$A,$B,$C,$D); | ||
| 365 | &BODY_60_79(\$code,69,$D,$E,$T,$A,$B,$C); | ||
| 366 | &BODY_60_79(\$code,70,$C,$D,$E,$T,$A,$B); | ||
| 367 | &BODY_60_79(\$code,71,$B,$C,$D,$E,$T,$A); | ||
| 368 | &BODY_60_79(\$code,72,$A,$B,$C,$D,$E,$T); | ||
| 369 | &BODY_60_79(\$code,73,$T,$A,$B,$C,$D,$E); | ||
| 370 | &BODY_60_79(\$code,74,$E,$T,$A,$B,$C,$D); | ||
| 371 | &BODY_60_79(\$code,75,$D,$E,$T,$A,$B,$C); | ||
| 372 | &BODY_60_79(\$code,76,$C,$D,$E,$T,$A,$B); | ||
| 373 | &BODY_60_79(\$code,77,$B,$C,$D,$E,$T,$A); | ||
| 374 | &BODY_60_79(\$code,78,$A,$B,$C,$D,$E,$T); | ||
| 375 | &BODY_60_79(\$code,79,$T,$A,$B,$C,$D,$E); | ||
| 376 | |||
| 377 | $code.=<<___; | ||
| 378 | { .mmb; add $h0=$h0,$E | ||
| 379 | nop.m 0 | ||
| 380 | br.ctop.dptk.many .Lhtop };; | ||
| 381 | .Lhend: | ||
| 382 | { .mmi; add tmp0=4,ctx | ||
| 383 | mov ar.lc=r3 };; | ||
| 384 | { .mmi; st4 [ctx]=$h0,8 | ||
| 385 | st4 [tmp0]=$h1,8 };; | ||
| 386 | { .mmi; st4 [ctx]=$h2,8 | ||
| 387 | st4 [tmp0]=$h3 };; | ||
| 388 | { .mib; st4 [ctx]=$h4,-16 | ||
| 389 | mov pr=r2,0x1ffff | ||
| 390 | br.ret.sptk.many b0 };; | ||
| 391 | .endp sha1_block_asm_host_order# | ||
| 392 | ___ | ||
| 393 | |||
| 394 | |||
| 395 | $code.=<<___; | ||
| 396 | // void sha1_block_asm_data_order(SHA_CTX *c,const void *p,size_t num); | ||
| 397 | .global sha1_block_asm_data_order# | ||
| 398 | .proc sha1_block_asm_data_order# | ||
| 399 | .align 32 | ||
| 400 | sha1_block_asm_data_order: | ||
| 401 | ___ | ||
| 402 | $code.=<<___ if ($big_endian); | ||
| 403 | { .mmi; and r2=3,inp };; | ||
| 404 | { .mib; cmp.eq p6,p0=r0,r2 | ||
| 405 | (p6) br.dptk.many sha1_block_asm_host_order };; | ||
| 406 | ___ | ||
| 407 | $code.=<<___; | ||
| 408 | .prologue | ||
| 409 | .fframe 0 | ||
| 410 | .save ar.pfs,r0 | ||
| 411 | .save ar.lc,r3 | ||
| 412 | { .mmi; alloc tmp1=ar.pfs,3,15,0,0 | ||
| 413 | $ADDP tmp0=4,ctx | ||
| 414 | mov r3=ar.lc } | ||
| 415 | { .mmi; $ADDP ctx=0,ctx | ||
| 416 | $ADDP inp=0,inp | ||
| 417 | mov r2=pr };; | ||
| 418 | tmp4=in2; | ||
| 419 | tmp5=loc13; | ||
| 420 | tmp6=loc14; | ||
| 421 | .body | ||
| 422 | { .mlx; ld4 $h0=[ctx],8 | ||
| 423 | movl $K_00_19=0x5a827999 } | ||
| 424 | { .mlx; ld4 $h1=[tmp0],8 | ||
| 425 | movl $K_20_39=0x6ed9eba1 };; | ||
| 426 | { .mlx; ld4 $h2=[ctx],8 | ||
| 427 | movl $K_40_59=0x8f1bbcdc } | ||
| 428 | { .mlx; ld4 $h3=[tmp0] | ||
| 429 | movl $K_60_79=0xca62c1d6 };; | ||
| 430 | { .mmi; ld4 $h4=[ctx],-16 | ||
| 431 | add in2=-1,in2 // adjust num for ar.lc | ||
| 432 | mov ar.ec=1 };; | ||
| 433 | { .mmi; nop.m 0 | ||
| 434 | add tmp3=1,inp | ||
| 435 | mov ar.lc=in2 };; // brp.loop.imp: too far | ||
| 436 | |||
| 437 | .Ldtop: | ||
| 438 | { .mmi; mov $A=$h0 | ||
| 439 | mov $B=$h1 | ||
| 440 | mux2 tmp6=$h1,0x44 } | ||
| 441 | { .mmi; mov $C=$h2 | ||
| 442 | mov $D=$h3 | ||
| 443 | mov $E=$h4 };; | ||
| 444 | |||
| 445 | ___ | ||
| 446 | |||
| 447 | &BODY_00_15(\$code, 0,$A,$B,$C,$D,$E,$T,1); | ||
| 448 | &BODY_00_15(\$code, 1,$T,$A,$B,$C,$D,$E,1); | ||
| 449 | &BODY_00_15(\$code, 2,$E,$T,$A,$B,$C,$D,1); | ||
| 450 | &BODY_00_15(\$code, 3,$D,$E,$T,$A,$B,$C,1); | ||
| 451 | &BODY_00_15(\$code, 4,$C,$D,$E,$T,$A,$B,1); | ||
| 452 | &BODY_00_15(\$code, 5,$B,$C,$D,$E,$T,$A,1); | ||
| 453 | &BODY_00_15(\$code, 6,$A,$B,$C,$D,$E,$T,1); | ||
| 454 | &BODY_00_15(\$code, 7,$T,$A,$B,$C,$D,$E,1); | ||
| 455 | &BODY_00_15(\$code, 8,$E,$T,$A,$B,$C,$D,1); | ||
| 456 | &BODY_00_15(\$code, 9,$D,$E,$T,$A,$B,$C,1); | ||
| 457 | &BODY_00_15(\$code,10,$C,$D,$E,$T,$A,$B,1); | ||
| 458 | &BODY_00_15(\$code,11,$B,$C,$D,$E,$T,$A,1); | ||
| 459 | &BODY_00_15(\$code,12,$A,$B,$C,$D,$E,$T,1); | ||
| 460 | &BODY_00_15(\$code,13,$T,$A,$B,$C,$D,$E,1); | ||
| 461 | &BODY_00_15(\$code,14,$E,$T,$A,$B,$C,$D,1); | ||
| 462 | &BODY_00_15(\$code,15,$D,$E,$T,$A,$B,$C,1); | ||
| 463 | |||
| 464 | &BODY_16_19(\$code,16,$C,$D,$E,$T,$A,$B); | ||
| 465 | &BODY_16_19(\$code,17,$B,$C,$D,$E,$T,$A); | ||
| 466 | &BODY_16_19(\$code,18,$A,$B,$C,$D,$E,$T); | ||
| 467 | &BODY_16_19(\$code,19,$T,$A,$B,$C,$D,$E); | ||
| 468 | |||
| 469 | &BODY_20_39(\$code,20,$E,$T,$A,$B,$C,$D); | ||
| 470 | &BODY_20_39(\$code,21,$D,$E,$T,$A,$B,$C); | ||
| 471 | &BODY_20_39(\$code,22,$C,$D,$E,$T,$A,$B); | ||
| 472 | &BODY_20_39(\$code,23,$B,$C,$D,$E,$T,$A); | ||
| 473 | &BODY_20_39(\$code,24,$A,$B,$C,$D,$E,$T); | ||
| 474 | &BODY_20_39(\$code,25,$T,$A,$B,$C,$D,$E); | ||
| 475 | &BODY_20_39(\$code,26,$E,$T,$A,$B,$C,$D); | ||
| 476 | &BODY_20_39(\$code,27,$D,$E,$T,$A,$B,$C); | ||
| 477 | &BODY_20_39(\$code,28,$C,$D,$E,$T,$A,$B); | ||
| 478 | &BODY_20_39(\$code,29,$B,$C,$D,$E,$T,$A); | ||
| 479 | &BODY_20_39(\$code,30,$A,$B,$C,$D,$E,$T); | ||
| 480 | &BODY_20_39(\$code,31,$T,$A,$B,$C,$D,$E); | ||
| 481 | &BODY_20_39(\$code,32,$E,$T,$A,$B,$C,$D); | ||
| 482 | &BODY_20_39(\$code,33,$D,$E,$T,$A,$B,$C); | ||
| 483 | &BODY_20_39(\$code,34,$C,$D,$E,$T,$A,$B); | ||
| 484 | &BODY_20_39(\$code,35,$B,$C,$D,$E,$T,$A); | ||
| 485 | &BODY_20_39(\$code,36,$A,$B,$C,$D,$E,$T); | ||
| 486 | &BODY_20_39(\$code,37,$T,$A,$B,$C,$D,$E); | ||
| 487 | &BODY_20_39(\$code,38,$E,$T,$A,$B,$C,$D); | ||
| 488 | &BODY_20_39(\$code,39,$D,$E,$T,$A,$B,$C); | ||
| 489 | |||
| 490 | &BODY_40_59(\$code,40,$C,$D,$E,$T,$A,$B); | ||
| 491 | &BODY_40_59(\$code,41,$B,$C,$D,$E,$T,$A); | ||
| 492 | &BODY_40_59(\$code,42,$A,$B,$C,$D,$E,$T); | ||
| 493 | &BODY_40_59(\$code,43,$T,$A,$B,$C,$D,$E); | ||
| 494 | &BODY_40_59(\$code,44,$E,$T,$A,$B,$C,$D); | ||
| 495 | &BODY_40_59(\$code,45,$D,$E,$T,$A,$B,$C); | ||
| 496 | &BODY_40_59(\$code,46,$C,$D,$E,$T,$A,$B); | ||
| 497 | &BODY_40_59(\$code,47,$B,$C,$D,$E,$T,$A); | ||
| 498 | &BODY_40_59(\$code,48,$A,$B,$C,$D,$E,$T); | ||
| 499 | &BODY_40_59(\$code,49,$T,$A,$B,$C,$D,$E); | ||
| 500 | &BODY_40_59(\$code,50,$E,$T,$A,$B,$C,$D); | ||
| 501 | &BODY_40_59(\$code,51,$D,$E,$T,$A,$B,$C); | ||
| 502 | &BODY_40_59(\$code,52,$C,$D,$E,$T,$A,$B); | ||
| 503 | &BODY_40_59(\$code,53,$B,$C,$D,$E,$T,$A); | ||
| 504 | &BODY_40_59(\$code,54,$A,$B,$C,$D,$E,$T); | ||
| 505 | &BODY_40_59(\$code,55,$T,$A,$B,$C,$D,$E); | ||
| 506 | &BODY_40_59(\$code,56,$E,$T,$A,$B,$C,$D); | ||
| 507 | &BODY_40_59(\$code,57,$D,$E,$T,$A,$B,$C); | ||
| 508 | &BODY_40_59(\$code,58,$C,$D,$E,$T,$A,$B); | ||
| 509 | &BODY_40_59(\$code,59,$B,$C,$D,$E,$T,$A); | ||
| 510 | |||
| 511 | &BODY_60_79(\$code,60,$A,$B,$C,$D,$E,$T); | ||
| 512 | &BODY_60_79(\$code,61,$T,$A,$B,$C,$D,$E); | ||
| 513 | &BODY_60_79(\$code,62,$E,$T,$A,$B,$C,$D); | ||
| 514 | &BODY_60_79(\$code,63,$D,$E,$T,$A,$B,$C); | ||
| 515 | &BODY_60_79(\$code,64,$C,$D,$E,$T,$A,$B); | ||
| 516 | &BODY_60_79(\$code,65,$B,$C,$D,$E,$T,$A); | ||
| 517 | &BODY_60_79(\$code,66,$A,$B,$C,$D,$E,$T); | ||
| 518 | &BODY_60_79(\$code,67,$T,$A,$B,$C,$D,$E); | ||
| 519 | &BODY_60_79(\$code,68,$E,$T,$A,$B,$C,$D); | ||
| 520 | &BODY_60_79(\$code,69,$D,$E,$T,$A,$B,$C); | ||
| 521 | &BODY_60_79(\$code,70,$C,$D,$E,$T,$A,$B); | ||
| 522 | &BODY_60_79(\$code,71,$B,$C,$D,$E,$T,$A); | ||
| 523 | &BODY_60_79(\$code,72,$A,$B,$C,$D,$E,$T); | ||
| 524 | &BODY_60_79(\$code,73,$T,$A,$B,$C,$D,$E); | ||
| 525 | &BODY_60_79(\$code,74,$E,$T,$A,$B,$C,$D); | ||
| 526 | &BODY_60_79(\$code,75,$D,$E,$T,$A,$B,$C); | ||
| 527 | &BODY_60_79(\$code,76,$C,$D,$E,$T,$A,$B); | ||
| 528 | &BODY_60_79(\$code,77,$B,$C,$D,$E,$T,$A); | ||
| 529 | &BODY_60_79(\$code,78,$A,$B,$C,$D,$E,$T); | ||
| 530 | &BODY_60_79(\$code,79,$T,$A,$B,$C,$D,$E); | ||
| 531 | |||
| 532 | $code.=<<___; | ||
| 533 | { .mmb; add $h0=$h0,$E | ||
| 534 | nop.m 0 | ||
| 535 | br.ctop.dptk.many .Ldtop };; | ||
| 536 | .Ldend: | ||
| 537 | { .mmi; add tmp0=4,ctx | ||
| 538 | mov ar.lc=r3 };; | ||
| 539 | { .mmi; st4 [ctx]=$h0,8 | ||
| 540 | st4 [tmp0]=$h1,8 };; | ||
| 541 | { .mmi; st4 [ctx]=$h2,8 | ||
| 542 | st4 [tmp0]=$h3 };; | ||
| 543 | { .mib; st4 [ctx]=$h4,-16 | ||
| 544 | mov pr=r2,0x1ffff | ||
| 545 | br.ret.sptk.many b0 };; | ||
| 546 | .endp sha1_block_asm_data_order# | ||
| 547 | ___ | ||
| 548 | |||
| 549 | print $code; | ||
diff --git a/src/lib/libssl/src/crypto/stack/Makefile b/src/lib/libssl/src/crypto/stack/Makefile new file mode 100644 index 0000000000..4d5199a000 --- /dev/null +++ b/src/lib/libssl/src/crypto/stack/Makefile | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/stack/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= stack | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=stack.c | ||
| 26 | LIBOBJ=stack.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= stack.h safestack.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | stack.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 81 | stack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 82 | stack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 83 | stack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 84 | stack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 85 | stack.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 86 | stack.o: ../cryptlib.h stack.c | ||
diff --git a/src/lib/libssl/src/crypto/txt_db/Makefile b/src/lib/libssl/src/crypto/txt_db/Makefile new file mode 100644 index 0000000000..f91a08f006 --- /dev/null +++ b/src/lib/libssl/src/crypto/txt_db/Makefile | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/txt_db/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= txt_db | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=txt_db.c | ||
| 26 | LIBOBJ=txt_db.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= txt_db.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | files: | ||
| 46 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 47 | |||
| 48 | links: | ||
| 49 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 52 | |||
| 53 | install: | ||
| 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 55 | do \ | ||
| 56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 58 | done; | ||
| 59 | |||
| 60 | tags: | ||
| 61 | ctags $(SRC) | ||
| 62 | |||
| 63 | tests: | ||
| 64 | |||
| 65 | lint: | ||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 67 | |||
| 68 | depend: | ||
| 69 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 70 | |||
| 71 | dclean: | ||
| 72 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 73 | mv -f Makefile.new $(MAKEFILE) | ||
| 74 | |||
| 75 | clean: | ||
| 76 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 77 | |||
| 78 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 79 | |||
| 80 | txt_db.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 81 | txt_db.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 82 | txt_db.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 83 | txt_db.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 84 | txt_db.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 85 | txt_db.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 86 | txt_db.o: ../../include/openssl/txt_db.h ../cryptlib.h txt_db.c | ||
diff --git a/src/lib/libssl/src/crypto/ui/Makefile b/src/lib/libssl/src/crypto/ui/Makefile new file mode 100644 index 0000000000..fcb2a66a39 --- /dev/null +++ b/src/lib/libssl/src/crypto/ui/Makefile | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/ui/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ui | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | #TEST= uitest.c | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | COMPATSRC= ui_compat.c | ||
| 26 | COMPATOBJ= ui_compat.o | ||
| 27 | |||
| 28 | LIB=$(TOP)/libcrypto.a | ||
| 29 | LIBSRC= ui_err.c ui_lib.c ui_openssl.c ui_util.c $(COMPATSRC) | ||
| 30 | LIBOBJ= ui_err.o ui_lib.o ui_openssl.o ui_util.o $(COMPATOBJ) | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= ui.h ui_compat.h | ||
| 35 | HEADER= $(EXHEADER) ui_locl.h | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 56 | |||
| 57 | install: | ||
| 58 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 59 | do \ | ||
| 60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 62 | done; | ||
| 63 | |||
| 64 | tags: | ||
| 65 | ctags $(SRC) | ||
| 66 | |||
| 67 | tests: | ||
| 68 | |||
| 69 | lint: | ||
| 70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 71 | |||
| 72 | depend: | ||
| 73 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 74 | |||
| 75 | dclean: | ||
| 76 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 77 | mv -f Makefile.new $(MAKEFILE) | ||
| 78 | |||
| 79 | clean: | ||
| 80 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 81 | |||
| 82 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 83 | |||
| 84 | ui_compat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 85 | ui_compat.o: ../../include/openssl/opensslconf.h | ||
| 86 | ui_compat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 87 | ui_compat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 88 | ui_compat.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 89 | ui_compat.o: ui_compat.c | ||
| 90 | ui_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 91 | ui_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 92 | ui_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 93 | ui_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 94 | ui_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 95 | ui_err.o: ../../include/openssl/ui.h ui_err.c | ||
| 96 | ui_lib.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 97 | ui_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 98 | ui_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 99 | ui_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 100 | ui_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 101 | ui_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 102 | ui_lib.o: ../../include/openssl/ui.h ../cryptlib.h ui_lib.c ui_locl.h | ||
| 103 | ui_openssl.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 104 | ui_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 105 | ui_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 106 | ui_openssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 107 | ui_openssl.o: ../../include/openssl/opensslv.h | ||
| 108 | ui_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 109 | ui_openssl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 110 | ui_openssl.o: ../cryptlib.h ui_locl.h ui_openssl.c | ||
| 111 | ui_util.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 112 | ui_util.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 113 | ui_util.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 114 | ui_util.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 115 | ui_util.o: ui_util.c | ||
diff --git a/src/lib/libssl/src/crypto/x509/Makefile b/src/lib/libssl/src/crypto/x509/Makefile new file mode 100644 index 0000000000..5fb774f1c7 --- /dev/null +++ b/src/lib/libssl/src/crypto/x509/Makefile | |||
| @@ -0,0 +1,592 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/x509/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= x509 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile README | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c \ | ||
| 26 | x509_obj.c x509_req.c x509spki.c x509_vfy.c \ | ||
| 27 | x509_set.c x509cset.c x509rset.c x509_err.c \ | ||
| 28 | x509name.c x509_v3.c x509_ext.c x509_att.c \ | ||
| 29 | x509type.c x509_lu.c x_all.c x509_txt.c \ | ||
| 30 | x509_trs.c by_file.c by_dir.c | ||
| 31 | LIBOBJ= x509_def.o x509_d2.o x509_r2x.o x509_cmp.o \ | ||
| 32 | x509_obj.o x509_req.o x509spki.o x509_vfy.o \ | ||
| 33 | x509_set.o x509cset.o x509rset.o x509_err.o \ | ||
| 34 | x509name.o x509_v3.o x509_ext.o x509_att.o \ | ||
| 35 | x509type.o x509_lu.o x_all.o x509_txt.o \ | ||
| 36 | x509_trs.o by_file.o by_dir.o | ||
| 37 | |||
| 38 | SRC= $(LIBSRC) | ||
| 39 | |||
| 40 | EXHEADER= x509.h x509_vfy.h | ||
| 41 | HEADER= $(EXHEADER) | ||
| 42 | |||
| 43 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 44 | |||
| 45 | top: | ||
| 46 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 47 | |||
| 48 | all: lib | ||
| 49 | |||
| 50 | lib: $(LIBOBJ) | ||
| 51 | $(AR) $(LIB) $(LIBOBJ) | ||
| 52 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 53 | @touch lib | ||
| 54 | |||
| 55 | files: | ||
| 56 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 57 | |||
| 58 | links: | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 60 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 62 | |||
| 63 | install: | ||
| 64 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 65 | do \ | ||
| 66 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 67 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 68 | done; | ||
| 69 | |||
| 70 | tags: | ||
| 71 | ctags $(SRC) | ||
| 72 | |||
| 73 | tests: | ||
| 74 | |||
| 75 | lint: | ||
| 76 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 77 | |||
| 78 | depend: | ||
| 79 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 80 | |||
| 81 | dclean: | ||
| 82 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 83 | mv -f Makefile.new $(MAKEFILE) | ||
| 84 | |||
| 85 | clean: | ||
| 86 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 87 | |||
| 88 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 89 | |||
| 90 | by_dir.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 91 | by_dir.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 92 | by_dir.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 93 | by_dir.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 94 | by_dir.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 95 | by_dir.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 96 | by_dir.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 97 | by_dir.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 98 | by_dir.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 99 | by_dir.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 100 | by_dir.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 101 | by_dir.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 102 | by_dir.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 103 | by_dir.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 104 | by_dir.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 105 | by_dir.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 106 | by_dir.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 107 | by_dir.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 108 | by_dir.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 109 | by_dir.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 110 | by_dir.o: ../cryptlib.h by_dir.c | ||
| 111 | by_file.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 112 | by_file.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 113 | by_file.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 114 | by_file.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 115 | by_file.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 116 | by_file.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 117 | by_file.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 118 | by_file.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 119 | by_file.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 120 | by_file.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 121 | by_file.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 122 | by_file.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 123 | by_file.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 124 | by_file.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 125 | by_file.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 126 | by_file.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 127 | by_file.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 128 | by_file.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 129 | by_file.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 130 | by_file.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 131 | by_file.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 132 | by_file.o: ../../include/openssl/x509_vfy.h ../cryptlib.h by_file.c | ||
| 133 | x509_att.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 134 | x509_att.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 135 | x509_att.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 136 | x509_att.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 137 | x509_att.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 138 | x509_att.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 139 | x509_att.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 140 | x509_att.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 141 | x509_att.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 142 | x509_att.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 143 | x509_att.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 144 | x509_att.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 145 | x509_att.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 146 | x509_att.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 147 | x509_att.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 148 | x509_att.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 149 | x509_att.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 150 | x509_att.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 151 | x509_att.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 152 | x509_att.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 153 | x509_att.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 154 | x509_att.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_att.c | ||
| 155 | x509_cmp.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 156 | x509_cmp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 157 | x509_cmp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 158 | x509_cmp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 159 | x509_cmp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 160 | x509_cmp.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 161 | x509_cmp.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 162 | x509_cmp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 163 | x509_cmp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 164 | x509_cmp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 165 | x509_cmp.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 166 | x509_cmp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 167 | x509_cmp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 168 | x509_cmp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 169 | x509_cmp.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 170 | x509_cmp.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 171 | x509_cmp.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 172 | x509_cmp.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 173 | x509_cmp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 174 | x509_cmp.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 175 | x509_cmp.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 176 | x509_cmp.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_cmp.c | ||
| 177 | x509_d2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 178 | x509_d2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 179 | x509_d2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 180 | x509_d2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 181 | x509_d2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 182 | x509_d2.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 183 | x509_d2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 184 | x509_d2.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 185 | x509_d2.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 186 | x509_d2.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 187 | x509_d2.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 188 | x509_d2.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 189 | x509_d2.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 190 | x509_d2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 191 | x509_d2.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 192 | x509_d2.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 193 | x509_d2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 194 | x509_d2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 195 | x509_d2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 196 | x509_d2.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 197 | x509_d2.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x509_d2.c | ||
| 198 | x509_def.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 199 | x509_def.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 200 | x509_def.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 201 | x509_def.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 202 | x509_def.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 203 | x509_def.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 204 | x509_def.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 205 | x509_def.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 206 | x509_def.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 207 | x509_def.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 208 | x509_def.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 209 | x509_def.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 210 | x509_def.o: ../../include/openssl/opensslconf.h | ||
| 211 | x509_def.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 212 | x509_def.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 213 | x509_def.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 214 | x509_def.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 215 | x509_def.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 216 | x509_def.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 217 | x509_def.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 218 | x509_def.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 219 | x509_def.o: ../cryptlib.h x509_def.c | ||
| 220 | x509_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 221 | x509_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 222 | x509_err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 223 | x509_err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 224 | x509_err.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 225 | x509_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 226 | x509_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 227 | x509_err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 228 | x509_err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 229 | x509_err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 230 | x509_err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 231 | x509_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 232 | x509_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 233 | x509_err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 234 | x509_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 235 | x509_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 236 | x509_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 237 | x509_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 238 | x509_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 239 | x509_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 240 | x509_err.o: x509_err.c | ||
| 241 | x509_ext.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 242 | x509_ext.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 243 | x509_ext.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 244 | x509_ext.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 245 | x509_ext.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 246 | x509_ext.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 247 | x509_ext.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 248 | x509_ext.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 249 | x509_ext.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 250 | x509_ext.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 251 | x509_ext.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 252 | x509_ext.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 253 | x509_ext.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 254 | x509_ext.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 255 | x509_ext.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 256 | x509_ext.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 257 | x509_ext.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 258 | x509_ext.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 259 | x509_ext.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 260 | x509_ext.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 261 | x509_ext.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 262 | x509_ext.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_ext.c | ||
| 263 | x509_lu.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 264 | x509_lu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 265 | x509_lu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 266 | x509_lu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 267 | x509_lu.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 268 | x509_lu.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 269 | x509_lu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 270 | x509_lu.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 271 | x509_lu.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 272 | x509_lu.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 273 | x509_lu.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 274 | x509_lu.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 275 | x509_lu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 276 | x509_lu.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 277 | x509_lu.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 278 | x509_lu.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 279 | x509_lu.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 280 | x509_lu.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 281 | x509_lu.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 282 | x509_lu.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 283 | x509_lu.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 284 | x509_lu.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_lu.c | ||
| 285 | x509_obj.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 286 | x509_obj.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 287 | x509_obj.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 288 | x509_obj.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 289 | x509_obj.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 290 | x509_obj.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 291 | x509_obj.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 292 | x509_obj.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 293 | x509_obj.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 294 | x509_obj.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 295 | x509_obj.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 296 | x509_obj.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 297 | x509_obj.o: ../../include/openssl/opensslconf.h | ||
| 298 | x509_obj.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 299 | x509_obj.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 300 | x509_obj.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 301 | x509_obj.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 302 | x509_obj.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 303 | x509_obj.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 304 | x509_obj.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 305 | x509_obj.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 306 | x509_obj.o: ../cryptlib.h x509_obj.c | ||
| 307 | x509_r2x.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 308 | x509_r2x.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 309 | x509_r2x.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 310 | x509_r2x.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 311 | x509_r2x.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 312 | x509_r2x.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 313 | x509_r2x.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 314 | x509_r2x.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 315 | x509_r2x.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 316 | x509_r2x.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 317 | x509_r2x.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 318 | x509_r2x.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 319 | x509_r2x.o: ../../include/openssl/opensslconf.h | ||
| 320 | x509_r2x.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 321 | x509_r2x.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 322 | x509_r2x.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 323 | x509_r2x.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 324 | x509_r2x.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 325 | x509_r2x.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 326 | x509_r2x.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 327 | x509_r2x.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 328 | x509_r2x.o: ../cryptlib.h x509_r2x.c | ||
| 329 | x509_req.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 330 | x509_req.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 331 | x509_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 332 | x509_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 333 | x509_req.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 334 | x509_req.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 335 | x509_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 336 | x509_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 337 | x509_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 338 | x509_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 339 | x509_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 340 | x509_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 341 | x509_req.o: ../../include/openssl/opensslconf.h | ||
| 342 | x509_req.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 343 | x509_req.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 344 | x509_req.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 345 | x509_req.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 346 | x509_req.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 347 | x509_req.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 348 | x509_req.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 349 | x509_req.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 350 | x509_req.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 351 | x509_req.o: ../cryptlib.h x509_req.c | ||
| 352 | x509_set.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 353 | x509_set.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 354 | x509_set.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 355 | x509_set.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 356 | x509_set.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 357 | x509_set.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 358 | x509_set.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 359 | x509_set.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 360 | x509_set.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 361 | x509_set.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 362 | x509_set.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 363 | x509_set.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 364 | x509_set.o: ../../include/openssl/opensslconf.h | ||
| 365 | x509_set.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 366 | x509_set.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 367 | x509_set.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 368 | x509_set.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 369 | x509_set.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 370 | x509_set.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 371 | x509_set.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 372 | x509_set.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 373 | x509_set.o: ../cryptlib.h x509_set.c | ||
| 374 | x509_trs.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 375 | x509_trs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 376 | x509_trs.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 377 | x509_trs.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 378 | x509_trs.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 379 | x509_trs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 380 | x509_trs.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 381 | x509_trs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 382 | x509_trs.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 383 | x509_trs.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 384 | x509_trs.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 385 | x509_trs.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 386 | x509_trs.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 387 | x509_trs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 388 | x509_trs.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 389 | x509_trs.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 390 | x509_trs.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 391 | x509_trs.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 392 | x509_trs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 393 | x509_trs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 394 | x509_trs.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 395 | x509_trs.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_trs.c | ||
| 396 | x509_txt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 397 | x509_txt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 398 | x509_txt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 399 | x509_txt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 400 | x509_txt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 401 | x509_txt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 402 | x509_txt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 403 | x509_txt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 404 | x509_txt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 405 | x509_txt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 406 | x509_txt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 407 | x509_txt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 408 | x509_txt.o: ../../include/openssl/opensslconf.h | ||
| 409 | x509_txt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 410 | x509_txt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 411 | x509_txt.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 412 | x509_txt.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 413 | x509_txt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 414 | x509_txt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 415 | x509_txt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 416 | x509_txt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 417 | x509_txt.o: ../cryptlib.h x509_txt.c | ||
| 418 | x509_v3.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 419 | x509_v3.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 420 | x509_v3.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 421 | x509_v3.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 422 | x509_v3.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 423 | x509_v3.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 424 | x509_v3.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 425 | x509_v3.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 426 | x509_v3.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 427 | x509_v3.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 428 | x509_v3.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 429 | x509_v3.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 430 | x509_v3.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 431 | x509_v3.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 432 | x509_v3.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 433 | x509_v3.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 434 | x509_v3.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 435 | x509_v3.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 436 | x509_v3.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 437 | x509_v3.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 438 | x509_v3.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 439 | x509_v3.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_v3.c | ||
| 440 | x509_vfy.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 441 | x509_vfy.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 442 | x509_vfy.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 443 | x509_vfy.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 444 | x509_vfy.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 445 | x509_vfy.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 446 | x509_vfy.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 447 | x509_vfy.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 448 | x509_vfy.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 449 | x509_vfy.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 450 | x509_vfy.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 451 | x509_vfy.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 452 | x509_vfy.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 453 | x509_vfy.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 454 | x509_vfy.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 455 | x509_vfy.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 456 | x509_vfy.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 457 | x509_vfy.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 458 | x509_vfy.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 459 | x509_vfy.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 460 | x509_vfy.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 461 | x509_vfy.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_vfy.c | ||
| 462 | x509cset.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 463 | x509cset.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 464 | x509cset.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 465 | x509cset.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 466 | x509cset.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 467 | x509cset.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 468 | x509cset.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 469 | x509cset.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 470 | x509cset.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 471 | x509cset.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 472 | x509cset.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 473 | x509cset.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 474 | x509cset.o: ../../include/openssl/opensslconf.h | ||
| 475 | x509cset.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 476 | x509cset.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 477 | x509cset.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 478 | x509cset.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 479 | x509cset.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 480 | x509cset.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 481 | x509cset.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 482 | x509cset.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 483 | x509cset.o: ../cryptlib.h x509cset.c | ||
| 484 | x509name.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 485 | x509name.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 486 | x509name.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 487 | x509name.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 488 | x509name.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 489 | x509name.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 490 | x509name.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 491 | x509name.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 492 | x509name.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 493 | x509name.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 494 | x509name.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 495 | x509name.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 496 | x509name.o: ../../include/openssl/opensslconf.h | ||
| 497 | x509name.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 498 | x509name.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 499 | x509name.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 500 | x509name.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 501 | x509name.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 502 | x509name.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 503 | x509name.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 504 | x509name.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 505 | x509name.o: ../cryptlib.h x509name.c | ||
| 506 | x509rset.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 507 | x509rset.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 508 | x509rset.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 509 | x509rset.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 510 | x509rset.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 511 | x509rset.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 512 | x509rset.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 513 | x509rset.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 514 | x509rset.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 515 | x509rset.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 516 | x509rset.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 517 | x509rset.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 518 | x509rset.o: ../../include/openssl/opensslconf.h | ||
| 519 | x509rset.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 520 | x509rset.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 521 | x509rset.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 522 | x509rset.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 523 | x509rset.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 524 | x509rset.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 525 | x509rset.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 526 | x509rset.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 527 | x509rset.o: ../cryptlib.h x509rset.c | ||
| 528 | x509spki.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 529 | x509spki.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 530 | x509spki.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 531 | x509spki.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 532 | x509spki.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 533 | x509spki.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 534 | x509spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 535 | x509spki.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 536 | x509spki.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 537 | x509spki.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 538 | x509spki.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 539 | x509spki.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 540 | x509spki.o: ../../include/openssl/opensslconf.h | ||
| 541 | x509spki.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 542 | x509spki.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 543 | x509spki.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 544 | x509spki.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 545 | x509spki.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 546 | x509spki.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 547 | x509spki.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 548 | x509spki.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 549 | x509spki.o: ../cryptlib.h x509spki.c | ||
| 550 | x509type.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 551 | x509type.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 552 | x509type.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 553 | x509type.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 554 | x509type.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 555 | x509type.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 556 | x509type.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 557 | x509type.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 558 | x509type.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 559 | x509type.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 560 | x509type.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 561 | x509type.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 562 | x509type.o: ../../include/openssl/opensslconf.h | ||
| 563 | x509type.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 564 | x509type.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 565 | x509type.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 566 | x509type.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 567 | x509type.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 568 | x509type.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 569 | x509type.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 570 | x509type.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 571 | x509type.o: ../cryptlib.h x509type.c | ||
| 572 | x_all.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 573 | x_all.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 574 | x_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 575 | x_all.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 576 | x_all.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 577 | x_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 578 | x_all.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 579 | x_all.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 580 | x_all.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 581 | x_all.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 582 | x_all.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 583 | x_all.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 584 | x_all.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 585 | x_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 586 | x_all.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 587 | x_all.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 588 | x_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 589 | x_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 590 | x_all.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 591 | x_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 592 | x_all.o: ../cryptlib.h x_all.c | ||
diff --git a/src/lib/libssl/src/crypto/x509v3/Makefile b/src/lib/libssl/src/crypto/x509v3/Makefile new file mode 100644 index 0000000000..ed2f91cbb3 --- /dev/null +++ b/src/lib/libssl/src/crypto/x509v3/Makefile | |||
| @@ -0,0 +1,645 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/x509v3/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= x509v3 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile README | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c \ | ||
| 26 | v3_prn.c v3_utl.c v3err.c v3_genn.c v3_alt.c v3_skey.c v3_akey.c v3_pku.c \ | ||
| 27 | v3_int.c v3_enum.c v3_sxnet.c v3_cpols.c v3_crld.c v3_purp.c v3_info.c \ | ||
| 28 | v3_ocsp.c v3_akeya.c v3_pcia.c v3_pci.c | ||
| 29 | LIBOBJ= v3_bcons.o v3_bitst.o v3_conf.o v3_extku.o v3_ia5.o v3_lib.o \ | ||
| 30 | v3_prn.o v3_utl.o v3err.o v3_genn.o v3_alt.o v3_skey.o v3_akey.o v3_pku.o \ | ||
| 31 | v3_int.o v3_enum.o v3_sxnet.o v3_cpols.o v3_crld.o v3_purp.o v3_info.o \ | ||
| 32 | v3_ocsp.o v3_akeya.o v3_pcia.o v3_pci.o | ||
| 33 | |||
| 34 | SRC= $(LIBSRC) | ||
| 35 | |||
| 36 | EXHEADER= x509v3.h | ||
| 37 | HEADER= $(EXHEADER) | ||
| 38 | |||
| 39 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 40 | |||
| 41 | top: | ||
| 42 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 43 | |||
| 44 | all: lib | ||
| 45 | |||
| 46 | lib: $(LIBOBJ) | ||
| 47 | $(AR) $(LIB) $(LIBOBJ) | ||
| 48 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 49 | @touch lib | ||
| 50 | |||
| 51 | files: | ||
| 52 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 53 | |||
| 54 | links: | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 58 | |||
| 59 | install: | ||
| 60 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 61 | do \ | ||
| 62 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 63 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 64 | done; | ||
| 65 | |||
| 66 | tags: | ||
| 67 | ctags $(SRC) | ||
| 68 | |||
| 69 | tests: | ||
| 70 | |||
| 71 | lint: | ||
| 72 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 73 | |||
| 74 | depend: | ||
| 75 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 76 | |||
| 77 | dclean: | ||
| 78 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 79 | mv -f Makefile.new $(MAKEFILE) | ||
| 80 | |||
| 81 | clean: | ||
| 82 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 83 | |||
| 84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 85 | |||
| 86 | v3_akey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 87 | v3_akey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 88 | v3_akey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 89 | v3_akey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 90 | v3_akey.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 91 | v3_akey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 92 | v3_akey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 93 | v3_akey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 94 | v3_akey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 95 | v3_akey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 96 | v3_akey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 97 | v3_akey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 98 | v3_akey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 99 | v3_akey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 100 | v3_akey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 101 | v3_akey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 102 | v3_akey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 103 | v3_akey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 104 | v3_akey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 105 | v3_akey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 106 | v3_akey.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 107 | v3_akey.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 108 | v3_akey.o: ../cryptlib.h v3_akey.c | ||
| 109 | v3_akeya.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 110 | v3_akeya.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 111 | v3_akeya.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 112 | v3_akeya.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 113 | v3_akeya.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 114 | v3_akeya.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 115 | v3_akeya.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 116 | v3_akeya.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 117 | v3_akeya.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 118 | v3_akeya.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 119 | v3_akeya.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 120 | v3_akeya.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 121 | v3_akeya.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 122 | v3_akeya.o: ../../include/openssl/opensslconf.h | ||
| 123 | v3_akeya.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 124 | v3_akeya.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 125 | v3_akeya.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 126 | v3_akeya.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 127 | v3_akeya.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 128 | v3_akeya.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 129 | v3_akeya.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 130 | v3_akeya.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 131 | v3_akeya.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_akeya.c | ||
| 132 | v3_alt.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 133 | v3_alt.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 134 | v3_alt.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 135 | v3_alt.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 136 | v3_alt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 137 | v3_alt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 138 | v3_alt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 139 | v3_alt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 140 | v3_alt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 141 | v3_alt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 142 | v3_alt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 143 | v3_alt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 144 | v3_alt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 145 | v3_alt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 146 | v3_alt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 147 | v3_alt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 148 | v3_alt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 149 | v3_alt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 150 | v3_alt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 151 | v3_alt.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 152 | v3_alt.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 153 | v3_alt.o: ../cryptlib.h v3_alt.c | ||
| 154 | v3_bcons.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 155 | v3_bcons.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 156 | v3_bcons.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 157 | v3_bcons.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 158 | v3_bcons.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 159 | v3_bcons.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 160 | v3_bcons.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 161 | v3_bcons.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 162 | v3_bcons.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 163 | v3_bcons.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 164 | v3_bcons.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 165 | v3_bcons.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 166 | v3_bcons.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 167 | v3_bcons.o: ../../include/openssl/opensslconf.h | ||
| 168 | v3_bcons.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 169 | v3_bcons.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 170 | v3_bcons.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 171 | v3_bcons.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 172 | v3_bcons.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 173 | v3_bcons.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 174 | v3_bcons.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 175 | v3_bcons.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 176 | v3_bcons.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_bcons.c | ||
| 177 | v3_bitst.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 178 | v3_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 179 | v3_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 180 | v3_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 181 | v3_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 182 | v3_bitst.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 183 | v3_bitst.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 184 | v3_bitst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 185 | v3_bitst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 186 | v3_bitst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 187 | v3_bitst.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 188 | v3_bitst.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 189 | v3_bitst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 190 | v3_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 191 | v3_bitst.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 192 | v3_bitst.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 193 | v3_bitst.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 194 | v3_bitst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 195 | v3_bitst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 196 | v3_bitst.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 197 | v3_bitst.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 198 | v3_bitst.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_bitst.c | ||
| 199 | v3_conf.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 200 | v3_conf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 201 | v3_conf.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 202 | v3_conf.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 203 | v3_conf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 204 | v3_conf.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 205 | v3_conf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 206 | v3_conf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 207 | v3_conf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 208 | v3_conf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 209 | v3_conf.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 210 | v3_conf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 211 | v3_conf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 212 | v3_conf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 213 | v3_conf.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 214 | v3_conf.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 215 | v3_conf.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 216 | v3_conf.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 217 | v3_conf.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 218 | v3_conf.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 219 | v3_conf.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 220 | v3_conf.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_conf.c | ||
| 221 | v3_cpols.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 222 | v3_cpols.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 223 | v3_cpols.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 224 | v3_cpols.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 225 | v3_cpols.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 226 | v3_cpols.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 227 | v3_cpols.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 228 | v3_cpols.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 229 | v3_cpols.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 230 | v3_cpols.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 231 | v3_cpols.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 232 | v3_cpols.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 233 | v3_cpols.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 234 | v3_cpols.o: ../../include/openssl/opensslconf.h | ||
| 235 | v3_cpols.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 236 | v3_cpols.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 237 | v3_cpols.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 238 | v3_cpols.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 239 | v3_cpols.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 240 | v3_cpols.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 241 | v3_cpols.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 242 | v3_cpols.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 243 | v3_cpols.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_cpols.c | ||
| 244 | v3_crld.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 245 | v3_crld.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 246 | v3_crld.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 247 | v3_crld.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 248 | v3_crld.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 249 | v3_crld.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 250 | v3_crld.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 251 | v3_crld.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 252 | v3_crld.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 253 | v3_crld.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 254 | v3_crld.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 255 | v3_crld.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 256 | v3_crld.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 257 | v3_crld.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 258 | v3_crld.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 259 | v3_crld.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 260 | v3_crld.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 261 | v3_crld.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 262 | v3_crld.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 263 | v3_crld.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 264 | v3_crld.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 265 | v3_crld.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 266 | v3_crld.o: ../cryptlib.h v3_crld.c | ||
| 267 | v3_enum.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 268 | v3_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 269 | v3_enum.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 270 | v3_enum.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 271 | v3_enum.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 272 | v3_enum.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 273 | v3_enum.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 274 | v3_enum.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 275 | v3_enum.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 276 | v3_enum.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 277 | v3_enum.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 278 | v3_enum.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 279 | v3_enum.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 280 | v3_enum.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 281 | v3_enum.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 282 | v3_enum.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 283 | v3_enum.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 284 | v3_enum.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 285 | v3_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 286 | v3_enum.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 287 | v3_enum.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 288 | v3_enum.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_enum.c | ||
| 289 | v3_extku.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 290 | v3_extku.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 291 | v3_extku.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 292 | v3_extku.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 293 | v3_extku.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 294 | v3_extku.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 295 | v3_extku.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 296 | v3_extku.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 297 | v3_extku.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 298 | v3_extku.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 299 | v3_extku.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 300 | v3_extku.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 301 | v3_extku.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 302 | v3_extku.o: ../../include/openssl/opensslconf.h | ||
| 303 | v3_extku.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 304 | v3_extku.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 305 | v3_extku.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 306 | v3_extku.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 307 | v3_extku.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 308 | v3_extku.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 309 | v3_extku.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 310 | v3_extku.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 311 | v3_extku.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_extku.c | ||
| 312 | v3_genn.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 313 | v3_genn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 314 | v3_genn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 315 | v3_genn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 316 | v3_genn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 317 | v3_genn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 318 | v3_genn.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 319 | v3_genn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 320 | v3_genn.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 321 | v3_genn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 322 | v3_genn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 323 | v3_genn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 324 | v3_genn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 325 | v3_genn.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 326 | v3_genn.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 327 | v3_genn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 328 | v3_genn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 329 | v3_genn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 330 | v3_genn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 331 | v3_genn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 332 | v3_genn.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 333 | v3_genn.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 334 | v3_genn.o: ../cryptlib.h v3_genn.c | ||
| 335 | v3_ia5.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 336 | v3_ia5.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 337 | v3_ia5.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 338 | v3_ia5.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 339 | v3_ia5.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 340 | v3_ia5.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 341 | v3_ia5.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 342 | v3_ia5.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 343 | v3_ia5.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 344 | v3_ia5.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 345 | v3_ia5.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 346 | v3_ia5.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 347 | v3_ia5.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 348 | v3_ia5.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 349 | v3_ia5.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 350 | v3_ia5.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 351 | v3_ia5.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 352 | v3_ia5.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 353 | v3_ia5.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 354 | v3_ia5.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 355 | v3_ia5.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 356 | v3_ia5.o: ../cryptlib.h v3_ia5.c | ||
| 357 | v3_info.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 358 | v3_info.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 359 | v3_info.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 360 | v3_info.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 361 | v3_info.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 362 | v3_info.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 363 | v3_info.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 364 | v3_info.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 365 | v3_info.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 366 | v3_info.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 367 | v3_info.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 368 | v3_info.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 369 | v3_info.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 370 | v3_info.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 371 | v3_info.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 372 | v3_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 373 | v3_info.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 374 | v3_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 375 | v3_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 376 | v3_info.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 377 | v3_info.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 378 | v3_info.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 379 | v3_info.o: ../cryptlib.h v3_info.c | ||
| 380 | v3_int.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 381 | v3_int.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 382 | v3_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 383 | v3_int.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 384 | v3_int.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 385 | v3_int.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 386 | v3_int.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 387 | v3_int.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 388 | v3_int.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 389 | v3_int.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 390 | v3_int.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 391 | v3_int.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 392 | v3_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 393 | v3_int.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 394 | v3_int.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 395 | v3_int.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 396 | v3_int.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 397 | v3_int.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 398 | v3_int.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 399 | v3_int.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 400 | v3_int.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 401 | v3_int.o: ../cryptlib.h v3_int.c | ||
| 402 | v3_lib.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 403 | v3_lib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 404 | v3_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 405 | v3_lib.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 406 | v3_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 407 | v3_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 408 | v3_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 409 | v3_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 410 | v3_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 411 | v3_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 412 | v3_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 413 | v3_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 414 | v3_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 415 | v3_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 416 | v3_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 417 | v3_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 418 | v3_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 419 | v3_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 420 | v3_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 421 | v3_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 422 | v3_lib.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 423 | v3_lib.o: ../cryptlib.h ext_dat.h v3_lib.c | ||
| 424 | v3_ocsp.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 425 | v3_ocsp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 426 | v3_ocsp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 427 | v3_ocsp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 428 | v3_ocsp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 429 | v3_ocsp.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 430 | v3_ocsp.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 431 | v3_ocsp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 432 | v3_ocsp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 433 | v3_ocsp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 434 | v3_ocsp.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 435 | v3_ocsp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 436 | v3_ocsp.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 437 | v3_ocsp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 438 | v3_ocsp.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 439 | v3_ocsp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 440 | v3_ocsp.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 441 | v3_ocsp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 442 | v3_ocsp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 443 | v3_ocsp.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 444 | v3_ocsp.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 445 | v3_ocsp.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 446 | v3_ocsp.o: ../cryptlib.h v3_ocsp.c | ||
| 447 | v3_pci.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 448 | v3_pci.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 449 | v3_pci.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 450 | v3_pci.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 451 | v3_pci.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 452 | v3_pci.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 453 | v3_pci.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 454 | v3_pci.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 455 | v3_pci.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 456 | v3_pci.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 457 | v3_pci.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 458 | v3_pci.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 459 | v3_pci.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 460 | v3_pci.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 461 | v3_pci.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 462 | v3_pci.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 463 | v3_pci.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 464 | v3_pci.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 465 | v3_pci.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 466 | v3_pci.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 467 | v3_pci.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 468 | v3_pci.o: ../cryptlib.h v3_pci.c | ||
| 469 | v3_pcia.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 470 | v3_pcia.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 471 | v3_pcia.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 472 | v3_pcia.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 473 | v3_pcia.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 474 | v3_pcia.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 475 | v3_pcia.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 476 | v3_pcia.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h | ||
| 477 | v3_pcia.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 478 | v3_pcia.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 479 | v3_pcia.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 480 | v3_pcia.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 481 | v3_pcia.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 482 | v3_pcia.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 483 | v3_pcia.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 484 | v3_pcia.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 485 | v3_pcia.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 486 | v3_pcia.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 487 | v3_pcia.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 488 | v3_pcia.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 489 | v3_pcia.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 490 | v3_pcia.o: v3_pcia.c | ||
| 491 | v3_pku.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 492 | v3_pku.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 493 | v3_pku.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 494 | v3_pku.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 495 | v3_pku.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 496 | v3_pku.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 497 | v3_pku.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 498 | v3_pku.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 499 | v3_pku.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 500 | v3_pku.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 501 | v3_pku.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 502 | v3_pku.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 503 | v3_pku.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 504 | v3_pku.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 505 | v3_pku.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 506 | v3_pku.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 507 | v3_pku.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 508 | v3_pku.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 509 | v3_pku.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 510 | v3_pku.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 511 | v3_pku.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 512 | v3_pku.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_pku.c | ||
| 513 | v3_prn.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 514 | v3_prn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 515 | v3_prn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 516 | v3_prn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 517 | v3_prn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 518 | v3_prn.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 519 | v3_prn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 520 | v3_prn.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 521 | v3_prn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 522 | v3_prn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 523 | v3_prn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 524 | v3_prn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 525 | v3_prn.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 526 | v3_prn.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 527 | v3_prn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 528 | v3_prn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 529 | v3_prn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 530 | v3_prn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 531 | v3_prn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 532 | v3_prn.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 533 | v3_prn.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 534 | v3_prn.o: ../cryptlib.h v3_prn.c | ||
| 535 | v3_purp.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 536 | v3_purp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 537 | v3_purp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 538 | v3_purp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 539 | v3_purp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 540 | v3_purp.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 541 | v3_purp.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 542 | v3_purp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 543 | v3_purp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 544 | v3_purp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 545 | v3_purp.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 546 | v3_purp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 547 | v3_purp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 548 | v3_purp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 549 | v3_purp.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 550 | v3_purp.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 551 | v3_purp.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 552 | v3_purp.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 553 | v3_purp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 554 | v3_purp.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 555 | v3_purp.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 556 | v3_purp.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_purp.c | ||
| 557 | v3_skey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 558 | v3_skey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 559 | v3_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 560 | v3_skey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 561 | v3_skey.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 562 | v3_skey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 563 | v3_skey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 564 | v3_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 565 | v3_skey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 566 | v3_skey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 567 | v3_skey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 568 | v3_skey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 569 | v3_skey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 570 | v3_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 571 | v3_skey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 572 | v3_skey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 573 | v3_skey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 574 | v3_skey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 575 | v3_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 576 | v3_skey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 577 | v3_skey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 578 | v3_skey.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_skey.c | ||
| 579 | v3_sxnet.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 580 | v3_sxnet.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 581 | v3_sxnet.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 582 | v3_sxnet.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 583 | v3_sxnet.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 584 | v3_sxnet.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 585 | v3_sxnet.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 586 | v3_sxnet.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 587 | v3_sxnet.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 588 | v3_sxnet.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 589 | v3_sxnet.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 590 | v3_sxnet.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 591 | v3_sxnet.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 592 | v3_sxnet.o: ../../include/openssl/opensslconf.h | ||
| 593 | v3_sxnet.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 594 | v3_sxnet.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 595 | v3_sxnet.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 596 | v3_sxnet.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 597 | v3_sxnet.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 598 | v3_sxnet.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 599 | v3_sxnet.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 600 | v3_sxnet.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 601 | v3_sxnet.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_sxnet.c | ||
| 602 | v3_utl.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 603 | v3_utl.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 604 | v3_utl.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 605 | v3_utl.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 606 | v3_utl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 607 | v3_utl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 608 | v3_utl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 609 | v3_utl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 610 | v3_utl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 611 | v3_utl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 612 | v3_utl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 613 | v3_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 614 | v3_utl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 615 | v3_utl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 616 | v3_utl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 617 | v3_utl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 618 | v3_utl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 619 | v3_utl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 620 | v3_utl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 621 | v3_utl.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 622 | v3_utl.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 623 | v3_utl.o: ../cryptlib.h v3_utl.c | ||
| 624 | v3err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 625 | v3err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 626 | v3err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 627 | v3err.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 628 | v3err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 629 | v3err.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 630 | v3err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 631 | v3err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 632 | v3err.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 633 | v3err.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 634 | v3err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 635 | v3err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 636 | v3err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 637 | v3err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 638 | v3err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 639 | v3err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 640 | v3err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 641 | v3err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 642 | v3err.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 643 | v3err.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 644 | v3err.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 645 | v3err.o: v3err.c | ||
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_pci.c b/src/lib/libssl/src/crypto/x509v3/v3_pci.c new file mode 100644 index 0000000000..b32d968619 --- /dev/null +++ b/src/lib/libssl/src/crypto/x509v3/v3_pci.c | |||
| @@ -0,0 +1,313 @@ | |||
| 1 | /* v3_pci.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Contributed to the OpenSSL Project 2004 | ||
| 3 | * by Richard Levitte (richard@levitte.org) | ||
| 4 | */ | ||
| 5 | /* Copyright (c) 2004 Kungliga Tekniska Högskolan | ||
| 6 | * (Royal Institute of Technology, Stockholm, Sweden). | ||
| 7 | * All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in the | ||
| 18 | * documentation and/or other materials provided with the distribution. | ||
| 19 | * | ||
| 20 | * 3. Neither the name of the Institute nor the names of its contributors | ||
| 21 | * may be used to endorse or promote products derived from this software | ||
| 22 | * without specific prior written permission. | ||
| 23 | * | ||
| 24 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND | ||
| 25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE | ||
| 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 34 | * SUCH DAMAGE. | ||
| 35 | */ | ||
| 36 | |||
| 37 | #include <stdio.h> | ||
| 38 | #include "cryptlib.h" | ||
| 39 | #include <openssl/conf.h> | ||
| 40 | #include <openssl/x509v3.h> | ||
| 41 | |||
| 42 | static int i2r_pci(X509V3_EXT_METHOD *method, PROXY_CERT_INFO_EXTENSION *ext, | ||
| 43 | BIO *out, int indent); | ||
| 44 | static PROXY_CERT_INFO_EXTENSION *r2i_pci(X509V3_EXT_METHOD *method, | ||
| 45 | X509V3_CTX *ctx, char *str); | ||
| 46 | |||
| 47 | X509V3_EXT_METHOD v3_pci = | ||
| 48 | { NID_proxyCertInfo, 0, ASN1_ITEM_ref(PROXY_CERT_INFO_EXTENSION), | ||
| 49 | 0,0,0,0, | ||
| 50 | 0,0, | ||
| 51 | NULL, NULL, | ||
| 52 | (X509V3_EXT_I2R)i2r_pci, | ||
| 53 | (X509V3_EXT_R2I)r2i_pci, | ||
| 54 | NULL, | ||
| 55 | }; | ||
| 56 | |||
| 57 | static int i2r_pci(X509V3_EXT_METHOD *method, PROXY_CERT_INFO_EXTENSION *pci, | ||
| 58 | BIO *out, int indent) | ||
| 59 | { | ||
| 60 | BIO_printf(out, "%*sPath Length Constraint: ", indent, ""); | ||
| 61 | if (pci->pcPathLengthConstraint) | ||
| 62 | i2a_ASN1_INTEGER(out, pci->pcPathLengthConstraint); | ||
| 63 | else | ||
| 64 | BIO_printf(out, "infinite"); | ||
| 65 | BIO_puts(out, "\n"); | ||
| 66 | BIO_printf(out, "%*sPolicy Language: ", indent, ""); | ||
| 67 | i2a_ASN1_OBJECT(out, pci->proxyPolicy->policyLanguage); | ||
| 68 | BIO_puts(out, "\n"); | ||
| 69 | if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) | ||
| 70 | BIO_printf(out, "%*sPolicy Text: %s\n", indent, "", | ||
| 71 | pci->proxyPolicy->policy->data); | ||
| 72 | return 1; | ||
| 73 | } | ||
| 74 | |||
| 75 | static int process_pci_value(CONF_VALUE *val, | ||
| 76 | ASN1_OBJECT **language, ASN1_INTEGER **pathlen, | ||
| 77 | ASN1_OCTET_STRING **policy) | ||
| 78 | { | ||
| 79 | int free_policy = 0; | ||
| 80 | |||
| 81 | if (strcmp(val->name, "language") == 0) | ||
| 82 | { | ||
| 83 | if (*language) | ||
| 84 | { | ||
| 85 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_POLICY_LANGUAGE_ALREADTY_DEFINED); | ||
| 86 | X509V3_conf_err(val); | ||
| 87 | return 0; | ||
| 88 | } | ||
| 89 | if (!(*language = OBJ_txt2obj(val->value, 0))) | ||
| 90 | { | ||
| 91 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_INVALID_OBJECT_IDENTIFIER); | ||
| 92 | X509V3_conf_err(val); | ||
| 93 | return 0; | ||
| 94 | } | ||
| 95 | } | ||
| 96 | else if (strcmp(val->name, "pathlen") == 0) | ||
| 97 | { | ||
| 98 | if (*pathlen) | ||
| 99 | { | ||
| 100 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_POLICY_PATH_LENGTH_ALREADTY_DEFINED); | ||
| 101 | X509V3_conf_err(val); | ||
| 102 | return 0; | ||
| 103 | } | ||
| 104 | if (!X509V3_get_value_int(val, pathlen)) | ||
| 105 | { | ||
| 106 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_POLICY_PATH_LENGTH); | ||
| 107 | X509V3_conf_err(val); | ||
| 108 | return 0; | ||
| 109 | } | ||
| 110 | } | ||
| 111 | else if (strcmp(val->name, "policy") == 0) | ||
| 112 | { | ||
| 113 | unsigned char *tmp_data = NULL; | ||
| 114 | long val_len; | ||
| 115 | if (!*policy) | ||
| 116 | { | ||
| 117 | *policy = ASN1_OCTET_STRING_new(); | ||
| 118 | if (!*policy) | ||
| 119 | { | ||
| 120 | X509V3err(X509V3_F_R2I_PCI,ERR_R_MALLOC_FAILURE); | ||
| 121 | X509V3_conf_err(val); | ||
| 122 | return 0; | ||
| 123 | } | ||
| 124 | free_policy = 1; | ||
| 125 | } | ||
| 126 | if (strncmp(val->value, "hex:", 4) == 0) | ||
| 127 | { | ||
| 128 | unsigned char *tmp_data2 = | ||
| 129 | string_to_hex(val->value + 4, &val_len); | ||
| 130 | |||
| 131 | if (!tmp_data2) goto err; | ||
| 132 | |||
| 133 | tmp_data = OPENSSL_realloc((*policy)->data, | ||
| 134 | (*policy)->length + val_len + 1); | ||
| 135 | if (tmp_data) | ||
| 136 | { | ||
| 137 | (*policy)->data = tmp_data; | ||
| 138 | memcpy(&(*policy)->data[(*policy)->length], | ||
| 139 | tmp_data2, val_len); | ||
| 140 | (*policy)->length += val_len; | ||
| 141 | (*policy)->data[(*policy)->length] = '\0'; | ||
| 142 | } | ||
| 143 | } | ||
| 144 | else if (strncmp(val->value, "file:", 5) == 0) | ||
| 145 | { | ||
| 146 | unsigned char buf[2048]; | ||
| 147 | int n; | ||
| 148 | BIO *b = BIO_new_file(val->value + 5, "r"); | ||
| 149 | if (!b) | ||
| 150 | { | ||
| 151 | X509V3err(X509V3_F_R2I_PCI,ERR_R_BIO_LIB); | ||
| 152 | X509V3_conf_err(val); | ||
| 153 | goto err; | ||
| 154 | } | ||
| 155 | while((n = BIO_read(b, buf, sizeof(buf))) > 0 | ||
| 156 | || (n == 0 && BIO_should_retry(b))) | ||
| 157 | { | ||
| 158 | if (!n) continue; | ||
| 159 | |||
| 160 | tmp_data = OPENSSL_realloc((*policy)->data, | ||
| 161 | (*policy)->length + n + 1); | ||
| 162 | |||
| 163 | if (!tmp_data) | ||
| 164 | break; | ||
| 165 | |||
| 166 | (*policy)->data = tmp_data; | ||
| 167 | memcpy(&(*policy)->data[(*policy)->length], | ||
| 168 | buf, n); | ||
| 169 | (*policy)->length += n; | ||
| 170 | (*policy)->data[(*policy)->length] = '\0'; | ||
| 171 | } | ||
| 172 | |||
| 173 | if (n < 0) | ||
| 174 | { | ||
| 175 | X509V3err(X509V3_F_R2I_PCI,ERR_R_BIO_LIB); | ||
| 176 | X509V3_conf_err(val); | ||
| 177 | goto err; | ||
| 178 | } | ||
| 179 | } | ||
| 180 | else if (strncmp(val->value, "text:", 5) == 0) | ||
| 181 | { | ||
| 182 | val_len = strlen(val->value + 5); | ||
| 183 | tmp_data = OPENSSL_realloc((*policy)->data, | ||
| 184 | (*policy)->length + val_len + 1); | ||
| 185 | if (tmp_data) | ||
| 186 | { | ||
| 187 | (*policy)->data = tmp_data; | ||
| 188 | memcpy(&(*policy)->data[(*policy)->length], | ||
| 189 | val->value + 5, val_len); | ||
| 190 | (*policy)->length += val_len; | ||
| 191 | (*policy)->data[(*policy)->length] = '\0'; | ||
| 192 | } | ||
| 193 | } | ||
| 194 | else | ||
| 195 | { | ||
| 196 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_INCORRECT_POLICY_SYNTAX_TAG); | ||
| 197 | X509V3_conf_err(val); | ||
| 198 | goto err; | ||
| 199 | } | ||
| 200 | if (!tmp_data) | ||
| 201 | { | ||
| 202 | X509V3err(X509V3_F_R2I_PCI,ERR_R_MALLOC_FAILURE); | ||
| 203 | X509V3_conf_err(val); | ||
| 204 | goto err; | ||
| 205 | } | ||
| 206 | } | ||
| 207 | return 1; | ||
| 208 | err: | ||
| 209 | if (free_policy) | ||
| 210 | { | ||
| 211 | ASN1_OCTET_STRING_free(*policy); | ||
| 212 | *policy = NULL; | ||
| 213 | } | ||
| 214 | return 0; | ||
| 215 | } | ||
| 216 | |||
| 217 | static PROXY_CERT_INFO_EXTENSION *r2i_pci(X509V3_EXT_METHOD *method, | ||
| 218 | X509V3_CTX *ctx, char *value) | ||
| 219 | { | ||
| 220 | PROXY_CERT_INFO_EXTENSION *pci = NULL; | ||
| 221 | STACK_OF(CONF_VALUE) *vals; | ||
| 222 | ASN1_OBJECT *language = NULL; | ||
| 223 | ASN1_INTEGER *pathlen = NULL; | ||
| 224 | ASN1_OCTET_STRING *policy = NULL; | ||
| 225 | int i, j; | ||
| 226 | |||
| 227 | vals = X509V3_parse_list(value); | ||
| 228 | for (i = 0; i < sk_CONF_VALUE_num(vals); i++) | ||
| 229 | { | ||
| 230 | CONF_VALUE *cnf = sk_CONF_VALUE_value(vals, i); | ||
| 231 | if (!cnf->name || (*cnf->name != '@' && !cnf->value)) | ||
| 232 | { | ||
| 233 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_INVALID_PROXY_POLICY_SETTING); | ||
| 234 | X509V3_conf_err(cnf); | ||
| 235 | goto err; | ||
| 236 | } | ||
| 237 | if (*cnf->name == '@') | ||
| 238 | { | ||
| 239 | STACK_OF(CONF_VALUE) *sect; | ||
| 240 | int success_p = 1; | ||
| 241 | |||
| 242 | sect = X509V3_get_section(ctx, cnf->name + 1); | ||
| 243 | if (!sect) | ||
| 244 | { | ||
| 245 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_INVALID_SECTION); | ||
| 246 | X509V3_conf_err(cnf); | ||
| 247 | goto err; | ||
| 248 | } | ||
| 249 | for (j = 0; success_p && j < sk_CONF_VALUE_num(sect); j++) | ||
| 250 | { | ||
| 251 | success_p = | ||
| 252 | process_pci_value(sk_CONF_VALUE_value(sect, j), | ||
| 253 | &language, &pathlen, &policy); | ||
| 254 | } | ||
| 255 | X509V3_section_free(ctx, sect); | ||
| 256 | if (!success_p) | ||
| 257 | goto err; | ||
| 258 | } | ||
| 259 | else | ||
| 260 | { | ||
| 261 | if (!process_pci_value(cnf, | ||
| 262 | &language, &pathlen, &policy)) | ||
| 263 | { | ||
| 264 | X509V3_conf_err(cnf); | ||
| 265 | goto err; | ||
| 266 | } | ||
| 267 | } | ||
| 268 | } | ||
| 269 | |||
| 270 | /* Language is mandatory */ | ||
| 271 | if (!language) | ||
| 272 | { | ||
| 273 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED); | ||
| 274 | goto err; | ||
| 275 | } | ||
| 276 | i = OBJ_obj2nid(language); | ||
| 277 | if ((i == NID_Independent || i == NID_id_ppl_inheritAll) && policy) | ||
| 278 | { | ||
| 279 | X509V3err(X509V3_F_R2I_PCI,X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY); | ||
| 280 | goto err; | ||
| 281 | } | ||
| 282 | |||
| 283 | pci = PROXY_CERT_INFO_EXTENSION_new(); | ||
| 284 | if (!pci) | ||
| 285 | { | ||
| 286 | X509V3err(X509V3_F_R2I_PCI,ERR_R_MALLOC_FAILURE); | ||
| 287 | goto err; | ||
| 288 | } | ||
| 289 | pci->proxyPolicy = PROXY_POLICY_new(); | ||
| 290 | if (!pci->proxyPolicy) | ||
| 291 | { | ||
| 292 | X509V3err(X509V3_F_R2I_PCI,ERR_R_MALLOC_FAILURE); | ||
| 293 | goto err; | ||
| 294 | } | ||
| 295 | |||
| 296 | pci->proxyPolicy->policyLanguage = language; language = NULL; | ||
| 297 | pci->proxyPolicy->policy = policy; policy = NULL; | ||
| 298 | pci->pcPathLengthConstraint = pathlen; pathlen = NULL; | ||
| 299 | goto end; | ||
| 300 | err: | ||
| 301 | if (language) { ASN1_OBJECT_free(language); language = NULL; } | ||
| 302 | if (pathlen) { ASN1_INTEGER_free(pathlen); pathlen = NULL; } | ||
| 303 | if (policy) { ASN1_OCTET_STRING_free(policy); policy = NULL; } | ||
| 304 | if (pci && pci->proxyPolicy) | ||
| 305 | { | ||
| 306 | PROXY_POLICY_free(pci->proxyPolicy); | ||
| 307 | pci->proxyPolicy = NULL; | ||
| 308 | } | ||
| 309 | if (pci) { PROXY_CERT_INFO_EXTENSION_free(pci); pci = NULL; } | ||
| 310 | end: | ||
| 311 | sk_CONF_VALUE_pop_free(vals, X509V3_conf_free); | ||
| 312 | return pci; | ||
| 313 | } | ||
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_pcia.c b/src/lib/libssl/src/crypto/x509v3/v3_pcia.c new file mode 100644 index 0000000000..bb362e0e5a --- /dev/null +++ b/src/lib/libssl/src/crypto/x509v3/v3_pcia.c | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* v3_pcia.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Contributed to the OpenSSL Project 2004 | ||
| 3 | * by Richard Levitte (richard@levitte.org) | ||
| 4 | */ | ||
| 5 | /* Copyright (c) 2004 Kungliga Tekniska Högskolan | ||
| 6 | * (Royal Institute of Technology, Stockholm, Sweden). | ||
| 7 | * All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in the | ||
| 18 | * documentation and/or other materials provided with the distribution. | ||
| 19 | * | ||
| 20 | * 3. Neither the name of the Institute nor the names of its contributors | ||
| 21 | * may be used to endorse or promote products derived from this software | ||
| 22 | * without specific prior written permission. | ||
| 23 | * | ||
| 24 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND | ||
| 25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE | ||
| 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 34 | * SUCH DAMAGE. | ||
| 35 | */ | ||
| 36 | |||
| 37 | #include <openssl/asn1.h> | ||
| 38 | #include <openssl/asn1t.h> | ||
| 39 | #include <openssl/x509v3.h> | ||
| 40 | |||
| 41 | ASN1_SEQUENCE(PROXY_POLICY) = | ||
| 42 | { | ||
| 43 | ASN1_SIMPLE(PROXY_POLICY,policyLanguage,ASN1_OBJECT), | ||
| 44 | ASN1_OPT(PROXY_POLICY,policy,ASN1_OCTET_STRING) | ||
| 45 | } ASN1_SEQUENCE_END(PROXY_POLICY) | ||
| 46 | |||
| 47 | IMPLEMENT_ASN1_FUNCTIONS(PROXY_POLICY) | ||
| 48 | |||
| 49 | ASN1_SEQUENCE(PROXY_CERT_INFO_EXTENSION) = | ||
| 50 | { | ||
| 51 | ASN1_OPT(PROXY_CERT_INFO_EXTENSION,pcPathLengthConstraint,ASN1_INTEGER), | ||
| 52 | ASN1_SIMPLE(PROXY_CERT_INFO_EXTENSION,proxyPolicy,PROXY_POLICY) | ||
| 53 | } ASN1_SEQUENCE_END(PROXY_CERT_INFO_EXTENSION) | ||
| 54 | |||
| 55 | IMPLEMENT_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION) | ||
diff --git a/src/lib/libssl/src/demos/engines/rsaref/rsaref.c b/src/lib/libssl/src/demos/engines/rsaref/rsaref.c index 872811b8f7..f97974fc49 100644 --- a/src/lib/libssl/src/demos/engines/rsaref/rsaref.c +++ b/src/lib/libssl/src/demos/engines/rsaref/rsaref.c | |||
| @@ -426,7 +426,7 @@ static int rsaref_private_encrypt(int len, const unsigned char *from, unsigned c | |||
| 426 | } | 426 | } |
| 427 | if (!RSAref_Private_eay2ref(rsa,&RSAkey)) | 427 | if (!RSAref_Private_eay2ref(rsa,&RSAkey)) |
| 428 | goto err; | 428 | goto err; |
| 429 | if ((i=RSAPrivateEncrypt(to,(unsigned int)&outlen,(unsigned char *)from,len,&RSAkey)) != 0) | 429 | if ((i=RSAPrivateEncrypt(to,(unsigned int *)&outlen,(unsigned char *)from,len,&RSAkey)) != 0) |
| 430 | { | 430 | { |
| 431 | RSAREFerr(RSAREF_F_RSAREF_PRIVATE_ENCRYPT,i); | 431 | RSAREFerr(RSAREF_F_RSAREF_PRIVATE_ENCRYPT,i); |
| 432 | outlen= -1; | 432 | outlen= -1; |
| @@ -444,7 +444,7 @@ static int rsaref_public_decrypt(int len, const unsigned char *from, unsigned ch | |||
| 444 | 444 | ||
| 445 | if (!RSAref_Public_eay2ref(rsa,&RSAkey)) | 445 | if (!RSAref_Public_eay2ref(rsa,&RSAkey)) |
| 446 | goto err; | 446 | goto err; |
| 447 | if ((i=RSAPublicDecrypt(to,(unsigned int)&outlen,(unsigned char *)from,len,&RSAkey)) != 0) | 447 | if ((i=RSAPublicDecrypt(to,(unsigned int *)&outlen,(unsigned char *)from,len,&RSAkey)) != 0) |
| 448 | { | 448 | { |
| 449 | RSAREFerr(RSAREF_F_RSAREF_PUBLIC_DECRYPT,i); | 449 | RSAREFerr(RSAREF_F_RSAREF_PUBLIC_DECRYPT,i); |
| 450 | outlen= -1; | 450 | outlen= -1; |
| @@ -481,7 +481,7 @@ static int rsaref_public_encrypt(int len, const unsigned char *from, unsigned ch | |||
| 481 | 481 | ||
| 482 | if (!RSAref_Public_eay2ref(rsa,&RSAkey)) | 482 | if (!RSAref_Public_eay2ref(rsa,&RSAkey)) |
| 483 | goto err; | 483 | goto err; |
| 484 | if ((i=RSAPublicEncrypt(to,(unsigned int)&outlen,(unsigned char *)from,len,&RSAkey,&rnd)) != 0) | 484 | if ((i=RSAPublicEncrypt(to,(unsigned int *)&outlen,(unsigned char *)from,len,&RSAkey,&rnd)) != 0) |
| 485 | { | 485 | { |
| 486 | RSAREFerr(RSAREF_F_RSAREF_PUBLIC_ENCRYPT,i); | 486 | RSAREFerr(RSAREF_F_RSAREF_PUBLIC_ENCRYPT,i); |
| 487 | outlen= -1; | 487 | outlen= -1; |
diff --git a/src/lib/libssl/src/doc/HOWTO/proxy_certificates.txt b/src/lib/libssl/src/doc/HOWTO/proxy_certificates.txt new file mode 100644 index 0000000000..3d36b02f6b --- /dev/null +++ b/src/lib/libssl/src/doc/HOWTO/proxy_certificates.txt | |||
| @@ -0,0 +1,322 @@ | |||
| 1 | <DRAFT!> | ||
| 2 | HOWTO proxy certificates | ||
| 3 | |||
| 4 | 0. WARNING | ||
| 5 | |||
| 6 | NONE OF THE CODE PRESENTED HERE HAVE BEEN CHECKED! They are just an | ||
| 7 | example to show you how things can be done. There may be typos or | ||
| 8 | type conflicts, and you will have to resolve them. | ||
| 9 | |||
| 10 | 1. Introduction | ||
| 11 | |||
| 12 | Proxy certificates are defined in RFC 3820. They are really usual | ||
| 13 | certificates with the mandatory extension proxyCertInfo. | ||
| 14 | |||
| 15 | Proxy certificates are issued by an End Entity (typically a user), | ||
| 16 | either directly with the EE certificate as issuing certificate, or by | ||
| 17 | extension through an already issued proxy certificate.. They are used | ||
| 18 | to extend rights to some other entity (a computer process, typically, | ||
| 19 | or sometimes to the user itself), so it can perform operations in the | ||
| 20 | name of the owner of the EE certificate. | ||
| 21 | |||
| 22 | See http://www.ietf.org/rfc/rfc3820.txt for more information. | ||
| 23 | |||
| 24 | |||
| 25 | 2. A warning about proxy certificates | ||
| 26 | |||
| 27 | Noone seems to have tested proxy certificates with security in mind. | ||
| 28 | Basically, to this date, it seems that proxy certificates have only | ||
| 29 | been used in a world that's highly aware of them. What would happen | ||
| 30 | if an unsuspecting application is to validate a chain of certificates | ||
| 31 | that contains proxy certificates? It would usually consider the leaf | ||
| 32 | to be the certificate to check for authorisation data, and since proxy | ||
| 33 | certificates are controlled by the EE certificate owner alone, it's | ||
| 34 | would be normal to consider what the EE certificate owner could do | ||
| 35 | with them. | ||
| 36 | |||
| 37 | subjectAltName and issuerAltName are forbidden in proxy certificates, | ||
| 38 | and this is enforced in OpenSSL. The subject must be the same as the | ||
| 39 | issuer, with one commonName added on. | ||
| 40 | |||
| 41 | Possible threats are, as far as has been imagined so far: | ||
| 42 | |||
| 43 | - impersonation through commonName (think server certificates). | ||
| 44 | - use of additional extensions, possibly non-standard ones used in | ||
| 45 | certain environments, that would grant extra or different | ||
| 46 | authorisation rights. | ||
| 47 | |||
| 48 | For this reason, OpenSSL requires that the use of proxy certificates | ||
| 49 | be explicitely allowed. Currently, this can be done using the | ||
| 50 | following methods: | ||
| 51 | |||
| 52 | - if the application calls X509_verify_cert() itself, it can do the | ||
| 53 | following prior to that call (ctx is the pointer passed in the call | ||
| 54 | to X509_verify_cert()): | ||
| 55 | |||
| 56 | X509_STORE_CTX_set_flags(ctx, X509_V_FLAG_ALLOW_PROXY_CERTS); | ||
| 57 | |||
| 58 | - in all other cases, proxy certificate validation can be enabled | ||
| 59 | before starting the application by setting the envirnoment variable | ||
| 60 | OPENSSL_ALLOW_PROXY with some non-empty value. | ||
| 61 | |||
| 62 | There are thoughts to allow proxy certificates with a line in the | ||
| 63 | default openssl.cnf, but that's still in the future. | ||
| 64 | |||
| 65 | |||
| 66 | 3. How to create proxy cerificates | ||
| 67 | |||
| 68 | It's quite easy to create proxy certificates, by taking advantage of | ||
| 69 | the lack of checks of the 'openssl x509' application (*ahem*). But | ||
| 70 | first, you need to create a configuration section that contains a | ||
| 71 | definition of the proxyCertInfo extension, a little like this: | ||
| 72 | |||
| 73 | [ v3_proxy ] | ||
| 74 | # A proxy certificate MUST NEVER be a CA certificate. | ||
| 75 | basicConstraints=CA:FALSE | ||
| 76 | |||
| 77 | # Usual authority key ID | ||
| 78 | authorityKeyIdentifier=keyid,issuer:always | ||
| 79 | |||
| 80 | # Now, for the extension that marks this certificate as a proxy one | ||
| 81 | proxyCertInfo=critical,language:id-ppl-anyLanguage,pathlen:1,policy:text:AB | ||
| 82 | |||
| 83 | It's also possible to give the proxy extension in a separate section: | ||
| 84 | |||
| 85 | proxyCertInfo=critical,@proxy_ext | ||
| 86 | |||
| 87 | [ proxy_ext ] | ||
| 88 | language=id-ppl-anyLanguage | ||
| 89 | pathlen=0 | ||
| 90 | policy=text:BC | ||
| 91 | |||
| 92 | The policy value has a specific syntax, {syntag}:{string}, where the | ||
| 93 | syntag determines what will be done with the string. The recognised | ||
| 94 | syntags are as follows: | ||
| 95 | |||
| 96 | text indicates that the string is simply the bytes, not | ||
| 97 | encoded in any kind of way: | ||
| 98 | |||
| 99 | policy=text:räksmörgås | ||
| 100 | |||
| 101 | Previous versions of this design had a specific tag | ||
| 102 | for UTF-8 text. However, since the bytes are copied | ||
| 103 | as-is anyway, there's no need for it. Instead, use | ||
| 104 | the text: tag, like this: | ||
| 105 | |||
| 106 | policy=text:räksmörgås | ||
| 107 | |||
| 108 | hex indicates the string is encoded in hex, with colons | ||
| 109 | between each byte (every second hex digit): | ||
| 110 | |||
| 111 | policy=hex:72:E4:6B:73:6D:F6:72:67:E5:73 | ||
| 112 | |||
| 113 | Previous versions of this design had a tag to insert a | ||
| 114 | complete DER blob. However, the only legal use for | ||
| 115 | this would be to surround the bytes that would go with | ||
| 116 | the hex: tag with what's needed to construct a correct | ||
| 117 | OCTET STRING. Since hex: does that, the DER tag felt | ||
| 118 | superfluous, and was therefore removed. | ||
| 119 | |||
| 120 | file indicates that the text of the policy should really be | ||
| 121 | taken from a file. The string is then really a file | ||
| 122 | name. This is useful for policies that are large | ||
| 123 | (more than a few of lines) XML documents, for example. | ||
| 124 | |||
| 125 | The 'policy' setting can be split up in multiple lines like this: | ||
| 126 | |||
| 127 | 0.policy=This is | ||
| 128 | 1.polisy= a multi- | ||
| 129 | 2.policy=line policy. | ||
| 130 | |||
| 131 | NOTE: the proxy policy value is the part that determines the rights | ||
| 132 | granted to the process using the proxy certificate. The value is | ||
| 133 | completely dependent on the application reading and interpretting it! | ||
| 134 | |||
| 135 | Now that you have created an extension section for your proxy | ||
| 136 | certificate, you can now easily create a proxy certificate like this: | ||
| 137 | |||
| 138 | openssl req -new -config openssl.cnf \ | ||
| 139 | -out proxy.req -keyout proxy.key | ||
| 140 | openssl x509 -req -CAcreateserial -in proxy.req -days 7 \ | ||
| 141 | -out proxy.crt -CA user.crt -CAkey user.key \ | ||
| 142 | -extfile openssl.cnf -extensions v3_proxy | ||
| 143 | |||
| 144 | It's just as easy to create a proxy certificate using another proxy | ||
| 145 | certificate as issuer (note that I'm using a different configuration | ||
| 146 | section for it): | ||
| 147 | |||
| 148 | openssl req -new -config openssl.cnf \ | ||
| 149 | -out proxy2.req -keyout proxy2.key | ||
| 150 | openssl x509 -req -CAcreateserial -in proxy2.req -days 7 \ | ||
| 151 | -out proxy2.crt -CA proxy.crt -CAkey proxy.key \ | ||
| 152 | -extfile openssl.cnf -extensions v3_proxy2 | ||
| 153 | |||
| 154 | |||
| 155 | 4. How to have your application interpret the policy? | ||
| 156 | |||
| 157 | The basic way to interpret proxy policies is to prepare some default | ||
| 158 | rights, then do a check of the proxy certificate against the a chain | ||
| 159 | of proxy certificates, user certificate and CA certificates, and see | ||
| 160 | what rights came out by the end. Sounds easy, huh? It almost is. | ||
| 161 | |||
| 162 | The slightly complicated part is how to pass data between your | ||
| 163 | application and the certificate validation procedure. | ||
| 164 | |||
| 165 | You need the following ingredients: | ||
| 166 | |||
| 167 | - a callback routing that will be called for every certificate that's | ||
| 168 | validated. It will be called several times for each certificates, | ||
| 169 | so you must be attentive to when it's a good time to do the proxy | ||
| 170 | policy interpretation and check, as well as to fill in the defaults | ||
| 171 | when the EE certificate is checked. | ||
| 172 | |||
| 173 | - a structure of data that's shared between your application code and | ||
| 174 | the callback. | ||
| 175 | |||
| 176 | - a wrapper function that sets it all up. | ||
| 177 | |||
| 178 | - an ex_data index function that creates an index into the generic | ||
| 179 | ex_data store that's attached to an X509 validation context. | ||
| 180 | |||
| 181 | This is some cookbook code for you to fill in: | ||
| 182 | |||
| 183 | /* In this example, I will use a view of granted rights as a bit | ||
| 184 | array, one bit for each possible right. */ | ||
| 185 | typedef struct your_rights { | ||
| 186 | unsigned char rights[total_rights / 8]; | ||
| 187 | } YOUR_RIGHTS; | ||
| 188 | |||
| 189 | /* The following procedure will create an index for the ex_data | ||
| 190 | store in the X509 validation context the first time it's called. | ||
| 191 | Subsequent calls will return the same index. */ | ||
| 192 | static int get_proxy_auth_ex_data_idx(void) | ||
| 193 | { | ||
| 194 | static volatile int idx = -1; | ||
| 195 | if (idx < 0) | ||
| 196 | { | ||
| 197 | CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE); | ||
| 198 | if (idx < 0) | ||
| 199 | { | ||
| 200 | idx = X509_STORE_CTX_get_ex_new_index(0, | ||
| 201 | "for verify callback", | ||
| 202 | NULL,NULL,NULL); | ||
| 203 | } | ||
| 204 | CRYPTO_w_unlock(CRYPTO_LOCK_X509_STORE); | ||
| 205 | } | ||
| 206 | return idx; | ||
| 207 | } | ||
| 208 | |||
| 209 | /* Callback to be given to the X509 validation procedure. */ | ||
| 210 | static int verify_callback(int ok, X509_STORE_CTX *ctx) | ||
| 211 | { | ||
| 212 | if (ok == 1) /* It's REALLY important you keep the proxy policy | ||
| 213 | check within this secion. It's important to know | ||
| 214 | that when ok is 1, the certificates are checked | ||
| 215 | from top to bottom. You get the CA root first, | ||
| 216 | followed by the possible chain of intermediate | ||
| 217 | CAs, followed by the EE certificate, followed by | ||
| 218 | the possible proxy certificates. */ | ||
| 219 | { | ||
| 220 | X509 *xs = ctx->current_cert; | ||
| 221 | |||
| 222 | if (xs->ex_flags & EXFLAG_PROXY) | ||
| 223 | { | ||
| 224 | YOUR_RIGHTS *rights = | ||
| 225 | (YOUR_RIGHTS *)X509_STORE_CTX_get_ex_data(ctx, | ||
| 226 | get_proxy_auth_ex_data_idx()); | ||
| 227 | PROXY_CERT_INFO_EXTENSION *pci = | ||
| 228 | X509_get_ext_d2i(xs, NID_proxyCertInfo, NULL, NULL); | ||
| 229 | |||
| 230 | switch (OBJ_obj2nid(pci->proxyPolicy->policyLanguage)) | ||
| 231 | { | ||
| 232 | case NID_Independent: | ||
| 233 | /* Do whatever you need to grant explicit rights to | ||
| 234 | this particular proxy certificate, usually by | ||
| 235 | pulling them from some database. If there are none | ||
| 236 | to be found, clear all rights (making this and any | ||
| 237 | subsequent proxy certificate void of any rights). | ||
| 238 | */ | ||
| 239 | memset(rights->rights, 0, sizeof(rights->rights)); | ||
| 240 | break; | ||
| 241 | case NID_id_ppl_inheritAll: | ||
| 242 | /* This is basically a NOP, we simply let the current | ||
| 243 | rights stand as they are. */ | ||
| 244 | break; | ||
| 245 | default: | ||
| 246 | /* This is usually the most complex section of code. | ||
| 247 | You really do whatever you want as long as you | ||
| 248 | follow RFC 3820. In the example we use here, the | ||
| 249 | simplest thing to do is to build another, temporary | ||
| 250 | bit array and fill it with the rights granted by | ||
| 251 | the current proxy certificate, then use it as a | ||
| 252 | mask on the accumulated rights bit array, and | ||
| 253 | voilà, you now have a new accumulated rights bit | ||
| 254 | array. */ | ||
| 255 | { | ||
| 256 | int i; | ||
| 257 | YOUR_RIGHTS tmp_rights; | ||
| 258 | memset(tmp_rights.rights, 0, sizeof(tmp_rights.rights)); | ||
| 259 | |||
| 260 | /* process_rights() is supposed to be a procedure | ||
| 261 | that takes a string and it's length, interprets | ||
| 262 | it and sets the bits in the YOUR_RIGHTS pointed | ||
| 263 | at by the third argument. */ | ||
| 264 | process_rights((char *) pci->proxyPolicy->policy->data, | ||
| 265 | pci->proxyPolicy->policy->length, | ||
| 266 | &tmp_rights); | ||
| 267 | |||
| 268 | for(i = 0; i < total_rights / 8; i++) | ||
| 269 | rights->rights[i] &= tmp_rights.rights[i]; | ||
| 270 | } | ||
| 271 | break; | ||
| 272 | } | ||
| 273 | PROXY_CERT_INFO_EXTENSION_free(pci); | ||
| 274 | } | ||
| 275 | else if (!(xs->ex_flags & EXFLAG_CA)) | ||
| 276 | { | ||
| 277 | /* We have a EE certificate, let's use it to set default! | ||
| 278 | */ | ||
| 279 | YOUR_RIGHTS *rights = | ||
| 280 | (YOUR_RIGHTS *)X509_STORE_CTX_get_ex_data(ctx, | ||
| 281 | get_proxy_auth_ex_data_idx()); | ||
| 282 | |||
| 283 | /* The following procedure finds out what rights the owner | ||
| 284 | of the current certificate has, and sets them in the | ||
| 285 | YOUR_RIGHTS structure pointed at by the second | ||
| 286 | argument. */ | ||
| 287 | set_default_rights(xs, rights); | ||
| 288 | } | ||
| 289 | } | ||
| 290 | return ok; | ||
| 291 | } | ||
| 292 | |||
| 293 | static int my_X509_verify_cert(X509_STORE_CTX *ctx, | ||
| 294 | YOUR_RIGHTS *needed_rights) | ||
| 295 | { | ||
| 296 | int i; | ||
| 297 | int (*save_verify_cb)(int ok,X509_STORE_CTX *ctx) = ctx->verify_cb; | ||
| 298 | YOUR_RIGHTS rights; | ||
| 299 | |||
| 300 | X509_STORE_CTX_set_verify_cb(ctx, verify_callback); | ||
| 301 | X509_STORE_CTX_set_ex_data(ctx, get_proxy_auth_ex_data_idx(), &rights); | ||
| 302 | X509_STORE_CTX_set_flags(ctx, X509_V_FLAG_ALLOW_PROXY_CERTS); | ||
| 303 | ok = X509_verify_cert(ctx); | ||
| 304 | |||
| 305 | if (ok == 1) | ||
| 306 | { | ||
| 307 | ok = check_needed_rights(rights, needed_rights); | ||
| 308 | } | ||
| 309 | |||
| 310 | X509_STORE_CTX_set_verify_cb(ctx, save_verify_cb); | ||
| 311 | |||
| 312 | return ok; | ||
| 313 | } | ||
| 314 | |||
| 315 | If you use SSL or TLS, you can easily set up a callback to have the | ||
| 316 | certificates checked properly, using the code above: | ||
| 317 | |||
| 318 | SSL_CTX_set_cert_verify_callback(s_ctx, my_X509_verify_cert, &needed_rights); | ||
| 319 | |||
| 320 | |||
| 321 | -- | ||
| 322 | Richard Levitte | ||
diff --git a/src/lib/libssl/src/doc/apps/errstr.pod b/src/lib/libssl/src/doc/apps/errstr.pod new file mode 100644 index 0000000000..b3c6ccfc9c --- /dev/null +++ b/src/lib/libssl/src/doc/apps/errstr.pod | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | errstr - lookup error codes | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | B<openssl errstr error_code> | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | Sometimes an application will not load error message and only | ||
| 14 | numerical forms will be available. The B<errstr> utility can be used to | ||
| 15 | display the meaning of the hex code. The hex code is the hex digits after the | ||
| 16 | second colon. | ||
| 17 | |||
| 18 | =head1 EXAMPLE | ||
| 19 | |||
| 20 | The error code: | ||
| 21 | |||
| 22 | 27594:error:2006D080:lib(32):func(109):reason(128):bss_file.c:107: | ||
| 23 | |||
| 24 | can be displayed with: | ||
| 25 | |||
| 26 | openssl errstr 2006D080 | ||
| 27 | |||
| 28 | to produce the error message: | ||
| 29 | |||
| 30 | error:2006D080:BIO routines:BIO_new_file:no such file | ||
| 31 | |||
| 32 | =head1 SEE ALSO | ||
| 33 | |||
| 34 | L<err(3)|err(3)>, | ||
| 35 | L<ERR_load_crypto_strings(3)|ERR_load_crypto_strings(3)>, | ||
| 36 | L<SSL_load_error_strings(3)|SSL_load_error_strings(3)> | ||
| 37 | |||
| 38 | |||
| 39 | =cut | ||
diff --git a/src/lib/libssl/src/doc/crypto/ASN1_STRING_print_ex.pod b/src/lib/libssl/src/doc/crypto/ASN1_STRING_print_ex.pod index fbf9a1f141..d662225b87 100644 --- a/src/lib/libssl/src/doc/crypto/ASN1_STRING_print_ex.pod +++ b/src/lib/libssl/src/doc/crypto/ASN1_STRING_print_ex.pod | |||
| @@ -30,8 +30,8 @@ with '.'. | |||
| 30 | 30 | ||
| 31 | ASN1_STRING_print() is a legacy function which should be avoided in new applications. | 31 | ASN1_STRING_print() is a legacy function which should be avoided in new applications. |
| 32 | 32 | ||
| 33 | Although there are a large number of options frequently B<ASN1_STRFLAGS_RFC2253> is | 33 | Although there are a large number of options frequently B<ASN1_STRFLGS_RFC2253> is |
| 34 | suitable, or on UTF8 terminals B<ASN1_STRFLAGS_RFC2253 & ~ASN1_STRFLAGS_ESC_MSB>. | 34 | suitable, or on UTF8 terminals B<ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB>. |
| 35 | 35 | ||
| 36 | The complete set of supported options for B<flags> is listed below. | 36 | The complete set of supported options for B<flags> is listed below. |
| 37 | 37 | ||
| @@ -72,7 +72,7 @@ octet. | |||
| 72 | If B<ASN1_STRFLGS_DUMP_ALL> is set then any type is dumped. | 72 | If B<ASN1_STRFLGS_DUMP_ALL> is set then any type is dumped. |
| 73 | 73 | ||
| 74 | Normally non character string types (such as OCTET STRING) are assumed to be | 74 | Normally non character string types (such as OCTET STRING) are assumed to be |
| 75 | one byte per character, if B<ASN1_STRFLAGS_DUMP_UNKNOWN> is set then they will | 75 | one byte per character, if B<ASN1_STRFLGS_DUMP_UNKNOWN> is set then they will |
| 76 | be dumped instead. | 76 | be dumped instead. |
| 77 | 77 | ||
| 78 | When a type is dumped normally just the content octets are printed, if | 78 | When a type is dumped normally just the content octets are printed, if |
diff --git a/src/lib/libssl/src/doc/crypto/X509_NAME_ENTRY_get_object.pod b/src/lib/libssl/src/doc/crypto/X509_NAME_ENTRY_get_object.pod index d287c18564..11b35f6fd3 100644 --- a/src/lib/libssl/src/doc/crypto/X509_NAME_ENTRY_get_object.pod +++ b/src/lib/libssl/src/doc/crypto/X509_NAME_ENTRY_get_object.pod | |||
| @@ -13,11 +13,11 @@ ASN1_OBJECT * X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne); | |||
| 13 | ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne); | 13 | ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne); |
| 14 | 14 | ||
| 15 | int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, ASN1_OBJECT *obj); | 15 | int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, ASN1_OBJECT *obj); |
| 16 | int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, unsigned char *bytes, int len); | 16 | int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len); |
| 17 | 17 | ||
| 18 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, char *field, int type, unsigned char *bytes, int len); | 18 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, const char *field, int type, const unsigned char *bytes, int len); |
| 19 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, int type,unsigned char *bytes, int len); | 19 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, int type,unsigned char *bytes, int len); |
| 20 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, ASN1_OBJECT *obj, int type,unsigned char *bytes, int len); | 20 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len); |
| 21 | 21 | ||
| 22 | =head1 DESCRIPTION | 22 | =head1 DESCRIPTION |
| 23 | 23 | ||
diff --git a/src/lib/libssl/src/doc/crypto/X509_NAME_add_entry_by_txt.pod b/src/lib/libssl/src/doc/crypto/X509_NAME_add_entry_by_txt.pod index 4472a1c5cf..e2ab4b0d2b 100644 --- a/src/lib/libssl/src/doc/crypto/X509_NAME_add_entry_by_txt.pod +++ b/src/lib/libssl/src/doc/crypto/X509_NAME_add_entry_by_txt.pod | |||
| @@ -7,10 +7,14 @@ X509_NAME_add_entry, X509_NAME_delete_entry - X509_NAME modification functions | |||
| 7 | 7 | ||
| 8 | =head1 SYNOPSIS | 8 | =head1 SYNOPSIS |
| 9 | 9 | ||
| 10 | int X509_NAME_add_entry_by_txt(X509_NAME *name, char *field, int type, unsigned char *bytes, int len, int loc, int set); | 10 | int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, const unsigned char *bytes, int len, int loc, int set); |
| 11 | |||
| 11 | int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, unsigned char *bytes, int len, int loc, int set); | 12 | int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, unsigned char *bytes, int len, int loc, int set); |
| 13 | |||
| 12 | int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, unsigned char *bytes, int len, int loc, int set); | 14 | int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, unsigned char *bytes, int len, int loc, int set); |
| 15 | |||
| 13 | int X509_NAME_add_entry(X509_NAME *name,X509_NAME_ENTRY *ne, int loc, int set); | 16 | int X509_NAME_add_entry(X509_NAME *name,X509_NAME_ENTRY *ne, int loc, int set); |
| 17 | |||
| 14 | X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); | 18 | X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); |
| 15 | 19 | ||
| 16 | =head1 DESCRIPTION | 20 | =head1 DESCRIPTION |
diff --git a/src/lib/libssl/src/doc/crypto/X509_NAME_print_ex.pod b/src/lib/libssl/src/doc/crypto/X509_NAME_print_ex.pod index 907c04f684..919b908919 100644 --- a/src/lib/libssl/src/doc/crypto/X509_NAME_print_ex.pod +++ b/src/lib/libssl/src/doc/crypto/X509_NAME_print_ex.pod | |||
| @@ -41,8 +41,8 @@ applications. | |||
| 41 | Although there are a large number of possible flags for most purposes | 41 | Although there are a large number of possible flags for most purposes |
| 42 | B<XN_FLAG_ONELINE>, B<XN_FLAG_MULTILINE> or B<XN_FLAG_RFC2253> will suffice. | 42 | B<XN_FLAG_ONELINE>, B<XN_FLAG_MULTILINE> or B<XN_FLAG_RFC2253> will suffice. |
| 43 | As noted on the L<ASN1_STRING_print_ex(3)|ASN1_STRING_print_ex(3)> manual page | 43 | As noted on the L<ASN1_STRING_print_ex(3)|ASN1_STRING_print_ex(3)> manual page |
| 44 | for UTF8 terminals the B<ASN1_STRFLAGS_ESC_MSB> should be unset: so for example | 44 | for UTF8 terminals the B<ASN1_STRFLGS_ESC_MSB> should be unset: so for example |
| 45 | B<XN_FLAG_ONELINE & ~ASN1_STRFLAGS_ESC_MSB> would be used. | 45 | B<XN_FLAG_ONELINE & ~ASN1_STRFLGS_ESC_MSB> would be used. |
| 46 | 46 | ||
| 47 | The complete set of the flags supported by X509_NAME_print_ex() is listed below. | 47 | The complete set of the flags supported by X509_NAME_print_ex() is listed below. |
| 48 | 48 | ||
diff --git a/src/lib/libssl/src/doc/fingerprints.txt b/src/lib/libssl/src/doc/fingerprints.txt new file mode 100644 index 0000000000..c350d381eb --- /dev/null +++ b/src/lib/libssl/src/doc/fingerprints.txt | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Fingerprints | ||
| 2 | |||
| 3 | OpenSSL releases are signed with PGP/GnuPG keys. You can find the | ||
| 4 | signatures in separate files in the same location you find the | ||
| 5 | distributions themselves. The normal file name is the same as the | ||
| 6 | distribution file, with '.asc' added. For example, the signature for | ||
| 7 | the distribution of OpenSSL 0.9.7f, openssl-0.9.7f.tar.gz, is found in | ||
| 8 | the file openssl-0.9.7f.tar.gz.asc. | ||
| 9 | |||
| 10 | The following is the list of fingerprints for the keys that are | ||
| 11 | currently in use (have been used since summer 2004) to sign OpenSSL | ||
| 12 | distributions: | ||
| 13 | |||
| 14 | pub 1024D/F709453B 2003-10-20 | ||
| 15 | Key fingerprint = C4CA B749 C34F 7F4C C04F DAC9 A7AF 9E78 F709 453B | ||
| 16 | uid Richard Levitte <richard@levitte.org> | ||
| 17 | uid Richard Levitte <levitte@openssl.org> | ||
| 18 | uid Richard Levitte <levitte@lp.se> | ||
| 19 | |||
| 20 | pub 2048R/F295C759 1998-12-13 | ||
| 21 | Key fingerprint = D0 5D 8C 61 6E 27 E6 60 41 EC B1 B8 D5 7E E5 97 | ||
| 22 | uid Dr S N Henson <shenson@drh-consultancy.demon.co.uk> | ||
| 23 | |||
| 24 | pub 1024R/49A563D9 1997-02-24 | ||
| 25 | Key fingerprint = 7B 79 19 FA 71 6B 87 25 0E 77 21 E5 52 D9 83 BF | ||
| 26 | uid Mark Cox <mjc@redhat.com> | ||
| 27 | uid Mark Cox <mark@awe.com> | ||
| 28 | uid Mark Cox <mjc@apache.org> | ||
diff --git a/src/lib/libssl/src/fips/Makefile b/src/lib/libssl/src/fips/Makefile new file mode 100644 index 0000000000..63e4cf82be --- /dev/null +++ b/src/lib/libssl/src/fips/Makefile | |||
| @@ -0,0 +1,199 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/fips/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= fips | ||
| 6 | TOP= .. | ||
| 7 | CC= cc | ||
| 8 | INCLUDE= -I. -I$(TOP) -I../include | ||
| 9 | INCLUDES= -I.. -I../.. -I../../include | ||
| 10 | CFLAG= -g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP= /usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | RM= rm -f | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | PEX_LIBS= | ||
| 21 | EX_LIBS= | ||
| 22 | |||
| 23 | CFLAGS= $(INCLUDE) $(CFLAG) | ||
| 24 | |||
| 25 | |||
| 26 | LIBS= | ||
| 27 | |||
| 28 | FDIRS=sha1 rand des aes dsa rsa dh | ||
| 29 | |||
| 30 | GENERAL=Makefile README fips-lib.com install.com | ||
| 31 | |||
| 32 | LIB= $(TOP)/libcrypto.a | ||
| 33 | SHARED_LIB= libcrypto$(SHLIB_EXT) | ||
| 34 | LIBSRC=fips.c fips_err_wrapper.c | ||
| 35 | LIBOBJ=fips.o fips_err_wrapper.o | ||
| 36 | |||
| 37 | SRC= $(LIBSRC) | ||
| 38 | |||
| 39 | EXHEADER=fips.h | ||
| 40 | HEADER=$(EXHEADER) fips_err.h | ||
| 41 | EXE=openssl_fips_fingerprint | ||
| 42 | |||
| 43 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 44 | |||
| 45 | top: | ||
| 46 | @(cd ..; $(MAKE) DIRS=$(DIR) all) | ||
| 47 | |||
| 48 | all: | ||
| 49 | @if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 50 | $(MAKE) -e subdirs check lib shared; \ | ||
| 51 | fi | ||
| 52 | |||
| 53 | check: | ||
| 54 | TOP=`pwd`/$(TOP) ./fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) | ||
| 55 | |||
| 56 | subdirs: | ||
| 57 | @for i in $(FDIRS) ;\ | ||
| 58 | do \ | ||
| 59 | (cd $$i && echo "making all in fips/$$i..." && \ | ||
| 60 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | sub_target: | ||
| 64 | @for i in $(FDIRS) ;\ | ||
| 65 | do \ | ||
| 66 | (cd $$i && echo "making $(TARGET) in fips/$$i..." && \ | ||
| 67 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' $(TARGET) ) || exit 1; \ | ||
| 68 | done; | ||
| 69 | |||
| 70 | files: | ||
| 71 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 72 | @for i in $(FDIRS) ;\ | ||
| 73 | do \ | ||
| 74 | (cd $$i && echo "making 'files' in fips/$$i..." && \ | ||
| 75 | $(MAKE) PERL='${PERL}' files ); \ | ||
| 76 | done; | ||
| 77 | |||
| 78 | links: | ||
| 79 | @$(PERL) $(TOP)/util/mklink.pl ../include/openssl $(EXHEADER) | ||
| 80 | @for i in $(FDIRS); do \ | ||
| 81 | (cd $$i && echo "making links in fips/$$i..." && \ | ||
| 82 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' FIPS_DES_ENC='${FIPS_DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' FIPS_SHA1_ASM_OBJ='${FIPS_SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PERL='${PERL}' links ); \ | ||
| 83 | done; | ||
| 84 | |||
| 85 | lib: $(LIBOBJ) | ||
| 86 | $(AR) $(LIB) $(LIBOBJ) | ||
| 87 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 88 | @touch lib | ||
| 89 | |||
| 90 | shared: | ||
| 91 | if [ -n "$(SHARED_LIBS)" ]; then \ | ||
| 92 | (cd ..; $(MAKE) $(SHARED_LIB)); \ | ||
| 93 | fi | ||
| 94 | |||
| 95 | libs: | ||
| 96 | @for i in $(FDIRS) ;\ | ||
| 97 | do \ | ||
| 98 | (cd $$i && echo "making libs in fips/$$i..." && \ | ||
| 99 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \ | ||
| 100 | done; | ||
| 101 | |||
| 102 | tests: | ||
| 103 | @for i in $(FDIRS) ;\ | ||
| 104 | do \ | ||
| 105 | (cd $$i && echo "making tests in fips/$$i..." && \ | ||
| 106 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \ | ||
| 107 | done; | ||
| 108 | |||
| 109 | top_fips_test_suite: | ||
| 110 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=. TARGET=fips_test_suite sub_target) | ||
| 111 | |||
| 112 | fips_test_suite: fips_test_suite.o $(TOP)/libcrypto.a | ||
| 113 | $(CC) $(CFLAGS) -o fips_test_suite fips_test_suite.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS) | ||
| 114 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_test_suite || { rm fips_test_suite; false; } | ||
| 115 | |||
| 116 | fips_test: top top_fips_test_suite | ||
| 117 | cd testvectors && perl -p -i -e 's/COUNT=/COUNT = /' des[23]/req/*.req | ||
| 118 | @for i in dsa sha1 aes des ; \ | ||
| 119 | do \ | ||
| 120 | (cd $$i && echo "making fips_test in fips/$$i..." && $(MAKE) fips_test) \ | ||
| 121 | done; | ||
| 122 | |||
| 123 | install: | ||
| 124 | @headerlist="$(EXHEADER)"; for i in $$headerlist ;\ | ||
| 125 | do \ | ||
| 126 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 127 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 128 | done; | ||
| 129 | @for i in $(FDIRS) ;\ | ||
| 130 | do \ | ||
| 131 | (cd $$i && echo "making install in fips/$$i..." && \ | ||
| 132 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \ | ||
| 133 | done; | ||
| 134 | @for i in $(EXE) ; \ | ||
| 135 | do \ | ||
| 136 | echo "installing $$i"; \ | ||
| 137 | cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
| 138 | chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
| 139 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \ | ||
| 140 | done | ||
| 141 | |||
| 142 | lint: | ||
| 143 | @for i in $(FDIRS) ;\ | ||
| 144 | do \ | ||
| 145 | (cd $$i && echo "making lint in fips/$$i..." && \ | ||
| 146 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \ | ||
| 147 | done; | ||
| 148 | |||
| 149 | depend: | ||
| 150 | if [ ! -f buildinf.h ]; then touch buildinf.h; fi # fake buildinf.h if it does not exist | ||
| 151 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDE) $(DEPFLAG) -- $(SRC) | ||
| 152 | if [ ! -s buildinf.h ]; then rm buildinf.h; fi | ||
| 153 | @for i in $(FDIRS) ;\ | ||
| 154 | do \ | ||
| 155 | (cd $$i && echo "making depend in fips/$$i..." && \ | ||
| 156 | $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' DEPFLAG='${DEPFLAG}' MAKEDEPPROG='${MAKEDEPPROG}' KRB5_INCLUDES='${KRB5_INCLUDES}' PERL='${PERL}' depend ); \ | ||
| 157 | done; | ||
| 158 | |||
| 159 | clean: | ||
| 160 | rm -f buildinf.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 161 | @for i in $(FDIRS) ;\ | ||
| 162 | do \ | ||
| 163 | (cd $$i && echo "making clean in fips/$$i..." && \ | ||
| 164 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \ | ||
| 165 | done; | ||
| 166 | |||
| 167 | dclean: | ||
| 168 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 169 | mv -f Makefile.new $(MAKEFILE) | ||
| 170 | @for i in $(FDIRS) ;\ | ||
| 171 | do \ | ||
| 172 | (cd $$i && echo "making dclean in fips/$$i..." && \ | ||
| 173 | $(MAKE) PERL='${PERL}' CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \ | ||
| 174 | done; | ||
| 175 | |||
| 176 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 177 | |||
| 178 | fips.o: ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 179 | fips.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 180 | fips.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 181 | fips.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 182 | fips.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 183 | fips.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 184 | fips.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 185 | fips.o: ../include/openssl/fips.h ../include/openssl/fips_rand.h | ||
| 186 | fips.o: ../include/openssl/hmac.h ../include/openssl/idea.h | ||
| 187 | fips.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 188 | fips.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 189 | fips.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 190 | fips.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 191 | fips.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 192 | fips.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 193 | fips.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 194 | fips.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 195 | fips.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 196 | fips.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 197 | fips.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h fips.c | ||
| 198 | fips.o: fips_locl.h | ||
| 199 | fips_err_wrapper.o: ../include/openssl/opensslconf.h fips_err_wrapper.c | ||
diff --git a/src/lib/libssl/src/fips/aes/Makefile b/src/lib/libssl/src/fips/aes/Makefile new file mode 100644 index 0000000000..fce5eeb5f7 --- /dev/null +++ b/src/lib/libssl/src/fips/aes/Makefile | |||
| @@ -0,0 +1,131 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/fips/aes/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= aes | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=fips_aesavs.c | ||
| 22 | TESTDATA=fips_aes_data | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=fips_aes_core.c fips_aes_selftest.c | ||
| 27 | LIBOBJ=fips_aes_core.o fips_aes_selftest.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= | ||
| 32 | HEADER= $(EXHEADER) fips_aes_locl.h | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: check lib | ||
| 40 | |||
| 41 | check: | ||
| 42 | TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @sleep 2; touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TESTDATA) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) | ||
| 57 | |||
| 58 | install: | ||
| 59 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 60 | do \ | ||
| 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 63 | done | ||
| 64 | |||
| 65 | tags: | ||
| 66 | ctags $(SRC) | ||
| 67 | |||
| 68 | tests: | ||
| 69 | |||
| 70 | top_fips_aesavs: | ||
| 71 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_aesavs sub_target) | ||
| 72 | |||
| 73 | fips_aesavs: fips_aesavs.o $(TOP)/libcrypto.a | ||
| 74 | $(CC) $(CFLAGS) -o fips_aesavs fips_aesavs.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS) | ||
| 75 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_aesavs | ||
| 76 | |||
| 77 | fips_test: top top_fips_aesavs | ||
| 78 | find ../testvectors/aes/req -name '*.req' > testlist | ||
| 79 | -rm -rf ../testvectors/aes/rsp | ||
| 80 | mkdir ../testvectors/aes/rsp | ||
| 81 | ./fips_aesavs -d testlist | ||
| 82 | |||
| 83 | lint: | ||
| 84 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 85 | |||
| 86 | depend: | ||
| 87 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) \ | ||
| 88 | $(SRC) $(TEST) | ||
| 89 | |||
| 90 | dclean: | ||
| 91 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 92 | mv -f Makefile.new $(MAKEFILE) | ||
| 93 | |||
| 94 | clean: | ||
| 95 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 96 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 97 | |||
| 98 | fips_aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 99 | fips_aes_core.o: ../../include/openssl/fips.h | ||
| 100 | fips_aes_core.o: ../../include/openssl/opensslconf.h fips_aes_core.c | ||
| 101 | fips_aes_core.o: fips_aes_locl.h | ||
| 102 | fips_aes_selftest.o: ../../include/openssl/aes.h ../../include/openssl/bio.h | ||
| 103 | fips_aes_selftest.o: ../../include/openssl/crypto.h | ||
| 104 | fips_aes_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 105 | fips_aes_selftest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 106 | fips_aes_selftest.o: ../../include/openssl/opensslconf.h | ||
| 107 | fips_aes_selftest.o: ../../include/openssl/opensslv.h | ||
| 108 | fips_aes_selftest.o: ../../include/openssl/safestack.h | ||
| 109 | fips_aes_selftest.o: ../../include/openssl/stack.h | ||
| 110 | fips_aes_selftest.o: ../../include/openssl/symhacks.h fips_aes_selftest.c | ||
| 111 | fips_aesavs.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 112 | fips_aesavs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 113 | fips_aesavs.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 114 | fips_aesavs.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 115 | fips_aesavs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 116 | fips_aesavs.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 117 | fips_aesavs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 118 | fips_aesavs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | ||
| 119 | fips_aesavs.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 120 | fips_aesavs.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 121 | fips_aesavs.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 122 | fips_aesavs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 123 | fips_aesavs.o: ../../include/openssl/opensslconf.h | ||
| 124 | fips_aesavs.o: ../../include/openssl/opensslv.h | ||
| 125 | fips_aesavs.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 126 | fips_aesavs.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 127 | fips_aesavs.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 128 | fips_aesavs.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 129 | fips_aesavs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 130 | fips_aesavs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 131 | fips_aesavs.o: fips_aesavs.c | ||
diff --git a/src/lib/libssl/src/fips/aes/fips_aes_selftest.c b/src/lib/libssl/src/fips/aes/fips_aes_selftest.c new file mode 100644 index 0000000000..0e53d21bd0 --- /dev/null +++ b/src/lib/libssl/src/fips/aes/fips_aes_selftest.c | |||
| @@ -0,0 +1,112 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #include <string.h> | ||
| 51 | #include <openssl/err.h> | ||
| 52 | #include <openssl/fips.h> | ||
| 53 | #include <openssl/aes.h> | ||
| 54 | |||
| 55 | #ifdef OPENSSL_FIPS | ||
| 56 | static struct | ||
| 57 | { | ||
| 58 | unsigned char key[16]; | ||
| 59 | unsigned char plaintext[16]; | ||
| 60 | unsigned char ciphertext[16]; | ||
| 61 | } tests[]= | ||
| 62 | { | ||
| 63 | { | ||
| 64 | { 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, | ||
| 65 | 0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F }, | ||
| 66 | { 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77, | ||
| 67 | 0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF }, | ||
| 68 | { 0x69,0xC4,0xE0,0xD8,0x6A,0x7B,0x04,0x30, | ||
| 69 | 0xD8,0xCD,0xB7,0x80,0x70,0xB4,0xC5,0x5A }, | ||
| 70 | }, | ||
| 71 | }; | ||
| 72 | |||
| 73 | void FIPS_corrupt_aes() | ||
| 74 | { | ||
| 75 | tests[0].key[0]++; | ||
| 76 | } | ||
| 77 | |||
| 78 | int FIPS_selftest_aes() | ||
| 79 | { | ||
| 80 | int n; | ||
| 81 | |||
| 82 | /* Encrypt and check against known ciphertext */ | ||
| 83 | for(n=0 ; n < 1 ; ++n) | ||
| 84 | { | ||
| 85 | AES_KEY key; | ||
| 86 | unsigned char buf[16]; | ||
| 87 | |||
| 88 | AES_set_encrypt_key(tests[n].key,128,&key); | ||
| 89 | AES_encrypt(tests[n].plaintext,buf,&key); | ||
| 90 | if(memcmp(buf,tests[n].ciphertext,sizeof buf)) | ||
| 91 | { | ||
| 92 | FIPSerr(FIPS_F_FIPS_SELFTEST_AES,FIPS_R_SELFTEST_FAILED); | ||
| 93 | return 0; | ||
| 94 | } | ||
| 95 | } | ||
| 96 | /* Decrypt and check against known plaintext */ | ||
| 97 | for(n=0 ; n < 1 ; ++n) | ||
| 98 | { | ||
| 99 | AES_KEY key; | ||
| 100 | unsigned char buf[16]; | ||
| 101 | |||
| 102 | AES_set_decrypt_key(tests[n].key,128,&key); | ||
| 103 | AES_decrypt(tests[n].ciphertext,buf,&key); | ||
| 104 | if(memcmp(buf,tests[n].plaintext,sizeof buf)) | ||
| 105 | { | ||
| 106 | FIPSerr(FIPS_F_FIPS_SELFTEST_AES,FIPS_R_SELFTEST_FAILED); | ||
| 107 | return 0; | ||
| 108 | } | ||
| 109 | } | ||
| 110 | return 1; | ||
| 111 | } | ||
| 112 | #endif | ||
diff --git a/src/lib/libssl/src/fips/aes/fips_aesavs.c b/src/lib/libssl/src/fips/aes/fips_aesavs.c new file mode 100644 index 0000000000..5fc2879067 --- /dev/null +++ b/src/lib/libssl/src/fips/aes/fips_aesavs.c | |||
| @@ -0,0 +1,1005 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | /*--------------------------------------------- | ||
| 50 | NIST AES Algorithm Validation Suite | ||
| 51 | Test Program | ||
| 52 | |||
| 53 | Donated to OpenSSL by: | ||
| 54 | V-ONE Corporation | ||
| 55 | 20250 Century Blvd, Suite 300 | ||
| 56 | Germantown, MD 20874 | ||
| 57 | U.S.A. | ||
| 58 | ----------------------------------------------*/ | ||
| 59 | |||
| 60 | #include <stdio.h> | ||
| 61 | #include <stdlib.h> | ||
| 62 | #include <string.h> | ||
| 63 | #include <errno.h> | ||
| 64 | #include <assert.h> | ||
| 65 | |||
| 66 | #include <openssl/aes.h> | ||
| 67 | #include <openssl/evp.h> | ||
| 68 | #include <openssl/fips.h> | ||
| 69 | #include <openssl/err.h> | ||
| 70 | #include "e_os.h" | ||
| 71 | |||
| 72 | #define AES_BLOCK_SIZE 16 | ||
| 73 | |||
| 74 | #define VERBOSE 1 | ||
| 75 | |||
| 76 | /*-----------------------------------------------*/ | ||
| 77 | |||
| 78 | int AESTest(EVP_CIPHER_CTX *ctx, | ||
| 79 | char *amode, int akeysz, unsigned char *aKey, | ||
| 80 | unsigned char *iVec, | ||
| 81 | int dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 82 | unsigned char *plaintext, unsigned char *ciphertext, int len) | ||
| 83 | { | ||
| 84 | const EVP_CIPHER *cipher = NULL; | ||
| 85 | int ret = 1; | ||
| 86 | int kt = 0; | ||
| 87 | |||
| 88 | if (ctx) | ||
| 89 | memset(ctx, 0, sizeof(EVP_CIPHER_CTX)); | ||
| 90 | |||
| 91 | if (strcasecmp(amode, "CBC") == 0) | ||
| 92 | kt = 1000; | ||
| 93 | else if (strcasecmp(amode, "ECB") == 0) | ||
| 94 | kt = 2000; | ||
| 95 | else if (strcasecmp(amode, "CFB128") == 0) | ||
| 96 | kt = 3000; | ||
| 97 | else if (strncasecmp(amode, "OFB", 3) == 0) | ||
| 98 | kt = 4000; | ||
| 99 | else if(!strcasecmp(amode,"CFB1")) | ||
| 100 | kt=5000; | ||
| 101 | else if(!strcasecmp(amode,"CFB8")) | ||
| 102 | kt=6000; | ||
| 103 | else | ||
| 104 | { | ||
| 105 | printf("Unknown mode: %s\n", amode); | ||
| 106 | EXIT(1); | ||
| 107 | } | ||
| 108 | if (ret) | ||
| 109 | { | ||
| 110 | if ((akeysz != 128) && (akeysz != 192) && (akeysz != 256)) | ||
| 111 | { | ||
| 112 | printf("Invalid key size: %d\n", akeysz); | ||
| 113 | ret = 0; | ||
| 114 | } | ||
| 115 | else | ||
| 116 | { | ||
| 117 | kt += akeysz; | ||
| 118 | switch (kt) | ||
| 119 | { | ||
| 120 | case 1128: /* CBC 128 */ | ||
| 121 | cipher = EVP_aes_128_cbc(); | ||
| 122 | break; | ||
| 123 | case 1192: /* CBC 192 */ | ||
| 124 | cipher = EVP_aes_192_cbc(); | ||
| 125 | break; | ||
| 126 | case 1256: /* CBC 256 */ | ||
| 127 | cipher = EVP_aes_256_cbc(); | ||
| 128 | break; | ||
| 129 | case 2128: /* ECB 128 */ | ||
| 130 | cipher = EVP_aes_128_ecb(); | ||
| 131 | break; | ||
| 132 | case 2192: /* ECB 192 */ | ||
| 133 | cipher = EVP_aes_192_ecb(); | ||
| 134 | break; | ||
| 135 | case 2256: /* ECB 256 */ | ||
| 136 | cipher = EVP_aes_256_ecb(); | ||
| 137 | break; | ||
| 138 | case 3128: /* CFB 128 */ | ||
| 139 | cipher = EVP_aes_128_cfb(); | ||
| 140 | break; | ||
| 141 | case 3192: /* CFB 192 */ | ||
| 142 | cipher = EVP_aes_192_cfb(); | ||
| 143 | break; | ||
| 144 | case 3256: /* CFB 256 */ | ||
| 145 | cipher = EVP_aes_256_cfb(); | ||
| 146 | break; | ||
| 147 | case 4128: /* OFB 128 */ | ||
| 148 | cipher = EVP_aes_128_ofb(); | ||
| 149 | break; | ||
| 150 | case 4192: /* OFB 192 */ | ||
| 151 | cipher = EVP_aes_192_ofb(); | ||
| 152 | break; | ||
| 153 | case 4256: /* OFB 256 */ | ||
| 154 | cipher = EVP_aes_256_ofb(); | ||
| 155 | break; | ||
| 156 | case 5128: | ||
| 157 | cipher=EVP_aes_128_cfb1(); | ||
| 158 | break; | ||
| 159 | case 5192: | ||
| 160 | cipher=EVP_aes_192_cfb1(); | ||
| 161 | break; | ||
| 162 | case 5256: | ||
| 163 | cipher=EVP_aes_256_cfb1(); | ||
| 164 | break; | ||
| 165 | case 6128: | ||
| 166 | cipher=EVP_aes_128_cfb8(); | ||
| 167 | break; | ||
| 168 | case 6192: | ||
| 169 | cipher=EVP_aes_192_cfb8(); | ||
| 170 | break; | ||
| 171 | case 6256: | ||
| 172 | cipher=EVP_aes_256_cfb8(); | ||
| 173 | break; | ||
| 174 | default: | ||
| 175 | printf("Didn't handle mode %d\n",kt); | ||
| 176 | EXIT(1); | ||
| 177 | } | ||
| 178 | if (dir) | ||
| 179 | { /* encrypt */ | ||
| 180 | if(!EVP_CipherInit(ctx, cipher, aKey, iVec, AES_ENCRYPT)) | ||
| 181 | { | ||
| 182 | ERR_print_errors_fp(stderr); | ||
| 183 | EXIT(1); | ||
| 184 | } | ||
| 185 | |||
| 186 | EVP_Cipher(ctx, ciphertext, (unsigned char*)plaintext, len); | ||
| 187 | } | ||
| 188 | else | ||
| 189 | { /* decrypt */ | ||
| 190 | if(!EVP_CipherInit(ctx, cipher, aKey, iVec, AES_DECRYPT)) | ||
| 191 | { | ||
| 192 | ERR_print_errors_fp(stderr); | ||
| 193 | EXIT(1); | ||
| 194 | } | ||
| 195 | EVP_Cipher(ctx, (unsigned char*)plaintext, ciphertext, len); | ||
| 196 | } | ||
| 197 | } | ||
| 198 | } | ||
| 199 | return ret; | ||
| 200 | } | ||
| 201 | |||
| 202 | /*-----------------------------------------------*/ | ||
| 203 | |||
| 204 | int hex2bin(char *in, int len, unsigned char *out) | ||
| 205 | { | ||
| 206 | int n1, n2; | ||
| 207 | unsigned char ch; | ||
| 208 | |||
| 209 | for (n1 = 0, n2 = 0; n1 < len; ) | ||
| 210 | { /* first byte */ | ||
| 211 | if ((in[n1] >= '0') && (in[n1] <= '9')) | ||
| 212 | ch = in[n1++] - '0'; | ||
| 213 | else if ((in[n1] >= 'A') && (in[n1] <= 'F')) | ||
| 214 | ch = in[n1++] - 'A' + 10; | ||
| 215 | else if ((in[n1] >= 'a') && (in[n1] <= 'f')) | ||
| 216 | ch = in[n1++] - 'a' + 10; | ||
| 217 | else | ||
| 218 | return -1; | ||
| 219 | if(len == 1) | ||
| 220 | { | ||
| 221 | out[n2++]=ch; | ||
| 222 | break; | ||
| 223 | } | ||
| 224 | out[n2] = ch << 4; | ||
| 225 | /* second byte */ | ||
| 226 | if ((in[n1] >= '0') && (in[n1] <= '9')) | ||
| 227 | ch = in[n1++] - '0'; | ||
| 228 | else if ((in[n1] >= 'A') && (in[n1] <= 'F')) | ||
| 229 | ch = in[n1++] - 'A' + 10; | ||
| 230 | else if ((in[n1] >= 'a') && (in[n1] <= 'f')) | ||
| 231 | ch = in[n1++] - 'a' + 10; | ||
| 232 | else | ||
| 233 | return -1; | ||
| 234 | out[n2++] |= ch; | ||
| 235 | } | ||
| 236 | return n2; | ||
| 237 | } | ||
| 238 | |||
| 239 | /*-----------------------------------------------*/ | ||
| 240 | |||
| 241 | int bin2hex(unsigned char *in, int len, char *out) | ||
| 242 | { | ||
| 243 | int n1, n2; | ||
| 244 | unsigned char ch; | ||
| 245 | |||
| 246 | for (n1 = 0, n2 = 0; n1 < len; ++n1) | ||
| 247 | { | ||
| 248 | /* first nibble */ | ||
| 249 | ch = in[n1] >> 4; | ||
| 250 | if (ch <= 0x09) | ||
| 251 | out[n2++] = ch + '0'; | ||
| 252 | else | ||
| 253 | out[n2++] = ch - 10 + 'a'; | ||
| 254 | /* second nibble */ | ||
| 255 | ch = in[n1] & 0x0f; | ||
| 256 | if (ch <= 0x09) | ||
| 257 | out[n2++] = ch + '0'; | ||
| 258 | else | ||
| 259 | out[n2++] = ch - 10 + 'a'; | ||
| 260 | } | ||
| 261 | return n2; | ||
| 262 | } | ||
| 263 | |||
| 264 | /* NB: this return the number of _bits_ read */ | ||
| 265 | int bint2bin(const char *in, int len, unsigned char *out) | ||
| 266 | { | ||
| 267 | int n; | ||
| 268 | |||
| 269 | memset(out,0,len); | ||
| 270 | for(n=0 ; n < len ; ++n) | ||
| 271 | if(in[n] == '1') | ||
| 272 | out[n/8]|=(0x80 >> (n%8)); | ||
| 273 | return len; | ||
| 274 | } | ||
| 275 | |||
| 276 | int bin2bint(const unsigned char *in,int len,char *out) | ||
| 277 | { | ||
| 278 | int n; | ||
| 279 | |||
| 280 | for(n=0 ; n < len ; ++n) | ||
| 281 | out[n]=(in[n/8]&(0x80 >> (n%8))) ? '1' : '0'; | ||
| 282 | return n; | ||
| 283 | } | ||
| 284 | |||
| 285 | /*-----------------------------------------------*/ | ||
| 286 | |||
| 287 | void PrintValue(char *tag, unsigned char *val, int len) | ||
| 288 | { | ||
| 289 | #if VERBOSE | ||
| 290 | char obuf[2048]; | ||
| 291 | int olen; | ||
| 292 | olen = bin2hex(val, len, obuf); | ||
| 293 | printf("%s = %.*s\n", tag, olen, obuf); | ||
| 294 | #endif | ||
| 295 | } | ||
| 296 | |||
| 297 | void OutputValue(char *tag, unsigned char *val, int len, FILE *rfp,int bitmode) | ||
| 298 | { | ||
| 299 | char obuf[2048]; | ||
| 300 | int olen; | ||
| 301 | |||
| 302 | if(bitmode) | ||
| 303 | olen=bin2bint(val,len,obuf); | ||
| 304 | else | ||
| 305 | olen=bin2hex(val,len,obuf); | ||
| 306 | |||
| 307 | fprintf(rfp, "%s = %.*s\n", tag, olen, obuf); | ||
| 308 | #if VERBOSE | ||
| 309 | printf("%s = %.*s\n", tag, olen, obuf); | ||
| 310 | #endif | ||
| 311 | } | ||
| 312 | |||
| 313 | /*-----------------------------------------------*/ | ||
| 314 | char *t_tag[2] = {"PLAINTEXT", "CIPHERTEXT"}; | ||
| 315 | char *t_mode[6] = {"CBC","ECB","OFB","CFB1","CFB8","CFB128"}; | ||
| 316 | enum Mode {CBC, ECB, OFB, CFB1, CFB8, CFB128}; | ||
| 317 | enum XCrypt {XDECRYPT, XENCRYPT}; | ||
| 318 | |||
| 319 | /*=============================*/ | ||
| 320 | /* Monte Carlo Tests */ | ||
| 321 | /*-----------------------------*/ | ||
| 322 | |||
| 323 | /*#define gb(a,b) (((a)[(b)/8] >> ((b)%8))&1)*/ | ||
| 324 | /*#define sb(a,b,v) ((a)[(b)/8]=((a)[(b)/8]&~(1 << ((b)%8)))|(!!(v) << ((b)%8)))*/ | ||
| 325 | |||
| 326 | #define gb(a,b) (((a)[(b)/8] >> (7-(b)%8))&1) | ||
| 327 | #define sb(a,b,v) ((a)[(b)/8]=((a)[(b)/8]&~(1 << (7-(b)%8)))|(!!(v) << (7-(b)%8))) | ||
| 328 | |||
| 329 | int do_mct(char *amode, | ||
| 330 | int akeysz, unsigned char *aKey,unsigned char *iVec, | ||
| 331 | int dir, unsigned char *text, int len, | ||
| 332 | FILE *rfp) | ||
| 333 | { | ||
| 334 | int ret = 0; | ||
| 335 | unsigned char key[101][32]; | ||
| 336 | unsigned char iv[101][AES_BLOCK_SIZE]; | ||
| 337 | unsigned char ptext[1001][32]; | ||
| 338 | unsigned char ctext[1001][32]; | ||
| 339 | unsigned char ciphertext[64+4]; | ||
| 340 | int i, j, n, n1, n2; | ||
| 341 | int imode = 0, nkeysz = akeysz/8; | ||
| 342 | EVP_CIPHER_CTX ctx; | ||
| 343 | |||
| 344 | if (len > 32) | ||
| 345 | { | ||
| 346 | printf("\n>>>> Length exceeds 32 for %s %d <<<<\n\n", | ||
| 347 | amode, akeysz); | ||
| 348 | return -1; | ||
| 349 | } | ||
| 350 | for (imode = 0; imode < 6; ++imode) | ||
| 351 | if (strcmp(amode, t_mode[imode]) == 0) | ||
| 352 | break; | ||
| 353 | if (imode == 6) | ||
| 354 | { | ||
| 355 | printf("Unrecognized mode: %s\n", amode); | ||
| 356 | return -1; | ||
| 357 | } | ||
| 358 | |||
| 359 | memcpy(key[0], aKey, nkeysz); | ||
| 360 | if (iVec) | ||
| 361 | memcpy(iv[0], iVec, AES_BLOCK_SIZE); | ||
| 362 | if (dir == XENCRYPT) | ||
| 363 | memcpy(ptext[0], text, len); | ||
| 364 | else | ||
| 365 | memcpy(ctext[0], text, len); | ||
| 366 | for (i = 0; i < 100; ++i) | ||
| 367 | { | ||
| 368 | /* printf("Iteration %d\n", i); */ | ||
| 369 | if (i > 0) | ||
| 370 | { | ||
| 371 | fprintf(rfp,"COUNT = %d\n",i); | ||
| 372 | OutputValue("KEY",key[i],nkeysz,rfp,0); | ||
| 373 | if (imode != ECB) /* ECB */ | ||
| 374 | OutputValue("IV",iv[i],AES_BLOCK_SIZE,rfp,0); | ||
| 375 | /* Output Ciphertext | Plaintext */ | ||
| 376 | OutputValue(t_tag[dir^1],dir ? ptext[0] : ctext[0],len,rfp, | ||
| 377 | imode == CFB1); | ||
| 378 | } | ||
| 379 | for (j = 0; j < 1000; ++j) | ||
| 380 | { | ||
| 381 | switch (imode) | ||
| 382 | { | ||
| 383 | case ECB: | ||
| 384 | if (j == 0) | ||
| 385 | { /* set up encryption */ | ||
| 386 | ret = AESTest(&ctx, amode, akeysz, key[i], NULL, | ||
| 387 | dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 388 | ptext[j], ctext[j], len); | ||
| 389 | if (dir == XENCRYPT) | ||
| 390 | memcpy(ptext[j+1], ctext[j], len); | ||
| 391 | else | ||
| 392 | memcpy(ctext[j+1], ptext[j], len); | ||
| 393 | } | ||
| 394 | else | ||
| 395 | { | ||
| 396 | if (dir == XENCRYPT) | ||
| 397 | { | ||
| 398 | EVP_Cipher(&ctx, ctext[j], ptext[j], len); | ||
| 399 | memcpy(ptext[j+1], ctext[j], len); | ||
| 400 | } | ||
| 401 | else | ||
| 402 | { | ||
| 403 | EVP_Cipher(&ctx, ptext[j], ctext[j], len); | ||
| 404 | memcpy(ctext[j+1], ptext[j], len); | ||
| 405 | } | ||
| 406 | } | ||
| 407 | break; | ||
| 408 | |||
| 409 | case CBC: | ||
| 410 | case OFB: | ||
| 411 | case CFB128: | ||
| 412 | if (j == 0) | ||
| 413 | { | ||
| 414 | ret = AESTest(&ctx, amode, akeysz, key[i], iv[i], | ||
| 415 | dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 416 | ptext[j], ctext[j], len); | ||
| 417 | if (dir == XENCRYPT) | ||
| 418 | memcpy(ptext[j+1], iv[i], len); | ||
| 419 | else | ||
| 420 | memcpy(ctext[j+1], iv[i], len); | ||
| 421 | } | ||
| 422 | else | ||
| 423 | { | ||
| 424 | if (dir == XENCRYPT) | ||
| 425 | { | ||
| 426 | EVP_Cipher(&ctx, ctext[j], ptext[j], len); | ||
| 427 | memcpy(ptext[j+1], ctext[j-1], len); | ||
| 428 | } | ||
| 429 | else | ||
| 430 | { | ||
| 431 | EVP_Cipher(&ctx, ptext[j], ctext[j], len); | ||
| 432 | memcpy(ctext[j+1], ptext[j-1], len); | ||
| 433 | } | ||
| 434 | } | ||
| 435 | break; | ||
| 436 | |||
| 437 | case CFB8: | ||
| 438 | if (j == 0) | ||
| 439 | { | ||
| 440 | ret = AESTest(&ctx, amode, akeysz, key[i], iv[i], | ||
| 441 | dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 442 | ptext[j], ctext[j], len); | ||
| 443 | } | ||
| 444 | else | ||
| 445 | { | ||
| 446 | if (dir == XENCRYPT) | ||
| 447 | EVP_Cipher(&ctx, ctext[j], ptext[j], len); | ||
| 448 | else | ||
| 449 | EVP_Cipher(&ctx, ptext[j], ctext[j], len); | ||
| 450 | } | ||
| 451 | if (dir == XENCRYPT) | ||
| 452 | { | ||
| 453 | if (j < 16) | ||
| 454 | memcpy(ptext[j+1], &iv[i][j], len); | ||
| 455 | else | ||
| 456 | memcpy(ptext[j+1], ctext[j-16], len); | ||
| 457 | } | ||
| 458 | else | ||
| 459 | { | ||
| 460 | if (j < 16) | ||
| 461 | memcpy(ctext[j+1], &iv[i][j], len); | ||
| 462 | else | ||
| 463 | memcpy(ctext[j+1], ptext[j-16], len); | ||
| 464 | } | ||
| 465 | break; | ||
| 466 | |||
| 467 | case CFB1: | ||
| 468 | if(j == 0) | ||
| 469 | { | ||
| 470 | /* compensate for wrong endianness of input file */ | ||
| 471 | if(i == 0) | ||
| 472 | ptext[0][0]<<=7; | ||
| 473 | ret=AESTest(&ctx,amode,akeysz,key[i],iv[i],dir, | ||
| 474 | ptext[j], ctext[j], len); | ||
| 475 | } | ||
| 476 | else | ||
| 477 | { | ||
| 478 | if (dir == XENCRYPT) | ||
| 479 | EVP_Cipher(&ctx, ctext[j], ptext[j], len); | ||
| 480 | else | ||
| 481 | EVP_Cipher(&ctx, ptext[j], ctext[j], len); | ||
| 482 | |||
| 483 | } | ||
| 484 | if(dir == XENCRYPT) | ||
| 485 | { | ||
| 486 | if(j < 128) | ||
| 487 | sb(ptext[j+1],0,gb(iv[i],j)); | ||
| 488 | else | ||
| 489 | sb(ptext[j+1],0,gb(ctext[j-128],0)); | ||
| 490 | } | ||
| 491 | else | ||
| 492 | { | ||
| 493 | if(j < 128) | ||
| 494 | sb(ctext[j+1],0,gb(iv[i],j)); | ||
| 495 | else | ||
| 496 | sb(ctext[j+1],0,gb(ptext[j-128],0)); | ||
| 497 | } | ||
| 498 | break; | ||
| 499 | } | ||
| 500 | } | ||
| 501 | --j; /* reset to last of range */ | ||
| 502 | /* Output Ciphertext | Plaintext */ | ||
| 503 | OutputValue(t_tag[dir],dir ? ctext[j] : ptext[j],len,rfp, | ||
| 504 | imode == CFB1); | ||
| 505 | fprintf(rfp, "\n"); /* add separator */ | ||
| 506 | |||
| 507 | /* Compute next KEY */ | ||
| 508 | if (dir == XENCRYPT) | ||
| 509 | { | ||
| 510 | if (imode == CFB8) | ||
| 511 | { /* ct = CT[j-15] || CT[j-14] || ... || CT[j] */ | ||
| 512 | for (n1 = 0, n2 = nkeysz-1; n1 < nkeysz; ++n1, --n2) | ||
| 513 | ciphertext[n1] = ctext[j-n2][0]; | ||
| 514 | } | ||
| 515 | else if(imode == CFB1) | ||
| 516 | { | ||
| 517 | for(n1=0,n2=akeysz-1 ; n1 < akeysz ; ++n1,--n2) | ||
| 518 | sb(ciphertext,n1,gb(ctext[j-n2],0)); | ||
| 519 | } | ||
| 520 | else | ||
| 521 | switch (akeysz) | ||
| 522 | { | ||
| 523 | case 128: | ||
| 524 | memcpy(ciphertext, ctext[j], 16); | ||
| 525 | break; | ||
| 526 | case 192: | ||
| 527 | memcpy(ciphertext, ctext[j-1]+8, 8); | ||
| 528 | memcpy(ciphertext+8, ctext[j], 16); | ||
| 529 | break; | ||
| 530 | case 256: | ||
| 531 | memcpy(ciphertext, ctext[j-1], 16); | ||
| 532 | memcpy(ciphertext+16, ctext[j], 16); | ||
| 533 | break; | ||
| 534 | } | ||
| 535 | } | ||
| 536 | else | ||
| 537 | { | ||
| 538 | if (imode == CFB8) | ||
| 539 | { /* ct = CT[j-15] || CT[j-14] || ... || CT[j] */ | ||
| 540 | for (n1 = 0, n2 = nkeysz-1; n1 < nkeysz; ++n1, --n2) | ||
| 541 | ciphertext[n1] = ptext[j-n2][0]; | ||
| 542 | } | ||
| 543 | else if(imode == CFB1) | ||
| 544 | { | ||
| 545 | for(n1=0,n2=akeysz-1 ; n1 < akeysz ; ++n1,--n2) | ||
| 546 | sb(ciphertext,n1,gb(ptext[j-n2],0)); | ||
| 547 | } | ||
| 548 | else | ||
| 549 | switch (akeysz) | ||
| 550 | { | ||
| 551 | case 128: | ||
| 552 | memcpy(ciphertext, ptext[j], 16); | ||
| 553 | break; | ||
| 554 | case 192: | ||
| 555 | memcpy(ciphertext, ptext[j-1]+8, 8); | ||
| 556 | memcpy(ciphertext+8, ptext[j], 16); | ||
| 557 | break; | ||
| 558 | case 256: | ||
| 559 | memcpy(ciphertext, ptext[j-1], 16); | ||
| 560 | memcpy(ciphertext+16, ptext[j], 16); | ||
| 561 | break; | ||
| 562 | } | ||
| 563 | } | ||
| 564 | /* Compute next key: Key[i+1] = Key[i] xor ct */ | ||
| 565 | for (n = 0; n < nkeysz; ++n) | ||
| 566 | key[i+1][n] = key[i][n] ^ ciphertext[n]; | ||
| 567 | |||
| 568 | /* Compute next IV and text */ | ||
| 569 | if (dir == XENCRYPT) | ||
| 570 | { | ||
| 571 | switch (imode) | ||
| 572 | { | ||
| 573 | case ECB: | ||
| 574 | memcpy(ptext[0], ctext[j], AES_BLOCK_SIZE); | ||
| 575 | break; | ||
| 576 | case CBC: | ||
| 577 | case OFB: | ||
| 578 | case CFB128: | ||
| 579 | memcpy(iv[i+1], ctext[j], AES_BLOCK_SIZE); | ||
| 580 | memcpy(ptext[0], ctext[j-1], AES_BLOCK_SIZE); | ||
| 581 | break; | ||
| 582 | case CFB8: | ||
| 583 | /* IV[i+1] = ct */ | ||
| 584 | for (n1 = 0, n2 = 15; n1 < 16; ++n1, --n2) | ||
| 585 | iv[i+1][n1] = ctext[j-n2][0]; | ||
| 586 | ptext[0][0] = ctext[j-16][0]; | ||
| 587 | break; | ||
| 588 | case CFB1: | ||
| 589 | for(n1=0,n2=127 ; n1 < 128 ; ++n1,--n2) | ||
| 590 | sb(iv[i+1],n1,gb(ctext[j-n2],0)); | ||
| 591 | ptext[0][0]=ctext[j-128][0]&0x80; | ||
| 592 | break; | ||
| 593 | } | ||
| 594 | } | ||
| 595 | else | ||
| 596 | { | ||
| 597 | switch (imode) | ||
| 598 | { | ||
| 599 | case ECB: | ||
| 600 | memcpy(ctext[0], ptext[j], AES_BLOCK_SIZE); | ||
| 601 | break; | ||
| 602 | case CBC: | ||
| 603 | case OFB: | ||
| 604 | case CFB128: | ||
| 605 | memcpy(iv[i+1], ptext[j], AES_BLOCK_SIZE); | ||
| 606 | memcpy(ctext[0], ptext[j-1], AES_BLOCK_SIZE); | ||
| 607 | break; | ||
| 608 | case CFB8: | ||
| 609 | for (n1 = 0, n2 = 15; n1 < 16; ++n1, --n2) | ||
| 610 | iv[i+1][n1] = ptext[j-n2][0]; | ||
| 611 | ctext[0][0] = ptext[j-16][0]; | ||
| 612 | break; | ||
| 613 | case CFB1: | ||
| 614 | for(n1=0,n2=127 ; n1 < 128 ; ++n1,--n2) | ||
| 615 | sb(iv[i+1],n1,gb(ptext[j-n2],0)); | ||
| 616 | ctext[0][0]=ptext[j-128][0]&0x80; | ||
| 617 | break; | ||
| 618 | } | ||
| 619 | } | ||
| 620 | } | ||
| 621 | |||
| 622 | return ret; | ||
| 623 | } | ||
| 624 | |||
| 625 | /*================================================*/ | ||
| 626 | /*---------------------------- | ||
| 627 | # Config info for v-one | ||
| 628 | # AESVS MMT test data for ECB | ||
| 629 | # State : Encrypt and Decrypt | ||
| 630 | # Key Length : 256 | ||
| 631 | # Fri Aug 30 04:07:22 PM | ||
| 632 | ----------------------------*/ | ||
| 633 | |||
| 634 | int proc_file(char *rqfile) | ||
| 635 | { | ||
| 636 | char afn[256], rfn[256]; | ||
| 637 | FILE *afp = NULL, *rfp = NULL; | ||
| 638 | char ibuf[2048]; | ||
| 639 | int ilen, len, ret = 0; | ||
| 640 | char algo[8] = ""; | ||
| 641 | char amode[8] = ""; | ||
| 642 | char atest[8] = ""; | ||
| 643 | int akeysz = 0; | ||
| 644 | unsigned char iVec[20], aKey[40]; | ||
| 645 | int dir = -1, err = 0, step = 0; | ||
| 646 | unsigned char plaintext[2048]; | ||
| 647 | unsigned char ciphertext[2048]; | ||
| 648 | char *rp; | ||
| 649 | EVP_CIPHER_CTX ctx; | ||
| 650 | |||
| 651 | if (!rqfile || !(*rqfile)) | ||
| 652 | { | ||
| 653 | printf("No req file\n"); | ||
| 654 | return -1; | ||
| 655 | } | ||
| 656 | strcpy(afn, rqfile); | ||
| 657 | |||
| 658 | if ((afp = fopen(afn, "r")) == NULL) | ||
| 659 | { | ||
| 660 | printf("Cannot open file: %s, %s\n", | ||
| 661 | afn, strerror(errno)); | ||
| 662 | return -1; | ||
| 663 | } | ||
| 664 | strcpy(rfn,afn); | ||
| 665 | rp=strstr(rfn,"req/"); | ||
| 666 | assert(rp); | ||
| 667 | memcpy(rp,"rsp",3); | ||
| 668 | rp = strstr(rfn, ".req"); | ||
| 669 | memcpy(rp, ".rsp", 4); | ||
| 670 | if ((rfp = fopen(rfn, "w")) == NULL) | ||
| 671 | { | ||
| 672 | printf("Cannot open file: %s, %s\n", | ||
| 673 | rfn, strerror(errno)); | ||
| 674 | fclose(afp); | ||
| 675 | afp = NULL; | ||
| 676 | return -1; | ||
| 677 | } | ||
| 678 | while (!err && (fgets(ibuf, sizeof(ibuf), afp)) != NULL) | ||
| 679 | { | ||
| 680 | ilen = strlen(ibuf); | ||
| 681 | /* printf("step=%d ibuf=%s",step,ibuf); */ | ||
| 682 | switch (step) | ||
| 683 | { | ||
| 684 | case 0: /* read preamble */ | ||
| 685 | if (ibuf[0] == '\n') | ||
| 686 | { /* end of preamble */ | ||
| 687 | if ((*algo == '\0') || | ||
| 688 | (*amode == '\0') || | ||
| 689 | (akeysz == 0)) | ||
| 690 | { | ||
| 691 | printf("Missing Algorithm, Mode or KeySize (%s/%s/%d)\n", | ||
| 692 | algo,amode,akeysz); | ||
| 693 | err = 1; | ||
| 694 | } | ||
| 695 | else | ||
| 696 | { | ||
| 697 | fputs(ibuf, rfp); | ||
| 698 | ++ step; | ||
| 699 | } | ||
| 700 | } | ||
| 701 | else if (ibuf[0] != '#') | ||
| 702 | { | ||
| 703 | printf("Invalid preamble item: %s\n", ibuf); | ||
| 704 | err = 1; | ||
| 705 | } | ||
| 706 | else | ||
| 707 | { /* process preamble */ | ||
| 708 | char *xp, *pp = ibuf+2; | ||
| 709 | int n; | ||
| 710 | if (akeysz) | ||
| 711 | { /* insert current time & date */ | ||
| 712 | time_t rtim = time(0); | ||
| 713 | fprintf(rfp, "# %s", ctime(&rtim)); | ||
| 714 | } | ||
| 715 | else | ||
| 716 | { | ||
| 717 | fputs(ibuf, rfp); | ||
| 718 | if (strncmp(pp, "AESVS ", 6) == 0) | ||
| 719 | { | ||
| 720 | strcpy(algo, "AES"); | ||
| 721 | /* get test type */ | ||
| 722 | pp += 6; | ||
| 723 | xp = strchr(pp, ' '); | ||
| 724 | n = xp-pp; | ||
| 725 | strncpy(atest, pp, n); | ||
| 726 | atest[n] = '\0'; | ||
| 727 | /* get mode */ | ||
| 728 | xp = strrchr(pp, ' '); /* get mode" */ | ||
| 729 | n = strlen(xp+1)-1; | ||
| 730 | strncpy(amode, xp+1, n); | ||
| 731 | amode[n] = '\0'; | ||
| 732 | /* amode[3] = '\0'; */ | ||
| 733 | printf("Test = %s, Mode = %s\n", atest, amode); | ||
| 734 | } | ||
| 735 | else if (strncasecmp(pp, "Key Length : ", 13) == 0) | ||
| 736 | { | ||
| 737 | akeysz = atoi(pp+13); | ||
| 738 | printf("Key size = %d\n", akeysz); | ||
| 739 | } | ||
| 740 | } | ||
| 741 | } | ||
| 742 | break; | ||
| 743 | |||
| 744 | case 1: /* [ENCRYPT] | [DECRYPT] */ | ||
| 745 | if (ibuf[0] == '[') | ||
| 746 | { | ||
| 747 | fputs(ibuf, rfp); | ||
| 748 | ++step; | ||
| 749 | if (strncasecmp(ibuf, "[ENCRYPT]", 9) == 0) | ||
| 750 | dir = 1; | ||
| 751 | else if (strncasecmp(ibuf, "[DECRYPT]", 9) == 0) | ||
| 752 | dir = 0; | ||
| 753 | else | ||
| 754 | { | ||
| 755 | printf("Invalid keyword: %s\n", ibuf); | ||
| 756 | err = 1; | ||
| 757 | } | ||
| 758 | break; | ||
| 759 | } | ||
| 760 | else if (dir == -1) | ||
| 761 | { | ||
| 762 | err = 1; | ||
| 763 | printf("Missing ENCRYPT/DECRYPT keyword\n"); | ||
| 764 | break; | ||
| 765 | } | ||
| 766 | else | ||
| 767 | step = 2; | ||
| 768 | |||
| 769 | case 2: /* KEY = xxxx */ | ||
| 770 | fputs(ibuf, rfp); | ||
| 771 | if(*ibuf == '\n') | ||
| 772 | break; | ||
| 773 | if(!strncasecmp(ibuf,"COUNT = ",8)) | ||
| 774 | break; | ||
| 775 | |||
| 776 | if (strncasecmp(ibuf, "KEY = ", 6) != 0) | ||
| 777 | { | ||
| 778 | printf("Missing KEY\n"); | ||
| 779 | err = 1; | ||
| 780 | } | ||
| 781 | else | ||
| 782 | { | ||
| 783 | len = hex2bin((char*)ibuf+6, strlen(ibuf+6)-1, aKey); | ||
| 784 | if (len < 0) | ||
| 785 | { | ||
| 786 | printf("Invalid KEY\n"); | ||
| 787 | err =1; | ||
| 788 | break; | ||
| 789 | } | ||
| 790 | PrintValue("KEY", aKey, len); | ||
| 791 | if (strcmp(amode, "ECB") == 0) | ||
| 792 | { | ||
| 793 | memset(iVec, 0, sizeof(iVec)); | ||
| 794 | step = (dir)? 4: 5; /* no ivec for ECB */ | ||
| 795 | } | ||
| 796 | else | ||
| 797 | ++step; | ||
| 798 | } | ||
| 799 | break; | ||
| 800 | |||
| 801 | case 3: /* IV = xxxx */ | ||
| 802 | fputs(ibuf, rfp); | ||
| 803 | if (strncasecmp(ibuf, "IV = ", 5) != 0) | ||
| 804 | { | ||
| 805 | printf("Missing IV\n"); | ||
| 806 | err = 1; | ||
| 807 | } | ||
| 808 | else | ||
| 809 | { | ||
| 810 | len = hex2bin((char*)ibuf+5, strlen(ibuf+5)-1, iVec); | ||
| 811 | if (len < 0) | ||
| 812 | { | ||
| 813 | printf("Invalid IV\n"); | ||
| 814 | err =1; | ||
| 815 | break; | ||
| 816 | } | ||
| 817 | PrintValue("IV", iVec, len); | ||
| 818 | step = (dir)? 4: 5; | ||
| 819 | } | ||
| 820 | break; | ||
| 821 | |||
| 822 | case 4: /* PLAINTEXT = xxxx */ | ||
| 823 | fputs(ibuf, rfp); | ||
| 824 | if (strncasecmp(ibuf, "PLAINTEXT = ", 12) != 0) | ||
| 825 | { | ||
| 826 | printf("Missing PLAINTEXT\n"); | ||
| 827 | err = 1; | ||
| 828 | } | ||
| 829 | else | ||
| 830 | { | ||
| 831 | int nn = strlen(ibuf+12); | ||
| 832 | if(!strcmp(amode,"CFB1")) | ||
| 833 | len=bint2bin(ibuf+12,nn-1,plaintext); | ||
| 834 | else | ||
| 835 | len=hex2bin(ibuf+12, nn-1,plaintext); | ||
| 836 | if (len < 0) | ||
| 837 | { | ||
| 838 | printf("Invalid PLAINTEXT: %s", ibuf+12); | ||
| 839 | err =1; | ||
| 840 | break; | ||
| 841 | } | ||
| 842 | if (len >= sizeof(plaintext)) | ||
| 843 | { | ||
| 844 | printf("Buffer overflow\n"); | ||
| 845 | } | ||
| 846 | PrintValue("PLAINTEXT", (unsigned char*)plaintext, len); | ||
| 847 | if (strcmp(atest, "MCT") == 0) /* Monte Carlo Test */ | ||
| 848 | { | ||
| 849 | if(do_mct(amode, akeysz, aKey, iVec, | ||
| 850 | dir, (unsigned char*)plaintext, len, | ||
| 851 | rfp) < 0) | ||
| 852 | EXIT(1); | ||
| 853 | } | ||
| 854 | else | ||
| 855 | { | ||
| 856 | ret = AESTest(&ctx, amode, akeysz, aKey, iVec, | ||
| 857 | dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 858 | plaintext, ciphertext, len); | ||
| 859 | OutputValue("CIPHERTEXT",ciphertext,len,rfp, | ||
| 860 | !strcmp(amode,"CFB1")); | ||
| 861 | } | ||
| 862 | step = 6; | ||
| 863 | } | ||
| 864 | break; | ||
| 865 | |||
| 866 | case 5: /* CIPHERTEXT = xxxx */ | ||
| 867 | fputs(ibuf, rfp); | ||
| 868 | if (strncasecmp(ibuf, "CIPHERTEXT = ", 13) != 0) | ||
| 869 | { | ||
| 870 | printf("Missing KEY\n"); | ||
| 871 | err = 1; | ||
| 872 | } | ||
| 873 | else | ||
| 874 | { | ||
| 875 | if(!strcmp(amode,"CFB1")) | ||
| 876 | len=bint2bin(ibuf+13,strlen(ibuf+13)-1,ciphertext); | ||
| 877 | else | ||
| 878 | len = hex2bin(ibuf+13,strlen(ibuf+13)-1,ciphertext); | ||
| 879 | if (len < 0) | ||
| 880 | { | ||
| 881 | printf("Invalid CIPHERTEXT\n"); | ||
| 882 | err =1; | ||
| 883 | break; | ||
| 884 | } | ||
| 885 | |||
| 886 | PrintValue("CIPHERTEXT", ciphertext, len); | ||
| 887 | if (strcmp(atest, "MCT") == 0) /* Monte Carlo Test */ | ||
| 888 | { | ||
| 889 | do_mct(amode, akeysz, aKey, iVec, | ||
| 890 | dir, ciphertext, len, rfp); | ||
| 891 | } | ||
| 892 | else | ||
| 893 | { | ||
| 894 | ret = AESTest(&ctx, amode, akeysz, aKey, iVec, | ||
| 895 | dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 896 | plaintext, ciphertext, len); | ||
| 897 | OutputValue("PLAINTEXT",(unsigned char *)plaintext,len,rfp, | ||
| 898 | !strcmp(amode,"CFB1")); | ||
| 899 | } | ||
| 900 | step = 6; | ||
| 901 | } | ||
| 902 | break; | ||
| 903 | |||
| 904 | case 6: | ||
| 905 | if (ibuf[0] != '\n') | ||
| 906 | { | ||
| 907 | err = 1; | ||
| 908 | printf("Missing terminator\n"); | ||
| 909 | } | ||
| 910 | else if (strcmp(atest, "MCT") != 0) | ||
| 911 | { /* MCT already added terminating nl */ | ||
| 912 | fputs(ibuf, rfp); | ||
| 913 | } | ||
| 914 | step = 1; | ||
| 915 | break; | ||
| 916 | } | ||
| 917 | } | ||
| 918 | if (rfp) | ||
| 919 | fclose(rfp); | ||
| 920 | if (afp) | ||
| 921 | fclose(afp); | ||
| 922 | return err; | ||
| 923 | } | ||
| 924 | |||
| 925 | /*-------------------------------------------------- | ||
| 926 | Processes either a single file or | ||
| 927 | a set of files whose names are passed in a file. | ||
| 928 | A single file is specified as: | ||
| 929 | aes_test -f xxx.req | ||
| 930 | A set of files is specified as: | ||
| 931 | aes_test -d xxxxx.xxx | ||
| 932 | The default is: -d req.txt | ||
| 933 | --------------------------------------------------*/ | ||
| 934 | int main(int argc, char **argv) | ||
| 935 | { | ||
| 936 | char *rqlist = "req.txt"; | ||
| 937 | FILE *fp = NULL; | ||
| 938 | char fn[250] = "", rfn[256] = ""; | ||
| 939 | int f_opt = 0, d_opt = 1; | ||
| 940 | |||
| 941 | #ifdef OPENSSL_FIPS | ||
| 942 | if(!FIPS_mode_set(1,argv[0])) | ||
| 943 | { | ||
| 944 | ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); | ||
| 945 | EXIT(1); | ||
| 946 | } | ||
| 947 | #endif | ||
| 948 | ERR_load_crypto_strings(); | ||
| 949 | if (argc > 1) | ||
| 950 | { | ||
| 951 | if (strcasecmp(argv[1], "-d") == 0) | ||
| 952 | { | ||
| 953 | d_opt = 1; | ||
| 954 | } | ||
| 955 | else if (strcasecmp(argv[1], "-f") == 0) | ||
| 956 | { | ||
| 957 | f_opt = 1; | ||
| 958 | d_opt = 0; | ||
| 959 | } | ||
| 960 | else | ||
| 961 | { | ||
| 962 | printf("Invalid parameter: %s\n", argv[1]); | ||
| 963 | return 0; | ||
| 964 | } | ||
| 965 | if (argc < 3) | ||
| 966 | { | ||
| 967 | printf("Missing parameter\n"); | ||
| 968 | return 0; | ||
| 969 | } | ||
| 970 | if (d_opt) | ||
| 971 | rqlist = argv[2]; | ||
| 972 | else | ||
| 973 | strcpy(fn, argv[2]); | ||
| 974 | } | ||
| 975 | if (d_opt) | ||
| 976 | { /* list of files (directory) */ | ||
| 977 | if (!(fp = fopen(rqlist, "r"))) | ||
| 978 | { | ||
| 979 | printf("Cannot open req list file\n"); | ||
| 980 | return -1; | ||
| 981 | } | ||
| 982 | while (fgets(fn, sizeof(fn), fp)) | ||
| 983 | { | ||
| 984 | strtok(fn, "\r\n"); | ||
| 985 | strcpy(rfn, fn); | ||
| 986 | printf("Processing: %s\n", rfn); | ||
| 987 | if (proc_file(rfn)) | ||
| 988 | { | ||
| 989 | printf(">>> Processing failed for: %s <<<\n", rfn); | ||
| 990 | EXIT(1); | ||
| 991 | } | ||
| 992 | } | ||
| 993 | fclose(fp); | ||
| 994 | } | ||
| 995 | else /* single file */ | ||
| 996 | { | ||
| 997 | printf("Processing: %s\n", fn); | ||
| 998 | if (proc_file(fn)) | ||
| 999 | { | ||
| 1000 | printf(">>> Processing failed for: %s <<<\n", fn); | ||
| 1001 | } | ||
| 1002 | } | ||
| 1003 | EXIT(0); | ||
| 1004 | return 0; | ||
| 1005 | } | ||
diff --git a/src/lib/libssl/src/fips/des/Makefile b/src/lib/libssl/src/fips/des/Makefile new file mode 100644 index 0000000000..87a5329d53 --- /dev/null +++ b/src/lib/libssl/src/fips/des/Makefile | |||
| @@ -0,0 +1,155 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/fips/des/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= des | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | FIPS_DES_ENC=fips_des_enc.o | ||
| 19 | |||
| 20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 21 | |||
| 22 | GENERAL=Makefile | ||
| 23 | TEST= fips_desmovs.c | ||
| 24 | APPS= | ||
| 25 | |||
| 26 | LIB=$(TOP)/libcrypto.a | ||
| 27 | LIBSRC=fips_des_enc.c asm/fips-dx86-elf.s fips_des_selftest.c fips_set_key.c | ||
| 28 | LIBOBJ=$(FIPS_DES_ENC) fips_des_selftest.o fips_set_key.o | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= | ||
| 33 | HEADER= $(EXHEADER) fips_des_locl.h | ||
| 34 | |||
| 35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 36 | |||
| 37 | top: | ||
| 38 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all) | ||
| 39 | |||
| 40 | all: check lib | ||
| 41 | |||
| 42 | check: | ||
| 43 | TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) | ||
| 44 | |||
| 45 | lib: $(LIBOBJ) | ||
| 46 | $(AR) $(LIB) $(LIBOBJ) | ||
| 47 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 48 | @sleep 2; touch lib | ||
| 49 | |||
| 50 | files: | ||
| 51 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 52 | |||
| 53 | links: | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) | ||
| 57 | |||
| 58 | install: | ||
| 59 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 60 | do \ | ||
| 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 63 | done | ||
| 64 | |||
| 65 | tags: | ||
| 66 | ctags $(SRC) | ||
| 67 | |||
| 68 | tests: | ||
| 69 | |||
| 70 | top_fips_desmovs: | ||
| 71 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_desmovs sub_target) | ||
| 72 | |||
| 73 | fips_desmovs: fips_desmovs.o $(TOP)/libcrypto.a | ||
| 74 | $(CC) $(CFLAGS) -o fips_desmovs fips_desmovs.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS) | ||
| 75 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_desmovs | ||
| 76 | |||
| 77 | fips_test: top_fips_desmovs | ||
| 78 | find ../testvectors/des/req -name '*.req' > testlist | ||
| 79 | -rm -rf ../testvectors/des/rsp | ||
| 80 | mkdir ../testvectors/des/rsp | ||
| 81 | ./fips_desmovs -d testlist | ||
| 82 | find ../testvectors/des2/req -name '*.req' > testlist | ||
| 83 | -rm -rf ../testvectors/des2/rsp | ||
| 84 | mkdir ../testvectors/des2/rsp | ||
| 85 | ./fips_desmovs -d testlist | ||
| 86 | find ../testvectors/des3/req -name '*.req' > testlist | ||
| 87 | -rm -rf ../testvectors/des3/rsp | ||
| 88 | mkdir ../testvectors/des3/rsp | ||
| 89 | ./fips_desmovs -d testlist | ||
| 90 | |||
| 91 | lint: | ||
| 92 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 93 | |||
| 94 | depend: | ||
| 95 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) \ | ||
| 96 | $(SRC) $(TEST) | ||
| 97 | dclean: | ||
| 98 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 99 | mv -f Makefile.new $(MAKEFILE) | ||
| 100 | |||
| 101 | clean: | ||
| 102 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 103 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 104 | |||
| 105 | fips_des_enc.o: ../../e_os.h ../../include/openssl/crypto.h | ||
| 106 | fips_des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 107 | fips_des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h | ||
| 108 | fips_des_enc.o: ../../include/openssl/opensslconf.h | ||
| 109 | fips_des_enc.o: ../../include/openssl/opensslv.h | ||
| 110 | fips_des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 111 | fips_des_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 112 | fips_des_enc.o: ../../include/openssl/ui_compat.h fips_des_enc.c | ||
| 113 | fips_des_enc.o: fips_des_locl.h | ||
| 114 | fips_des_selftest.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 115 | fips_des_selftest.o: ../../include/openssl/des.h | ||
| 116 | fips_des_selftest.o: ../../include/openssl/des_old.h | ||
| 117 | fips_des_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 118 | fips_des_selftest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 119 | fips_des_selftest.o: ../../include/openssl/opensslconf.h | ||
| 120 | fips_des_selftest.o: ../../include/openssl/opensslv.h | ||
| 121 | fips_des_selftest.o: ../../include/openssl/safestack.h | ||
| 122 | fips_des_selftest.o: ../../include/openssl/stack.h | ||
| 123 | fips_des_selftest.o: ../../include/openssl/symhacks.h | ||
| 124 | fips_des_selftest.o: ../../include/openssl/ui.h | ||
| 125 | fips_des_selftest.o: ../../include/openssl/ui_compat.h fips_des_selftest.c | ||
| 126 | fips_desmovs.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 127 | fips_desmovs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 128 | fips_desmovs.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 129 | fips_desmovs.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 130 | fips_desmovs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 131 | fips_desmovs.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 132 | fips_desmovs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 133 | fips_desmovs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | ||
| 134 | fips_desmovs.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 135 | fips_desmovs.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 136 | fips_desmovs.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 137 | fips_desmovs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 138 | fips_desmovs.o: ../../include/openssl/opensslconf.h | ||
| 139 | fips_desmovs.o: ../../include/openssl/opensslv.h | ||
| 140 | fips_desmovs.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 141 | fips_desmovs.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 142 | fips_desmovs.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 143 | fips_desmovs.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 144 | fips_desmovs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 145 | fips_desmovs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 146 | fips_desmovs.o: fips_desmovs.c | ||
| 147 | fips_set_key.o: ../../e_os.h ../../include/openssl/crypto.h | ||
| 148 | fips_set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 149 | fips_set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h | ||
| 150 | fips_set_key.o: ../../include/openssl/opensslconf.h | ||
| 151 | fips_set_key.o: ../../include/openssl/opensslv.h | ||
| 152 | fips_set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 153 | fips_set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 154 | fips_set_key.o: ../../include/openssl/ui_compat.h fips_des_locl.h | ||
| 155 | fips_set_key.o: fips_set_key.c | ||
diff --git a/src/lib/libssl/src/fips/des/fips_des_selftest.c b/src/lib/libssl/src/fips/des/fips_des_selftest.c new file mode 100644 index 0000000000..3e0778eb5e --- /dev/null +++ b/src/lib/libssl/src/fips/des/fips_des_selftest.c | |||
| @@ -0,0 +1,200 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #include <string.h> | ||
| 51 | #include <openssl/err.h> | ||
| 52 | #include <openssl/fips.h> | ||
| 53 | #include <openssl/des.h> | ||
| 54 | #include <openssl/opensslconf.h> | ||
| 55 | |||
| 56 | #ifdef OPENSSL_FIPS | ||
| 57 | static struct | ||
| 58 | { | ||
| 59 | DES_cblock key; | ||
| 60 | unsigned char plaintext[8]; | ||
| 61 | unsigned char ciphertext[8]; | ||
| 62 | } tests[]= | ||
| 63 | { | ||
| 64 | { | ||
| 65 | { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, | ||
| 66 | { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, | ||
| 67 | { 0x8C,0xA6,0x4D,0xE9,0xC1,0xB1,0x23,0xA7 } | ||
| 68 | }, | ||
| 69 | { | ||
| 70 | { 0xFE,0xDC,0xBA,0x98,0x76,0x54,0x32,0x10 }, | ||
| 71 | { 0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF }, | ||
| 72 | { 0xED,0x39,0xD9,0x50,0xFA,0x74,0xBC,0xC4 }, | ||
| 73 | }, | ||
| 74 | }; | ||
| 75 | |||
| 76 | static struct | ||
| 77 | { | ||
| 78 | DES_cblock key1; | ||
| 79 | DES_cblock key2; | ||
| 80 | unsigned char plaintext[8]; | ||
| 81 | unsigned char ciphertext[8]; | ||
| 82 | } tests2[]= | ||
| 83 | { | ||
| 84 | { | ||
| 85 | { 0x7c,0x4f,0x6e,0xf7,0xa2,0x04,0x16,0xec }, | ||
| 86 | { 0x0b,0x6b,0x7c,0x9e,0x5e,0x19,0xa7,0xc4 }, | ||
| 87 | { 0x06,0xa7,0xd8,0x79,0xaa,0xce,0x69,0xef }, | ||
| 88 | { 0x4c,0x11,0x17,0x55,0xbf,0xc4,0x4e,0xfd } | ||
| 89 | }, | ||
| 90 | { | ||
| 91 | { 0x5d,0x9e,0x01,0xd3,0x25,0xc7,0x3e,0x34 }, | ||
| 92 | { 0x01,0x16,0x7c,0x85,0x23,0xdf,0xe0,0x68 }, | ||
| 93 | { 0x9c,0x50,0x09,0x0f,0x5e,0x7d,0x69,0x7e }, | ||
| 94 | { 0xd2,0x0b,0x18,0xdf,0xd9,0x0d,0x9e,0xff }, | ||
| 95 | } | ||
| 96 | }; | ||
| 97 | |||
| 98 | static struct | ||
| 99 | { | ||
| 100 | DES_cblock key1; | ||
| 101 | DES_cblock key2; | ||
| 102 | DES_cblock key3; | ||
| 103 | unsigned char plaintext[8]; | ||
| 104 | unsigned char ciphertext[8]; | ||
| 105 | } tests3[]= | ||
| 106 | { | ||
| 107 | { | ||
| 108 | { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, | ||
| 109 | { 0xFE,0xDC,0xBA,0x98,0x76,0x54,0x32,0x10 }, | ||
| 110 | { 0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0 }, | ||
| 111 | { 0x8f,0x8f,0xbf,0x9b,0x5d,0x48,0xb4,0x1c}, | ||
| 112 | { 0x59,0x8c,0xe5,0xd3,0x6c,0xa2,0xea,0x1b}, | ||
| 113 | }, | ||
| 114 | { | ||
| 115 | { 0xDC,0xBA,0x98,0x76,0x54,0x32,0x10,0xFE }, | ||
| 116 | { 0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF }, | ||
| 117 | { 0xED,0x39,0xD9,0x50,0xFA,0x74,0xBC,0xC4 }, | ||
| 118 | { 0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF }, | ||
| 119 | { 0x11,0x25,0xb0,0x35,0xbe,0xa0,0x82,0x86 }, | ||
| 120 | }, | ||
| 121 | }; | ||
| 122 | |||
| 123 | void FIPS_corrupt_des() | ||
| 124 | { | ||
| 125 | tests[0].plaintext[0]++; | ||
| 126 | } | ||
| 127 | |||
| 128 | int FIPS_selftest_des() | ||
| 129 | { | ||
| 130 | int n; | ||
| 131 | |||
| 132 | /* Encrypt/decrypt with DES and compare to known answers */ | ||
| 133 | for(n=0 ; n < 2 ; ++n) | ||
| 134 | { | ||
| 135 | DES_key_schedule key; | ||
| 136 | DES_cblock buf; | ||
| 137 | |||
| 138 | DES_set_key(&tests[n].key,&key); | ||
| 139 | DES_ecb_encrypt(&tests[n].plaintext,&buf,&key,1); | ||
| 140 | if(memcmp(buf,tests[n].ciphertext,sizeof buf)) | ||
| 141 | { | ||
| 142 | FIPSerr(FIPS_F_FIPS_SELFTEST_DES,FIPS_R_SELFTEST_FAILED); | ||
| 143 | return 0; | ||
| 144 | } | ||
| 145 | DES_ecb_encrypt(&tests[n].ciphertext,&buf,&key,0); | ||
| 146 | if(memcmp(buf,tests[n].plaintext,sizeof buf)) | ||
| 147 | { | ||
| 148 | FIPSerr(FIPS_F_FIPS_SELFTEST_DES,FIPS_R_SELFTEST_FAILED); | ||
| 149 | return 0; | ||
| 150 | } | ||
| 151 | } | ||
| 152 | |||
| 153 | /* Encrypt/decrypt with 2-key 3DES and compare to known answers */ | ||
| 154 | for(n=0 ; n < 2 ; ++n) | ||
| 155 | { | ||
| 156 | DES_key_schedule key1, key2; | ||
| 157 | unsigned char buf[8]; | ||
| 158 | |||
| 159 | DES_set_key(&tests2[n].key1,&key1); | ||
| 160 | DES_set_key(&tests2[n].key2,&key2); | ||
| 161 | DES_ecb2_encrypt(tests2[n].plaintext,buf,&key1,&key2,1); | ||
| 162 | if(memcmp(buf,tests2[n].ciphertext,sizeof buf)) | ||
| 163 | { | ||
| 164 | FIPSerr(FIPS_F_FIPS_SELFTEST_DES,FIPS_R_SELFTEST_FAILED); | ||
| 165 | return 0; | ||
| 166 | } | ||
| 167 | DES_ecb2_encrypt(tests2[n].ciphertext,buf,&key1,&key2,0); | ||
| 168 | if(memcmp(buf,tests2[n].plaintext,sizeof buf)) | ||
| 169 | { | ||
| 170 | FIPSerr(FIPS_F_FIPS_SELFTEST_DES,FIPS_R_SELFTEST_FAILED); | ||
| 171 | return 0; | ||
| 172 | } | ||
| 173 | } | ||
| 174 | |||
| 175 | /* Encrypt/decrypt with 3DES and compare to known answers */ | ||
| 176 | for(n=0 ; n < 2 ; ++n) | ||
| 177 | { | ||
| 178 | DES_key_schedule key1, key2, key3; | ||
| 179 | unsigned char buf[8]; | ||
| 180 | |||
| 181 | DES_set_key(&tests3[n].key1,&key1); | ||
| 182 | DES_set_key(&tests3[n].key2,&key2); | ||
| 183 | DES_set_key(&tests3[n].key3,&key3); | ||
| 184 | DES_ecb3_encrypt(tests3[n].plaintext,buf,&key1,&key2,&key3,1); | ||
| 185 | if(memcmp(buf,tests3[n].ciphertext,sizeof buf)) | ||
| 186 | { | ||
| 187 | FIPSerr(FIPS_F_FIPS_SELFTEST_DES,FIPS_R_SELFTEST_FAILED); | ||
| 188 | return 0; | ||
| 189 | } | ||
| 190 | DES_ecb3_encrypt(tests3[n].ciphertext,buf,&key1,&key2,&key3,0); | ||
| 191 | if(memcmp(buf,tests3[n].plaintext,sizeof buf)) | ||
| 192 | { | ||
| 193 | FIPSerr(FIPS_F_FIPS_SELFTEST_DES,FIPS_R_SELFTEST_FAILED); | ||
| 194 | return 0; | ||
| 195 | } | ||
| 196 | } | ||
| 197 | |||
| 198 | return 1; | ||
| 199 | } | ||
| 200 | #endif | ||
diff --git a/src/lib/libssl/src/fips/des/fips_desmovs.c b/src/lib/libssl/src/fips/des/fips_desmovs.c new file mode 100644 index 0000000000..d1b60c1a40 --- /dev/null +++ b/src/lib/libssl/src/fips/des/fips_desmovs.c | |||
| @@ -0,0 +1,833 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | /*--------------------------------------------- | ||
| 50 | NIST DES Modes of Operation Validation System | ||
| 51 | Test Program | ||
| 52 | |||
| 53 | Based on the AES Validation Suite, which was: | ||
| 54 | Donated to OpenSSL by: | ||
| 55 | V-ONE Corporation | ||
| 56 | 20250 Century Blvd, Suite 300 | ||
| 57 | Germantown, MD 20874 | ||
| 58 | U.S.A. | ||
| 59 | ----------------------------------------------*/ | ||
| 60 | |||
| 61 | #include <stdio.h> | ||
| 62 | #include <stdlib.h> | ||
| 63 | #include <string.h> | ||
| 64 | #include <errno.h> | ||
| 65 | #include <assert.h> | ||
| 66 | |||
| 67 | #include <openssl/des.h> | ||
| 68 | #include <openssl/evp.h> | ||
| 69 | #include <openssl/fips.h> | ||
| 70 | #include <openssl/err.h> | ||
| 71 | #include "e_os.h" | ||
| 72 | |||
| 73 | /*#define AES_BLOCK_SIZE 16*/ | ||
| 74 | |||
| 75 | #define VERBOSE 0 | ||
| 76 | |||
| 77 | /*-----------------------------------------------*/ | ||
| 78 | |||
| 79 | int DESTest(EVP_CIPHER_CTX *ctx, | ||
| 80 | char *amode, int akeysz, unsigned char *aKey, | ||
| 81 | unsigned char *iVec, | ||
| 82 | int dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 83 | unsigned char *out, unsigned char *in, int len) | ||
| 84 | { | ||
| 85 | const EVP_CIPHER *cipher = NULL; | ||
| 86 | int kt = 0; | ||
| 87 | |||
| 88 | if (ctx) | ||
| 89 | memset(ctx, 0, sizeof(EVP_CIPHER_CTX)); | ||
| 90 | |||
| 91 | if (strcasecmp(amode, "CBC") == 0) | ||
| 92 | kt = 1000; | ||
| 93 | else if (strcasecmp(amode, "ECB") == 0) | ||
| 94 | kt = 2000; | ||
| 95 | else if (strcasecmp(amode, "CFB64") == 0) | ||
| 96 | kt = 3000; | ||
| 97 | else if (strncasecmp(amode, "OFB", 3) == 0) | ||
| 98 | kt = 4000; | ||
| 99 | else if(!strcasecmp(amode,"CFB1")) | ||
| 100 | kt=5000; | ||
| 101 | else if(!strcasecmp(amode,"CFB8")) | ||
| 102 | kt=6000; | ||
| 103 | else | ||
| 104 | { | ||
| 105 | printf("Unknown mode: %s\n", amode); | ||
| 106 | EXIT(1); | ||
| 107 | } | ||
| 108 | if (akeysz != 64 && akeysz != 192) | ||
| 109 | { | ||
| 110 | printf("Invalid key size: %d\n", akeysz); | ||
| 111 | EXIT(1); | ||
| 112 | } | ||
| 113 | else | ||
| 114 | { | ||
| 115 | kt += akeysz; | ||
| 116 | switch (kt) | ||
| 117 | { | ||
| 118 | case 1064: | ||
| 119 | cipher=EVP_des_cbc(); | ||
| 120 | break; | ||
| 121 | case 1192: | ||
| 122 | cipher=EVP_des_ede3_cbc(); | ||
| 123 | break; | ||
| 124 | case 2064: | ||
| 125 | cipher=EVP_des_ecb(); | ||
| 126 | break; | ||
| 127 | case 2192: | ||
| 128 | cipher=EVP_des_ede3_ecb(); | ||
| 129 | break; | ||
| 130 | case 3064: | ||
| 131 | cipher=EVP_des_cfb64(); | ||
| 132 | break; | ||
| 133 | case 3192: | ||
| 134 | cipher=EVP_des_ede3_cfb64(); | ||
| 135 | break; | ||
| 136 | case 4064: | ||
| 137 | cipher=EVP_des_ofb(); | ||
| 138 | break; | ||
| 139 | case 4192: | ||
| 140 | cipher=EVP_des_ede3_ofb(); | ||
| 141 | break; | ||
| 142 | case 5064: | ||
| 143 | cipher=EVP_des_cfb1(); | ||
| 144 | break; | ||
| 145 | case 5192: | ||
| 146 | cipher=EVP_des_ede3_cfb1(); | ||
| 147 | break; | ||
| 148 | case 6064: | ||
| 149 | cipher=EVP_des_cfb8(); | ||
| 150 | break; | ||
| 151 | case 6192: | ||
| 152 | cipher=EVP_des_ede3_cfb8(); | ||
| 153 | break; | ||
| 154 | default: | ||
| 155 | printf("Didn't handle mode %d\n",kt); | ||
| 156 | EXIT(1); | ||
| 157 | } | ||
| 158 | if(!EVP_CipherInit(ctx, cipher, aKey, iVec, dir)) | ||
| 159 | { | ||
| 160 | ERR_print_errors_fp(stderr); | ||
| 161 | EXIT(1); | ||
| 162 | } | ||
| 163 | EVP_Cipher(ctx, out, in, len); | ||
| 164 | } | ||
| 165 | return 1; | ||
| 166 | } | ||
| 167 | |||
| 168 | /*-----------------------------------------------*/ | ||
| 169 | |||
| 170 | int hex2bin(char *in, int len, unsigned char *out) | ||
| 171 | { | ||
| 172 | int n1, n2; | ||
| 173 | unsigned char ch; | ||
| 174 | |||
| 175 | for (n1 = 0, n2 = 0; n1 < len; ) | ||
| 176 | { /* first byte */ | ||
| 177 | if ((in[n1] >= '0') && (in[n1] <= '9')) | ||
| 178 | ch = in[n1++] - '0'; | ||
| 179 | else if ((in[n1] >= 'A') && (in[n1] <= 'F')) | ||
| 180 | ch = in[n1++] - 'A' + 10; | ||
| 181 | else if ((in[n1] >= 'a') && (in[n1] <= 'f')) | ||
| 182 | ch = in[n1++] - 'a' + 10; | ||
| 183 | else | ||
| 184 | return -1; | ||
| 185 | if(len == 1) | ||
| 186 | { | ||
| 187 | out[n2++]=ch; | ||
| 188 | break; | ||
| 189 | } | ||
| 190 | out[n2] = ch << 4; | ||
| 191 | /* second byte */ | ||
| 192 | if ((in[n1] >= '0') && (in[n1] <= '9')) | ||
| 193 | ch = in[n1++] - '0'; | ||
| 194 | else if ((in[n1] >= 'A') && (in[n1] <= 'F')) | ||
| 195 | ch = in[n1++] - 'A' + 10; | ||
| 196 | else if ((in[n1] >= 'a') && (in[n1] <= 'f')) | ||
| 197 | ch = in[n1++] - 'a' + 10; | ||
| 198 | else | ||
| 199 | return -1; | ||
| 200 | out[n2++] |= ch; | ||
| 201 | } | ||
| 202 | return n2; | ||
| 203 | } | ||
| 204 | |||
| 205 | /*-----------------------------------------------*/ | ||
| 206 | |||
| 207 | int bin2hex(unsigned char *in, int len, char *out) | ||
| 208 | { | ||
| 209 | int n1, n2; | ||
| 210 | unsigned char ch; | ||
| 211 | |||
| 212 | for (n1 = 0, n2 = 0; n1 < len; ++n1) | ||
| 213 | { | ||
| 214 | /* first nibble */ | ||
| 215 | ch = in[n1] >> 4; | ||
| 216 | if (ch <= 0x09) | ||
| 217 | out[n2++] = ch + '0'; | ||
| 218 | else | ||
| 219 | out[n2++] = ch - 10 + 'a'; | ||
| 220 | /* second nibble */ | ||
| 221 | ch = in[n1] & 0x0f; | ||
| 222 | if (ch <= 0x09) | ||
| 223 | out[n2++] = ch + '0'; | ||
| 224 | else | ||
| 225 | out[n2++] = ch - 10 + 'a'; | ||
| 226 | } | ||
| 227 | return n2; | ||
| 228 | } | ||
| 229 | |||
| 230 | /* NB: this return the number of _bits_ read */ | ||
| 231 | int bint2bin(const char *in, int len, unsigned char *out) | ||
| 232 | { | ||
| 233 | int n; | ||
| 234 | |||
| 235 | memset(out,0,len); | ||
| 236 | for(n=0 ; n < len ; ++n) | ||
| 237 | if(in[n] == '1') | ||
| 238 | out[n/8]|=(0x80 >> (n%8)); | ||
| 239 | return len; | ||
| 240 | } | ||
| 241 | |||
| 242 | int bin2bint(const unsigned char *in,int len,char *out) | ||
| 243 | { | ||
| 244 | int n; | ||
| 245 | |||
| 246 | for(n=0 ; n < len ; ++n) | ||
| 247 | out[n]=(in[n/8]&(0x80 >> (n%8))) ? '1' : '0'; | ||
| 248 | return n; | ||
| 249 | } | ||
| 250 | |||
| 251 | /*-----------------------------------------------*/ | ||
| 252 | |||
| 253 | void PrintValue(char *tag, unsigned char *val, int len) | ||
| 254 | { | ||
| 255 | #if VERBOSE | ||
| 256 | char obuf[2048]; | ||
| 257 | int olen; | ||
| 258 | olen = bin2hex(val, len, obuf); | ||
| 259 | printf("%s = %.*s\n", tag, olen, obuf); | ||
| 260 | #endif | ||
| 261 | } | ||
| 262 | |||
| 263 | void DebugValue(char *tag, unsigned char *val, int len) | ||
| 264 | { | ||
| 265 | char obuf[2048]; | ||
| 266 | int olen; | ||
| 267 | olen = bin2hex(val, len, obuf); | ||
| 268 | printf("%s = %.*s\n", tag, olen, obuf); | ||
| 269 | } | ||
| 270 | |||
| 271 | void OutputValue(char *tag, unsigned char *val, int len, FILE *rfp,int bitmode) | ||
| 272 | { | ||
| 273 | char obuf[2048]; | ||
| 274 | int olen; | ||
| 275 | |||
| 276 | if(bitmode) | ||
| 277 | olen=bin2bint(val,len,obuf); | ||
| 278 | else | ||
| 279 | olen=bin2hex(val,len,obuf); | ||
| 280 | |||
| 281 | fprintf(rfp, "%s = %.*s\n", tag, olen, obuf); | ||
| 282 | #if VERBOSE | ||
| 283 | printf("%s = %.*s\n", tag, olen, obuf); | ||
| 284 | #endif | ||
| 285 | } | ||
| 286 | |||
| 287 | void shiftin(unsigned char *dst,unsigned char *src,int nbits) | ||
| 288 | { | ||
| 289 | int n; | ||
| 290 | |||
| 291 | /* move the bytes... */ | ||
| 292 | memmove(dst,dst+nbits/8,3*8-nbits/8); | ||
| 293 | /* append new data */ | ||
| 294 | memcpy(dst+3*8-nbits/8,src,(nbits+7)/8); | ||
| 295 | /* left shift the bits */ | ||
| 296 | if(nbits%8) | ||
| 297 | for(n=0 ; n < 3*8 ; ++n) | ||
| 298 | dst[n]=(dst[n] << (nbits%8))|(dst[n+1] >> (8-nbits%8)); | ||
| 299 | } | ||
| 300 | |||
| 301 | /*-----------------------------------------------*/ | ||
| 302 | char *t_tag[2] = {"PLAINTEXT", "CIPHERTEXT"}; | ||
| 303 | char *t_mode[6] = {"CBC","ECB","OFB","CFB1","CFB8","CFB64"}; | ||
| 304 | enum Mode {CBC, ECB, OFB, CFB1, CFB8, CFB64}; | ||
| 305 | int Sizes[6]={64,64,64,1,8,64}; | ||
| 306 | |||
| 307 | void do_mct(char *amode, | ||
| 308 | int akeysz, int numkeys, unsigned char *akey,unsigned char *ivec, | ||
| 309 | int dir, unsigned char *text, int len, | ||
| 310 | FILE *rfp) | ||
| 311 | { | ||
| 312 | int i,imode; | ||
| 313 | unsigned char nk[4*8]; /* longest key+8 */ | ||
| 314 | unsigned char text0[8]; | ||
| 315 | |||
| 316 | for (imode=0 ; imode < 6 ; ++imode) | ||
| 317 | if(!strcmp(amode,t_mode[imode])) | ||
| 318 | break; | ||
| 319 | if (imode == 6) | ||
| 320 | { | ||
| 321 | printf("Unrecognized mode: %s\n", amode); | ||
| 322 | EXIT(1); | ||
| 323 | } | ||
| 324 | |||
| 325 | for(i=0 ; i < 400 ; ++i) | ||
| 326 | { | ||
| 327 | int j; | ||
| 328 | int n; | ||
| 329 | EVP_CIPHER_CTX ctx; | ||
| 330 | int kp=akeysz/64; | ||
| 331 | unsigned char old_iv[8]; | ||
| 332 | |||
| 333 | fprintf(rfp,"\nCOUNT = %d\n",i); | ||
| 334 | if(kp == 1) | ||
| 335 | OutputValue("KEY",akey,8,rfp,0); | ||
| 336 | else | ||
| 337 | for(n=0 ; n < kp ; ++n) | ||
| 338 | { | ||
| 339 | fprintf(rfp,"KEY%d",n+1); | ||
| 340 | OutputValue("",akey+n*8,8,rfp,0); | ||
| 341 | } | ||
| 342 | |||
| 343 | if(imode != ECB) | ||
| 344 | OutputValue("IV",ivec,8,rfp,0); | ||
| 345 | OutputValue(t_tag[dir^1],text,len,rfp,imode == CFB1); | ||
| 346 | |||
| 347 | /* compensate for endianness */ | ||
| 348 | if(imode == CFB1) | ||
| 349 | text[0]<<=7; | ||
| 350 | |||
| 351 | memcpy(text0,text,8); | ||
| 352 | |||
| 353 | for(j=0 ; j < 10000 ; ++j) | ||
| 354 | { | ||
| 355 | unsigned char old_text[8]; | ||
| 356 | |||
| 357 | memcpy(old_text,text,8); | ||
| 358 | if(j == 0) | ||
| 359 | { | ||
| 360 | memcpy(old_iv,ivec,8); | ||
| 361 | DESTest(&ctx,amode,akeysz,akey,ivec,dir,text,text,len); | ||
| 362 | } | ||
| 363 | else | ||
| 364 | { | ||
| 365 | memcpy(old_iv,ctx.iv,8); | ||
| 366 | EVP_Cipher(&ctx,text,text,len); | ||
| 367 | } | ||
| 368 | if(j == 9999) | ||
| 369 | { | ||
| 370 | OutputValue(t_tag[dir],text,len,rfp,imode == CFB1); | ||
| 371 | /* memcpy(ivec,text,8); */ | ||
| 372 | } | ||
| 373 | /* DebugValue("iv",ctx.iv,8); */ | ||
| 374 | /* accumulate material for the next key */ | ||
| 375 | shiftin(nk,text,Sizes[imode]); | ||
| 376 | /* DebugValue("nk",nk,24);*/ | ||
| 377 | if((dir && (imode == CFB1 || imode == CFB8 || imode == CFB64 | ||
| 378 | || imode == CBC)) || imode == OFB) | ||
| 379 | memcpy(text,old_iv,8); | ||
| 380 | |||
| 381 | if(!dir && (imode == CFB1 || imode == CFB8 || imode == CFB64)) | ||
| 382 | { | ||
| 383 | /* the test specifies using the output of the raw DES operation | ||
| 384 | which we don't have, so reconstruct it... */ | ||
| 385 | for(n=0 ; n < 8 ; ++n) | ||
| 386 | text[n]^=old_text[n]; | ||
| 387 | } | ||
| 388 | } | ||
| 389 | for(n=0 ; n < 8 ; ++n) | ||
| 390 | akey[n]^=nk[16+n]; | ||
| 391 | for(n=0 ; n < 8 ; ++n) | ||
| 392 | akey[8+n]^=nk[8+n]; | ||
| 393 | for(n=0 ; n < 8 ; ++n) | ||
| 394 | akey[16+n]^=nk[n]; | ||
| 395 | if(numkeys < 3) | ||
| 396 | memcpy(&akey[2*8],akey,8); | ||
| 397 | if(numkeys < 2) | ||
| 398 | memcpy(&akey[8],akey,8); | ||
| 399 | DES_set_odd_parity((DES_cblock *)akey); | ||
| 400 | DES_set_odd_parity((DES_cblock *)(akey+8)); | ||
| 401 | DES_set_odd_parity((DES_cblock *)(akey+16)); | ||
| 402 | memcpy(ivec,ctx.iv,8); | ||
| 403 | |||
| 404 | /* pointless exercise - the final text doesn't depend on the | ||
| 405 | initial text in OFB mode, so who cares what it is? (Who | ||
| 406 | designed these tests?) */ | ||
| 407 | if(imode == OFB) | ||
| 408 | for(n=0 ; n < 8 ; ++n) | ||
| 409 | text[n]=text0[n]^old_iv[n]; | ||
| 410 | } | ||
| 411 | } | ||
| 412 | |||
| 413 | int proc_file(char *rqfile) | ||
| 414 | { | ||
| 415 | char afn[256], rfn[256]; | ||
| 416 | FILE *afp = NULL, *rfp = NULL; | ||
| 417 | char ibuf[2048]; | ||
| 418 | int ilen, len, ret = 0; | ||
| 419 | char amode[8] = ""; | ||
| 420 | char atest[100] = ""; | ||
| 421 | int akeysz=0; | ||
| 422 | unsigned char iVec[20], aKey[40]; | ||
| 423 | int dir = -1, err = 0, step = 0; | ||
| 424 | unsigned char plaintext[2048]; | ||
| 425 | unsigned char ciphertext[2048]; | ||
| 426 | char *rp; | ||
| 427 | EVP_CIPHER_CTX ctx; | ||
| 428 | int numkeys=1; | ||
| 429 | |||
| 430 | if (!rqfile || !(*rqfile)) | ||
| 431 | { | ||
| 432 | printf("No req file\n"); | ||
| 433 | return -1; | ||
| 434 | } | ||
| 435 | strcpy(afn, rqfile); | ||
| 436 | |||
| 437 | if ((afp = fopen(afn, "r")) == NULL) | ||
| 438 | { | ||
| 439 | printf("Cannot open file: %s, %s\n", | ||
| 440 | afn, strerror(errno)); | ||
| 441 | return -1; | ||
| 442 | } | ||
| 443 | strcpy(rfn,afn); | ||
| 444 | rp=strstr(rfn,"req/"); | ||
| 445 | assert(rp); | ||
| 446 | memcpy(rp,"rsp",3); | ||
| 447 | rp = strstr(rfn, ".req"); | ||
| 448 | memcpy(rp, ".rsp", 4); | ||
| 449 | if ((rfp = fopen(rfn, "w")) == NULL) | ||
| 450 | { | ||
| 451 | printf("Cannot open file: %s, %s\n", | ||
| 452 | rfn, strerror(errno)); | ||
| 453 | fclose(afp); | ||
| 454 | afp = NULL; | ||
| 455 | return -1; | ||
| 456 | } | ||
| 457 | while (!err && (fgets(ibuf, sizeof(ibuf), afp)) != NULL) | ||
| 458 | { | ||
| 459 | ilen = strlen(ibuf); | ||
| 460 | /* printf("step=%d ibuf=%s",step,ibuf);*/ | ||
| 461 | if(step == 3 && !strcmp(amode,"ECB")) | ||
| 462 | { | ||
| 463 | memset(iVec, 0, sizeof(iVec)); | ||
| 464 | step = (dir)? 4: 5; /* no ivec for ECB */ | ||
| 465 | } | ||
| 466 | switch (step) | ||
| 467 | { | ||
| 468 | case 0: /* read preamble */ | ||
| 469 | if (ibuf[0] == '\n') | ||
| 470 | { /* end of preamble */ | ||
| 471 | if (*amode == '\0') | ||
| 472 | { | ||
| 473 | printf("Missing Mode\n"); | ||
| 474 | err = 1; | ||
| 475 | } | ||
| 476 | else | ||
| 477 | { | ||
| 478 | fputs(ibuf, rfp); | ||
| 479 | ++ step; | ||
| 480 | } | ||
| 481 | } | ||
| 482 | else if (ibuf[0] != '#') | ||
| 483 | { | ||
| 484 | printf("Invalid preamble item: %s\n", ibuf); | ||
| 485 | err = 1; | ||
| 486 | } | ||
| 487 | else | ||
| 488 | { /* process preamble */ | ||
| 489 | char *xp, *pp = ibuf+2; | ||
| 490 | int n; | ||
| 491 | if(*amode) | ||
| 492 | { /* insert current time & date */ | ||
| 493 | time_t rtim = time(0); | ||
| 494 | fprintf(rfp, "# %s", ctime(&rtim)); | ||
| 495 | } | ||
| 496 | else | ||
| 497 | { | ||
| 498 | fputs(ibuf, rfp); | ||
| 499 | if(!strncmp(pp,"INVERSE ",8) || !strncmp(pp,"DES ",4) | ||
| 500 | || !strncmp(pp,"TDES ",5) | ||
| 501 | || !strncmp(pp,"PERMUTATION ",12) | ||
| 502 | || !strncmp(pp,"SUBSTITUTION ",13) | ||
| 503 | || !strncmp(pp,"VARIABLE ",9)) | ||
| 504 | { | ||
| 505 | /* get test type */ | ||
| 506 | if(!strncmp(pp,"DES ",4)) | ||
| 507 | pp+=4; | ||
| 508 | else if(!strncmp(pp,"TDES ",5)) | ||
| 509 | pp+=5; | ||
| 510 | xp = strchr(pp, ' '); | ||
| 511 | n = xp-pp; | ||
| 512 | strncpy(atest, pp, n); | ||
| 513 | atest[n] = '\0'; | ||
| 514 | /* get mode */ | ||
| 515 | xp = strrchr(pp, ' '); /* get mode" */ | ||
| 516 | n = strlen(xp+1)-1; | ||
| 517 | strncpy(amode, xp+1, n); | ||
| 518 | amode[n] = '\0'; | ||
| 519 | /* amode[3] = '\0'; */ | ||
| 520 | printf("Test=%s, Mode=%s\n",atest,amode); | ||
| 521 | } | ||
| 522 | } | ||
| 523 | } | ||
| 524 | break; | ||
| 525 | |||
| 526 | case 1: /* [ENCRYPT] | [DECRYPT] */ | ||
| 527 | if(ibuf[0] == '\n') | ||
| 528 | break; | ||
| 529 | if (ibuf[0] == '[') | ||
| 530 | { | ||
| 531 | fputs(ibuf, rfp); | ||
| 532 | ++step; | ||
| 533 | if (strncasecmp(ibuf, "[ENCRYPT]", 9) == 0) | ||
| 534 | dir = 1; | ||
| 535 | else if (strncasecmp(ibuf, "[DECRYPT]", 9) == 0) | ||
| 536 | dir = 0; | ||
| 537 | else | ||
| 538 | { | ||
| 539 | printf("Invalid keyword: %s\n", ibuf); | ||
| 540 | err = 1; | ||
| 541 | } | ||
| 542 | break; | ||
| 543 | } | ||
| 544 | else if (dir == -1) | ||
| 545 | { | ||
| 546 | err = 1; | ||
| 547 | printf("Missing ENCRYPT/DECRYPT keyword\n"); | ||
| 548 | break; | ||
| 549 | } | ||
| 550 | else | ||
| 551 | step = 2; | ||
| 552 | |||
| 553 | case 2: /* KEY = xxxx */ | ||
| 554 | if(*ibuf == '\n') | ||
| 555 | { | ||
| 556 | fputs(ibuf, rfp); | ||
| 557 | break; | ||
| 558 | } | ||
| 559 | if(!strncasecmp(ibuf,"COUNT = ",8)) | ||
| 560 | { | ||
| 561 | fputs(ibuf, rfp); | ||
| 562 | break; | ||
| 563 | } | ||
| 564 | if(!strncasecmp(ibuf,"COUNT=",6)) | ||
| 565 | { | ||
| 566 | fputs(ibuf, rfp); | ||
| 567 | break; | ||
| 568 | } | ||
| 569 | if(!strncasecmp(ibuf,"NumKeys = ",10)) | ||
| 570 | { | ||
| 571 | numkeys=atoi(ibuf+10); | ||
| 572 | break; | ||
| 573 | } | ||
| 574 | |||
| 575 | fputs(ibuf, rfp); | ||
| 576 | if(!strncasecmp(ibuf,"KEY = ",6)) | ||
| 577 | { | ||
| 578 | akeysz=64; | ||
| 579 | len = hex2bin((char*)ibuf+6, strlen(ibuf+6)-1, aKey); | ||
| 580 | if (len < 0) | ||
| 581 | { | ||
| 582 | printf("Invalid KEY\n"); | ||
| 583 | err=1; | ||
| 584 | break; | ||
| 585 | } | ||
| 586 | PrintValue("KEY", aKey, len); | ||
| 587 | ++step; | ||
| 588 | } | ||
| 589 | else if(!strncasecmp(ibuf,"KEYs = ",7)) | ||
| 590 | { | ||
| 591 | akeysz=64*3; | ||
| 592 | len=hex2bin(ibuf+7,strlen(ibuf+7)-1,aKey); | ||
| 593 | if(len != 8) | ||
| 594 | { | ||
| 595 | printf("Invalid KEY\n"); | ||
| 596 | err=1; | ||
| 597 | break; | ||
| 598 | } | ||
| 599 | memcpy(aKey+8,aKey,8); | ||
| 600 | memcpy(aKey+16,aKey,8); | ||
| 601 | ibuf[4]='\0'; | ||
| 602 | PrintValue("KEYs",aKey,len); | ||
| 603 | ++step; | ||
| 604 | } | ||
| 605 | else if(!strncasecmp(ibuf,"KEY",3)) | ||
| 606 | { | ||
| 607 | int n=ibuf[3]-'1'; | ||
| 608 | |||
| 609 | akeysz=64*3; | ||
| 610 | len=hex2bin(ibuf+7,strlen(ibuf+7)-1,aKey+n*8); | ||
| 611 | if(len != 8) | ||
| 612 | { | ||
| 613 | printf("Invalid KEY\n"); | ||
| 614 | err=1; | ||
| 615 | break; | ||
| 616 | } | ||
| 617 | ibuf[4]='\0'; | ||
| 618 | PrintValue(ibuf,aKey,len); | ||
| 619 | if(n == 2) | ||
| 620 | ++step; | ||
| 621 | } | ||
| 622 | else | ||
| 623 | { | ||
| 624 | printf("Missing KEY\n"); | ||
| 625 | err = 1; | ||
| 626 | } | ||
| 627 | break; | ||
| 628 | |||
| 629 | case 3: /* IV = xxxx */ | ||
| 630 | fputs(ibuf, rfp); | ||
| 631 | if (strncasecmp(ibuf, "IV = ", 5) != 0) | ||
| 632 | { | ||
| 633 | printf("Missing IV\n"); | ||
| 634 | err = 1; | ||
| 635 | } | ||
| 636 | else | ||
| 637 | { | ||
| 638 | len = hex2bin((char*)ibuf+5, strlen(ibuf+5)-1, iVec); | ||
| 639 | if (len < 0) | ||
| 640 | { | ||
| 641 | printf("Invalid IV\n"); | ||
| 642 | err =1; | ||
| 643 | break; | ||
| 644 | } | ||
| 645 | PrintValue("IV", iVec, len); | ||
| 646 | step = (dir)? 4: 5; | ||
| 647 | } | ||
| 648 | break; | ||
| 649 | |||
| 650 | case 4: /* PLAINTEXT = xxxx */ | ||
| 651 | fputs(ibuf, rfp); | ||
| 652 | if (strncasecmp(ibuf, "PLAINTEXT = ", 12) != 0) | ||
| 653 | { | ||
| 654 | printf("Missing PLAINTEXT\n"); | ||
| 655 | err = 1; | ||
| 656 | } | ||
| 657 | else | ||
| 658 | { | ||
| 659 | int nn = strlen(ibuf+12); | ||
| 660 | if(!strcmp(amode,"CFB1")) | ||
| 661 | len=bint2bin(ibuf+12,nn-1,plaintext); | ||
| 662 | else | ||
| 663 | len=hex2bin(ibuf+12, nn-1,plaintext); | ||
| 664 | if (len < 0) | ||
| 665 | { | ||
| 666 | printf("Invalid PLAINTEXT: %s", ibuf+12); | ||
| 667 | err =1; | ||
| 668 | break; | ||
| 669 | } | ||
| 670 | if (len >= sizeof(plaintext)) | ||
| 671 | { | ||
| 672 | printf("Buffer overflow\n"); | ||
| 673 | } | ||
| 674 | PrintValue("PLAINTEXT", (unsigned char*)plaintext, len); | ||
| 675 | if (strcmp(atest, "Monte") == 0) /* Monte Carlo Test */ | ||
| 676 | { | ||
| 677 | do_mct(amode,akeysz,numkeys,aKey,iVec,dir,plaintext,len,rfp); | ||
| 678 | } | ||
| 679 | else | ||
| 680 | { | ||
| 681 | assert(dir == 1); | ||
| 682 | ret = DESTest(&ctx, amode, akeysz, aKey, iVec, | ||
| 683 | dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 684 | ciphertext, plaintext, len); | ||
| 685 | OutputValue("CIPHERTEXT",ciphertext,len,rfp, | ||
| 686 | !strcmp(amode,"CFB1")); | ||
| 687 | } | ||
| 688 | step = 6; | ||
| 689 | } | ||
| 690 | break; | ||
| 691 | |||
| 692 | case 5: /* CIPHERTEXT = xxxx */ | ||
| 693 | fputs(ibuf, rfp); | ||
| 694 | if (strncasecmp(ibuf, "CIPHERTEXT = ", 13) != 0) | ||
| 695 | { | ||
| 696 | printf("Missing KEY\n"); | ||
| 697 | err = 1; | ||
| 698 | } | ||
| 699 | else | ||
| 700 | { | ||
| 701 | if(!strcmp(amode,"CFB1")) | ||
| 702 | len=bint2bin(ibuf+13,strlen(ibuf+13)-1,ciphertext); | ||
| 703 | else | ||
| 704 | len = hex2bin(ibuf+13,strlen(ibuf+13)-1,ciphertext); | ||
| 705 | if (len < 0) | ||
| 706 | { | ||
| 707 | printf("Invalid CIPHERTEXT\n"); | ||
| 708 | err =1; | ||
| 709 | break; | ||
| 710 | } | ||
| 711 | |||
| 712 | PrintValue("CIPHERTEXT", ciphertext, len); | ||
| 713 | if (strcmp(atest, "Monte") == 0) /* Monte Carlo Test */ | ||
| 714 | { | ||
| 715 | do_mct(amode, akeysz, numkeys, aKey, iVec, | ||
| 716 | dir, ciphertext, len, rfp); | ||
| 717 | } | ||
| 718 | else | ||
| 719 | { | ||
| 720 | assert(dir == 0); | ||
| 721 | ret = DESTest(&ctx, amode, akeysz, aKey, iVec, | ||
| 722 | dir, /* 0 = decrypt, 1 = encrypt */ | ||
| 723 | plaintext, ciphertext, len); | ||
| 724 | OutputValue("PLAINTEXT",(unsigned char *)plaintext,len,rfp, | ||
| 725 | !strcmp(amode,"CFB1")); | ||
| 726 | } | ||
| 727 | step = 6; | ||
| 728 | } | ||
| 729 | break; | ||
| 730 | |||
| 731 | case 6: | ||
| 732 | if (ibuf[0] != '\n') | ||
| 733 | { | ||
| 734 | err = 1; | ||
| 735 | printf("Missing terminator\n"); | ||
| 736 | } | ||
| 737 | else if (strcmp(atest, "MCT") != 0) | ||
| 738 | { /* MCT already added terminating nl */ | ||
| 739 | fputs(ibuf, rfp); | ||
| 740 | } | ||
| 741 | step = 1; | ||
| 742 | break; | ||
| 743 | } | ||
| 744 | } | ||
| 745 | if (rfp) | ||
| 746 | fclose(rfp); | ||
| 747 | if (afp) | ||
| 748 | fclose(afp); | ||
| 749 | return err; | ||
| 750 | } | ||
| 751 | |||
| 752 | /*-------------------------------------------------- | ||
| 753 | Processes either a single file or | ||
| 754 | a set of files whose names are passed in a file. | ||
| 755 | A single file is specified as: | ||
| 756 | aes_test -f xxx.req | ||
| 757 | A set of files is specified as: | ||
| 758 | aes_test -d xxxxx.xxx | ||
| 759 | The default is: -d req.txt | ||
| 760 | --------------------------------------------------*/ | ||
| 761 | int main(int argc, char **argv) | ||
| 762 | { | ||
| 763 | char *rqlist = "req.txt"; | ||
| 764 | FILE *fp = NULL; | ||
| 765 | char fn[250] = "", rfn[256] = ""; | ||
| 766 | int f_opt = 0, d_opt = 1; | ||
| 767 | |||
| 768 | #ifdef OPENSSL_FIPS | ||
| 769 | if(!FIPS_mode_set(1,argv[0])) | ||
| 770 | { | ||
| 771 | ERR_load_crypto_strings(); | ||
| 772 | ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); | ||
| 773 | EXIT(1); | ||
| 774 | } | ||
| 775 | #endif | ||
| 776 | ERR_load_crypto_strings(); | ||
| 777 | if (argc > 1) | ||
| 778 | { | ||
| 779 | if (strcasecmp(argv[1], "-d") == 0) | ||
| 780 | { | ||
| 781 | d_opt = 1; | ||
| 782 | } | ||
| 783 | else if (strcasecmp(argv[1], "-f") == 0) | ||
| 784 | { | ||
| 785 | f_opt = 1; | ||
| 786 | d_opt = 0; | ||
| 787 | } | ||
| 788 | else | ||
| 789 | { | ||
| 790 | printf("Invalid parameter: %s\n", argv[1]); | ||
| 791 | return 0; | ||
| 792 | } | ||
| 793 | if (argc < 3) | ||
| 794 | { | ||
| 795 | printf("Missing parameter\n"); | ||
| 796 | return 0; | ||
| 797 | } | ||
| 798 | if (d_opt) | ||
| 799 | rqlist = argv[2]; | ||
| 800 | else | ||
| 801 | strcpy(fn, argv[2]); | ||
| 802 | } | ||
| 803 | if (d_opt) | ||
| 804 | { /* list of files (directory) */ | ||
| 805 | if (!(fp = fopen(rqlist, "r"))) | ||
| 806 | { | ||
| 807 | printf("Cannot open req list file\n"); | ||
| 808 | return -1; | ||
| 809 | } | ||
| 810 | while (fgets(fn, sizeof(fn), fp)) | ||
| 811 | { | ||
| 812 | strtok(fn, "\r\n"); | ||
| 813 | strcpy(rfn, fn); | ||
| 814 | printf("Processing: %s\n", rfn); | ||
| 815 | if (proc_file(rfn)) | ||
| 816 | { | ||
| 817 | printf(">>> Processing failed for: %s <<<\n", rfn); | ||
| 818 | EXIT(1); | ||
| 819 | } | ||
| 820 | } | ||
| 821 | fclose(fp); | ||
| 822 | } | ||
| 823 | else /* single file */ | ||
| 824 | { | ||
| 825 | printf("Processing: %s\n", fn); | ||
| 826 | if (proc_file(fn)) | ||
| 827 | { | ||
| 828 | printf(">>> Processing failed for: %s <<<\n", fn); | ||
| 829 | } | ||
| 830 | } | ||
| 831 | EXIT(0); | ||
| 832 | return 0; | ||
| 833 | } | ||
diff --git a/src/lib/libssl/src/fips/dh/Makefile b/src/lib/libssl/src/fips/dh/Makefile new file mode 100644 index 0000000000..10b40aa9f6 --- /dev/null +++ b/src/lib/libssl/src/fips/dh/Makefile | |||
| @@ -0,0 +1,109 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/fips/dh/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dh | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=fips_dh_check.c fips_dh_gen.c fips_dh_key.c | ||
| 26 | LIBOBJ=fips_dh_check.o fips_dh_gen.o fips_dh_key.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: check lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @sleep 2; touch lib | ||
| 44 | |||
| 45 | check: | ||
| 46 | TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | fips_dh_check.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 84 | fips_dh_check.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 85 | fips_dh_check.o: ../../include/openssl/e_os2.h | ||
| 86 | fips_dh_check.o: ../../include/openssl/opensslconf.h | ||
| 87 | fips_dh_check.o: ../../include/openssl/opensslv.h | ||
| 88 | fips_dh_check.o: ../../include/openssl/ossl_typ.h | ||
| 89 | fips_dh_check.o: ../../include/openssl/safestack.h | ||
| 90 | fips_dh_check.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 91 | fips_dh_check.o: fips_dh_check.c | ||
| 92 | fips_dh_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 93 | fips_dh_gen.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 94 | fips_dh_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 95 | fips_dh_gen.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 96 | fips_dh_gen.o: ../../include/openssl/opensslconf.h | ||
| 97 | fips_dh_gen.o: ../../include/openssl/opensslv.h | ||
| 98 | fips_dh_gen.o: ../../include/openssl/ossl_typ.h | ||
| 99 | fips_dh_gen.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 100 | fips_dh_gen.o: ../../include/openssl/symhacks.h fips_dh_gen.c | ||
| 101 | fips_dh_key.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 102 | fips_dh_key.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 103 | fips_dh_key.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 104 | fips_dh_key.o: ../../include/openssl/lhash.h | ||
| 105 | fips_dh_key.o: ../../include/openssl/opensslconf.h | ||
| 106 | fips_dh_key.o: ../../include/openssl/opensslv.h | ||
| 107 | fips_dh_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 108 | fips_dh_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 109 | fips_dh_key.o: ../../include/openssl/symhacks.h fips_dh_key.c | ||
diff --git a/src/lib/libssl/src/fips/dh/fips_dh_check.c b/src/lib/libssl/src/fips/dh/fips_dh_check.c new file mode 100644 index 0000000000..874920b466 --- /dev/null +++ b/src/lib/libssl/src/fips/dh/fips_dh_check.c | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | /* crypto/dh/dh_check.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <openssl/bn.h> | ||
| 61 | #ifndef OPENSSL_NO_DH | ||
| 62 | #include <openssl/dh.h> | ||
| 63 | |||
| 64 | #ifdef OPENSSL_FIPS | ||
| 65 | |||
| 66 | /* Check that p is a safe prime and | ||
| 67 | * if g is 2, 3 or 5, check that is is a suitable generator | ||
| 68 | * where | ||
| 69 | * for 2, p mod 24 == 11 | ||
| 70 | * for 3, p mod 12 == 5 | ||
| 71 | * for 5, p mod 10 == 3 or 7 | ||
| 72 | * should hold. | ||
| 73 | */ | ||
| 74 | |||
| 75 | int DH_check(const DH *dh, int *ret) | ||
| 76 | { | ||
| 77 | int ok=0; | ||
| 78 | BN_CTX *ctx=NULL; | ||
| 79 | BN_ULONG l; | ||
| 80 | BIGNUM *q=NULL; | ||
| 81 | |||
| 82 | *ret=0; | ||
| 83 | ctx=BN_CTX_new(); | ||
| 84 | if (ctx == NULL) goto err; | ||
| 85 | q=BN_new(); | ||
| 86 | if (q == NULL) goto err; | ||
| 87 | |||
| 88 | if (BN_is_word(dh->g,DH_GENERATOR_2)) | ||
| 89 | { | ||
| 90 | l=BN_mod_word(dh->p,24); | ||
| 91 | if (l != 11) *ret|=DH_NOT_SUITABLE_GENERATOR; | ||
| 92 | } | ||
| 93 | #if 0 | ||
| 94 | else if (BN_is_word(dh->g,DH_GENERATOR_3)) | ||
| 95 | { | ||
| 96 | l=BN_mod_word(dh->p,12); | ||
| 97 | if (l != 5) *ret|=DH_NOT_SUITABLE_GENERATOR; | ||
| 98 | } | ||
| 99 | #endif | ||
| 100 | else if (BN_is_word(dh->g,DH_GENERATOR_5)) | ||
| 101 | { | ||
| 102 | l=BN_mod_word(dh->p,10); | ||
| 103 | if ((l != 3) && (l != 7)) | ||
| 104 | *ret|=DH_NOT_SUITABLE_GENERATOR; | ||
| 105 | } | ||
| 106 | else | ||
| 107 | *ret|=DH_UNABLE_TO_CHECK_GENERATOR; | ||
| 108 | |||
| 109 | if (!BN_is_prime(dh->p,BN_prime_checks,NULL,ctx,NULL)) | ||
| 110 | *ret|=DH_CHECK_P_NOT_PRIME; | ||
| 111 | else | ||
| 112 | { | ||
| 113 | if (!BN_rshift1(q,dh->p)) goto err; | ||
| 114 | if (!BN_is_prime(q,BN_prime_checks,NULL,ctx,NULL)) | ||
| 115 | *ret|=DH_CHECK_P_NOT_SAFE_PRIME; | ||
| 116 | } | ||
| 117 | ok=1; | ||
| 118 | err: | ||
| 119 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 120 | if (q != NULL) BN_free(q); | ||
| 121 | return(ok); | ||
| 122 | } | ||
| 123 | |||
| 124 | #endif | ||
| 125 | #endif | ||
diff --git a/src/lib/libssl/src/fips/dh/fips_dh_gen.c b/src/lib/libssl/src/fips/dh/fips_dh_gen.c new file mode 100644 index 0000000000..b569e3912d --- /dev/null +++ b/src/lib/libssl/src/fips/dh/fips_dh_gen.c | |||
| @@ -0,0 +1,186 @@ | |||
| 1 | /* crypto/dh/dh_gen.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <string.h> | ||
| 61 | #include <openssl/err.h> | ||
| 62 | #include <openssl/bn.h> | ||
| 63 | #ifndef OPENSSL_NO_DH | ||
| 64 | #include <openssl/dh.h> | ||
| 65 | #endif | ||
| 66 | #include <openssl/fips.h> | ||
| 67 | |||
| 68 | #ifndef OPENSSL_NO_DH | ||
| 69 | #ifdef OPENSSL_FIPS | ||
| 70 | |||
| 71 | /* We generate DH parameters as follows | ||
| 72 | * find a prime q which is prime_len/2 bits long. | ||
| 73 | * p=(2*q)+1 or (p-1)/2 = q | ||
| 74 | * For this case, g is a generator if | ||
| 75 | * g^((p-1)/q) mod p != 1 for values of q which are the factors of p-1. | ||
| 76 | * Since the factors of p-1 are q and 2, we just need to check | ||
| 77 | * g^2 mod p != 1 and g^q mod p != 1. | ||
| 78 | * | ||
| 79 | * Having said all that, | ||
| 80 | * there is another special case method for the generators 2, 3 and 5. | ||
| 81 | * for 2, p mod 24 == 11 | ||
| 82 | * for 3, p mod 12 == 5 <<<<< does not work for safe primes. | ||
| 83 | * for 5, p mod 10 == 3 or 7 | ||
| 84 | * | ||
| 85 | * Thanks to Phil Karn <karn@qualcomm.com> for the pointers about the | ||
| 86 | * special generators and for answering some of my questions. | ||
| 87 | * | ||
| 88 | * I've implemented the second simple method :-). | ||
| 89 | * Since DH should be using a safe prime (both p and q are prime), | ||
| 90 | * this generator function can take a very very long time to run. | ||
| 91 | */ | ||
| 92 | /* Actually there is no reason to insist that 'generator' be a generator. | ||
| 93 | * It's just as OK (and in some sense better) to use a generator of the | ||
| 94 | * order-q subgroup. | ||
| 95 | */ | ||
| 96 | |||
| 97 | DH *DH_generate_parameters(int prime_len, int generator, | ||
| 98 | void (*callback)(int,int,void *), void *cb_arg) | ||
| 99 | { | ||
| 100 | BIGNUM *p=NULL,*t1,*t2; | ||
| 101 | DH *ret=NULL; | ||
| 102 | int g,ok= -1; | ||
| 103 | BN_CTX *ctx=NULL; | ||
| 104 | |||
| 105 | if(FIPS_selftest_failed()) | ||
| 106 | { | ||
| 107 | FIPSerr(FIPS_F_DH_GENERATE_PARAMETERS,FIPS_R_FIPS_SELFTEST_FAILED); | ||
| 108 | return NULL; | ||
| 109 | } | ||
| 110 | |||
| 111 | ret=DH_new(); | ||
| 112 | if (ret == NULL) goto err; | ||
| 113 | ctx=BN_CTX_new(); | ||
| 114 | if (ctx == NULL) goto err; | ||
| 115 | BN_CTX_start(ctx); | ||
| 116 | t1 = BN_CTX_get(ctx); | ||
| 117 | t2 = BN_CTX_get(ctx); | ||
| 118 | if (t1 == NULL || t2 == NULL) goto err; | ||
| 119 | |||
| 120 | if (generator <= 1) | ||
| 121 | { | ||
| 122 | DHerr(DH_F_DH_GENERATE_PARAMETERS, DH_R_BAD_GENERATOR); | ||
| 123 | goto err; | ||
| 124 | } | ||
| 125 | if (generator == DH_GENERATOR_2) | ||
| 126 | { | ||
| 127 | if (!BN_set_word(t1,24)) goto err; | ||
| 128 | if (!BN_set_word(t2,11)) goto err; | ||
| 129 | g=2; | ||
| 130 | } | ||
| 131 | #if 0 /* does not work for safe primes */ | ||
| 132 | else if (generator == DH_GENERATOR_3) | ||
| 133 | { | ||
| 134 | if (!BN_set_word(t1,12)) goto err; | ||
| 135 | if (!BN_set_word(t2,5)) goto err; | ||
| 136 | g=3; | ||
| 137 | } | ||
| 138 | #endif | ||
| 139 | else if (generator == DH_GENERATOR_5) | ||
| 140 | { | ||
| 141 | if (!BN_set_word(t1,10)) goto err; | ||
| 142 | if (!BN_set_word(t2,3)) goto err; | ||
| 143 | /* BN_set_word(t3,7); just have to miss | ||
| 144 | * out on these ones :-( */ | ||
| 145 | g=5; | ||
| 146 | } | ||
| 147 | else | ||
| 148 | { | ||
| 149 | /* in the general case, don't worry if 'generator' is a | ||
| 150 | * generator or not: since we are using safe primes, | ||
| 151 | * it will generate either an order-q or an order-2q group, | ||
| 152 | * which both is OK */ | ||
| 153 | if (!BN_set_word(t1,2)) goto err; | ||
| 154 | if (!BN_set_word(t2,1)) goto err; | ||
| 155 | g=generator; | ||
| 156 | } | ||
| 157 | |||
| 158 | p=BN_generate_prime(NULL,prime_len,1,t1,t2,callback,cb_arg); | ||
| 159 | if (p == NULL) goto err; | ||
| 160 | if (callback != NULL) callback(3,0,cb_arg); | ||
| 161 | ret->p=p; | ||
| 162 | ret->g=BN_new(); | ||
| 163 | if (!BN_set_word(ret->g,g)) goto err; | ||
| 164 | ok=1; | ||
| 165 | err: | ||
| 166 | if (ok == -1) | ||
| 167 | { | ||
| 168 | DHerr(DH_F_DH_GENERATE_PARAMETERS,ERR_R_BN_LIB); | ||
| 169 | ok=0; | ||
| 170 | } | ||
| 171 | |||
| 172 | if (ctx != NULL) | ||
| 173 | { | ||
| 174 | BN_CTX_end(ctx); | ||
| 175 | BN_CTX_free(ctx); | ||
| 176 | } | ||
| 177 | if (!ok && (ret != NULL)) | ||
| 178 | { | ||
| 179 | DH_free(ret); | ||
| 180 | ret=NULL; | ||
| 181 | } | ||
| 182 | return(ret); | ||
| 183 | } | ||
| 184 | |||
| 185 | #endif | ||
| 186 | #endif | ||
diff --git a/src/lib/libssl/src/fips/dh/fips_dh_key.c b/src/lib/libssl/src/fips/dh/fips_dh_key.c new file mode 100644 index 0000000000..41e3a661c0 --- /dev/null +++ b/src/lib/libssl/src/fips/dh/fips_dh_key.c | |||
| @@ -0,0 +1,230 @@ | |||
| 1 | /* crypto/dh/dh_key.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <openssl/err.h> | ||
| 61 | #include <openssl/bn.h> | ||
| 62 | #ifndef OPENSSL_NO_RAND | ||
| 63 | #include <openssl/rand.h> | ||
| 64 | #endif | ||
| 65 | #ifndef OPENSSL_NO_DH | ||
| 66 | #include <openssl/dh.h> | ||
| 67 | |||
| 68 | #ifdef OPENSSL_FIPS | ||
| 69 | |||
| 70 | static int generate_key(DH *dh); | ||
| 71 | static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); | ||
| 72 | static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, | ||
| 73 | const BIGNUM *a, const BIGNUM *p, | ||
| 74 | const BIGNUM *m, BN_CTX *ctx, | ||
| 75 | BN_MONT_CTX *m_ctx); | ||
| 76 | static int dh_init(DH *dh); | ||
| 77 | static int dh_finish(DH *dh); | ||
| 78 | |||
| 79 | int DH_generate_key(DH *dh) | ||
| 80 | { | ||
| 81 | return dh->meth->generate_key(dh); | ||
| 82 | } | ||
| 83 | |||
| 84 | int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) | ||
| 85 | { | ||
| 86 | return dh->meth->compute_key(key, pub_key, dh); | ||
| 87 | } | ||
| 88 | |||
| 89 | static DH_METHOD dh_ossl = { | ||
| 90 | "OpenSSL DH Method", | ||
| 91 | generate_key, | ||
| 92 | compute_key, | ||
| 93 | dh_bn_mod_exp, | ||
| 94 | dh_init, | ||
| 95 | dh_finish, | ||
| 96 | 0, | ||
| 97 | NULL | ||
| 98 | }; | ||
| 99 | |||
| 100 | const DH_METHOD *DH_OpenSSL(void) | ||
| 101 | { | ||
| 102 | return &dh_ossl; | ||
| 103 | } | ||
| 104 | |||
| 105 | static int generate_key(DH *dh) | ||
| 106 | { | ||
| 107 | int ok=0; | ||
| 108 | int generate_new_key=0; | ||
| 109 | unsigned l; | ||
| 110 | BN_CTX *ctx; | ||
| 111 | BN_MONT_CTX *mont; | ||
| 112 | BIGNUM *pub_key=NULL,*priv_key=NULL; | ||
| 113 | |||
| 114 | ctx = BN_CTX_new(); | ||
| 115 | if (ctx == NULL) goto err; | ||
| 116 | |||
| 117 | if (dh->priv_key == NULL) | ||
| 118 | { | ||
| 119 | priv_key=BN_new(); | ||
| 120 | if (priv_key == NULL) goto err; | ||
| 121 | generate_new_key=1; | ||
| 122 | } | ||
| 123 | else | ||
| 124 | priv_key=dh->priv_key; | ||
| 125 | |||
| 126 | if (dh->pub_key == NULL) | ||
| 127 | { | ||
| 128 | pub_key=BN_new(); | ||
| 129 | if (pub_key == NULL) goto err; | ||
| 130 | } | ||
| 131 | else | ||
| 132 | pub_key=dh->pub_key; | ||
| 133 | |||
| 134 | if ((dh->method_mont_p == NULL) && (dh->flags & DH_FLAG_CACHE_MONT_P)) | ||
| 135 | { | ||
| 136 | if ((dh->method_mont_p=(char *)BN_MONT_CTX_new()) != NULL) | ||
| 137 | if (!BN_MONT_CTX_set((BN_MONT_CTX *)dh->method_mont_p, | ||
| 138 | dh->p,ctx)) goto err; | ||
| 139 | } | ||
| 140 | mont=(BN_MONT_CTX *)dh->method_mont_p; | ||
| 141 | |||
| 142 | if (generate_new_key) | ||
| 143 | { | ||
| 144 | l = dh->length ? dh->length : BN_num_bits(dh->p)-1; /* secret exponent length */ | ||
| 145 | if (!BN_rand(priv_key, l, 0, 0)) goto err; | ||
| 146 | } | ||
| 147 | if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, priv_key,dh->p,ctx,mont)) | ||
| 148 | goto err; | ||
| 149 | |||
| 150 | dh->pub_key=pub_key; | ||
| 151 | dh->priv_key=priv_key; | ||
| 152 | ok=1; | ||
| 153 | err: | ||
| 154 | if (ok != 1) | ||
| 155 | DHerr(DH_F_DH_GENERATE_KEY,ERR_R_BN_LIB); | ||
| 156 | |||
| 157 | if ((pub_key != NULL) && (dh->pub_key == NULL)) BN_free(pub_key); | ||
| 158 | if ((priv_key != NULL) && (dh->priv_key == NULL)) BN_free(priv_key); | ||
| 159 | BN_CTX_free(ctx); | ||
| 160 | return(ok); | ||
| 161 | } | ||
| 162 | |||
| 163 | static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) | ||
| 164 | { | ||
| 165 | BN_CTX *ctx; | ||
| 166 | BN_MONT_CTX *mont; | ||
| 167 | BIGNUM *tmp; | ||
| 168 | int ret= -1; | ||
| 169 | |||
| 170 | ctx = BN_CTX_new(); | ||
| 171 | if (ctx == NULL) goto err; | ||
| 172 | BN_CTX_start(ctx); | ||
| 173 | tmp = BN_CTX_get(ctx); | ||
| 174 | |||
| 175 | if (dh->priv_key == NULL) | ||
| 176 | { | ||
| 177 | DHerr(DH_F_DH_COMPUTE_KEY,DH_R_NO_PRIVATE_VALUE); | ||
| 178 | goto err; | ||
| 179 | } | ||
| 180 | if ((dh->method_mont_p == NULL) && (dh->flags & DH_FLAG_CACHE_MONT_P)) | ||
| 181 | { | ||
| 182 | if ((dh->method_mont_p=(char *)BN_MONT_CTX_new()) != NULL) | ||
| 183 | if (!BN_MONT_CTX_set((BN_MONT_CTX *)dh->method_mont_p, | ||
| 184 | dh->p,ctx)) goto err; | ||
| 185 | } | ||
| 186 | |||
| 187 | mont=(BN_MONT_CTX *)dh->method_mont_p; | ||
| 188 | if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key,dh->p,ctx,mont)) | ||
| 189 | { | ||
| 190 | DHerr(DH_F_DH_COMPUTE_KEY,ERR_R_BN_LIB); | ||
| 191 | goto err; | ||
| 192 | } | ||
| 193 | |||
| 194 | ret=BN_bn2bin(tmp,key); | ||
| 195 | err: | ||
| 196 | BN_CTX_end(ctx); | ||
| 197 | BN_CTX_free(ctx); | ||
| 198 | return(ret); | ||
| 199 | } | ||
| 200 | |||
| 201 | static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, | ||
| 202 | const BIGNUM *a, const BIGNUM *p, | ||
| 203 | const BIGNUM *m, BN_CTX *ctx, | ||
| 204 | BN_MONT_CTX *m_ctx) | ||
| 205 | { | ||
| 206 | if (a->top == 1) | ||
| 207 | { | ||
| 208 | BN_ULONG A = a->d[0]; | ||
| 209 | return BN_mod_exp_mont_word(r,A,p,m,ctx,m_ctx); | ||
| 210 | } | ||
| 211 | else | ||
| 212 | return BN_mod_exp_mont(r,a,p,m,ctx,m_ctx); | ||
| 213 | } | ||
| 214 | |||
| 215 | |||
| 216 | static int dh_init(DH *dh) | ||
| 217 | { | ||
| 218 | dh->flags |= DH_FLAG_CACHE_MONT_P; | ||
| 219 | return(1); | ||
| 220 | } | ||
| 221 | |||
| 222 | static int dh_finish(DH *dh) | ||
| 223 | { | ||
| 224 | if(dh->method_mont_p) | ||
| 225 | BN_MONT_CTX_free((BN_MONT_CTX *)dh->method_mont_p); | ||
| 226 | return(1); | ||
| 227 | } | ||
| 228 | |||
| 229 | #endif | ||
| 230 | #endif | ||
diff --git a/src/lib/libssl/src/fips/dsa/Makefile b/src/lib/libssl/src/fips/dsa/Makefile new file mode 100644 index 0000000000..0cc5704ed1 --- /dev/null +++ b/src/lib/libssl/src/fips/dsa/Makefile | |||
| @@ -0,0 +1,158 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/fips/dsa/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dsa | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=fips_dsatest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=fips_dsa_ossl.c fips_dsa_gen.c fips_dsa_selftest.c | ||
| 26 | LIBOBJ=fips_dsa_ossl.o fips_dsa_gen.o fips_dsa_selftest.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: check lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @sleep 2; touch lib | ||
| 44 | |||
| 45 | check: | ||
| 46 | TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | top_fips_dssvs: | ||
| 69 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_dssvs sub_target) | ||
| 70 | |||
| 71 | fips_dssvs: fips_dssvs.o $(TOP)/libcrypto.a | ||
| 72 | $(CC) $(CFLAGS) -o fips_dssvs fips_dssvs.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS) | ||
| 73 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_dssvs | ||
| 74 | |||
| 75 | Q=../testvectors/dsa/req | ||
| 76 | A=../testvectors/dsa/rsp | ||
| 77 | |||
| 78 | fips_test: top_fips_dssvs | ||
| 79 | -rm -rf $A | ||
| 80 | mkdir $A | ||
| 81 | ./fips_dssvs pqg < $Q/PQGGen.req > $A/PQGGen.rsp | ||
| 82 | ./fips_dssvs keypair < $Q/KeyPair.req > $A/KeyPair.rsp | ||
| 83 | ./fips_dssvs siggen < $Q/SigGen.req > $A/SigGen.rsp | ||
| 84 | ./fips_dssvs sigver < $Q/SigVer.req > $A/SigVer.rsp | ||
| 85 | |||
| 86 | lint: | ||
| 87 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 88 | |||
| 89 | depend: | ||
| 90 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) | ||
| 91 | |||
| 92 | dclean: | ||
| 93 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 94 | mv -f Makefile.new $(MAKEFILE) | ||
| 95 | |||
| 96 | clean: | ||
| 97 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 98 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 99 | |||
| 100 | fips_dsa_gen.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 101 | fips_dsa_gen.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 102 | fips_dsa_gen.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 103 | fips_dsa_gen.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 104 | fips_dsa_gen.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 105 | fips_dsa_gen.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 106 | fips_dsa_gen.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 107 | fips_dsa_gen.o: ../../include/openssl/fips.h ../../include/openssl/idea.h | ||
| 108 | fips_dsa_gen.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 109 | fips_dsa_gen.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 110 | fips_dsa_gen.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 111 | fips_dsa_gen.o: ../../include/openssl/objects.h | ||
| 112 | fips_dsa_gen.o: ../../include/openssl/opensslconf.h | ||
| 113 | fips_dsa_gen.o: ../../include/openssl/opensslv.h | ||
| 114 | fips_dsa_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 115 | fips_dsa_gen.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 116 | fips_dsa_gen.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 117 | fips_dsa_gen.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 118 | fips_dsa_gen.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 119 | fips_dsa_gen.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 120 | fips_dsa_gen.o: ../../include/openssl/ui_compat.h fips_dsa_gen.c | ||
| 121 | fips_dsa_ossl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 122 | fips_dsa_ossl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 123 | fips_dsa_ossl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 124 | fips_dsa_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 125 | fips_dsa_ossl.o: ../../include/openssl/err.h ../../include/openssl/fips.h | ||
| 126 | fips_dsa_ossl.o: ../../include/openssl/lhash.h | ||
| 127 | fips_dsa_ossl.o: ../../include/openssl/opensslconf.h | ||
| 128 | fips_dsa_ossl.o: ../../include/openssl/opensslv.h | ||
| 129 | fips_dsa_ossl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 130 | fips_dsa_ossl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 131 | fips_dsa_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 132 | fips_dsa_ossl.o: ../../include/openssl/ui.h fips_dsa_ossl.c | ||
| 133 | fips_dsa_selftest.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 134 | fips_dsa_selftest.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 135 | fips_dsa_selftest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 136 | fips_dsa_selftest.o: ../../include/openssl/err.h ../../include/openssl/fips.h | ||
| 137 | fips_dsa_selftest.o: ../../include/openssl/lhash.h | ||
| 138 | fips_dsa_selftest.o: ../../include/openssl/opensslconf.h | ||
| 139 | fips_dsa_selftest.o: ../../include/openssl/opensslv.h | ||
| 140 | fips_dsa_selftest.o: ../../include/openssl/ossl_typ.h | ||
| 141 | fips_dsa_selftest.o: ../../include/openssl/safestack.h | ||
| 142 | fips_dsa_selftest.o: ../../include/openssl/stack.h | ||
| 143 | fips_dsa_selftest.o: ../../include/openssl/symhacks.h fips_dsa_selftest.c | ||
| 144 | fips_dsatest.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 145 | fips_dsatest.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 146 | fips_dsatest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 147 | fips_dsatest.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 148 | fips_dsatest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 149 | fips_dsatest.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 150 | fips_dsatest.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h | ||
| 151 | fips_dsatest.o: ../../include/openssl/lhash.h | ||
| 152 | fips_dsatest.o: ../../include/openssl/opensslconf.h | ||
| 153 | fips_dsatest.o: ../../include/openssl/opensslv.h | ||
| 154 | fips_dsatest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 155 | fips_dsatest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 156 | fips_dsatest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 157 | fips_dsatest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 158 | fips_dsatest.o: fips_dsatest.c | ||
diff --git a/src/lib/libssl/src/fips/dsa/fips_dsa_gen.c b/src/lib/libssl/src/fips/dsa/fips_dsa_gen.c new file mode 100644 index 0000000000..21fa3d1783 --- /dev/null +++ b/src/lib/libssl/src/fips/dsa/fips_dsa_gen.c | |||
| @@ -0,0 +1,374 @@ | |||
| 1 | /* crypto/dsa/dsa_gen.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #undef GENUINE_DSA | ||
| 60 | |||
| 61 | #ifdef GENUINE_DSA | ||
| 62 | /* Parameter generation follows the original release of FIPS PUB 186, | ||
| 63 | * Appendix 2.2 (i.e. use SHA as defined in FIPS PUB 180) */ | ||
| 64 | #define HASH EVP_sha() | ||
| 65 | #else | ||
| 66 | /* Parameter generation follows the updated Appendix 2.2 for FIPS PUB 186, | ||
| 67 | * also Appendix 2.2 of FIPS PUB 186-1 (i.e. use SHA as defined in | ||
| 68 | * FIPS PUB 180-1) */ | ||
| 69 | #define HASH EVP_sha1() | ||
| 70 | #endif | ||
| 71 | |||
| 72 | #include <stdio.h> | ||
| 73 | #include <string.h> | ||
| 74 | #include <time.h> | ||
| 75 | /*#include "cryptlib.h"*/ | ||
| 76 | #include <openssl/evp.h> | ||
| 77 | #include <openssl/bn.h> | ||
| 78 | #ifndef OPENSSL_NO_DSA | ||
| 79 | #include <openssl/dsa.h> | ||
| 80 | #endif | ||
| 81 | #ifndef OPENSSL_NO_RAND | ||
| 82 | #include <openssl/rand.h> | ||
| 83 | #endif | ||
| 84 | #ifndef OPENSSL_NO_SHA | ||
| 85 | #include <openssl/sha.h> | ||
| 86 | #endif | ||
| 87 | #include <openssl/fips.h> | ||
| 88 | #include <openssl/err.h> | ||
| 89 | |||
| 90 | #ifndef OPENSSL_NO_DSA | ||
| 91 | #ifdef OPENSSL_FIPS | ||
| 92 | |||
| 93 | static int fips_check_dsa(DSA *dsa) | ||
| 94 | { | ||
| 95 | static const unsigned char str1[]="12345678901234567890"; | ||
| 96 | unsigned char sig[256]; | ||
| 97 | unsigned int siglen; | ||
| 98 | |||
| 99 | DSA_sign(0, str1, 20, sig, &siglen, dsa); | ||
| 100 | if(DSA_verify(0, str1, 20, sig, siglen, dsa) != 1) | ||
| 101 | { | ||
| 102 | FIPSerr(FIPS_F_FIPS_CHECK_DSA,FIPS_R_PAIRWISE_TEST_FAILED); | ||
| 103 | return 0; | ||
| 104 | } | ||
| 105 | return 1; | ||
| 106 | } | ||
| 107 | |||
| 108 | DSA *DSA_generate_parameters(FIPS_DSA_SIZE_T bits, | ||
| 109 | unsigned char *seed_in, FIPS_DSA_SIZE_T seed_len, | ||
| 110 | int *counter_ret, unsigned long *h_ret, | ||
| 111 | void (*callback)(int, int, void *), | ||
| 112 | void *cb_arg) | ||
| 113 | { | ||
| 114 | int ok=0; | ||
| 115 | unsigned char seed[SHA_DIGEST_LENGTH]; | ||
| 116 | unsigned char md[SHA_DIGEST_LENGTH]; | ||
| 117 | unsigned char buf[SHA_DIGEST_LENGTH],buf2[SHA_DIGEST_LENGTH]; | ||
| 118 | BIGNUM *r0,*W,*X,*c,*test; | ||
| 119 | BIGNUM *g=NULL,*q=NULL,*p=NULL; | ||
| 120 | BN_MONT_CTX *mont=NULL; | ||
| 121 | int k,n=0,i,b,m=0; | ||
| 122 | int counter=0; | ||
| 123 | int r=0; | ||
| 124 | BN_CTX *ctx=NULL,*ctx2=NULL,*ctx3=NULL; | ||
| 125 | unsigned int h=2; | ||
| 126 | DSA *ret=NULL; | ||
| 127 | unsigned char *seed_out=seed_in; | ||
| 128 | |||
| 129 | if(FIPS_selftest_failed()) | ||
| 130 | { | ||
| 131 | FIPSerr(FIPS_F_DSA_GENERATE_PARAMETERS, | ||
| 132 | FIPS_R_FIPS_SELFTEST_FAILED); | ||
| 133 | goto err; | ||
| 134 | } | ||
| 135 | |||
| 136 | if (bits < 512) bits=512; | ||
| 137 | bits=(bits+63)/64*64; | ||
| 138 | |||
| 139 | if (seed_len < 20) | ||
| 140 | seed_in = NULL; /* seed buffer too small -- ignore */ | ||
| 141 | if (seed_len > 20) | ||
| 142 | seed_len = 20; /* App. 2.2 of FIPS PUB 186 allows larger SEED, | ||
| 143 | * but our internal buffers are restricted to 160 bits*/ | ||
| 144 | if ((seed_in != NULL) && (seed_len == 20)) | ||
| 145 | memcpy(seed,seed_in,seed_len); | ||
| 146 | |||
| 147 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 148 | if ((ctx2=BN_CTX_new()) == NULL) goto err; | ||
| 149 | if ((ctx3=BN_CTX_new()) == NULL) goto err; | ||
| 150 | if ((ret=DSA_new()) == NULL) goto err; | ||
| 151 | |||
| 152 | if ((mont=BN_MONT_CTX_new()) == NULL) goto err; | ||
| 153 | |||
| 154 | BN_CTX_start(ctx2); | ||
| 155 | r0 = BN_CTX_get(ctx2); | ||
| 156 | g = BN_CTX_get(ctx2); | ||
| 157 | W = BN_CTX_get(ctx2); | ||
| 158 | q = BN_CTX_get(ctx2); | ||
| 159 | X = BN_CTX_get(ctx2); | ||
| 160 | c = BN_CTX_get(ctx2); | ||
| 161 | p = BN_CTX_get(ctx2); | ||
| 162 | test = BN_CTX_get(ctx2); | ||
| 163 | |||
| 164 | BN_lshift(test,BN_value_one(),bits-1); | ||
| 165 | |||
| 166 | for (;;) | ||
| 167 | { | ||
| 168 | for (;;) /* find q */ | ||
| 169 | { | ||
| 170 | int seed_is_random; | ||
| 171 | |||
| 172 | /* step 1 */ | ||
| 173 | if (callback != NULL) callback(0,m++,cb_arg); | ||
| 174 | |||
| 175 | if (!seed_len) | ||
| 176 | { | ||
| 177 | if(RAND_pseudo_bytes(seed,SHA_DIGEST_LENGTH) < 0) | ||
| 178 | goto err; | ||
| 179 | seed_is_random = 1; | ||
| 180 | } | ||
| 181 | else | ||
| 182 | { | ||
| 183 | seed_is_random = 0; | ||
| 184 | seed_len=0; /* use random seed if 'seed_in' turns out to be bad*/ | ||
| 185 | } | ||
| 186 | memcpy(buf,seed,SHA_DIGEST_LENGTH); | ||
| 187 | memcpy(buf2,seed,SHA_DIGEST_LENGTH); | ||
| 188 | /* precompute "SEED + 1" for step 7: */ | ||
| 189 | for (i=SHA_DIGEST_LENGTH-1; i >= 0; i--) | ||
| 190 | { | ||
| 191 | buf[i]++; | ||
| 192 | if (buf[i] != 0) break; | ||
| 193 | } | ||
| 194 | |||
| 195 | /* step 2 */ | ||
| 196 | EVP_Digest(seed,SHA_DIGEST_LENGTH,md,NULL,HASH, NULL); | ||
| 197 | EVP_Digest(buf,SHA_DIGEST_LENGTH,buf2,NULL,HASH, NULL); | ||
| 198 | for (i=0; i<SHA_DIGEST_LENGTH; i++) | ||
| 199 | md[i]^=buf2[i]; | ||
| 200 | |||
| 201 | /* step 3 */ | ||
| 202 | md[0]|=0x80; | ||
| 203 | md[SHA_DIGEST_LENGTH-1]|=0x01; | ||
| 204 | if (!BN_bin2bn(md,SHA_DIGEST_LENGTH,q)) goto err; | ||
| 205 | |||
| 206 | /* step 4 */ | ||
| 207 | r = BN_is_prime_fasttest(q, DSS_prime_checks, callback, ctx3, cb_arg, seed_is_random); | ||
| 208 | if (r > 0) | ||
| 209 | break; | ||
| 210 | if (r != 0) | ||
| 211 | goto err; | ||
| 212 | |||
| 213 | /* do a callback call */ | ||
| 214 | /* step 5 */ | ||
| 215 | } | ||
| 216 | |||
| 217 | if (callback != NULL) callback(2,0,cb_arg); | ||
| 218 | if (callback != NULL) callback(3,0,cb_arg); | ||
| 219 | |||
| 220 | /* step 6 */ | ||
| 221 | counter=0; | ||
| 222 | /* "offset = 2" */ | ||
| 223 | |||
| 224 | n=(bits-1)/160; | ||
| 225 | b=(bits-1)-n*160; | ||
| 226 | |||
| 227 | for (;;) | ||
| 228 | { | ||
| 229 | if (callback != NULL && counter != 0) | ||
| 230 | callback(0,counter,cb_arg); | ||
| 231 | |||
| 232 | /* step 7 */ | ||
| 233 | BN_zero(W); | ||
| 234 | /* now 'buf' contains "SEED + offset - 1" */ | ||
| 235 | for (k=0; k<=n; k++) | ||
| 236 | { | ||
| 237 | /* obtain "SEED + offset + k" by incrementing: */ | ||
| 238 | for (i=SHA_DIGEST_LENGTH-1; i >= 0; i--) | ||
| 239 | { | ||
| 240 | buf[i]++; | ||
| 241 | if (buf[i] != 0) break; | ||
| 242 | } | ||
| 243 | |||
| 244 | EVP_Digest(buf,SHA_DIGEST_LENGTH,md,NULL,HASH, NULL); | ||
| 245 | |||
| 246 | /* step 8 */ | ||
| 247 | if (!BN_bin2bn(md,SHA_DIGEST_LENGTH,r0)) | ||
| 248 | goto err; | ||
| 249 | BN_lshift(r0,r0,160*k); | ||
| 250 | BN_add(W,W,r0); | ||
| 251 | } | ||
| 252 | |||
| 253 | /* more of step 8 */ | ||
| 254 | BN_mask_bits(W,bits-1); | ||
| 255 | BN_copy(X,W); /* this should be ok */ | ||
| 256 | BN_add(X,X,test); /* this should be ok */ | ||
| 257 | |||
| 258 | /* step 9 */ | ||
| 259 | BN_lshift1(r0,q); | ||
| 260 | BN_mod(c,X,r0,ctx); | ||
| 261 | BN_sub(r0,c,BN_value_one()); | ||
| 262 | BN_sub(p,X,r0); | ||
| 263 | |||
| 264 | /* step 10 */ | ||
| 265 | if (BN_cmp(p,test) >= 0) | ||
| 266 | { | ||
| 267 | /* step 11 */ | ||
| 268 | r = BN_is_prime_fasttest(p, DSS_prime_checks, callback, ctx3, cb_arg, 1); | ||
| 269 | if (r > 0) | ||
| 270 | goto end; /* found it */ | ||
| 271 | if (r != 0) | ||
| 272 | goto err; | ||
| 273 | } | ||
| 274 | |||
| 275 | /* step 13 */ | ||
| 276 | counter++; | ||
| 277 | /* "offset = offset + n + 1" */ | ||
| 278 | |||
| 279 | /* step 14 */ | ||
| 280 | if (counter >= 4096) break; | ||
| 281 | } | ||
| 282 | } | ||
| 283 | end: | ||
| 284 | if (callback != NULL) callback(2,1,cb_arg); | ||
| 285 | |||
| 286 | /* We now need to generate g */ | ||
| 287 | /* Set r0=(p-1)/q */ | ||
| 288 | BN_sub(test,p,BN_value_one()); | ||
| 289 | BN_div(r0,NULL,test,q,ctx); | ||
| 290 | |||
| 291 | BN_set_word(test,h); | ||
| 292 | BN_MONT_CTX_set(mont,p,ctx); | ||
| 293 | |||
| 294 | for (;;) | ||
| 295 | { | ||
| 296 | /* g=test^r0%p */ | ||
| 297 | BN_mod_exp_mont(g,test,r0,p,ctx,mont); | ||
| 298 | if (!BN_is_one(g)) break; | ||
| 299 | BN_add(test,test,BN_value_one()); | ||
| 300 | h++; | ||
| 301 | } | ||
| 302 | |||
| 303 | if (callback != NULL) callback(3,1,cb_arg); | ||
| 304 | |||
| 305 | ok=1; | ||
| 306 | err: | ||
| 307 | if (!ok) | ||
| 308 | { | ||
| 309 | if (ret != NULL) DSA_free(ret); | ||
| 310 | } | ||
| 311 | else | ||
| 312 | { | ||
| 313 | ret->p=BN_dup(p); | ||
| 314 | ret->q=BN_dup(q); | ||
| 315 | ret->g=BN_dup(g); | ||
| 316 | if(seed_out != NULL) memcpy(seed_out,seed,20); | ||
| 317 | if (counter_ret != NULL) *counter_ret=counter; | ||
| 318 | if (h_ret != NULL) *h_ret=h; | ||
| 319 | } | ||
| 320 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 321 | if (ctx2 != NULL) | ||
| 322 | { | ||
| 323 | BN_CTX_end(ctx2); | ||
| 324 | BN_CTX_free(ctx2); | ||
| 325 | } | ||
| 326 | if (ctx3 != NULL) BN_CTX_free(ctx3); | ||
| 327 | if (mont != NULL) BN_MONT_CTX_free(mont); | ||
| 328 | return(ok?ret:NULL); | ||
| 329 | } | ||
| 330 | |||
| 331 | int DSA_generate_key(DSA *dsa) | ||
| 332 | { | ||
| 333 | int ok=0; | ||
| 334 | BN_CTX *ctx=NULL; | ||
| 335 | BIGNUM *pub_key=NULL,*priv_key=NULL; | ||
| 336 | |||
| 337 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 338 | |||
| 339 | if (dsa->priv_key == NULL) | ||
| 340 | { | ||
| 341 | if ((priv_key=BN_new()) == NULL) goto err; | ||
| 342 | } | ||
| 343 | else | ||
| 344 | priv_key=dsa->priv_key; | ||
| 345 | |||
| 346 | do | ||
| 347 | if (!BN_rand_range(priv_key,dsa->q)) goto err; | ||
| 348 | while (BN_is_zero(priv_key)); | ||
| 349 | |||
| 350 | if (dsa->pub_key == NULL) | ||
| 351 | { | ||
| 352 | if ((pub_key=BN_new()) == NULL) goto err; | ||
| 353 | } | ||
| 354 | else | ||
| 355 | pub_key=dsa->pub_key; | ||
| 356 | |||
| 357 | if (!BN_mod_exp(pub_key,dsa->g,priv_key,dsa->p,ctx)) goto err; | ||
| 358 | |||
| 359 | dsa->priv_key=priv_key; | ||
| 360 | dsa->pub_key=pub_key; | ||
| 361 | |||
| 362 | if(!fips_check_dsa(dsa)) | ||
| 363 | goto err; | ||
| 364 | |||
| 365 | ok=1; | ||
| 366 | |||
| 367 | err: | ||
| 368 | if ((pub_key != NULL) && (dsa->pub_key == NULL)) BN_free(pub_key); | ||
| 369 | if ((priv_key != NULL) && (dsa->priv_key == NULL)) BN_free(priv_key); | ||
| 370 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 371 | return(ok); | ||
| 372 | } | ||
| 373 | #endif | ||
| 374 | #endif | ||
diff --git a/src/lib/libssl/src/fips/dsa/fips_dsa_ossl.c b/src/lib/libssl/src/fips/dsa/fips_dsa_ossl.c new file mode 100644 index 0000000000..0ae5eb4b9e --- /dev/null +++ b/src/lib/libssl/src/fips/dsa/fips_dsa_ossl.c | |||
| @@ -0,0 +1,387 @@ | |||
| 1 | /* crypto/dsa/dsa_ossl.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | /* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */ | ||
| 60 | |||
| 61 | #include <stdio.h> | ||
| 62 | #include <openssl/bn.h> | ||
| 63 | #include <openssl/dsa.h> | ||
| 64 | #include <openssl/rand.h> | ||
| 65 | #include <openssl/asn1.h> | ||
| 66 | #ifndef OPENSSL_NO_ENGINE | ||
| 67 | #include <openssl/engine.h> | ||
| 68 | #endif | ||
| 69 | #include <openssl/fips.h> | ||
| 70 | |||
| 71 | #ifdef OPENSSL_FIPS | ||
| 72 | |||
| 73 | static DSA_SIG *dsa_do_sign(const unsigned char *dgst, FIPS_DSA_SIZE_T dlen, DSA *dsa); | ||
| 74 | static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp); | ||
| 75 | static int dsa_do_verify(const unsigned char *dgst, FIPS_DSA_SIZE_T dgst_len, DSA_SIG *sig, | ||
| 76 | DSA *dsa); | ||
| 77 | static int dsa_init(DSA *dsa); | ||
| 78 | static int dsa_finish(DSA *dsa); | ||
| 79 | static int dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, | ||
| 80 | BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, | ||
| 81 | BN_MONT_CTX *in_mont); | ||
| 82 | static int dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, | ||
| 83 | const BIGNUM *m, BN_CTX *ctx, | ||
| 84 | BN_MONT_CTX *m_ctx); | ||
| 85 | |||
| 86 | static DSA_METHOD openssl_dsa_meth = { | ||
| 87 | "OpenSSL FIPS DSA method", | ||
| 88 | dsa_do_sign, | ||
| 89 | dsa_sign_setup, | ||
| 90 | dsa_do_verify, | ||
| 91 | dsa_mod_exp, | ||
| 92 | dsa_bn_mod_exp, | ||
| 93 | dsa_init, | ||
| 94 | dsa_finish, | ||
| 95 | 0, | ||
| 96 | NULL | ||
| 97 | }; | ||
| 98 | |||
| 99 | int FIPS_dsa_check(struct dsa_st *dsa) | ||
| 100 | { | ||
| 101 | if(dsa->meth != &openssl_dsa_meth || dsa->meth->dsa_do_sign != dsa_do_sign | ||
| 102 | || dsa->meth->dsa_sign_setup != dsa_sign_setup | ||
| 103 | || dsa->meth->dsa_mod_exp != dsa_mod_exp | ||
| 104 | || dsa->meth->bn_mod_exp != dsa_bn_mod_exp | ||
| 105 | || dsa->meth->init != dsa_init | ||
| 106 | || dsa->meth->finish != dsa_finish) | ||
| 107 | { | ||
| 108 | FIPSerr(FIPS_F_FIPS_DSA_CHECK,FIPS_R_NON_FIPS_METHOD); | ||
| 109 | return 0; | ||
| 110 | } | ||
| 111 | return 1; | ||
| 112 | } | ||
| 113 | |||
| 114 | const DSA_METHOD *DSA_OpenSSL(void) | ||
| 115 | { | ||
| 116 | return &openssl_dsa_meth; | ||
| 117 | } | ||
| 118 | |||
| 119 | static DSA_SIG *dsa_do_sign(const unsigned char *dgst, FIPS_DSA_SIZE_T dlen, DSA *dsa) | ||
| 120 | { | ||
| 121 | BIGNUM *kinv=NULL,*r=NULL,*s=NULL; | ||
| 122 | BIGNUM m; | ||
| 123 | BIGNUM xr; | ||
| 124 | BN_CTX *ctx=NULL; | ||
| 125 | int i,reason=ERR_R_BN_LIB; | ||
| 126 | DSA_SIG *ret=NULL; | ||
| 127 | |||
| 128 | if(FIPS_selftest_failed()) | ||
| 129 | { | ||
| 130 | FIPSerr(FIPS_F_DSA_DO_SIGN,FIPS_R_FIPS_SELFTEST_FAILED); | ||
| 131 | return NULL; | ||
| 132 | } | ||
| 133 | |||
| 134 | BN_init(&m); | ||
| 135 | BN_init(&xr); | ||
| 136 | |||
| 137 | if (!dsa->p || !dsa->q || !dsa->g) | ||
| 138 | { | ||
| 139 | reason=DSA_R_MISSING_PARAMETERS; | ||
| 140 | goto err; | ||
| 141 | } | ||
| 142 | |||
| 143 | s=BN_new(); | ||
| 144 | if (s == NULL) goto err; | ||
| 145 | |||
| 146 | i=BN_num_bytes(dsa->q); /* should be 20 */ | ||
| 147 | if ((dlen > i) || (dlen > 50)) | ||
| 148 | { | ||
| 149 | reason=DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE; | ||
| 150 | goto err; | ||
| 151 | } | ||
| 152 | |||
| 153 | ctx=BN_CTX_new(); | ||
| 154 | if (ctx == NULL) goto err; | ||
| 155 | |||
| 156 | if ((dsa->kinv == NULL) || (dsa->r == NULL)) | ||
| 157 | { | ||
| 158 | if (!DSA_sign_setup(dsa,ctx,&kinv,&r)) goto err; | ||
| 159 | } | ||
| 160 | else | ||
| 161 | { | ||
| 162 | kinv=dsa->kinv; | ||
| 163 | dsa->kinv=NULL; | ||
| 164 | r=dsa->r; | ||
| 165 | dsa->r=NULL; | ||
| 166 | } | ||
| 167 | |||
| 168 | if (BN_bin2bn(dgst,dlen,&m) == NULL) goto err; | ||
| 169 | |||
| 170 | /* Compute s = inv(k) (m + xr) mod q */ | ||
| 171 | if (!BN_mod_mul(&xr,dsa->priv_key,r,dsa->q,ctx)) goto err;/* s = xr */ | ||
| 172 | if (!BN_add(s, &xr, &m)) goto err; /* s = m + xr */ | ||
| 173 | if (BN_cmp(s,dsa->q) > 0) | ||
| 174 | BN_sub(s,s,dsa->q); | ||
| 175 | if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err; | ||
| 176 | |||
| 177 | ret=DSA_SIG_new(); | ||
| 178 | if (ret == NULL) goto err; | ||
| 179 | ret->r = r; | ||
| 180 | ret->s = s; | ||
| 181 | |||
| 182 | err: | ||
| 183 | if (!ret) | ||
| 184 | { | ||
| 185 | DSAerr(DSA_F_DSA_DO_SIGN,reason); | ||
| 186 | BN_free(r); | ||
| 187 | BN_free(s); | ||
| 188 | } | ||
| 189 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 190 | BN_clear_free(&m); | ||
| 191 | BN_clear_free(&xr); | ||
| 192 | if (kinv != NULL) /* dsa->kinv is NULL now if we used it */ | ||
| 193 | BN_clear_free(kinv); | ||
| 194 | return(ret); | ||
| 195 | } | ||
| 196 | |||
| 197 | static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) | ||
| 198 | { | ||
| 199 | BN_CTX *ctx; | ||
| 200 | BIGNUM k,*kinv=NULL,*r=NULL; | ||
| 201 | int ret=0; | ||
| 202 | |||
| 203 | if (!dsa->p || !dsa->q || !dsa->g) | ||
| 204 | { | ||
| 205 | DSAerr(DSA_F_DSA_SIGN_SETUP,DSA_R_MISSING_PARAMETERS); | ||
| 206 | return 0; | ||
| 207 | } | ||
| 208 | |||
| 209 | BN_init(&k); | ||
| 210 | |||
| 211 | if (ctx_in == NULL) | ||
| 212 | { | ||
| 213 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 214 | } | ||
| 215 | else | ||
| 216 | ctx=ctx_in; | ||
| 217 | |||
| 218 | if ((r=BN_new()) == NULL) goto err; | ||
| 219 | kinv=NULL; | ||
| 220 | |||
| 221 | /* Get random k */ | ||
| 222 | do | ||
| 223 | if (!BN_rand_range(&k, dsa->q)) goto err; | ||
| 224 | while (BN_is_zero(&k)); | ||
| 225 | |||
| 226 | if ((dsa->method_mont_p == NULL) && (dsa->flags & DSA_FLAG_CACHE_MONT_P)) | ||
| 227 | { | ||
| 228 | if ((dsa->method_mont_p=(char *)BN_MONT_CTX_new()) != NULL) | ||
| 229 | if (!BN_MONT_CTX_set((BN_MONT_CTX *)dsa->method_mont_p, | ||
| 230 | dsa->p,ctx)) goto err; | ||
| 231 | } | ||
| 232 | |||
| 233 | /* Compute r = (g^k mod p) mod q */ | ||
| 234 | if (!dsa->meth->bn_mod_exp(dsa, r,dsa->g,&k,dsa->p,ctx, | ||
| 235 | (BN_MONT_CTX *)dsa->method_mont_p)) goto err; | ||
| 236 | if (!BN_mod(r,r,dsa->q,ctx)) goto err; | ||
| 237 | |||
| 238 | /* Compute part of 's = inv(k) (m + xr) mod q' */ | ||
| 239 | if ((kinv=BN_mod_inverse(NULL,&k,dsa->q,ctx)) == NULL) goto err; | ||
| 240 | |||
| 241 | if (*kinvp != NULL) BN_clear_free(*kinvp); | ||
| 242 | *kinvp=kinv; | ||
| 243 | kinv=NULL; | ||
| 244 | if (*rp != NULL) BN_clear_free(*rp); | ||
| 245 | *rp=r; | ||
| 246 | ret=1; | ||
| 247 | err: | ||
| 248 | if (!ret) | ||
| 249 | { | ||
| 250 | DSAerr(DSA_F_DSA_SIGN_SETUP,ERR_R_BN_LIB); | ||
| 251 | if (kinv != NULL) BN_clear_free(kinv); | ||
| 252 | if (r != NULL) BN_clear_free(r); | ||
| 253 | } | ||
| 254 | if (ctx_in == NULL) BN_CTX_free(ctx); | ||
| 255 | if (kinv != NULL) BN_clear_free(kinv); | ||
| 256 | BN_clear_free(&k); | ||
| 257 | return(ret); | ||
| 258 | } | ||
| 259 | |||
| 260 | static int dsa_do_verify(const unsigned char *dgst, FIPS_DSA_SIZE_T dgst_len, DSA_SIG *sig, | ||
| 261 | DSA *dsa) | ||
| 262 | { | ||
| 263 | BN_CTX *ctx; | ||
| 264 | BIGNUM u1,u2,t1; | ||
| 265 | BN_MONT_CTX *mont=NULL; | ||
| 266 | int ret = -1; | ||
| 267 | |||
| 268 | if (!dsa->p || !dsa->q || !dsa->g) | ||
| 269 | { | ||
| 270 | DSAerr(DSA_F_DSA_DO_VERIFY,DSA_R_MISSING_PARAMETERS); | ||
| 271 | return -1; | ||
| 272 | } | ||
| 273 | |||
| 274 | if(FIPS_selftest_failed()) | ||
| 275 | { | ||
| 276 | FIPSerr(FIPS_F_DSA_DO_VERIFY,FIPS_R_FIPS_SELFTEST_FAILED); | ||
| 277 | return -1; | ||
| 278 | } | ||
| 279 | |||
| 280 | BN_init(&u1); | ||
| 281 | BN_init(&u2); | ||
| 282 | BN_init(&t1); | ||
| 283 | |||
| 284 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 285 | |||
| 286 | if (BN_is_zero(sig->r) || sig->r->neg || BN_ucmp(sig->r, dsa->q) >= 0) | ||
| 287 | { | ||
| 288 | ret = 0; | ||
| 289 | goto err; | ||
| 290 | } | ||
| 291 | if (BN_is_zero(sig->s) || sig->s->neg || BN_ucmp(sig->s, dsa->q) >= 0) | ||
| 292 | { | ||
| 293 | ret = 0; | ||
| 294 | goto err; | ||
| 295 | } | ||
| 296 | |||
| 297 | /* Calculate W = inv(S) mod Q | ||
| 298 | * save W in u2 */ | ||
| 299 | if ((BN_mod_inverse(&u2,sig->s,dsa->q,ctx)) == NULL) goto err; | ||
| 300 | |||
| 301 | /* save M in u1 */ | ||
| 302 | if (BN_bin2bn(dgst,dgst_len,&u1) == NULL) goto err; | ||
| 303 | |||
| 304 | /* u1 = M * w mod q */ | ||
| 305 | if (!BN_mod_mul(&u1,&u1,&u2,dsa->q,ctx)) goto err; | ||
| 306 | |||
| 307 | /* u2 = r * w mod q */ | ||
| 308 | if (!BN_mod_mul(&u2,sig->r,&u2,dsa->q,ctx)) goto err; | ||
| 309 | |||
| 310 | if ((dsa->method_mont_p == NULL) && (dsa->flags & DSA_FLAG_CACHE_MONT_P)) | ||
| 311 | { | ||
| 312 | if ((dsa->method_mont_p=(char *)BN_MONT_CTX_new()) != NULL) | ||
| 313 | if (!BN_MONT_CTX_set((BN_MONT_CTX *)dsa->method_mont_p, | ||
| 314 | dsa->p,ctx)) goto err; | ||
| 315 | } | ||
| 316 | mont=(BN_MONT_CTX *)dsa->method_mont_p; | ||
| 317 | |||
| 318 | #if 0 | ||
| 319 | { | ||
| 320 | BIGNUM t2; | ||
| 321 | |||
| 322 | BN_init(&t2); | ||
| 323 | /* v = ( g^u1 * y^u2 mod p ) mod q */ | ||
| 324 | /* let t1 = g ^ u1 mod p */ | ||
| 325 | if (!BN_mod_exp_mont(&t1,dsa->g,&u1,dsa->p,ctx,mont)) goto err; | ||
| 326 | /* let t2 = y ^ u2 mod p */ | ||
| 327 | if (!BN_mod_exp_mont(&t2,dsa->pub_key,&u2,dsa->p,ctx,mont)) goto err; | ||
| 328 | /* let u1 = t1 * t2 mod p */ | ||
| 329 | if (!BN_mod_mul(&u1,&t1,&t2,dsa->p,ctx)) goto err_bn; | ||
| 330 | BN_free(&t2); | ||
| 331 | } | ||
| 332 | /* let u1 = u1 mod q */ | ||
| 333 | if (!BN_mod(&u1,&u1,dsa->q,ctx)) goto err; | ||
| 334 | #else | ||
| 335 | { | ||
| 336 | if (!dsa->meth->dsa_mod_exp(dsa, &t1,dsa->g,&u1,dsa->pub_key,&u2, | ||
| 337 | dsa->p,ctx,mont)) goto err; | ||
| 338 | /* BN_copy(&u1,&t1); */ | ||
| 339 | /* let u1 = u1 mod q */ | ||
| 340 | if (!BN_mod(&u1,&t1,dsa->q,ctx)) goto err; | ||
| 341 | } | ||
| 342 | #endif | ||
| 343 | /* V is now in u1. If the signature is correct, it will be | ||
| 344 | * equal to R. */ | ||
| 345 | ret=(BN_ucmp(&u1, sig->r) == 0); | ||
| 346 | |||
| 347 | err: | ||
| 348 | if (ret != 1) DSAerr(DSA_F_DSA_DO_VERIFY,ERR_R_BN_LIB); | ||
| 349 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 350 | BN_free(&u1); | ||
| 351 | BN_free(&u2); | ||
| 352 | BN_free(&t1); | ||
| 353 | return(ret); | ||
| 354 | } | ||
| 355 | |||
| 356 | static int dsa_init(DSA *dsa) | ||
| 357 | { | ||
| 358 | dsa->flags|=DSA_FLAG_CACHE_MONT_P; | ||
| 359 | return(1); | ||
| 360 | } | ||
| 361 | |||
| 362 | static int dsa_finish(DSA *dsa) | ||
| 363 | { | ||
| 364 | if(dsa->method_mont_p) | ||
| 365 | BN_MONT_CTX_free((BN_MONT_CTX *)dsa->method_mont_p); | ||
| 366 | return(1); | ||
| 367 | } | ||
| 368 | |||
| 369 | static int dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, | ||
| 370 | BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, | ||
| 371 | BN_MONT_CTX *in_mont) | ||
| 372 | { | ||
| 373 | return BN_mod_exp2_mont(rr, a1, p1, a2, p2, m, ctx, in_mont); | ||
| 374 | } | ||
| 375 | |||
| 376 | static int dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, | ||
| 377 | const BIGNUM *m, BN_CTX *ctx, | ||
| 378 | BN_MONT_CTX *m_ctx) | ||
| 379 | { | ||
| 380 | return BN_mod_exp_mont(r, a, p, m, ctx, m_ctx); | ||
| 381 | } | ||
| 382 | |||
| 383 | #else /* ndef OPENSSL_FIPS */ | ||
| 384 | |||
| 385 | static void *dummy=&dummy; | ||
| 386 | |||
| 387 | #endif /* ndef OPENSSL_FIPS */ | ||
diff --git a/src/lib/libssl/src/fips/dsa/fips_dsa_selftest.c b/src/lib/libssl/src/fips/dsa/fips_dsa_selftest.c new file mode 100644 index 0000000000..2c88f0af44 --- /dev/null +++ b/src/lib/libssl/src/fips/dsa/fips_dsa_selftest.c | |||
| @@ -0,0 +1,168 @@ | |||
| 1 | /* crypto/dsa/dsatest.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <string.h> | ||
| 60 | #include <openssl/crypto.h> | ||
| 61 | #include <openssl/dsa.h> | ||
| 62 | #include <openssl/fips.h> | ||
| 63 | #include <openssl/err.h> | ||
| 64 | |||
| 65 | #ifdef OPENSSL_FIPS | ||
| 66 | |||
| 67 | /* seed, out_p, out_q, out_g are taken from the updated Appendix 5 to | ||
| 68 | * FIPS PUB 186 and also appear in Appendix 5 to FIPS PIB 186-1 */ | ||
| 69 | static unsigned char seed[20]={ | ||
| 70 | 0xd5,0x01,0x4e,0x4b,0x60,0xef,0x2b,0xa8,0xb6,0x21,0x1b,0x40, | ||
| 71 | 0x62,0xba,0x32,0x24,0xe0,0x42,0x7d,0xd3, | ||
| 72 | }; | ||
| 73 | |||
| 74 | static unsigned char out_p[]={ | ||
| 75 | 0x8d,0xf2,0xa4,0x94,0x49,0x22,0x76,0xaa, | ||
| 76 | 0x3d,0x25,0x75,0x9b,0xb0,0x68,0x69,0xcb, | ||
| 77 | 0xea,0xc0,0xd8,0x3a,0xfb,0x8d,0x0c,0xf7, | ||
| 78 | 0xcb,0xb8,0x32,0x4f,0x0d,0x78,0x82,0xe5, | ||
| 79 | 0xd0,0x76,0x2f,0xc5,0xb7,0x21,0x0e,0xaf, | ||
| 80 | 0xc2,0xe9,0xad,0xac,0x32,0xab,0x7a,0xac, | ||
| 81 | 0x49,0x69,0x3d,0xfb,0xf8,0x37,0x24,0xc2, | ||
| 82 | 0xec,0x07,0x36,0xee,0x31,0xc8,0x02,0x91, | ||
| 83 | }; | ||
| 84 | |||
| 85 | static unsigned char out_q[]={ | ||
| 86 | 0xc7,0x73,0x21,0x8c,0x73,0x7e,0xc8,0xee, | ||
| 87 | 0x99,0x3b,0x4f,0x2d,0xed,0x30,0xf4,0x8e, | ||
| 88 | 0xda,0xce,0x91,0x5f, | ||
| 89 | }; | ||
| 90 | |||
| 91 | static unsigned char out_g[]={ | ||
| 92 | 0x62,0x6d,0x02,0x78,0x39,0xea,0x0a,0x13, | ||
| 93 | 0x41,0x31,0x63,0xa5,0x5b,0x4c,0xb5,0x00, | ||
| 94 | 0x29,0x9d,0x55,0x22,0x95,0x6c,0xef,0xcb, | ||
| 95 | 0x3b,0xff,0x10,0xf3,0x99,0xce,0x2c,0x2e, | ||
| 96 | 0x71,0xcb,0x9d,0xe5,0xfa,0x24,0xba,0xbf, | ||
| 97 | 0x58,0xe5,0xb7,0x95,0x21,0x92,0x5c,0x9c, | ||
| 98 | 0xc4,0x2e,0x9f,0x6f,0x46,0x4b,0x08,0x8c, | ||
| 99 | 0xc5,0x72,0xaf,0x53,0xe6,0xd7,0x88,0x02, | ||
| 100 | }; | ||
| 101 | |||
| 102 | static const unsigned char str1[]="12345678901234567890"; | ||
| 103 | |||
| 104 | void FIPS_corrupt_dsa() | ||
| 105 | { | ||
| 106 | ++seed[0]; | ||
| 107 | } | ||
| 108 | |||
| 109 | int FIPS_selftest_dsa() | ||
| 110 | { | ||
| 111 | DSA *dsa=NULL; | ||
| 112 | int counter,i,j; | ||
| 113 | unsigned char buf[256]; | ||
| 114 | unsigned long h; | ||
| 115 | unsigned char sig[256]; | ||
| 116 | unsigned int siglen; | ||
| 117 | |||
| 118 | dsa=DSA_generate_parameters(512,seed,20,&counter,&h,NULL,NULL); | ||
| 119 | |||
| 120 | if(dsa == NULL) | ||
| 121 | { | ||
| 122 | FIPSerr(FIPS_F_FIPS_SELFTEST_DSA,FIPS_R_SELFTEST_FAILED); | ||
| 123 | return 0; | ||
| 124 | } | ||
| 125 | if (counter != 105) | ||
| 126 | { | ||
| 127 | FIPSerr(FIPS_F_FIPS_SELFTEST_DSA,FIPS_R_SELFTEST_FAILED); | ||
| 128 | return 0; | ||
| 129 | } | ||
| 130 | if (h != 2) | ||
| 131 | { | ||
| 132 | FIPSerr(FIPS_F_FIPS_SELFTEST_DSA,FIPS_R_SELFTEST_FAILED); | ||
| 133 | return 0; | ||
| 134 | } | ||
| 135 | i=BN_bn2bin(dsa->q,buf); | ||
| 136 | j=sizeof(out_q); | ||
| 137 | if (i != j || memcmp(buf,out_q,i) != 0) | ||
| 138 | { | ||
| 139 | FIPSerr(FIPS_F_FIPS_SELFTEST_DSA,FIPS_R_SELFTEST_FAILED); | ||
| 140 | return 0; | ||
| 141 | } | ||
| 142 | |||
| 143 | i=BN_bn2bin(dsa->p,buf); | ||
| 144 | j=sizeof(out_p); | ||
| 145 | if (i != j || memcmp(buf,out_p,i) != 0) | ||
| 146 | { | ||
| 147 | FIPSerr(FIPS_F_FIPS_SELFTEST_DSA,FIPS_R_SELFTEST_FAILED); | ||
| 148 | return 0; | ||
| 149 | } | ||
| 150 | |||
| 151 | i=BN_bn2bin(dsa->g,buf); | ||
| 152 | j=sizeof(out_g); | ||
| 153 | if (i != j || memcmp(buf,out_g,i) != 0) | ||
| 154 | { | ||
| 155 | FIPSerr(FIPS_F_FIPS_SELFTEST_DSA,FIPS_R_SELFTEST_FAILED); | ||
| 156 | return 0; | ||
| 157 | } | ||
| 158 | DSA_generate_key(dsa); | ||
| 159 | DSA_sign(0, str1, 20, sig, &siglen, dsa); | ||
| 160 | if(DSA_verify(0, str1, 20, sig, siglen, dsa) != 1) | ||
| 161 | { | ||
| 162 | FIPSerr(FIPS_F_FIPS_SELFTEST_DSA,FIPS_R_SELFTEST_FAILED); | ||
| 163 | return 0; | ||
| 164 | } | ||
| 165 | DSA_free(dsa); | ||
| 166 | return 1; | ||
| 167 | } | ||
| 168 | #endif | ||
diff --git a/src/lib/libssl/src/fips/dsa/fips_dsatest.c b/src/lib/libssl/src/fips/dsa/fips_dsatest.c new file mode 100644 index 0000000000..7215940ede --- /dev/null +++ b/src/lib/libssl/src/fips/dsa/fips_dsatest.c | |||
| @@ -0,0 +1,257 @@ | |||
| 1 | /* crypto/dsa/dsatest.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <stdlib.h> | ||
| 61 | #include <string.h> | ||
| 62 | #include <sys/types.h> | ||
| 63 | #include <sys/stat.h> | ||
| 64 | |||
| 65 | #include "e_os.h" | ||
| 66 | |||
| 67 | #include <openssl/crypto.h> | ||
| 68 | #include <openssl/rand.h> | ||
| 69 | #include <openssl/bio.h> | ||
| 70 | #include <openssl/err.h> | ||
| 71 | #ifndef OPENSSL_NO_ENGINE | ||
| 72 | #include <openssl/engine.h> | ||
| 73 | #endif | ||
| 74 | #include <openssl/fips.h> | ||
| 75 | #include <openssl/fips_rand.h> | ||
| 76 | |||
| 77 | #if defined(OPENSSL_NO_DSA) || !defined(OPENSSL_FIPS) | ||
| 78 | int main(int argc, char *argv[]) | ||
| 79 | { | ||
| 80 | printf("No FIPS DSA support\n"); | ||
| 81 | return(0); | ||
| 82 | } | ||
| 83 | #else | ||
| 84 | #include <openssl/dsa.h> | ||
| 85 | |||
| 86 | #ifdef OPENSSL_SYS_WIN16 | ||
| 87 | #define MS_CALLBACK _far _loadds | ||
| 88 | #else | ||
| 89 | #define MS_CALLBACK | ||
| 90 | #endif | ||
| 91 | |||
| 92 | static void MS_CALLBACK dsa_cb(int p, int n, void *arg); | ||
| 93 | |||
| 94 | /* seed, out_p, out_q, out_g are taken from the updated Appendix 5 to | ||
| 95 | * FIPS PUB 186 and also appear in Appendix 5 to FIPS PIB 186-1 */ | ||
| 96 | static unsigned char seed[20]={ | ||
| 97 | 0xd5,0x01,0x4e,0x4b,0x60,0xef,0x2b,0xa8,0xb6,0x21,0x1b,0x40, | ||
| 98 | 0x62,0xba,0x32,0x24,0xe0,0x42,0x7d,0xd3, | ||
| 99 | }; | ||
| 100 | |||
| 101 | static unsigned char out_p[]={ | ||
| 102 | 0x8d,0xf2,0xa4,0x94,0x49,0x22,0x76,0xaa, | ||
| 103 | 0x3d,0x25,0x75,0x9b,0xb0,0x68,0x69,0xcb, | ||
| 104 | 0xea,0xc0,0xd8,0x3a,0xfb,0x8d,0x0c,0xf7, | ||
| 105 | 0xcb,0xb8,0x32,0x4f,0x0d,0x78,0x82,0xe5, | ||
| 106 | 0xd0,0x76,0x2f,0xc5,0xb7,0x21,0x0e,0xaf, | ||
| 107 | 0xc2,0xe9,0xad,0xac,0x32,0xab,0x7a,0xac, | ||
| 108 | 0x49,0x69,0x3d,0xfb,0xf8,0x37,0x24,0xc2, | ||
| 109 | 0xec,0x07,0x36,0xee,0x31,0xc8,0x02,0x91, | ||
| 110 | }; | ||
| 111 | |||
| 112 | static unsigned char out_q[]={ | ||
| 113 | 0xc7,0x73,0x21,0x8c,0x73,0x7e,0xc8,0xee, | ||
| 114 | 0x99,0x3b,0x4f,0x2d,0xed,0x30,0xf4,0x8e, | ||
| 115 | 0xda,0xce,0x91,0x5f, | ||
| 116 | }; | ||
| 117 | |||
| 118 | static unsigned char out_g[]={ | ||
| 119 | 0x62,0x6d,0x02,0x78,0x39,0xea,0x0a,0x13, | ||
| 120 | 0x41,0x31,0x63,0xa5,0x5b,0x4c,0xb5,0x00, | ||
| 121 | 0x29,0x9d,0x55,0x22,0x95,0x6c,0xef,0xcb, | ||
| 122 | 0x3b,0xff,0x10,0xf3,0x99,0xce,0x2c,0x2e, | ||
| 123 | 0x71,0xcb,0x9d,0xe5,0xfa,0x24,0xba,0xbf, | ||
| 124 | 0x58,0xe5,0xb7,0x95,0x21,0x92,0x5c,0x9c, | ||
| 125 | 0xc4,0x2e,0x9f,0x6f,0x46,0x4b,0x08,0x8c, | ||
| 126 | 0xc5,0x72,0xaf,0x53,0xe6,0xd7,0x88,0x02, | ||
| 127 | }; | ||
| 128 | |||
| 129 | static const unsigned char str1[]="12345678901234567890"; | ||
| 130 | |||
| 131 | static const char rnd_seed[] = "string to make the random number generator think it has entropy"; | ||
| 132 | static const unsigned char rnd_key1[]="12345678"; | ||
| 133 | static const unsigned char rnd_key2[]="abcdefgh"; | ||
| 134 | |||
| 135 | static BIO *bio_err=NULL; | ||
| 136 | |||
| 137 | int main(int argc, char **argv) | ||
| 138 | { | ||
| 139 | DSA *dsa=NULL; | ||
| 140 | int counter,ret=0,i,j; | ||
| 141 | unsigned char buf[256]; | ||
| 142 | unsigned long h; | ||
| 143 | unsigned char sig[256]; | ||
| 144 | unsigned int siglen; | ||
| 145 | |||
| 146 | if (bio_err == NULL) | ||
| 147 | bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); | ||
| 148 | |||
| 149 | #ifdef OPENSSL_FIPS | ||
| 150 | if(!FIPS_mode_set(1,argv[0])) | ||
| 151 | { | ||
| 152 | ERR_print_errors(bio_err); | ||
| 153 | EXIT(1); | ||
| 154 | } | ||
| 155 | #endif | ||
| 156 | CRYPTO_malloc_debug_init(); | ||
| 157 | CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); | ||
| 158 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
| 159 | |||
| 160 | ERR_load_crypto_strings(); | ||
| 161 | FIPS_set_prng_key(rnd_key1,rnd_key2); | ||
| 162 | RAND_seed(rnd_seed, sizeof rnd_seed); | ||
| 163 | |||
| 164 | BIO_printf(bio_err,"test generation of DSA parameters\n"); | ||
| 165 | |||
| 166 | dsa=DSA_generate_parameters(512,seed,20,&counter,&h,dsa_cb,bio_err); | ||
| 167 | |||
| 168 | BIO_printf(bio_err,"seed\n"); | ||
| 169 | for (i=0; i<20; i+=4) | ||
| 170 | { | ||
| 171 | BIO_printf(bio_err,"%02X%02X%02X%02X ", | ||
| 172 | seed[i],seed[i+1],seed[i+2],seed[i+3]); | ||
| 173 | } | ||
| 174 | BIO_printf(bio_err,"\ncounter=%d h=%d\n",counter,h); | ||
| 175 | |||
| 176 | if (dsa == NULL) goto end; | ||
| 177 | DSA_print(bio_err,dsa,0); | ||
| 178 | if (counter != 105) | ||
| 179 | { | ||
| 180 | BIO_printf(bio_err,"counter should be 105\n"); | ||
| 181 | goto end; | ||
| 182 | } | ||
| 183 | if (h != 2) | ||
| 184 | { | ||
| 185 | BIO_printf(bio_err,"h should be 2\n"); | ||
| 186 | goto end; | ||
| 187 | } | ||
| 188 | |||
| 189 | i=BN_bn2bin(dsa->q,buf); | ||
| 190 | j=sizeof(out_q); | ||
| 191 | if ((i != j) || (memcmp(buf,out_q,i) != 0)) | ||
| 192 | { | ||
| 193 | BIO_printf(bio_err,"q value is wrong\n"); | ||
| 194 | goto end; | ||
| 195 | } | ||
| 196 | |||
| 197 | i=BN_bn2bin(dsa->p,buf); | ||
| 198 | j=sizeof(out_p); | ||
| 199 | if ((i != j) || (memcmp(buf,out_p,i) != 0)) | ||
| 200 | { | ||
| 201 | BIO_printf(bio_err,"p value is wrong\n"); | ||
| 202 | goto end; | ||
| 203 | } | ||
| 204 | |||
| 205 | i=BN_bn2bin(dsa->g,buf); | ||
| 206 | j=sizeof(out_g); | ||
| 207 | if ((i != j) || (memcmp(buf,out_g,i) != 0)) | ||
| 208 | { | ||
| 209 | BIO_printf(bio_err,"g value is wrong\n"); | ||
| 210 | goto end; | ||
| 211 | } | ||
| 212 | DSA_generate_key(dsa); | ||
| 213 | DSA_sign(0, str1, 20, sig, &siglen, dsa); | ||
| 214 | if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1) | ||
| 215 | ret=1; | ||
| 216 | end: | ||
| 217 | if (!ret) | ||
| 218 | ERR_print_errors(bio_err); | ||
| 219 | if (dsa != NULL) DSA_free(dsa); | ||
| 220 | CRYPTO_cleanup_all_ex_data(); | ||
| 221 | ERR_remove_state(0); | ||
| 222 | ERR_free_strings(); | ||
| 223 | CRYPTO_mem_leaks(bio_err); | ||
| 224 | if (bio_err != NULL) | ||
| 225 | { | ||
| 226 | BIO_free(bio_err); | ||
| 227 | bio_err = NULL; | ||
| 228 | } | ||
| 229 | EXIT(!ret); | ||
| 230 | return(!ret); | ||
| 231 | } | ||
| 232 | |||
| 233 | static int cb_exit(int ec) | ||
| 234 | { | ||
| 235 | EXIT(ec); | ||
| 236 | return(0); /* To keep some compilers quiet */ | ||
| 237 | } | ||
| 238 | |||
| 239 | static void MS_CALLBACK dsa_cb(int p, int n, void *arg) | ||
| 240 | { | ||
| 241 | char c='*'; | ||
| 242 | static int ok=0,num=0; | ||
| 243 | |||
| 244 | if (p == 0) { c='.'; num++; }; | ||
| 245 | if (p == 1) c='+'; | ||
| 246 | if (p == 2) { c='*'; ok++; } | ||
| 247 | if (p == 3) c='\n'; | ||
| 248 | BIO_write(arg,&c,1); | ||
| 249 | (void)BIO_flush(arg); | ||
| 250 | |||
| 251 | if (!ok && (p == 0) && (num > 1)) | ||
| 252 | { | ||
| 253 | BIO_printf((BIO *)arg,"error in dsatest\n"); | ||
| 254 | cb_exit(1); | ||
| 255 | } | ||
| 256 | } | ||
| 257 | #endif | ||
diff --git a/src/lib/libssl/src/fips/dsa/fips_dssvs.c b/src/lib/libssl/src/fips/dsa/fips_dssvs.c new file mode 100644 index 0000000000..50a4d96986 --- /dev/null +++ b/src/lib/libssl/src/fips/dsa/fips_dssvs.c | |||
| @@ -0,0 +1,306 @@ | |||
| 1 | #include <openssl/bn.h> | ||
| 2 | #include <openssl/dsa.h> | ||
| 3 | #include <openssl/fips.h> | ||
| 4 | #include <openssl/err.h> | ||
| 5 | #include <openssl/sha.h> | ||
| 6 | #include <string.h> | ||
| 7 | |||
| 8 | int hex2bin(const char *in, unsigned char *out) | ||
| 9 | { | ||
| 10 | int n1, n2; | ||
| 11 | unsigned char ch; | ||
| 12 | |||
| 13 | for (n1=0,n2=0 ; in[n1] && in[n1] != '\n' ; ) | ||
| 14 | { /* first byte */ | ||
| 15 | if ((in[n1] >= '0') && (in[n1] <= '9')) | ||
| 16 | ch = in[n1++] - '0'; | ||
| 17 | else if ((in[n1] >= 'A') && (in[n1] <= 'F')) | ||
| 18 | ch = in[n1++] - 'A' + 10; | ||
| 19 | else if ((in[n1] >= 'a') && (in[n1] <= 'f')) | ||
| 20 | ch = in[n1++] - 'a' + 10; | ||
| 21 | else | ||
| 22 | return -1; | ||
| 23 | if(!in[n1]) | ||
| 24 | { | ||
| 25 | out[n2++]=ch; | ||
| 26 | break; | ||
| 27 | } | ||
| 28 | out[n2] = ch << 4; | ||
| 29 | /* second byte */ | ||
| 30 | if ((in[n1] >= '0') && (in[n1] <= '9')) | ||
| 31 | ch = in[n1++] - '0'; | ||
| 32 | else if ((in[n1] >= 'A') && (in[n1] <= 'F')) | ||
| 33 | ch = in[n1++] - 'A' + 10; | ||
| 34 | else if ((in[n1] >= 'a') && (in[n1] <= 'f')) | ||
| 35 | ch = in[n1++] - 'a' + 10; | ||
| 36 | else | ||
| 37 | return -1; | ||
| 38 | out[n2++] |= ch; | ||
| 39 | } | ||
| 40 | return n2; | ||
| 41 | } | ||
| 42 | |||
| 43 | BIGNUM *hex2bn(const char *in) | ||
| 44 | { | ||
| 45 | BIGNUM *p=BN_new(); | ||
| 46 | |||
| 47 | BN_hex2bn(&p,in); | ||
| 48 | |||
| 49 | return p; | ||
| 50 | } | ||
| 51 | |||
| 52 | int bin2hex(const unsigned char *in,int len,char *out) | ||
| 53 | { | ||
| 54 | int n1, n2; | ||
| 55 | unsigned char ch; | ||
| 56 | |||
| 57 | for (n1=0,n2=0 ; n1 < len ; ++n1) | ||
| 58 | { | ||
| 59 | ch=in[n1] >> 4; | ||
| 60 | if (ch <= 0x09) | ||
| 61 | out[n2++]=ch+'0'; | ||
| 62 | else | ||
| 63 | out[n2++]=ch-10+'a'; | ||
| 64 | ch=in[n1] & 0x0f; | ||
| 65 | if(ch <= 0x09) | ||
| 66 | out[n2++]=ch+'0'; | ||
| 67 | else | ||
| 68 | out[n2++]=ch-10+'a'; | ||
| 69 | } | ||
| 70 | out[n2]='\0'; | ||
| 71 | return n2; | ||
| 72 | } | ||
| 73 | |||
| 74 | void pv(const char *tag,const unsigned char *val,int len) | ||
| 75 | { | ||
| 76 | char obuf[2048]; | ||
| 77 | |||
| 78 | bin2hex(val,len,obuf); | ||
| 79 | printf("%s = %s\n",tag,obuf); | ||
| 80 | } | ||
| 81 | |||
| 82 | void pbn(const char *tag,const BIGNUM *val) | ||
| 83 | { | ||
| 84 | printf("%s = %s\n",tag,BN_bn2hex(val)); | ||
| 85 | } | ||
| 86 | |||
| 87 | void primes() | ||
| 88 | { | ||
| 89 | char buf[10240]; | ||
| 90 | |||
| 91 | while(fgets(buf,sizeof buf,stdin) != NULL) | ||
| 92 | { | ||
| 93 | fputs(buf,stdout); | ||
| 94 | if(!strncmp(buf,"Prime= ",7)) | ||
| 95 | { | ||
| 96 | BIGNUM *pp; | ||
| 97 | |||
| 98 | pp=BN_new(); | ||
| 99 | BN_hex2bn(&pp,buf+7); | ||
| 100 | printf("result= %c\n", | ||
| 101 | BN_is_prime(pp,20,NULL,NULL,NULL) ? 'P' : 'F'); | ||
| 102 | } | ||
| 103 | } | ||
| 104 | } | ||
| 105 | |||
| 106 | void pqg() | ||
| 107 | { | ||
| 108 | char buf[1024]; | ||
| 109 | int nmod=0; | ||
| 110 | |||
| 111 | while(fgets(buf,sizeof buf,stdin) != NULL) | ||
| 112 | { | ||
| 113 | if(!strncmp(buf,"[mod = ",7)) | ||
| 114 | nmod=atoi(buf+7); | ||
| 115 | else if(!strncmp(buf,"N = ",4)) | ||
| 116 | { | ||
| 117 | int n=atoi(buf+4); | ||
| 118 | |||
| 119 | printf("[mod = %d]\n\n",nmod); | ||
| 120 | |||
| 121 | while(n--) | ||
| 122 | { | ||
| 123 | unsigned char seed[20]; | ||
| 124 | DSA *dsa; | ||
| 125 | int counter; | ||
| 126 | unsigned long h; | ||
| 127 | |||
| 128 | dsa=DSA_generate_parameters(nmod,seed,0,&counter,&h,NULL,NULL); | ||
| 129 | printf("P = %s\n",BN_bn2hex(dsa->p)); | ||
| 130 | printf("Q = %s\n",BN_bn2hex(dsa->q)); | ||
| 131 | printf("G = %s\n",BN_bn2hex(dsa->g)); | ||
| 132 | pv("Seed",seed,20); | ||
| 133 | printf("c = %d\n",counter); | ||
| 134 | printf("H = %lx\n",h); | ||
| 135 | putc('\n',stdout); | ||
| 136 | } | ||
| 137 | } | ||
| 138 | else | ||
| 139 | fputs(buf,stdout); | ||
| 140 | } | ||
| 141 | } | ||
| 142 | |||
| 143 | void keypair() | ||
| 144 | { | ||
| 145 | char buf[1024]; | ||
| 146 | int nmod=0; | ||
| 147 | |||
| 148 | while(fgets(buf,sizeof buf,stdin) != NULL) | ||
| 149 | { | ||
| 150 | if(!strncmp(buf,"[mod = ",7)) | ||
| 151 | nmod=atoi(buf+7); | ||
| 152 | else if(!strncmp(buf,"N = ",4)) | ||
| 153 | { | ||
| 154 | DSA *dsa; | ||
| 155 | int n=atoi(buf+4); | ||
| 156 | |||
| 157 | printf("[mod = %d]\n\n",nmod); | ||
| 158 | |||
| 159 | dsa=DSA_generate_parameters(nmod,NULL,0,NULL,NULL,NULL,NULL); | ||
| 160 | pbn("P",dsa->p); | ||
| 161 | pbn("Q",dsa->q); | ||
| 162 | pbn("G",dsa->g); | ||
| 163 | putc('\n',stdout); | ||
| 164 | |||
| 165 | while(n--) | ||
| 166 | { | ||
| 167 | DSA_generate_key(dsa); | ||
| 168 | |||
| 169 | pbn("X",dsa->priv_key); | ||
| 170 | pbn("Y",dsa->pub_key); | ||
| 171 | putc('\n',stdout); | ||
| 172 | } | ||
| 173 | } | ||
| 174 | } | ||
| 175 | } | ||
| 176 | |||
| 177 | void siggen() | ||
| 178 | { | ||
| 179 | char buf[1024]; | ||
| 180 | int nmod=0; | ||
| 181 | DSA *dsa=NULL; | ||
| 182 | |||
| 183 | while(fgets(buf,sizeof buf,stdin) != NULL) | ||
| 184 | { | ||
| 185 | if(!strncmp(buf,"[mod = ",7)) | ||
| 186 | { | ||
| 187 | nmod=atoi(buf+7); | ||
| 188 | printf("[mod = %d]\n\n",nmod); | ||
| 189 | |||
| 190 | dsa=DSA_generate_parameters(nmod,NULL,0,NULL,NULL,NULL,NULL); | ||
| 191 | pbn("P",dsa->p); | ||
| 192 | pbn("Q",dsa->q); | ||
| 193 | pbn("G",dsa->g); | ||
| 194 | putc('\n',stdout); | ||
| 195 | } | ||
| 196 | else if(!strncmp(buf,"Msg = ",6)) | ||
| 197 | { | ||
| 198 | unsigned char msg[1024]; | ||
| 199 | unsigned char hash[20]; | ||
| 200 | int n; | ||
| 201 | DSA_SIG *sig; | ||
| 202 | |||
| 203 | n=hex2bin(buf+6,msg); | ||
| 204 | pv("Msg",msg,n); | ||
| 205 | |||
| 206 | DSA_generate_key(dsa); | ||
| 207 | pbn("Y",dsa->pub_key); | ||
| 208 | |||
| 209 | SHA1(msg,n,hash); | ||
| 210 | sig=DSA_do_sign(hash,sizeof hash,dsa); | ||
| 211 | pbn("R",sig->r); | ||
| 212 | pbn("S",sig->s); | ||
| 213 | putc('\n',stdout); | ||
| 214 | } | ||
| 215 | } | ||
| 216 | } | ||
| 217 | |||
| 218 | void sigver() | ||
| 219 | { | ||
| 220 | DSA *dsa=NULL; | ||
| 221 | char buf[1024]; | ||
| 222 | int nmod=0; | ||
| 223 | unsigned char hash[20]; | ||
| 224 | DSA_SIG *sig=DSA_SIG_new(); | ||
| 225 | |||
| 226 | while(fgets(buf,sizeof buf,stdin) != NULL) | ||
| 227 | { | ||
| 228 | if(!strncmp(buf,"[mod = ",7)) | ||
| 229 | { | ||
| 230 | nmod=atoi(buf+7); | ||
| 231 | if(dsa) | ||
| 232 | DSA_free(dsa); | ||
| 233 | dsa=DSA_new(); | ||
| 234 | } | ||
| 235 | else if(!strncmp(buf,"P = ",4)) | ||
| 236 | dsa->p=hex2bn(buf+4); | ||
| 237 | else if(!strncmp(buf,"Q = ",4)) | ||
| 238 | dsa->q=hex2bn(buf+4); | ||
| 239 | else if(!strncmp(buf,"G = ",4)) | ||
| 240 | { | ||
| 241 | dsa->g=hex2bn(buf+4); | ||
| 242 | |||
| 243 | printf("[mod = %d]\n\n",nmod); | ||
| 244 | pbn("P",dsa->p); | ||
| 245 | pbn("Q",dsa->q); | ||
| 246 | pbn("G",dsa->g); | ||
| 247 | putc('\n',stdout); | ||
| 248 | } | ||
| 249 | else if(!strncmp(buf,"Msg = ",6)) | ||
| 250 | { | ||
| 251 | unsigned char msg[1024]; | ||
| 252 | int n; | ||
| 253 | |||
| 254 | n=hex2bin(buf+6,msg); | ||
| 255 | pv("Msg",msg,n); | ||
| 256 | SHA1(msg,n,hash); | ||
| 257 | } | ||
| 258 | else if(!strncmp(buf,"Y = ",4)) | ||
| 259 | dsa->pub_key=hex2bn(buf+4); | ||
| 260 | else if(!strncmp(buf,"R = ",4)) | ||
| 261 | sig->r=hex2bn(buf+4); | ||
| 262 | else if(!strncmp(buf,"S = ",4)) | ||
| 263 | { | ||
| 264 | sig->s=hex2bn(buf+4); | ||
| 265 | |||
| 266 | pbn("Y",dsa->pub_key); | ||
| 267 | pbn("R",sig->r); | ||
| 268 | pbn("S",sig->s); | ||
| 269 | printf("Result = %c\n",DSA_do_verify(hash,sizeof hash,sig,dsa) | ||
| 270 | ? 'P' : 'F'); | ||
| 271 | putc('\n',stdout); | ||
| 272 | } | ||
| 273 | } | ||
| 274 | } | ||
| 275 | |||
| 276 | int main(int argc,char **argv) | ||
| 277 | { | ||
| 278 | if(argc != 2) | ||
| 279 | { | ||
| 280 | fprintf(stderr,"%s [prime|pqg]\n",argv[0]); | ||
| 281 | exit(1); | ||
| 282 | } | ||
| 283 | if(!FIPS_mode_set(1,argv[0])) | ||
| 284 | { | ||
| 285 | ERR_load_crypto_strings(); | ||
| 286 | ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); | ||
| 287 | exit(1); | ||
| 288 | } | ||
| 289 | if(!strcmp(argv[1],"prime")) | ||
| 290 | primes(); | ||
| 291 | else if(!strcmp(argv[1],"pqg")) | ||
| 292 | pqg(); | ||
| 293 | else if(!strcmp(argv[1],"keypair")) | ||
| 294 | keypair(); | ||
| 295 | else if(!strcmp(argv[1],"siggen")) | ||
| 296 | siggen(); | ||
| 297 | else if(!strcmp(argv[1],"sigver")) | ||
| 298 | sigver(); | ||
| 299 | else | ||
| 300 | { | ||
| 301 | fprintf(stderr,"Don't know how to %s.\n",argv[1]); | ||
| 302 | exit(1); | ||
| 303 | } | ||
| 304 | |||
| 305 | return 0; | ||
| 306 | } | ||
diff --git a/src/lib/libssl/src/fips/fips-lib.com b/src/lib/libssl/src/fips/fips-lib.com new file mode 100644 index 0000000000..f3571bf845 --- /dev/null +++ b/src/lib/libssl/src/fips/fips-lib.com | |||
| @@ -0,0 +1,1180 @@ | |||
| 1 | $! | ||
| 2 | $! FIPS-LIB.COM | ||
| 3 | $! Written By: Robert Byer | ||
| 4 | $! Vice-President | ||
| 5 | $! A-Com Computing, Inc. | ||
| 6 | $! byer@mail.all-net.net | ||
| 7 | $! | ||
| 8 | $! Changes by Richard Levitte <richard@levitte.org> | ||
| 9 | $! | ||
| 10 | $! This command files compiles and creates the FIPS parts of the | ||
| 11 | $! "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library for OpenSSL. The "xxx" | ||
| 12 | $! denotes the machine architecture of AXP or VAX. | ||
| 13 | $! | ||
| 14 | $! It was re-written so it would try to determine what "C" compiler to use | ||
| 15 | $! or you can specify which "C" compiler to use. | ||
| 16 | $! | ||
| 17 | $! Specify the following as P1 to build just that part or ALL to just | ||
| 18 | $! build everything. | ||
| 19 | $! | ||
| 20 | $! LIBRARY To just compile the [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library. | ||
| 21 | $! APPS To just compile the [.xxx.EXE.CRYPTO]*.EXE | ||
| 22 | $! ALL To do both LIBRARY and APPS | ||
| 23 | $! | ||
| 24 | $! Specify DEBUG or NODEBUG as P2 to compile with or without debugger | ||
| 25 | $! information. | ||
| 26 | $! | ||
| 27 | $! Specify which compiler at P3 to try to compile under. | ||
| 28 | $! | ||
| 29 | $! VAXC For VAX C. | ||
| 30 | $! DECC For DEC C. | ||
| 31 | $! GNUC For GNU C. | ||
| 32 | $! | ||
| 33 | $! If you don't speficy a compiler, it will try to determine which | ||
| 34 | $! "C" compiler to use. | ||
| 35 | $! | ||
| 36 | $! P4, if defined, sets a TCP/IP library to use, through one of the following | ||
| 37 | $! keywords: | ||
| 38 | $! | ||
| 39 | $! UCX for UCX | ||
| 40 | $! TCPIP for TCPIP (post UCX) | ||
| 41 | $! SOCKETSHR for SOCKETSHR+NETLIB | ||
| 42 | $! | ||
| 43 | $! P5, if defined, sets a compiler thread NOT needed on OpenVMS 7.1 (and up) | ||
| 44 | $! | ||
| 45 | $! P6, if defined, sets a choice of crypto methods to compile. | ||
| 46 | $! WARNING: this should only be done to recompile some part of an already | ||
| 47 | $! fully compiled library. | ||
| 48 | $! | ||
| 49 | $! | ||
| 50 | $! Define A TCP/IP Library That We Will Need To Link To. | ||
| 51 | $! (That Is, If We Need To Link To One.) | ||
| 52 | $! | ||
| 53 | $ TCPIP_LIB = "" | ||
| 54 | $! | ||
| 55 | $! Check Which Architecture We Are Using. | ||
| 56 | $! | ||
| 57 | $ IF (F$GETSYI("CPU").GE.128) | ||
| 58 | $ THEN | ||
| 59 | $! | ||
| 60 | $! The Architecture Is AXP | ||
| 61 | $! | ||
| 62 | $ ARCH := AXP | ||
| 63 | $! | ||
| 64 | $! Else... | ||
| 65 | $! | ||
| 66 | $ ELSE | ||
| 67 | $! | ||
| 68 | $! The Architecture Is VAX. | ||
| 69 | $! | ||
| 70 | $ ARCH := VAX | ||
| 71 | $! | ||
| 72 | $! End The Architecture Check. | ||
| 73 | $! | ||
| 74 | $ ENDIF | ||
| 75 | $! | ||
| 76 | $! Define The Different Encryption Types. | ||
| 77 | $! | ||
| 78 | $ ENCRYPT_TYPES = "Basic,SHA1,RAND,DES,AES,DSA,RSA,DH" | ||
| 79 | $! | ||
| 80 | $! Check To Make Sure We Have Valid Command Line Parameters. | ||
| 81 | $! | ||
| 82 | $ GOSUB CHECK_OPTIONS | ||
| 83 | $! | ||
| 84 | $! Initialise logical names and such | ||
| 85 | $! | ||
| 86 | $ GOSUB INITIALISE | ||
| 87 | $! | ||
| 88 | $! Tell The User What Kind of Machine We Run On. | ||
| 89 | $! | ||
| 90 | $ WRITE SYS$OUTPUT "Compiling On A ",ARCH," Machine." | ||
| 91 | $! | ||
| 92 | $! Define The OBJ Directory. | ||
| 93 | $! | ||
| 94 | $ OBJ_DIR := SYS$DISK:[-.'ARCH'.OBJ.CRYPTO] | ||
| 95 | $! | ||
| 96 | $! Check To See If The Architecture Specific OBJ Directory Exists. | ||
| 97 | $! | ||
| 98 | $ IF (F$PARSE(OBJ_DIR).EQS."") | ||
| 99 | $ THEN | ||
| 100 | $! | ||
| 101 | $! It Dosen't Exist, So Create It. | ||
| 102 | $! | ||
| 103 | $ CREATE/DIR 'OBJ_DIR' | ||
| 104 | $! | ||
| 105 | $! End The Architecture Specific OBJ Directory Check. | ||
| 106 | $! | ||
| 107 | $ ENDIF | ||
| 108 | $! | ||
| 109 | $! Define The EXE Directory. | ||
| 110 | $! | ||
| 111 | $ EXE_DIR := SYS$DISK:[-.'ARCH'.EXE.CRYPTO] | ||
| 112 | $! | ||
| 113 | $! Check To See If The Architecture Specific Directory Exists. | ||
| 114 | $! | ||
| 115 | $ IF (F$PARSE(EXE_DIR).EQS."") | ||
| 116 | $ THEN | ||
| 117 | $! | ||
| 118 | $! It Dosen't Exist, So Create It. | ||
| 119 | $! | ||
| 120 | $ CREATE/DIRECTORY 'EXE_DIR' | ||
| 121 | $! | ||
| 122 | $! End The Architecture Specific Directory Check. | ||
| 123 | $! | ||
| 124 | $ ENDIF | ||
| 125 | $! | ||
| 126 | $! Define The Library Name. | ||
| 127 | $! | ||
| 128 | $ LIB_NAME := 'EXE_DIR'LIBCRYPTO.OLB | ||
| 129 | $! | ||
| 130 | $! Define The CRYPTO-LIB We Are To Use. | ||
| 131 | $! | ||
| 132 | $ CRYPTO_LIB := 'EXE_DIR'LIBCRYPTO.OLB | ||
| 133 | $! | ||
| 134 | $! Check To See If We Already Have A "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" Library... | ||
| 135 | $! | ||
| 136 | $ IF (F$SEARCH(LIB_NAME).EQS."") | ||
| 137 | $ THEN | ||
| 138 | $! | ||
| 139 | $! Guess Not, Create The Library. | ||
| 140 | $! | ||
| 141 | $ LIBRARY/CREATE/OBJECT 'LIB_NAME' | ||
| 142 | $! | ||
| 143 | $! End The Library Check. | ||
| 144 | $! | ||
| 145 | $ ENDIF | ||
| 146 | $! | ||
| 147 | $! Build our options file for the application | ||
| 148 | $! | ||
| 149 | $ GOSUB CHECK_OPT_FILE | ||
| 150 | $! | ||
| 151 | $! Define The Different Encryption "library" Strings. | ||
| 152 | $! | ||
| 153 | $ LIB_ = "fips,fips_err_wrapper" | ||
| 154 | $ LIB_SHA1 = "fips_sha1dgst,fips_sha1_selftest" | ||
| 155 | $ LIB_RAND = "fips_rand" | ||
| 156 | $ LIB_DES = "fips_des_enc,fips_des_selftest,fips_set_key" | ||
| 157 | $ LIB_AES = "fips_aes_core,fips_aes_selftest" | ||
| 158 | $ LIB_DSA = "fips_dsa_ossl,fips_dsa_gen,fips_dsa_selftest" | ||
| 159 | $ LIB_RSA = "fips_rsa_eay,fips_rsa_gen,fips_rsa_selftest" | ||
| 160 | $ LIB_DH = "fips_dh_check,fips_dh_gen,fips_dh_key" | ||
| 161 | $! | ||
| 162 | $! Setup exceptional compilations | ||
| 163 | $! | ||
| 164 | $ COMPILEWITH_CC3 = ",bss_rtcp," | ||
| 165 | $ COMPILEWITH_CC4 = ",a_utctm,bss_log,o_time," | ||
| 166 | $ COMPILEWITH_CC5 = ",md2_dgst,md4_dgst,md5_dgst,mdc2dgst," + - | ||
| 167 | "sha_dgst,sha1dgst,rmd_dgst,bf_enc," | ||
| 168 | $! | ||
| 169 | $! Figure Out What Other Modules We Are To Build. | ||
| 170 | $! | ||
| 171 | $ BUILD_SET: | ||
| 172 | $! | ||
| 173 | $! Define A Module Counter. | ||
| 174 | $! | ||
| 175 | $ MODULE_COUNTER = 0 | ||
| 176 | $! | ||
| 177 | $! Top Of The Loop. | ||
| 178 | $! | ||
| 179 | $ MODULE_NEXT: | ||
| 180 | $! | ||
| 181 | $! Extract The Module Name From The Encryption List. | ||
| 182 | $! | ||
| 183 | $ MODULE_NAME = F$ELEMENT(MODULE_COUNTER,",",ENCRYPT_TYPES) | ||
| 184 | $ IF MODULE_NAME.EQS."Basic" THEN MODULE_NAME = "" | ||
| 185 | $ MODULE_NAME1 = MODULE_NAME | ||
| 186 | $! | ||
| 187 | $! Check To See If We Are At The End Of The Module List. | ||
| 188 | $! | ||
| 189 | $ IF (MODULE_NAME.EQS.",") | ||
| 190 | $ THEN | ||
| 191 | $! | ||
| 192 | $! We Are At The End Of The Module List, Go To MODULE_DONE. | ||
| 193 | $! | ||
| 194 | $ GOTO MODULE_DONE | ||
| 195 | $! | ||
| 196 | $! End The Module List Check. | ||
| 197 | $! | ||
| 198 | $ ENDIF | ||
| 199 | $! | ||
| 200 | $! Increment The Moudle Counter. | ||
| 201 | $! | ||
| 202 | $ MODULE_COUNTER = MODULE_COUNTER + 1 | ||
| 203 | $! | ||
| 204 | $! Create The Library and Apps Module Names. | ||
| 205 | $! | ||
| 206 | $ LIB_MODULE = "LIB_" + MODULE_NAME | ||
| 207 | $ APPS_MODULE = "APPS_" + MODULE_NAME | ||
| 208 | $ IF (MODULE_NAME.EQS."ASN1_2") | ||
| 209 | $ THEN | ||
| 210 | $ MODULE_NAME = "ASN1" | ||
| 211 | $ ENDIF | ||
| 212 | $ IF (MODULE_NAME.EQS."EVP_2") | ||
| 213 | $ THEN | ||
| 214 | $ MODULE_NAME = "EVP" | ||
| 215 | $ ENDIF | ||
| 216 | $! | ||
| 217 | $! Set state (can be LIB and APPS) | ||
| 218 | $! | ||
| 219 | $ STATE = "LIB" | ||
| 220 | $ IF BUILDALL .EQS. "APPS" THEN STATE = "APPS" | ||
| 221 | $! | ||
| 222 | $! Check if the library module name actually is defined | ||
| 223 | $! | ||
| 224 | $ IF F$TYPE('LIB_MODULE') .EQS. "" | ||
| 225 | $ THEN | ||
| 226 | $ WRITE SYS$ERROR "" | ||
| 227 | $ WRITE SYS$ERROR "The module ",MODULE_NAME," does not exist. Continuing..." | ||
| 228 | $ WRITE SYS$ERROR "" | ||
| 229 | $ GOTO MODULE_NEXT | ||
| 230 | $ ENDIF | ||
| 231 | $! | ||
| 232 | $! Top Of The Module Loop. | ||
| 233 | $! | ||
| 234 | $ MODULE_AGAIN: | ||
| 235 | $! | ||
| 236 | $! Tell The User What Module We Are Building. | ||
| 237 | $! | ||
| 238 | $ IF (MODULE_NAME1.NES."") | ||
| 239 | $ THEN | ||
| 240 | $ IF STATE .EQS. "LIB" | ||
| 241 | $ THEN | ||
| 242 | $ WRITE SYS$OUTPUT "Compiling The ",MODULE_NAME1," Library Files. (",BUILDALL,",",STATE,")" | ||
| 243 | $ ELSE IF F$TYPE('APPS_MODULE') .NES. "" | ||
| 244 | $ THEN | ||
| 245 | $ WRITE SYS$OUTPUT "Compiling The ",MODULE_NAME1," Applications. (",BUILDALL,",",STATE,")" | ||
| 246 | $ ENDIF | ||
| 247 | $ ENDIF | ||
| 248 | $ ENDIF | ||
| 249 | $! | ||
| 250 | $! Define A File Counter And Set It To "0". | ||
| 251 | $! | ||
| 252 | $ FILE_COUNTER = 0 | ||
| 253 | $ APPLICATION = "" | ||
| 254 | $ APPLICATION_COUNTER = 0 | ||
| 255 | $! | ||
| 256 | $! Top Of The File Loop. | ||
| 257 | $! | ||
| 258 | $ NEXT_FILE: | ||
| 259 | $! | ||
| 260 | $! Look in the LIB_MODULE is we're in state LIB | ||
| 261 | $! | ||
| 262 | $ IF STATE .EQS. "LIB" | ||
| 263 | $ THEN | ||
| 264 | $! | ||
| 265 | $! O.K, Extract The File Name From The File List. | ||
| 266 | $! | ||
| 267 | $ FILE_NAME = F$ELEMENT(FILE_COUNTER,",",'LIB_MODULE') | ||
| 268 | $! | ||
| 269 | $! else | ||
| 270 | $! | ||
| 271 | $ ELSE | ||
| 272 | $ FILE_NAME = "," | ||
| 273 | $! | ||
| 274 | $ IF F$TYPE('APPS_MODULE') .NES. "" | ||
| 275 | $ THEN | ||
| 276 | $! | ||
| 277 | $! Extract The File Name From The File List. | ||
| 278 | $! This part is a bit more complicated. | ||
| 279 | $! | ||
| 280 | $ IF APPLICATION .EQS. "" | ||
| 281 | $ THEN | ||
| 282 | $ APPLICATION = F$ELEMENT(APPLICATION_COUNTER,";",'APPS_MODULE') | ||
| 283 | $ APPLICATION_COUNTER = APPLICATION_COUNTER + 1 | ||
| 284 | $ APPLICATION_OBJECTS = F$ELEMENT(1,"/",APPLICATION) | ||
| 285 | $ APPLICATION = F$ELEMENT(0,"/",APPLICATION) | ||
| 286 | $ FILE_COUNTER = 0 | ||
| 287 | $ ENDIF | ||
| 288 | $ | ||
| 289 | $! WRITE SYS$OUTPUT "DEBUG: SHOW SYMBOL APPLICATION*" | ||
| 290 | $! SHOW SYMBOL APPLICATION* | ||
| 291 | $! | ||
| 292 | $ IF APPLICATION .NES. ";" | ||
| 293 | $ THEN | ||
| 294 | $ FILE_NAME = F$ELEMENT(FILE_COUNTER,",",APPLICATION_OBJECTS) | ||
| 295 | $ IF FILE_NAME .EQS. "," | ||
| 296 | $ THEN | ||
| 297 | $ APPLICATION = "" | ||
| 298 | $ GOTO NEXT_FILE | ||
| 299 | $ ENDIF | ||
| 300 | $ ENDIF | ||
| 301 | $ ENDIF | ||
| 302 | $ ENDIF | ||
| 303 | $! | ||
| 304 | $! Check To See If We Are At The End Of The File List. | ||
| 305 | $! | ||
| 306 | $ IF (FILE_NAME.EQS.",") | ||
| 307 | $ THEN | ||
| 308 | $! | ||
| 309 | $! We Are At The End Of The File List, Change State Or Goto FILE_DONE. | ||
| 310 | $! | ||
| 311 | $ IF STATE .EQS. "LIB" .AND. BUILDALL .NES. "LIBRARY" | ||
| 312 | $ THEN | ||
| 313 | $ STATE = "APPS" | ||
| 314 | $ GOTO MODULE_AGAIN | ||
| 315 | $ ELSE | ||
| 316 | $ GOTO FILE_DONE | ||
| 317 | $ ENDIF | ||
| 318 | $! | ||
| 319 | $! End The File List Check. | ||
| 320 | $! | ||
| 321 | $ ENDIF | ||
| 322 | $! | ||
| 323 | $! Increment The Counter. | ||
| 324 | $! | ||
| 325 | $ FILE_COUNTER = FILE_COUNTER + 1 | ||
| 326 | $! | ||
| 327 | $! Create The Source File Name. | ||
| 328 | $! | ||
| 329 | $ TMP_FILE_NAME = F$ELEMENT(1,"]",FILE_NAME) | ||
| 330 | $ IF TMP_FILE_NAME .EQS. "]" THEN TMP_FILE_NAME = FILE_NAME | ||
| 331 | $ IF F$ELEMENT(0,".",TMP_FILE_NAME) .EQS. TMP_FILE_NAME THEN - | ||
| 332 | FILE_NAME = FILE_NAME + ".c" | ||
| 333 | $ IF (MODULE_NAME.NES."") | ||
| 334 | $ THEN | ||
| 335 | $ SOURCE_FILE = "SYS$DISK:[." + MODULE_NAME+ "]" + FILE_NAME | ||
| 336 | $ ELSE | ||
| 337 | $ SOURCE_FILE = "SYS$DISK:[]" + FILE_NAME | ||
| 338 | $ ENDIF | ||
| 339 | $ SOURCE_FILE = SOURCE_FILE - "][" | ||
| 340 | $! | ||
| 341 | $! Create The Object File Name. | ||
| 342 | $! | ||
| 343 | $ OBJECT_FILE = OBJ_DIR + F$PARSE(FILE_NAME,,,"NAME","SYNTAX_ONLY") + ".OBJ" | ||
| 344 | $ ON WARNING THEN GOTO NEXT_FILE | ||
| 345 | $! | ||
| 346 | $! Check To See If The File We Want To Compile Is Actually There. | ||
| 347 | $! | ||
| 348 | $ IF (F$SEARCH(SOURCE_FILE).EQS."") | ||
| 349 | $ THEN | ||
| 350 | $! | ||
| 351 | $! Tell The User That The File Doesn't Exist. | ||
| 352 | $! | ||
| 353 | $ WRITE SYS$OUTPUT "" | ||
| 354 | $ WRITE SYS$OUTPUT "The File ",SOURCE_FILE," Doesn't Exist." | ||
| 355 | $ WRITE SYS$OUTPUT "" | ||
| 356 | $! | ||
| 357 | $! Exit The Build. | ||
| 358 | $! | ||
| 359 | $ GOTO EXIT | ||
| 360 | $! | ||
| 361 | $! End The File Exist Check. | ||
| 362 | $! | ||
| 363 | $ ENDIF | ||
| 364 | $! | ||
| 365 | $! Tell The User We Are Compiling The File. | ||
| 366 | $! | ||
| 367 | $ IF (MODULE_NAME.EQS."") | ||
| 368 | $ THEN | ||
| 369 | $ WRITE SYS$OUTPUT "Compiling The ",FILE_NAME," File. (",BUILDALL,",",STATE,")" | ||
| 370 | $ ENDIF | ||
| 371 | $ IF (MODULE_NAME.NES."") | ||
| 372 | $ THEN | ||
| 373 | $ WRITE SYS$OUTPUT " ",FILE_NAME,"" | ||
| 374 | $ ENDIF | ||
| 375 | $! | ||
| 376 | $! Compile The File. | ||
| 377 | $! | ||
| 378 | $ ON ERROR THEN GOTO NEXT_FILE | ||
| 379 | $ FILE_NAME0 = F$ELEMENT(0,".",FILE_NAME) | ||
| 380 | $ IF FILE_NAME - ".mar" .NES. FILE_NAME | ||
| 381 | $ THEN | ||
| 382 | $ MACRO/OBJECT='OBJECT_FILE' 'SOURCE_FILE' | ||
| 383 | $ ELSE | ||
| 384 | $ IF COMPILEWITH_CC3 - FILE_NAME0 .NES. COMPILEWITH_CC3 | ||
| 385 | $ THEN | ||
| 386 | $ CC3/OBJECT='OBJECT_FILE' 'SOURCE_FILE' | ||
| 387 | $ ELSE | ||
| 388 | $ IF COMPILEWITH_CC4 - FILE_NAME0 .NES. COMPILEWITH_CC4 | ||
| 389 | $ THEN | ||
| 390 | $ CC4/OBJECT='OBJECT_FILE' 'SOURCE_FILE' | ||
| 391 | $ ELSE | ||
| 392 | $ IF COMPILEWITH_CC5 - FILE_NAME0 .NES. COMPILEWITH_CC5 | ||
| 393 | $ THEN | ||
| 394 | $ CC5/OBJECT='OBJECT_FILE' 'SOURCE_FILE' | ||
| 395 | $ ELSE | ||
| 396 | $ CC/OBJECT='OBJECT_FILE' 'SOURCE_FILE' | ||
| 397 | $ ENDIF | ||
| 398 | $ ENDIF | ||
| 399 | $ ENDIF | ||
| 400 | $ ENDIF | ||
| 401 | $ IF STATE .EQS. "LIB" | ||
| 402 | $ THEN | ||
| 403 | $! | ||
| 404 | $! Add It To The Library. | ||
| 405 | $! | ||
| 406 | $ LIBRARY/REPLACE 'LIB_NAME' 'OBJECT_FILE' | ||
| 407 | $! | ||
| 408 | $! Time To Clean Up The Object File. | ||
| 409 | $! | ||
| 410 | $ DELETE 'OBJECT_FILE';* | ||
| 411 | $ ENDIF | ||
| 412 | $! | ||
| 413 | $! Go Back And Do It Again. | ||
| 414 | $! | ||
| 415 | $ GOTO NEXT_FILE | ||
| 416 | $! | ||
| 417 | $! All Done With This Library Part. | ||
| 418 | $! | ||
| 419 | $ FILE_DONE: | ||
| 420 | $! | ||
| 421 | $! Time To Build Some Applications | ||
| 422 | $! | ||
| 423 | $ IF F$TYPE('APPS_MODULE') .NES. "" .AND. BUILDALL .NES. "LIBRARY" | ||
| 424 | $ THEN | ||
| 425 | $ APPLICATION_COUNTER = 0 | ||
| 426 | $ NEXT_APPLICATION: | ||
| 427 | $ APPLICATION = F$ELEMENT(APPLICATION_COUNTER,";",'APPS_MODULE') | ||
| 428 | $ IF APPLICATION .EQS. ";" THEN GOTO APPLICATION_DONE | ||
| 429 | $ | ||
| 430 | $ APPLICATION_COUNTER = APPLICATION_COUNTER + 1 | ||
| 431 | $ APPLICATION_OBJECTS = F$ELEMENT(1,"/",APPLICATION) | ||
| 432 | $ APPLICATION = F$ELEMENT(0,"/",APPLICATION) | ||
| 433 | $ | ||
| 434 | $! WRITE SYS$OUTPUT "DEBUG: SHOW SYMBOL APPLICATION*" | ||
| 435 | $! SHOW SYMBOL APPLICATION* | ||
| 436 | $! | ||
| 437 | $! Tell the user what happens | ||
| 438 | $! | ||
| 439 | $ WRITE SYS$OUTPUT " ",APPLICATION,".exe" | ||
| 440 | $! | ||
| 441 | $! Link The Program. | ||
| 442 | $! | ||
| 443 | $ ON ERROR THEN GOTO NEXT_APPLICATION | ||
| 444 | $! | ||
| 445 | $! Check To See If We Are To Link With A Specific TCP/IP Library. | ||
| 446 | $! | ||
| 447 | $ IF (TCPIP_LIB.NES."") | ||
| 448 | $ THEN | ||
| 449 | $! | ||
| 450 | $! Link With A TCP/IP Library. | ||
| 451 | $! | ||
| 452 | $ LINK/'DEBUGGER'/'TRACEBACK'/EXE='EXE_DIR''APPLICATION'.EXE - | ||
| 453 | 'OBJ_DIR''APPLICATION_OBJECTS', - | ||
| 454 | 'CRYPTO_LIB'/LIBRARY, - | ||
| 455 | 'TCPIP_LIB','OPT_FILE'/OPTION | ||
| 456 | $! | ||
| 457 | $! Else... | ||
| 458 | $! | ||
| 459 | $ ELSE | ||
| 460 | $! | ||
| 461 | $! Don't Link With A TCP/IP Library. | ||
| 462 | $! | ||
| 463 | $ LINK/'DEBUGGER'/'TRACEBACK'/EXE='EXE_DIR''APPLICATION'.EXE - | ||
| 464 | 'OBJ_DIR''APPLICATION_OBJECTS',- | ||
| 465 | 'CRYPTO_LIB'/LIBRARY, - | ||
| 466 | 'OPT_FILE'/OPTION | ||
| 467 | $! | ||
| 468 | $! End The TCP/IP Library Check. | ||
| 469 | $! | ||
| 470 | $ ENDIF | ||
| 471 | $ GOTO NEXT_APPLICATION | ||
| 472 | $ APPLICATION_DONE: | ||
| 473 | $ ENDIF | ||
| 474 | $! | ||
| 475 | $! Go Back And Get The Next Module. | ||
| 476 | $! | ||
| 477 | $ GOTO MODULE_NEXT | ||
| 478 | $! | ||
| 479 | $! All Done With This Module. | ||
| 480 | $! | ||
| 481 | $ MODULE_DONE: | ||
| 482 | $! | ||
| 483 | $! Tell The User That We Are All Done. | ||
| 484 | $! | ||
| 485 | $ WRITE SYS$OUTPUT "All Done..." | ||
| 486 | $ EXIT: | ||
| 487 | $ GOSUB CLEANUP | ||
| 488 | $ EXIT | ||
| 489 | $! | ||
| 490 | $! Check For The Link Option FIle. | ||
| 491 | $! | ||
| 492 | $ CHECK_OPT_FILE: | ||
| 493 | $! | ||
| 494 | $! Check To See If We Need To Make A VAX C Option File. | ||
| 495 | $! | ||
| 496 | $ IF (COMPILER.EQS."VAXC") | ||
| 497 | $ THEN | ||
| 498 | $! | ||
| 499 | $! Check To See If We Already Have A VAX C Linker Option File. | ||
| 500 | $! | ||
| 501 | $ IF (F$SEARCH(OPT_FILE).EQS."") | ||
| 502 | $ THEN | ||
| 503 | $! | ||
| 504 | $! We Need A VAX C Linker Option File. | ||
| 505 | $! | ||
| 506 | $ CREATE 'OPT_FILE' | ||
| 507 | $DECK | ||
| 508 | ! | ||
| 509 | ! Default System Options File To Link Agianst | ||
| 510 | ! The Sharable VAX C Runtime Library. | ||
| 511 | ! | ||
| 512 | SYS$SHARE:VAXCRTL.EXE/SHARE | ||
| 513 | $EOD | ||
| 514 | $! | ||
| 515 | $! End The Option File Check. | ||
| 516 | $! | ||
| 517 | $ ENDIF | ||
| 518 | $! | ||
| 519 | $! End The VAXC Check. | ||
| 520 | $! | ||
| 521 | $ ENDIF | ||
| 522 | $! | ||
| 523 | $! Check To See If We Need A GNU C Option File. | ||
| 524 | $! | ||
| 525 | $ IF (COMPILER.EQS."GNUC") | ||
| 526 | $ THEN | ||
| 527 | $! | ||
| 528 | $! Check To See If We Already Have A GNU C Linker Option File. | ||
| 529 | $! | ||
| 530 | $ IF (F$SEARCH(OPT_FILE).EQS."") | ||
| 531 | $ THEN | ||
| 532 | $! | ||
| 533 | $! We Need A GNU C Linker Option File. | ||
| 534 | $! | ||
| 535 | $ CREATE 'OPT_FILE' | ||
| 536 | $DECK | ||
| 537 | ! | ||
| 538 | ! Default System Options File To Link Agianst | ||
| 539 | ! The Sharable C Runtime Library. | ||
| 540 | ! | ||
| 541 | GNU_CC:[000000]GCCLIB/LIBRARY | ||
| 542 | SYS$SHARE:VAXCRTL/SHARE | ||
| 543 | $EOD | ||
| 544 | $! | ||
| 545 | $! End The Option File Check. | ||
| 546 | $! | ||
| 547 | $ ENDIF | ||
| 548 | $! | ||
| 549 | $! End The GNU C Check. | ||
| 550 | $! | ||
| 551 | $ ENDIF | ||
| 552 | $! | ||
| 553 | $! Check To See If We Need A DEC C Option File. | ||
| 554 | $! | ||
| 555 | $ IF (COMPILER.EQS."DECC") | ||
| 556 | $ THEN | ||
| 557 | $! | ||
| 558 | $! Check To See If We Already Have A DEC C Linker Option File. | ||
| 559 | $! | ||
| 560 | $ IF (F$SEARCH(OPT_FILE).EQS."") | ||
| 561 | $ THEN | ||
| 562 | $! | ||
| 563 | $! Figure Out If We Need An AXP Or A VAX Linker Option File. | ||
| 564 | $! | ||
| 565 | $ IF ARCH .EQS. "VAX" | ||
| 566 | $ THEN | ||
| 567 | $! | ||
| 568 | $! We Need A DEC C Linker Option File For VAX. | ||
| 569 | $! | ||
| 570 | $ CREATE 'OPT_FILE' | ||
| 571 | $DECK | ||
| 572 | ! | ||
| 573 | ! Default System Options File To Link Agianst | ||
| 574 | ! The Sharable DEC C Runtime Library. | ||
| 575 | ! | ||
| 576 | SYS$SHARE:DECC$SHR.EXE/SHARE | ||
| 577 | $EOD | ||
| 578 | $! | ||
| 579 | $! Else... | ||
| 580 | $! | ||
| 581 | $ ELSE | ||
| 582 | $! | ||
| 583 | $! Create The AXP Linker Option File. | ||
| 584 | $! | ||
| 585 | $ CREATE 'OPT_FILE' | ||
| 586 | $DECK | ||
| 587 | ! | ||
| 588 | ! Default System Options File For AXP To Link Agianst | ||
| 589 | ! The Sharable C Runtime Library. | ||
| 590 | ! | ||
| 591 | SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE | ||
| 592 | SYS$SHARE:CMA$OPEN_RTL/SHARE | ||
| 593 | $EOD | ||
| 594 | $! | ||
| 595 | $! End The VAX/AXP DEC C Option File Check. | ||
| 596 | $! | ||
| 597 | $ ENDIF | ||
| 598 | $! | ||
| 599 | $! End The Option File Search. | ||
| 600 | $! | ||
| 601 | $ ENDIF | ||
| 602 | $! | ||
| 603 | $! End The DEC C Check. | ||
| 604 | $! | ||
| 605 | $ ENDIF | ||
| 606 | $! | ||
| 607 | $! Tell The User What Linker Option File We Are Using. | ||
| 608 | $! | ||
| 609 | $ WRITE SYS$OUTPUT "Using Linker Option File ",OPT_FILE,"." | ||
| 610 | $! | ||
| 611 | $! Time To RETURN. | ||
| 612 | $! | ||
| 613 | $ RETURN | ||
| 614 | $! | ||
| 615 | $! Check The User's Options. | ||
| 616 | $! | ||
| 617 | $ CHECK_OPTIONS: | ||
| 618 | $! | ||
| 619 | $! Check To See If P1 Is Blank. | ||
| 620 | $! | ||
| 621 | $ IF (P1.EQS."ALL") | ||
| 622 | $ THEN | ||
| 623 | $! | ||
| 624 | $! P1 Is Blank, So Build Everything. | ||
| 625 | $! | ||
| 626 | $ BUILDALL = "TRUE" | ||
| 627 | $! | ||
| 628 | $! Else... | ||
| 629 | $! | ||
| 630 | $ ELSE | ||
| 631 | $! | ||
| 632 | $! Else, Check To See If P1 Has A Valid Arguement. | ||
| 633 | $! | ||
| 634 | $ IF (P1.EQS."LIBRARY").OR.(P1.EQS."APPS") | ||
| 635 | $ THEN | ||
| 636 | $! | ||
| 637 | $! A Valid Arguement. | ||
| 638 | $! | ||
| 639 | $ BUILDALL = P1 | ||
| 640 | $! | ||
| 641 | $! Else... | ||
| 642 | $! | ||
| 643 | $ ELSE | ||
| 644 | $! | ||
| 645 | $! Tell The User We Don't Know What They Want. | ||
| 646 | $! | ||
| 647 | $ WRITE SYS$OUTPUT "" | ||
| 648 | $ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:" | ||
| 649 | $ WRITE SYS$OUTPUT "" | ||
| 650 | $ WRITE SYS$OUTPUT " ALL : Just Build Everything." | ||
| 651 | $ WRITE SYS$OUTPUT " LIBRARY : To Compile Just The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library." | ||
| 652 | $ WRITE SYS$OUTPUT " APPS : To Compile Just The [.xxx.EXE.CRYPTO]*.EXE Programs." | ||
| 653 | $ WRITE SYS$OUTPUT "" | ||
| 654 | $ WRITE SYS$OUTPUT " Where 'xxx' Stands For:" | ||
| 655 | $ WRITE SYS$OUTPUT "" | ||
| 656 | $ WRITE SYS$OUTPUT " AXP : Alpha Architecture." | ||
| 657 | $ WRITE SYS$OUTPUT " VAX : VAX Architecture." | ||
| 658 | $ WRITE SYS$OUTPUT "" | ||
| 659 | $! | ||
| 660 | $! Time To EXIT. | ||
| 661 | $! | ||
| 662 | $ EXIT | ||
| 663 | $! | ||
| 664 | $! End The Valid Arguement Check. | ||
| 665 | $! | ||
| 666 | $ ENDIF | ||
| 667 | $! | ||
| 668 | $! End The P1 Check. | ||
| 669 | $! | ||
| 670 | $ ENDIF | ||
| 671 | $! | ||
| 672 | $! Check To See If P2 Is Blank. | ||
| 673 | $! | ||
| 674 | $ IF (P2.EQS."NODEBUG") | ||
| 675 | $ THEN | ||
| 676 | $! | ||
| 677 | $! P2 Is NODEBUG, So Compile Without The Debugger Information. | ||
| 678 | $! | ||
| 679 | $ DEBUGGER = "NODEBUG" | ||
| 680 | $ TRACEBACK = "NOTRACEBACK" | ||
| 681 | $ GCC_OPTIMIZE = "OPTIMIZE" | ||
| 682 | $ CC_OPTIMIZE = "OPTIMIZE" | ||
| 683 | $ MACRO_OPTIMIZE = "OPTIMIZE" | ||
| 684 | $ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile." | ||
| 685 | $ WRITE SYS$OUTPUT "Compiling With Compiler Optimization." | ||
| 686 | $ ELSE | ||
| 687 | $! | ||
| 688 | $! Check To See If We Are To Compile With Debugger Information. | ||
| 689 | $! | ||
| 690 | $ IF (P2.EQS."DEBUG") | ||
| 691 | $ THEN | ||
| 692 | $! | ||
| 693 | $! Compile With Debugger Information. | ||
| 694 | $! | ||
| 695 | $ DEBUGGER = "DEBUG" | ||
| 696 | $ TRACEBACK = "TRACEBACK" | ||
| 697 | $ GCC_OPTIMIZE = "NOOPTIMIZE" | ||
| 698 | $ CC_OPTIMIZE = "NOOPTIMIZE" | ||
| 699 | $ MACRO_OPTIMIZE = "NOOPTIMIZE" | ||
| 700 | $ WRITE SYS$OUTPUT "Debugger Information Will Be Produced During Compile." | ||
| 701 | $ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization." | ||
| 702 | $ ELSE | ||
| 703 | $! | ||
| 704 | $! They Entered An Invalid Option.. | ||
| 705 | $! | ||
| 706 | $ WRITE SYS$OUTPUT "" | ||
| 707 | $ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:" | ||
| 708 | $ WRITE SYS$OUTPUT "" | ||
| 709 | $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information." | ||
| 710 | $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information." | ||
| 711 | $ WRITE SYS$OUTPUT "" | ||
| 712 | $! | ||
| 713 | $! Time To EXIT. | ||
| 714 | $! | ||
| 715 | $ EXIT | ||
| 716 | $! | ||
| 717 | $! End The Valid Arguement Check. | ||
| 718 | $! | ||
| 719 | $ ENDIF | ||
| 720 | $! | ||
| 721 | $! End The P2 Check. | ||
| 722 | $! | ||
| 723 | $ ENDIF | ||
| 724 | $! | ||
| 725 | $! Special Threads For OpenVMS v7.1 Or Later | ||
| 726 | $! | ||
| 727 | $! Written By: Richard Levitte | ||
| 728 | $! richard@levitte.org | ||
| 729 | $! | ||
| 730 | $! | ||
| 731 | $! Check To See If We Have A Option For P5. | ||
| 732 | $! | ||
| 733 | $ IF (P5.EQS."") | ||
| 734 | $ THEN | ||
| 735 | $! | ||
| 736 | $! Get The Version Of VMS We Are Using. | ||
| 737 | $! | ||
| 738 | $ ISSEVEN := | ||
| 739 | $ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,F$GETSYI("VERSION"))) | ||
| 740 | $ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP)) | ||
| 741 | $! | ||
| 742 | $! Check To See If The VMS Version Is v7.1 Or Later. | ||
| 743 | $! | ||
| 744 | $ IF (TMP.GE.71) | ||
| 745 | $ THEN | ||
| 746 | $! | ||
| 747 | $! We Have OpenVMS v7.1 Or Later, So Use The Special Threads. | ||
| 748 | $! | ||
| 749 | $ ISSEVEN := ,PTHREAD_USE_D4 | ||
| 750 | $! | ||
| 751 | $! End The VMS Version Check. | ||
| 752 | $! | ||
| 753 | $ ENDIF | ||
| 754 | $! | ||
| 755 | $! End The P5 Check. | ||
| 756 | $! | ||
| 757 | $ ENDIF | ||
| 758 | $! | ||
| 759 | $! Check To See If P3 Is Blank. | ||
| 760 | $! | ||
| 761 | $ IF (P3.EQS."") | ||
| 762 | $ THEN | ||
| 763 | $! | ||
| 764 | $! O.K., The User Didn't Specify A Compiler, Let's Try To | ||
| 765 | $! Find Out Which One To Use. | ||
| 766 | $! | ||
| 767 | $! Check To See If We Have GNU C. | ||
| 768 | $! | ||
| 769 | $ IF (F$TRNLNM("GNU_CC").NES."") | ||
| 770 | $ THEN | ||
| 771 | $! | ||
| 772 | $! Looks Like GNUC, Set To Use GNUC. | ||
| 773 | $! | ||
| 774 | $ P3 = "GNUC" | ||
| 775 | $! | ||
| 776 | $! Else... | ||
| 777 | $! | ||
| 778 | $ ELSE | ||
| 779 | $! | ||
| 780 | $! Check To See If We Have VAXC Or DECC. | ||
| 781 | $! | ||
| 782 | $ IF (ARCH.EQS."AXP").OR.(F$TRNLNM("DECC$CC_DEFAULT").NES."") | ||
| 783 | $ THEN | ||
| 784 | $! | ||
| 785 | $! Looks Like DECC, Set To Use DECC. | ||
| 786 | $! | ||
| 787 | $ P3 = "DECC" | ||
| 788 | $! | ||
| 789 | $! Else... | ||
| 790 | $! | ||
| 791 | $ ELSE | ||
| 792 | $! | ||
| 793 | $! Looks Like VAXC, Set To Use VAXC. | ||
| 794 | $! | ||
| 795 | $ P3 = "VAXC" | ||
| 796 | $! | ||
| 797 | $! End The VAXC Compiler Check. | ||
| 798 | $! | ||
| 799 | $ ENDIF | ||
| 800 | $! | ||
| 801 | $! End The DECC & VAXC Compiler Check. | ||
| 802 | $! | ||
| 803 | $ ENDIF | ||
| 804 | $! | ||
| 805 | $! End The Compiler Check. | ||
| 806 | $! | ||
| 807 | $ ENDIF | ||
| 808 | $! | ||
| 809 | $! Check To See If We Have A Option For P4. | ||
| 810 | $! | ||
| 811 | $ IF (P4.EQS."") | ||
| 812 | $ THEN | ||
| 813 | $! | ||
| 814 | $! Find out what socket library we have available | ||
| 815 | $! | ||
| 816 | $ IF F$PARSE("SOCKETSHR:") .NES. "" | ||
| 817 | $ THEN | ||
| 818 | $! | ||
| 819 | $! We have SOCKETSHR, and it is my opinion that it's the best to use. | ||
| 820 | $! | ||
| 821 | $ P4 = "SOCKETSHR" | ||
| 822 | $! | ||
| 823 | $! Tell the user | ||
| 824 | $! | ||
| 825 | $ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP" | ||
| 826 | $! | ||
| 827 | $! Else, let's look for something else | ||
| 828 | $! | ||
| 829 | $ ELSE | ||
| 830 | $! | ||
| 831 | $! Like UCX (the reason to do this before Multinet is that the UCX | ||
| 832 | $! emulation is easier to use...) | ||
| 833 | $! | ||
| 834 | $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" - | ||
| 835 | .OR. F$PARSE("SYS$SHARE:UCX$IPC_SHR.EXE") .NES. "" - | ||
| 836 | .OR. F$PARSE("SYS$LIBRARY:UCX$IPC.OLB") .NES. "" | ||
| 837 | $ THEN | ||
| 838 | $! | ||
| 839 | $! Last resort: a UCX or UCX-compatible library | ||
| 840 | $! | ||
| 841 | $ P4 = "UCX" | ||
| 842 | $! | ||
| 843 | $! Tell the user | ||
| 844 | $! | ||
| 845 | $ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP" | ||
| 846 | $! | ||
| 847 | $! That was all... | ||
| 848 | $! | ||
| 849 | $ ENDIF | ||
| 850 | $ ENDIF | ||
| 851 | $ ENDIF | ||
| 852 | $! | ||
| 853 | $! Set Up Initial CC Definitions, Possibly With User Ones | ||
| 854 | $! | ||
| 855 | $ CCDEFS = "TCPIP_TYPE_''P4',DSO_VMS" | ||
| 856 | $ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS | ||
| 857 | $ CCEXTRAFLAGS = "" | ||
| 858 | $ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS | ||
| 859 | $ CCDISABLEWARNINGS = "LONGLONGTYPE,LONGLONGSUFX" | ||
| 860 | $ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN - | ||
| 861 | CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS | ||
| 862 | $! | ||
| 863 | $! Check To See If The User Entered A Valid Paramter. | ||
| 864 | $! | ||
| 865 | $ IF (P3.EQS."VAXC").OR.(P3.EQS."DECC").OR.(P3.EQS."GNUC") | ||
| 866 | $ THEN | ||
| 867 | $! | ||
| 868 | $! Check To See If The User Wanted DECC. | ||
| 869 | $! | ||
| 870 | $ IF (P3.EQS."DECC") | ||
| 871 | $ THEN | ||
| 872 | $! | ||
| 873 | $! Looks Like DECC, Set To Use DECC. | ||
| 874 | $! | ||
| 875 | $ COMPILER = "DECC" | ||
| 876 | $! | ||
| 877 | $! Tell The User We Are Using DECC. | ||
| 878 | $! | ||
| 879 | $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler." | ||
| 880 | $! | ||
| 881 | $! Use DECC... | ||
| 882 | $! | ||
| 883 | $ CC = "CC" | ||
| 884 | $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" - | ||
| 885 | THEN CC = "CC/DECC" | ||
| 886 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + - | ||
| 887 | "/NOLIST/PREFIX=ALL" + - | ||
| 888 | "/INCLUDE=(SYS$DISK:[],SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + - | ||
| 889 | CCEXTRAFLAGS | ||
| 890 | $! | ||
| 891 | $! Define The Linker Options File Name. | ||
| 892 | $! | ||
| 893 | $ OPT_FILE = "SYS$DISK:[]VAX_DECC_OPTIONS.OPT" | ||
| 894 | $! | ||
| 895 | $! End DECC Check. | ||
| 896 | $! | ||
| 897 | $ ENDIF | ||
| 898 | $! | ||
| 899 | $! Check To See If We Are To Use VAXC. | ||
| 900 | $! | ||
| 901 | $ IF (P3.EQS."VAXC") | ||
| 902 | $ THEN | ||
| 903 | $! | ||
| 904 | $! Looks Like VAXC, Set To Use VAXC. | ||
| 905 | $! | ||
| 906 | $ COMPILER = "VAXC" | ||
| 907 | $! | ||
| 908 | $! Tell The User We Are Using VAX C. | ||
| 909 | $! | ||
| 910 | $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler." | ||
| 911 | $! | ||
| 912 | $! Compile Using VAXC. | ||
| 913 | $! | ||
| 914 | $ CC = "CC" | ||
| 915 | $ IF ARCH.EQS."AXP" | ||
| 916 | $ THEN | ||
| 917 | $ WRITE SYS$OUTPUT "There is no VAX C on Alpha!" | ||
| 918 | $ EXIT | ||
| 919 | $ ENDIF | ||
| 920 | $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC" | ||
| 921 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - | ||
| 922 | "/INCLUDE=(SYS$DISK:[],SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + - | ||
| 923 | CCEXTRAFLAGS | ||
| 924 | $ CCDEFS = """VAXC""," + CCDEFS | ||
| 925 | $! | ||
| 926 | $! Define <sys> As SYS$COMMON:[SYSLIB] | ||
| 927 | $! | ||
| 928 | $ DEFINE/NOLOG SYS SYS$COMMON:[SYSLIB] | ||
| 929 | $! | ||
| 930 | $! Define The Linker Options File Name. | ||
| 931 | $! | ||
| 932 | $ OPT_FILE = "SYS$DISK:[]VAX_VAXC_OPTIONS.OPT" | ||
| 933 | $! | ||
| 934 | $! End VAXC Check | ||
| 935 | $! | ||
| 936 | $ ENDIF | ||
| 937 | $! | ||
| 938 | $! Check To See If We Are To Use GNU C. | ||
| 939 | $! | ||
| 940 | $ IF (P3.EQS."GNUC") | ||
| 941 | $ THEN | ||
| 942 | $! | ||
| 943 | $! Looks Like GNUC, Set To Use GNUC. | ||
| 944 | $! | ||
| 945 | $ COMPILER = "GNUC" | ||
| 946 | $! | ||
| 947 | $! Tell The User We Are Using GNUC. | ||
| 948 | $! | ||
| 949 | $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler." | ||
| 950 | $! | ||
| 951 | $! Use GNU C... | ||
| 952 | $! | ||
| 953 | $ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - | ||
| 954 | "/INCLUDE=(SYS$DISK:[],SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + - | ||
| 955 | CCEXTRAFLAGS | ||
| 956 | $! | ||
| 957 | $! Define The Linker Options File Name. | ||
| 958 | $! | ||
| 959 | $ OPT_FILE = "SYS$DISK:[]VAX_GNUC_OPTIONS.OPT" | ||
| 960 | $! | ||
| 961 | $! End The GNU C Check. | ||
| 962 | $! | ||
| 963 | $ ENDIF | ||
| 964 | $! | ||
| 965 | $! Set up default defines | ||
| 966 | $! | ||
| 967 | $ CCDEFS = """FLAT_INC=1""," + CCDEFS | ||
| 968 | $! | ||
| 969 | $! Finish up the definition of CC. | ||
| 970 | $! | ||
| 971 | $ IF COMPILER .EQS. "DECC" | ||
| 972 | $ THEN | ||
| 973 | $ IF CCDISABLEWARNINGS .EQS. "" | ||
| 974 | $ THEN | ||
| 975 | $ CC4DISABLEWARNINGS = "DOLLARID" | ||
| 976 | $ ELSE | ||
| 977 | $ CC4DISABLEWARNINGS = CCDISABLEWARNINGS + ",DOLLARID" | ||
| 978 | $ CCDISABLEWARNINGS = "/WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))" | ||
| 979 | $ ENDIF | ||
| 980 | $ CC4DISABLEWARNINGS = "/WARNING=(DISABLE=(" + CC4DISABLEWARNINGS + "))" | ||
| 981 | $ ELSE | ||
| 982 | $ CCDISABLEWARNINGS = "" | ||
| 983 | $ CC4DISABLEWARNINGS = "" | ||
| 984 | $ ENDIF | ||
| 985 | $ CC3 = CC + "/DEFINE=(" + CCDEFS + ISSEVEN + ")" + CCDISABLEWARNINGS | ||
| 986 | $ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS | ||
| 987 | $ IF ARCH .EQS. "VAX" .AND. COMPILER .EQS. "DECC" .AND. P2 .NES. "DEBUG" | ||
| 988 | $ THEN | ||
| 989 | $ CC5 = CC + "/OPTIMIZE=NODISJOINT" | ||
| 990 | $ ELSE | ||
| 991 | $ CC5 = CC + "/NOOPTIMIZE" | ||
| 992 | $ ENDIF | ||
| 993 | $ CC4 = CC - CCDISABLEWARNINGS + CC4DISABLEWARNINGS | ||
| 994 | $! | ||
| 995 | $! Show user the result | ||
| 996 | $! | ||
| 997 | $ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC | ||
| 998 | $! | ||
| 999 | $! Else The User Entered An Invalid Arguement. | ||
| 1000 | $! | ||
| 1001 | $ ELSE | ||
| 1002 | $! | ||
| 1003 | $! Tell The User We Don't Know What They Want. | ||
| 1004 | $! | ||
| 1005 | $ WRITE SYS$OUTPUT "" | ||
| 1006 | $ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Options Are:" | ||
| 1007 | $ WRITE SYS$OUTPUT "" | ||
| 1008 | $ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C." | ||
| 1009 | $ WRITE SYS$OUTPUT " DECC : To Compile With DEC C." | ||
| 1010 | $ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C." | ||
| 1011 | $ WRITE SYS$OUTPUT "" | ||
| 1012 | $! | ||
| 1013 | $! Time To EXIT. | ||
| 1014 | $! | ||
| 1015 | $ EXIT | ||
| 1016 | $! | ||
| 1017 | $! End The Valid Arguement Check. | ||
| 1018 | $! | ||
| 1019 | $ ENDIF | ||
| 1020 | $! | ||
| 1021 | $! Build a MACRO command for the architecture at hand | ||
| 1022 | $! | ||
| 1023 | $ IF ARCH .EQS. "VAX" THEN MACRO = "MACRO/''DEBUGGER'" | ||
| 1024 | $ IF ARCH .EQS. "AXP" THEN MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE'" | ||
| 1025 | $! | ||
| 1026 | $! Show user the result | ||
| 1027 | $! | ||
| 1028 | $ WRITE/SYMBOL SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO | ||
| 1029 | $! | ||
| 1030 | $! Time to check the contents, and to make sure we get the correct library. | ||
| 1031 | $! | ||
| 1032 | $ IF P4.EQS."SOCKETSHR" .OR. P4.EQS."MULTINET" .OR. P4.EQS."UCX" - | ||
| 1033 | .OR. P4.EQS."TCPIP" .OR. P4.EQS."NONE" | ||
| 1034 | $ THEN | ||
| 1035 | $! | ||
| 1036 | $! Check to see if SOCKETSHR was chosen | ||
| 1037 | $! | ||
| 1038 | $ IF P4.EQS."SOCKETSHR" | ||
| 1039 | $ THEN | ||
| 1040 | $! | ||
| 1041 | $! Set the library to use SOCKETSHR | ||
| 1042 | $! | ||
| 1043 | $ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT/OPT" | ||
| 1044 | $! | ||
| 1045 | $! Done with SOCKETSHR | ||
| 1046 | $! | ||
| 1047 | $ ENDIF | ||
| 1048 | $! | ||
| 1049 | $! Check to see if MULTINET was chosen | ||
| 1050 | $! | ||
| 1051 | $ IF P4.EQS."MULTINET" | ||
| 1052 | $ THEN | ||
| 1053 | $! | ||
| 1054 | $! Set the library to use UCX emulation. | ||
| 1055 | $! | ||
| 1056 | $ P4 = "UCX" | ||
| 1057 | $! | ||
| 1058 | $! Done with MULTINET | ||
| 1059 | $! | ||
| 1060 | $ ENDIF | ||
| 1061 | $! | ||
| 1062 | $! Check to see if UCX was chosen | ||
| 1063 | $! | ||
| 1064 | $ IF P4.EQS."UCX" | ||
| 1065 | $ THEN | ||
| 1066 | $! | ||
| 1067 | $! Set the library to use UCX. | ||
| 1068 | $! | ||
| 1069 | $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT/OPT" | ||
| 1070 | $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" | ||
| 1071 | $ THEN | ||
| 1072 | $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT/OPT" | ||
| 1073 | $ ELSE | ||
| 1074 | $ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN - | ||
| 1075 | TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT/OPT" | ||
| 1076 | $ ENDIF | ||
| 1077 | $! | ||
| 1078 | $! Done with UCX | ||
| 1079 | $! | ||
| 1080 | $ ENDIF | ||
| 1081 | $! | ||
| 1082 | $! Check to see if TCPIP was chosen | ||
| 1083 | $! | ||
| 1084 | $ IF P4.EQS."TCPIP" | ||
| 1085 | $ THEN | ||
| 1086 | $! | ||
| 1087 | $! Set the library to use TCPIP (post UCX). | ||
| 1088 | $! | ||
| 1089 | $ TCPIP_LIB = "SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT/OPT" | ||
| 1090 | $! | ||
| 1091 | $! Done with TCPIP | ||
| 1092 | $! | ||
| 1093 | $ ENDIF | ||
| 1094 | $! | ||
| 1095 | $! Check to see if NONE was chosen | ||
| 1096 | $! | ||
| 1097 | $ IF P4.EQS."NONE" | ||
| 1098 | $ THEN | ||
| 1099 | $! | ||
| 1100 | $! Do not use a TCPIP library. | ||
| 1101 | $! | ||
| 1102 | $ TCPIP_LIB = "" | ||
| 1103 | $! | ||
| 1104 | $! Done with TCPIP | ||
| 1105 | $! | ||
| 1106 | $ ENDIF | ||
| 1107 | $! | ||
| 1108 | $! Print info | ||
| 1109 | $! | ||
| 1110 | $ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB | ||
| 1111 | $! | ||
| 1112 | $! Else The User Entered An Invalid Arguement. | ||
| 1113 | $! | ||
| 1114 | $ ELSE | ||
| 1115 | $! | ||
| 1116 | $! Tell The User We Don't Know What They Want. | ||
| 1117 | $! | ||
| 1118 | $ WRITE SYS$OUTPUT "" | ||
| 1119 | $ WRITE SYS$OUTPUT "The Option ",P4," Is Invalid. The Valid Options Are:" | ||
| 1120 | $ WRITE SYS$OUTPUT "" | ||
| 1121 | $ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library." | ||
| 1122 | $ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library." | ||
| 1123 | $ WRITE SYS$OUTPUT " TCPIP : To link with TCPIP (post UCX) TCP/IP library." | ||
| 1124 | $ WRITE SYS$OUTPUT "" | ||
| 1125 | $! | ||
| 1126 | $! Time To EXIT. | ||
| 1127 | $! | ||
| 1128 | $ EXIT | ||
| 1129 | $! | ||
| 1130 | $! Done with TCP/IP libraries | ||
| 1131 | $! | ||
| 1132 | $ ENDIF | ||
| 1133 | $! | ||
| 1134 | $! Check if the user wanted to compile just a subset of all the encryption | ||
| 1135 | $! methods. | ||
| 1136 | $! | ||
| 1137 | $ IF P6 .NES. "" | ||
| 1138 | $ THEN | ||
| 1139 | $ ENCRYPT_TYPES = P6 | ||
| 1140 | $ ENDIF | ||
| 1141 | $! | ||
| 1142 | $! Time To RETURN... | ||
| 1143 | $! | ||
| 1144 | $ RETURN | ||
| 1145 | $! | ||
| 1146 | $ INITIALISE: | ||
| 1147 | $! | ||
| 1148 | $! Save old value of the logical name OPENSSL | ||
| 1149 | $! | ||
| 1150 | $ __SAVE_OPENSSL = F$TRNLNM("OPENSSL","LNM$PROCESS_TABLE") | ||
| 1151 | $! | ||
| 1152 | $! Save directory information | ||
| 1153 | $! | ||
| 1154 | $ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;" | ||
| 1155 | $ __HERE = F$EDIT(__HERE,"UPCASE") | ||
| 1156 | $ __TOP = __HERE - "FIPS]" | ||
| 1157 | $ __INCLUDE = __TOP + "INCLUDE.OPENSSL]" | ||
| 1158 | $! | ||
| 1159 | $! Set up the logical name OPENSSL to point at the include directory | ||
| 1160 | $! | ||
| 1161 | $ DEFINE OPENSSL/NOLOG '__INCLUDE' | ||
| 1162 | $! | ||
| 1163 | $! Done | ||
| 1164 | $! | ||
| 1165 | $ RETURN | ||
| 1166 | $! | ||
| 1167 | $ CLEANUP: | ||
| 1168 | $! | ||
| 1169 | $! Restore the logical name OPENSSL if it had a value | ||
| 1170 | $! | ||
| 1171 | $ IF __SAVE_OPENSSL .EQS. "" | ||
| 1172 | $ THEN | ||
| 1173 | $ DEASSIGN OPENSSL | ||
| 1174 | $ ELSE | ||
| 1175 | $ DEFINE/NOLOG OPENSSL '__SAVE_OPENSSL' | ||
| 1176 | $ ENDIF | ||
| 1177 | $! | ||
| 1178 | $! Done | ||
| 1179 | $! | ||
| 1180 | $ RETURN | ||
diff --git a/src/lib/libssl/src/fips/fips.c b/src/lib/libssl/src/fips/fips.c new file mode 100644 index 0000000000..7ecba57f70 --- /dev/null +++ b/src/lib/libssl/src/fips/fips.c | |||
| @@ -0,0 +1,260 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #include <openssl/fips.h> | ||
| 51 | #include <openssl/rand.h> | ||
| 52 | #include <openssl/fips_rand.h> | ||
| 53 | #include <openssl/err.h> | ||
| 54 | #include <openssl/bio.h> | ||
| 55 | #include <openssl/hmac.h> | ||
| 56 | #include <string.h> | ||
| 57 | #include <limits.h> | ||
| 58 | #include "fips_locl.h" | ||
| 59 | |||
| 60 | #ifdef OPENSSL_FIPS | ||
| 61 | |||
| 62 | #ifndef PATH_MAX | ||
| 63 | #define PATH_MAX 1024 | ||
| 64 | #endif | ||
| 65 | |||
| 66 | static int fips_md5_allowed = 0; | ||
| 67 | static int fips_selftest_fail = 0; | ||
| 68 | |||
| 69 | void FIPS_allow_md5(int onoff) | ||
| 70 | { | ||
| 71 | if (fips_is_started()) | ||
| 72 | { | ||
| 73 | int owning_thread = fips_is_owning_thread(); | ||
| 74 | |||
| 75 | if (!owning_thread) CRYPTO_w_lock(CRYPTO_LOCK_FIPS); | ||
| 76 | fips_md5_allowed = onoff; | ||
| 77 | if (!owning_thread) CRYPTO_w_unlock(CRYPTO_LOCK_FIPS); | ||
| 78 | } | ||
| 79 | } | ||
| 80 | |||
| 81 | int FIPS_md5_allowed(void) | ||
| 82 | { | ||
| 83 | int ret = 1; | ||
| 84 | if (fips_is_started()) | ||
| 85 | { | ||
| 86 | int owning_thread = fips_is_owning_thread(); | ||
| 87 | |||
| 88 | if (!owning_thread) CRYPTO_r_lock(CRYPTO_LOCK_FIPS); | ||
| 89 | ret = fips_md5_allowed; | ||
| 90 | if (!owning_thread) CRYPTO_r_unlock(CRYPTO_LOCK_FIPS); | ||
| 91 | } | ||
| 92 | return ret; | ||
| 93 | } | ||
| 94 | |||
| 95 | int FIPS_selftest_failed(void) | ||
| 96 | { | ||
| 97 | int ret = 0; | ||
| 98 | if (fips_is_started()) | ||
| 99 | { | ||
| 100 | int owning_thread = fips_is_owning_thread(); | ||
| 101 | |||
| 102 | if (!owning_thread) CRYPTO_r_lock(CRYPTO_LOCK_FIPS); | ||
| 103 | ret = fips_selftest_fail; | ||
| 104 | if (!owning_thread) CRYPTO_r_unlock(CRYPTO_LOCK_FIPS); | ||
| 105 | } | ||
| 106 | return ret; | ||
| 107 | } | ||
| 108 | |||
| 109 | int FIPS_selftest() | ||
| 110 | { | ||
| 111 | ERR_load_crypto_strings(); | ||
| 112 | |||
| 113 | return FIPS_selftest_sha1() | ||
| 114 | && FIPS_selftest_aes() | ||
| 115 | && FIPS_selftest_des() | ||
| 116 | && FIPS_selftest_rsa() | ||
| 117 | && FIPS_selftest_dsa(); | ||
| 118 | } | ||
| 119 | |||
| 120 | static int FIPS_check_exe(const char *path) | ||
| 121 | { | ||
| 122 | unsigned char buf[1024]; | ||
| 123 | char p2[PATH_MAX]; | ||
| 124 | unsigned int n; | ||
| 125 | unsigned char mdbuf[EVP_MAX_MD_SIZE]; | ||
| 126 | FILE *f; | ||
| 127 | static char key[]="etaonrishdlcupfm"; | ||
| 128 | HMAC_CTX hmac; | ||
| 129 | const char *sha1_fmt="%s.sha1"; | ||
| 130 | |||
| 131 | f=fopen(path,"rb"); | ||
| 132 | #ifdef __CYGWIN32__ | ||
| 133 | /* cygwin scrupulously strips .exe extentions:-( as of now it's | ||
| 134 | actually no point to attempt above fopen, but we keep the call | ||
| 135 | just in case the behavior changes in the future... */ | ||
| 136 | if (!f) | ||
| 137 | { | ||
| 138 | sha1_fmt="%s.exe.sha1"; | ||
| 139 | BIO_snprintf(p2,sizeof p2,"%s.exe",path); | ||
| 140 | f=fopen(p2,"rb"); | ||
| 141 | } | ||
| 142 | #endif | ||
| 143 | if(!f) | ||
| 144 | { | ||
| 145 | FIPSerr(FIPS_F_FIPS_CHECK_EXE,FIPS_R_CANNOT_READ_EXE); | ||
| 146 | return 0; | ||
| 147 | } | ||
| 148 | HMAC_Init(&hmac,key,strlen(key),EVP_sha1()); | ||
| 149 | while(!feof(f)) | ||
| 150 | { | ||
| 151 | n=fread(buf,1,sizeof buf,f); | ||
| 152 | if(ferror(f)) | ||
| 153 | { | ||
| 154 | clearerr(f); | ||
| 155 | fclose(f); | ||
| 156 | FIPSerr(FIPS_F_FIPS_CHECK_EXE,FIPS_R_CANNOT_READ_EXE); | ||
| 157 | return 0; | ||
| 158 | } | ||
| 159 | if (n) HMAC_Update(&hmac,buf,n); | ||
| 160 | } | ||
| 161 | fclose(f); | ||
| 162 | HMAC_Final(&hmac,mdbuf,&n); | ||
| 163 | HMAC_CTX_cleanup(&hmac); | ||
| 164 | BIO_snprintf(p2,sizeof p2,sha1_fmt,path); | ||
| 165 | f=fopen(p2,"rb"); | ||
| 166 | if(!f || fread(buf,1,20,f) != 20) | ||
| 167 | { | ||
| 168 | if (f) fclose(f); | ||
| 169 | FIPSerr(FIPS_F_FIPS_CHECK_EXE,FIPS_R_CANNOT_READ_EXE_DIGEST); | ||
| 170 | return 0; | ||
| 171 | } | ||
| 172 | fclose(f); | ||
| 173 | if(memcmp(buf,mdbuf,20)) | ||
| 174 | { | ||
| 175 | FIPSerr(FIPS_F_FIPS_CHECK_EXE,FIPS_R_EXE_DIGEST_DOES_NOT_MATCH); | ||
| 176 | return 0; | ||
| 177 | } | ||
| 178 | return 1; | ||
| 179 | } | ||
| 180 | |||
| 181 | int FIPS_mode_set(int onoff,const char *path) | ||
| 182 | { | ||
| 183 | void fips_set_mode(int _onoff); | ||
| 184 | int fips_set_owning_thread(); | ||
| 185 | int fips_clear_owning_thread(); | ||
| 186 | int ret = 0; | ||
| 187 | |||
| 188 | CRYPTO_w_lock(CRYPTO_LOCK_FIPS); | ||
| 189 | fips_set_started(); | ||
| 190 | fips_set_owning_thread(); | ||
| 191 | |||
| 192 | if(onoff) | ||
| 193 | { | ||
| 194 | unsigned char buf[24]; | ||
| 195 | |||
| 196 | fips_selftest_fail = 0; | ||
| 197 | |||
| 198 | /* Don't go into FIPS mode twice, just so we can do automagic | ||
| 199 | seeding */ | ||
| 200 | if(FIPS_mode()) | ||
| 201 | { | ||
| 202 | FIPSerr(FIPS_F_FIPS_MODE_SET,FIPS_R_FIPS_MODE_ALREADY_SET); | ||
| 203 | fips_selftest_fail = 1; | ||
| 204 | ret = 0; | ||
| 205 | goto end; | ||
| 206 | } | ||
| 207 | |||
| 208 | if(!FIPS_check_exe(path)) | ||
| 209 | { | ||
| 210 | fips_selftest_fail = 1; | ||
| 211 | ret = 0; | ||
| 212 | goto end; | ||
| 213 | } | ||
| 214 | |||
| 215 | /* automagically seed PRNG if not already seeded */ | ||
| 216 | if(!FIPS_rand_seeded()) | ||
| 217 | { | ||
| 218 | if(RAND_bytes(buf,sizeof buf) <= 0) | ||
| 219 | { | ||
| 220 | fips_selftest_fail = 1; | ||
| 221 | ret = 0; | ||
| 222 | goto end; | ||
| 223 | } | ||
| 224 | FIPS_set_prng_key(buf,buf+8); | ||
| 225 | FIPS_rand_seed(buf+16,8); | ||
| 226 | } | ||
| 227 | |||
| 228 | /* now switch into FIPS mode */ | ||
| 229 | fips_set_rand_check(FIPS_rand_method()); | ||
| 230 | RAND_set_rand_method(FIPS_rand_method()); | ||
| 231 | if(FIPS_selftest()) | ||
| 232 | fips_set_mode(1); | ||
| 233 | else | ||
| 234 | { | ||
| 235 | fips_selftest_fail = 1; | ||
| 236 | ret = 0; | ||
| 237 | goto end; | ||
| 238 | } | ||
| 239 | ret = 1; | ||
| 240 | goto end; | ||
| 241 | } | ||
| 242 | fips_set_mode(0); | ||
| 243 | fips_selftest_fail = 0; | ||
| 244 | ret = 1; | ||
| 245 | end: | ||
| 246 | fips_clear_owning_thread(); | ||
| 247 | CRYPTO_w_unlock(CRYPTO_LOCK_FIPS); | ||
| 248 | return ret; | ||
| 249 | } | ||
| 250 | |||
| 251 | #if 0 | ||
| 252 | /* here just to cause error codes to exist */ | ||
| 253 | static void dummy() | ||
| 254 | { | ||
| 255 | FIPSerr(FIPS_F_HASH_FINAL,FIPS_F_NON_FIPS_METHOD); | ||
| 256 | FIPSerr(FIPS_F_HASH_FINAL,FIPS_R_FIPS_SELFTEST_FAILED); | ||
| 257 | } | ||
| 258 | #endif | ||
| 259 | |||
| 260 | #endif | ||
diff --git a/src/lib/libssl/src/fips/fips.h b/src/lib/libssl/src/fips/fips.h new file mode 100644 index 0000000000..a4df06b148 --- /dev/null +++ b/src/lib/libssl/src/fips/fips.h | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #include <openssl/opensslconf.h> | ||
| 51 | |||
| 52 | #ifdef OPENSSL_FIPS | ||
| 53 | |||
| 54 | #ifdef __cplusplus | ||
| 55 | extern "C" { | ||
| 56 | #endif | ||
| 57 | |||
| 58 | /* Note that these are defined in crypto/cryptlib.c so they're | ||
| 59 | * available even without -lfips. | ||
| 60 | */ | ||
| 61 | struct dsa_st; | ||
| 62 | |||
| 63 | int FIPS_mode_set(int onoff,const char *path); | ||
| 64 | void FIPS_allow_md5(int onoff); | ||
| 65 | int FIPS_md5_allowed(void); | ||
| 66 | int FIPS_selftest_failed(void); | ||
| 67 | int FIPS_dsa_check(struct dsa_st *dsa); | ||
| 68 | void FIPS_corrupt_sha1(void); | ||
| 69 | int FIPS_selftest_sha1(void); | ||
| 70 | void FIPS_corrupt_aes(void); | ||
| 71 | int FIPS_selftest_aes(void); | ||
| 72 | void FIPS_corrupt_des(void); | ||
| 73 | int FIPS_selftest_des(void); | ||
| 74 | void FIPS_corrupt_rsa(void); | ||
| 75 | int FIPS_selftest_rsa(void); | ||
| 76 | void FIPS_corrupt_dsa(void); | ||
| 77 | int FIPS_selftest_dsa(void); | ||
| 78 | |||
| 79 | /* The following lines are auto generated by the script mkerr.pl. Any changes | ||
| 80 | * made after this point may be overwritten when the script is next run. | ||
| 81 | */ | ||
| 82 | void ERR_load_FIPS_strings(void); | ||
| 83 | |||
| 84 | /* BEGIN ERROR CODES */ | ||
| 85 | /* The following lines are auto generated by the script mkerr.pl. Any changes | ||
| 86 | * made after this point may be overwritten when the script is next run. | ||
| 87 | */ | ||
| 88 | void ERR_load_FIPS_strings(void); | ||
| 89 | |||
| 90 | /* Error codes for the FIPS functions. */ | ||
| 91 | |||
| 92 | /* Function codes. */ | ||
| 93 | #define FIPS_F_DSA_DO_SIGN 111 | ||
| 94 | #define FIPS_F_DSA_DO_VERIFY 112 | ||
| 95 | #define FIPS_F_DSA_GENERATE_PARAMETERS 110 | ||
| 96 | #define FIPS_F_FIPS_CHECK_DSA 116 | ||
| 97 | #define FIPS_F_FIPS_CHECK_EXE 106 | ||
| 98 | #define FIPS_F_FIPS_CHECK_RSA 115 | ||
| 99 | #define FIPS_F_FIPS_DSA_CHECK 102 | ||
| 100 | #define FIPS_F_FIPS_MODE_SET 105 | ||
| 101 | #define FIPS_F_FIPS_SELFTEST_AES 104 | ||
| 102 | #define FIPS_F_FIPS_SELFTEST_DES 107 | ||
| 103 | #define FIPS_F_FIPS_SELFTEST_DSA 109 | ||
| 104 | #define FIPS_F_FIPS_SELFTEST_RSA 108 | ||
| 105 | #define FIPS_F_FIPS_SELFTEST_SHA1 103 | ||
| 106 | #define FIPS_F_HASH_FINAL 100 | ||
| 107 | #define FIPS_F_DH_GENERATE_PARAMETERS 117 | ||
| 108 | #define FIPS_F_RSA_EAY_PUBLIC_ENCRYPT 114 | ||
| 109 | #define FIPS_F_RSA_GENERATE_KEY 113 | ||
| 110 | #define FIPS_F_SSLEAY_RAND_BYTES 101 | ||
| 111 | |||
| 112 | /* Reason codes. */ | ||
| 113 | #define FIPS_R_CANNOT_READ_EXE 103 | ||
| 114 | #define FIPS_R_CANNOT_READ_EXE_DIGEST 104 | ||
| 115 | #define FIPS_R_EXE_DIGEST_DOES_NOT_MATCH 105 | ||
| 116 | #define FIPS_R_FIPS_MODE_ALREADY_SET 102 | ||
| 117 | #define FIPS_R_FIPS_SELFTEST_FAILED 106 | ||
| 118 | #define FIPS_R_NON_FIPS_METHOD 100 | ||
| 119 | #define FIPS_R_PAIRWISE_TEST_FAILED 107 | ||
| 120 | #define FIPS_R_SELFTEST_FAILED 101 | ||
| 121 | |||
| 122 | #ifdef __cplusplus | ||
| 123 | } | ||
| 124 | #endif | ||
| 125 | #endif | ||
diff --git a/src/lib/libssl/src/fips/fips_locl.h b/src/lib/libssl/src/fips/fips_locl.h new file mode 100644 index 0000000000..215e382549 --- /dev/null +++ b/src/lib/libssl/src/fips/fips_locl.h | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #ifdef OPENSSL_FIPS | ||
| 51 | |||
| 52 | #ifdef __cplusplus | ||
| 53 | extern "C" { | ||
| 54 | #endif | ||
| 55 | |||
| 56 | /* These are really defined in crypto/cryptlib.c */ | ||
| 57 | void fips_set_started(void); | ||
| 58 | int fips_is_started(void); | ||
| 59 | int fips_is_owning_thread(void); | ||
| 60 | int fips_set_owning_thread(void); | ||
| 61 | int fips_clear_owning_thread(void); | ||
| 62 | void fips_set_rand_check(void *rand_check); | ||
| 63 | |||
| 64 | #ifdef __cplusplus | ||
| 65 | } | ||
| 66 | #endif | ||
| 67 | #endif | ||
diff --git a/src/lib/libssl/src/fips/fips_test_suite.c b/src/lib/libssl/src/fips/fips_test_suite.c new file mode 100644 index 0000000000..60ee8d856b --- /dev/null +++ b/src/lib/libssl/src/fips/fips_test_suite.c | |||
| @@ -0,0 +1,341 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * | ||
| 5 | * This command is intended as a test driver for the FIPS-140 testing | ||
| 6 | * lab performing FIPS-140 validation. It demonstrates the use of the | ||
| 7 | * OpenSSL library ito perform a variety of common cryptographic | ||
| 8 | * functions. A power-up self test is demonstrated by deliberately | ||
| 9 | * pointing to an invalid executable hash | ||
| 10 | * | ||
| 11 | * Contributed by Steve Marquess. | ||
| 12 | * | ||
| 13 | */ | ||
| 14 | #include <stdio.h> | ||
| 15 | #include <assert.h> | ||
| 16 | #include <ctype.h> | ||
| 17 | #include <string.h> | ||
| 18 | #include <stdlib.h> | ||
| 19 | #include <openssl/aes.h> | ||
| 20 | #include <openssl/des.h> | ||
| 21 | #include <openssl/rsa.h> | ||
| 22 | #include <openssl/dsa.h> | ||
| 23 | #include <openssl/sha.h> | ||
| 24 | #include <openssl/md5.h> | ||
| 25 | #include <openssl/err.h> | ||
| 26 | #include <openssl/fips.h> | ||
| 27 | #include <openssl/bn.h> | ||
| 28 | #include <openssl/rand.h> | ||
| 29 | #ifndef OPENSSL_FIPS | ||
| 30 | int main(int argc, char *argv[]) | ||
| 31 | { | ||
| 32 | printf("No FIPS support\n"); | ||
| 33 | return(0); | ||
| 34 | } | ||
| 35 | #else | ||
| 36 | |||
| 37 | /* AES: encrypt and decrypt known plaintext, verify result matches original plaintext | ||
| 38 | */ | ||
| 39 | static int FIPS_aes_test() | ||
| 40 | { | ||
| 41 | unsigned char userkey[16] = { 0xde, 0xad, 0xbe, 0xef, 0xfe, 0xed, 0xf0, 0x0d }; | ||
| 42 | unsigned char plaintext[16] = "etaonrishdlcu"; | ||
| 43 | unsigned char ciphertext[16]; | ||
| 44 | unsigned char buf[16]; | ||
| 45 | AES_KEY key; | ||
| 46 | AES_KEY dkey; | ||
| 47 | |||
| 48 | ERR_clear_error(); | ||
| 49 | if (AES_set_encrypt_key( userkey, 128, &key )) | ||
| 50 | return 0; | ||
| 51 | AES_encrypt( plaintext, ciphertext, &key); | ||
| 52 | if (AES_set_decrypt_key( userkey, 128, &dkey )) | ||
| 53 | return 0; | ||
| 54 | AES_decrypt( ciphertext, buf, &dkey); | ||
| 55 | if (memcmp(buf, plaintext, sizeof(buf))) | ||
| 56 | return 0; | ||
| 57 | return 1; | ||
| 58 | } | ||
| 59 | |||
| 60 | /* DES: encrypt and decrypt known plaintext, verify result matches original plaintext | ||
| 61 | */ | ||
| 62 | static int FIPS_des_test() | ||
| 63 | { | ||
| 64 | DES_cblock userkey = { 0xde, 0xad, 0xbe, 0xef, 0xfe, 0xed, 0xf0, 0x0d }; | ||
| 65 | DES_cblock plaintext = { 'e', 't', 'a', 'o', 'n', 'r', 'i', 's' }; | ||
| 66 | |||
| 67 | DES_key_schedule key; | ||
| 68 | DES_cblock ciphertext; | ||
| 69 | DES_cblock buf; | ||
| 70 | |||
| 71 | ERR_clear_error(); | ||
| 72 | if (DES_set_key(&userkey, &key) < 0) | ||
| 73 | return 0; | ||
| 74 | DES_ecb_encrypt( &plaintext, &ciphertext, &key, 1); | ||
| 75 | DES_ecb_encrypt( &ciphertext, &buf, &key, 0); | ||
| 76 | if (memcmp(buf, plaintext, sizeof(buf))) | ||
| 77 | return 0; | ||
| 78 | return 1; | ||
| 79 | } | ||
| 80 | |||
| 81 | /* DSA: generate key and sign a known digest, then verify the signature | ||
| 82 | * against the digest | ||
| 83 | */ | ||
| 84 | static int FIPS_dsa_test() | ||
| 85 | { | ||
| 86 | DSA *dsa = NULL; | ||
| 87 | unsigned char dgst[] = "etaonrishdlc"; | ||
| 88 | unsigned char sig[256]; | ||
| 89 | unsigned int siglen; | ||
| 90 | |||
| 91 | ERR_clear_error(); | ||
| 92 | dsa = DSA_generate_parameters(512,NULL,0,NULL,NULL,NULL,NULL); | ||
| 93 | if (!dsa) | ||
| 94 | return 0; | ||
| 95 | if (!DSA_generate_key(dsa)) | ||
| 96 | return 0; | ||
| 97 | if ( DSA_sign(0,dgst,sizeof(dgst) - 1,sig,&siglen,dsa) != 1 ) | ||
| 98 | return 0; | ||
| 99 | if ( DSA_verify(0,dgst,sizeof(dgst) - 1,sig,siglen,dsa) != 1 ) | ||
| 100 | return 0; | ||
| 101 | DSA_free(dsa); | ||
| 102 | return 1; | ||
| 103 | } | ||
| 104 | |||
| 105 | /* RSA: generate keys and encrypt and decrypt known plaintext, verify result | ||
| 106 | * matches the original plaintext | ||
| 107 | */ | ||
| 108 | static int FIPS_rsa_test() | ||
| 109 | { | ||
| 110 | RSA *key; | ||
| 111 | unsigned char input_ptext[] = "etaonrishdlc"; | ||
| 112 | unsigned char ctext[256]; | ||
| 113 | unsigned char ptext[256]; | ||
| 114 | int n; | ||
| 115 | |||
| 116 | ERR_clear_error(); | ||
| 117 | key = RSA_generate_key(1024,65537,NULL,NULL); | ||
| 118 | if (!key) | ||
| 119 | return 0; | ||
| 120 | n = RSA_size(key); | ||
| 121 | n = RSA_public_encrypt(sizeof(input_ptext) - 1,input_ptext,ctext,key,RSA_PKCS1_PADDING); | ||
| 122 | if (n < 0) | ||
| 123 | return 0; | ||
| 124 | n = RSA_private_decrypt(n,ctext,ptext,key,RSA_PKCS1_PADDING); | ||
| 125 | if (n < 0) | ||
| 126 | return 0; | ||
| 127 | RSA_free(key); | ||
| 128 | if (memcmp(input_ptext,ptext,sizeof(input_ptext) - 1)) | ||
| 129 | return 0; | ||
| 130 | return 1; | ||
| 131 | } | ||
| 132 | |||
| 133 | /* SHA1: generate hash of known digest value and compare to known | ||
| 134 | precomputed correct hash | ||
| 135 | */ | ||
| 136 | static int FIPS_sha1_test() | ||
| 137 | { | ||
| 138 | unsigned char digest[SHA_DIGEST_LENGTH] = | ||
| 139 | { 0x11, 0xf1, 0x9a, 0x3a, 0xec, 0x1a, 0x1e, 0x8e, 0x65, 0xd4, 0x9a, 0x38, 0x0c, 0x8b, 0x1e, 0x2c, 0xe8, 0xb3, 0xc5, 0x18 }; | ||
| 140 | unsigned char str[] = "etaonrishd"; | ||
| 141 | |||
| 142 | unsigned char md[SHA_DIGEST_LENGTH]; | ||
| 143 | |||
| 144 | ERR_clear_error(); | ||
| 145 | if (!SHA1(str,sizeof(str) - 1,md)) return 0; | ||
| 146 | if (memcmp(md,digest,sizeof(md))) | ||
| 147 | return 0; | ||
| 148 | return 1; | ||
| 149 | } | ||
| 150 | |||
| 151 | /* MD5: generate hash of known digest value and compare to known | ||
| 152 | precomputed correct hash | ||
| 153 | */ | ||
| 154 | static int md5_test() | ||
| 155 | { | ||
| 156 | unsigned char digest[MD5_DIGEST_LENGTH] = | ||
| 157 | { 0x48, 0x50, 0xf0, 0xa3, 0x3a, 0xed, 0xd3, 0xaf, 0x6e, 0x47, 0x7f, 0x83, 0x02, 0xb1, 0x09, 0x68 }; | ||
| 158 | unsigned char str[] = "etaonrishd"; | ||
| 159 | |||
| 160 | unsigned char md[MD5_DIGEST_LENGTH]; | ||
| 161 | |||
| 162 | ERR_clear_error(); | ||
| 163 | if (!MD5(str,sizeof(str) - 1,md)) | ||
| 164 | return 0; | ||
| 165 | if (memcmp(md,digest,sizeof(md))) | ||
| 166 | return 0; | ||
| 167 | return 1; | ||
| 168 | } | ||
| 169 | |||
| 170 | /* DH: generate shared parameters | ||
| 171 | */ | ||
| 172 | static int dh_test() | ||
| 173 | { | ||
| 174 | DH *dh; | ||
| 175 | |||
| 176 | ERR_clear_error(); | ||
| 177 | dh = DH_generate_parameters(256, 2, NULL, NULL); | ||
| 178 | if (dh) | ||
| 179 | return 1; | ||
| 180 | return 0; | ||
| 181 | } | ||
| 182 | |||
| 183 | /* Zeroize | ||
| 184 | */ | ||
| 185 | static int Zeroize() | ||
| 186 | { | ||
| 187 | RSA *key; | ||
| 188 | unsigned char userkey[16] = | ||
| 189 | { 0x48, 0x50, 0xf0, 0xa3, 0x3a, 0xed, 0xd3, 0xaf, 0x6e, 0x47, 0x7f, 0x83, 0x02, 0xb1, 0x09, 0x68 }; | ||
| 190 | int i, n; | ||
| 191 | |||
| 192 | key = RSA_generate_key(1024,65537,NULL,NULL); | ||
| 193 | if (!key) | ||
| 194 | return 0; | ||
| 195 | n = BN_num_bytes(key->d); | ||
| 196 | printf(" Generated %d byte RSA private key\n", n); | ||
| 197 | printf("\tBN key before overwriting:\n%s\n", BN_bn2hex(key->d)); | ||
| 198 | BN_rand(key->d,n*8,-1,0); | ||
| 199 | printf("\tBN key after overwriting:\n%s\n", BN_bn2hex(key->d)); | ||
| 200 | |||
| 201 | printf("\tchar buffer key before overwriting: \n\t\t"); | ||
| 202 | for(i = 0; i < sizeof(userkey); i++) printf("%02x", userkey[i]); | ||
| 203 | printf("\n"); | ||
| 204 | RAND_bytes(userkey, sizeof userkey); | ||
| 205 | printf("\tchar buffer key after overwriting: \n\t\t"); | ||
| 206 | for(i = 0; i < sizeof(userkey); i++) printf("%02x", userkey[i]); | ||
| 207 | printf("\n"); | ||
| 208 | |||
| 209 | return 1; | ||
| 210 | } | ||
| 211 | |||
| 212 | static int Error; | ||
| 213 | const char * Fail(const char *msg) | ||
| 214 | { | ||
| 215 | Error++; | ||
| 216 | return msg; | ||
| 217 | } | ||
| 218 | |||
| 219 | int main(int argc,char **argv) | ||
| 220 | { | ||
| 221 | |||
| 222 | printf("\tFIPS-mode test application\n\n"); | ||
| 223 | |||
| 224 | /* Load entropy from external file, if any */ | ||
| 225 | RAND_load_file(".rnd", 1024); | ||
| 226 | |||
| 227 | if (argv[1]) { | ||
| 228 | /* Corrupted KAT tests */ | ||
| 229 | if (!strcmp(argv[1], "aes")) { | ||
| 230 | FIPS_corrupt_aes(); | ||
| 231 | printf("3. AES encryption/decryption with corrupted KAT...\n"); | ||
| 232 | } else if (!strcmp(argv[1], "des")) { | ||
| 233 | FIPS_corrupt_des(); | ||
| 234 | printf("5. DES-ECB encryption/decryption with corrupted KAT...\n"); | ||
| 235 | } else if (!strcmp(argv[1], "dsa")) { | ||
| 236 | FIPS_corrupt_dsa(); | ||
| 237 | printf("6. DSA key generation and signature validation with corrupted KAT...\n"); | ||
| 238 | } else if (!strcmp(argv[1], "rsa")) { | ||
| 239 | FIPS_corrupt_rsa(); | ||
| 240 | printf("4. RSA key generation and encryption/decryption with corrupted KAT...\n"); | ||
| 241 | } else if (!strcmp(argv[1], "sha1")) { | ||
| 242 | FIPS_corrupt_sha1(); | ||
| 243 | printf("7. SHA-1 hash with corrupted KAT...\n"); | ||
| 244 | } else { | ||
| 245 | printf("Bad argument \"%s\"\n", argv[1]); | ||
| 246 | exit(1); | ||
| 247 | } | ||
| 248 | if (!FIPS_mode_set(1,argv[0])) | ||
| 249 | { | ||
| 250 | ERR_load_crypto_strings(); | ||
| 251 | ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); | ||
| 252 | printf("Power-up self test failed\n"); | ||
| 253 | exit(1); | ||
| 254 | } | ||
| 255 | printf("Power-up self test successful\n"); | ||
| 256 | exit(0); | ||
| 257 | } | ||
| 258 | |||
| 259 | /* Non-Approved cryptographic operation | ||
| 260 | */ | ||
| 261 | printf("0. Non-Approved cryptographic operation test...\n"); | ||
| 262 | printf("\ta. Excluded algorithm (MD5)..."); | ||
| 263 | printf( md5_test() ? "successful\n" : Fail("FAILED!\n") ); | ||
| 264 | printf("\tb. Included algorithm (D-H)..."); | ||
| 265 | printf( dh_test() ? "successful\n" : Fail("FAILED!\n") ); | ||
| 266 | |||
| 267 | /* Power-up self test failure | ||
| 268 | */ | ||
| 269 | printf("1. Automatic power-up self test..."); | ||
| 270 | printf( FIPS_mode_set(1,"/dev/null") ? Fail("passed INCORRECTLY!\n") : "failed as expected\n" ); | ||
| 271 | |||
| 272 | /* Algorithm call when uninitialized failure | ||
| 273 | */ | ||
| 274 | printf("\ta. AES API failure on failed power-up self test..."); | ||
| 275 | printf( FIPS_aes_test() ? Fail("passed INCORRECTLY!\n") :"failed as expected\n" ); | ||
| 276 | printf("\tb. RSA API failure on failed power-up self test..."); | ||
| 277 | printf( FIPS_rsa_test() ? Fail("passed INCORRECTLY!\n") : "failed as expected\n" ); | ||
| 278 | printf("\tc. DES API failure on failed power-up self test..."); | ||
| 279 | printf( FIPS_des_test() ? Fail("passed INCORRECTLY!\n") : "failed as expected\n" ); | ||
| 280 | printf("\td. DSA API failure on failed power-up self test..."); | ||
| 281 | printf( FIPS_dsa_test() ? Fail("passed INCORRECTLY!\n") : "failed as expected\n" ); | ||
| 282 | printf("\te. SHA1 API failure on failed power-up self test..."); | ||
| 283 | printf( FIPS_sha1_test() ? Fail("passed INCORRECTLY!\n") : "failed as expected\n" ); | ||
| 284 | |||
| 285 | /* Power-up self test retry | ||
| 286 | */ | ||
| 287 | ERR_clear_error(); | ||
| 288 | printf("2. Automatic power-up self test retry..."); | ||
| 289 | if (!FIPS_mode_set(1,argv[0])) | ||
| 290 | { | ||
| 291 | ERR_load_crypto_strings(); | ||
| 292 | ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); | ||
| 293 | printf(Fail("FAILED!\n")); | ||
| 294 | exit(1); | ||
| 295 | } | ||
| 296 | printf("successful\n"); | ||
| 297 | |||
| 298 | /* AES encryption/decryption | ||
| 299 | */ | ||
| 300 | printf("3. AES encryption/decryption..."); | ||
| 301 | printf( FIPS_aes_test() ? "successful\n" : Fail("FAILED!\n") ); | ||
| 302 | |||
| 303 | /* RSA key generation and encryption/decryption | ||
| 304 | */ | ||
| 305 | printf("4. RSA key generation and encryption/decryption..."); | ||
| 306 | printf( FIPS_rsa_test() ? "successful\n" : Fail("FAILED!\n") ); | ||
| 307 | |||
| 308 | /* DES-CBC encryption/decryption | ||
| 309 | */ | ||
| 310 | printf("5. DES-ECB encryption/decryption..."); | ||
| 311 | printf( FIPS_des_test() ? "successful\n" : Fail("FAILED!\n") ); | ||
| 312 | |||
| 313 | /* DSA key generation and signature validation | ||
| 314 | */ | ||
| 315 | printf("6. DSA key generation and signature validation..."); | ||
| 316 | printf( FIPS_dsa_test() ? "successful\n" : Fail("FAILED!\n") ); | ||
| 317 | |||
| 318 | /* SHA-1 hash | ||
| 319 | */ | ||
| 320 | printf("7. SHA-1 hash..."); | ||
| 321 | printf( FIPS_sha1_test() ? "successful\n" : Fail("FAILED!\n") ); | ||
| 322 | |||
| 323 | /* Non-Approved cryptographic operation | ||
| 324 | */ | ||
| 325 | printf("8. Non-Approved cryptographic operation test...\n"); | ||
| 326 | printf("\ta. Excluded algorithm (MD5)..."); | ||
| 327 | printf( md5_test() ? Fail("passed INCORRECTLY!\n") | ||
| 328 | : "failed as expected\n" ); | ||
| 329 | printf("\tb. Included algorithm (D-H)..."); | ||
| 330 | printf( dh_test() ? "successful as expected\n" | ||
| 331 | : Fail("failed INCORRECTLY!\n") ); | ||
| 332 | |||
| 333 | /* Zeroization | ||
| 334 | */ | ||
| 335 | printf("9. Zero-ization...\n"); | ||
| 336 | Zeroize(); | ||
| 337 | |||
| 338 | printf("\nAll tests completed with %d errors\n", Error); | ||
| 339 | return 0; | ||
| 340 | } | ||
| 341 | #endif | ||
diff --git a/src/lib/libssl/src/fips/install.com b/src/lib/libssl/src/fips/install.com new file mode 100644 index 0000000000..aa19f0599d --- /dev/null +++ b/src/lib/libssl/src/fips/install.com | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | $! INSTALL.COM -- Installs the files in a given directory tree | ||
| 2 | $! | ||
| 3 | $! Author: Richard Levitte <richard@levitte.org> | ||
| 4 | $! Time of creation: 27-MAY-2004 11:47 | ||
| 5 | $! | ||
| 6 | $! P1 root of the directory tree | ||
| 7 | $! | ||
| 8 | $ IF P1 .EQS. "" | ||
| 9 | $ THEN | ||
| 10 | $ WRITE SYS$OUTPUT "First argument missing." | ||
| 11 | $ WRITE SYS$OUTPUT "Should be the directory where you want things installed." | ||
| 12 | $ EXIT | ||
| 13 | $ ENDIF | ||
| 14 | $ | ||
| 15 | $ ROOT = F$PARSE(P1,"[]A.;0",,,"SYNTAX_ONLY,NO_CONCEAL") - "A.;0" | ||
| 16 | $ ROOT_DEV = F$PARSE(ROOT,,,"DEVICE","SYNTAX_ONLY") | ||
| 17 | $ ROOT_DIR = F$PARSE(ROOT,,,"DIRECTORY","SYNTAX_ONLY") - | ||
| 18 | - "[000000." - "][" - "[" - "]" | ||
| 19 | $ ROOT = ROOT_DEV + "[" + ROOT_DIR | ||
| 20 | $ | ||
| 21 | $ DEFINE/NOLOG WRK_SSLROOT 'ROOT'.] /TRANS=CONC | ||
| 22 | $ DEFINE/NOLOG WRK_SSLINCLUDE WRK_SSLROOT:[INCLUDE] | ||
| 23 | $ | ||
| 24 | $ IF F$PARSE("WRK_SSLROOT:[000000]") .EQS. "" THEN - | ||
| 25 | CREATE/DIR/LOG WRK_SSLROOT:[000000] | ||
| 26 | $ IF F$PARSE("WRK_SSLINCLUDE:") .EQS. "" THEN - | ||
| 27 | CREATE/DIR/LOG WRK_SSLINCLUDE: | ||
| 28 | $ | ||
| 29 | $ FDIRS := ,RAND,SHA1,DES,AES,DSA,RSA | ||
| 30 | $ EXHEADER_ := fips.h | ||
| 31 | $ EXHEADER_SHA1 := | ||
| 32 | $ EXHEADER_RAND := fips_rand.h | ||
| 33 | $ EXHEADER_DES := | ||
| 34 | $ EXHEADER_AES := | ||
| 35 | $ EXHEADER_DSA := | ||
| 36 | $ EXHEADER_RSA := | ||
| 37 | $ | ||
| 38 | $ I = 0 | ||
| 39 | $ LOOP_FDIRS: | ||
| 40 | $ D = F$EDIT(F$ELEMENT(I, ",", FDIRS),"TRIM") | ||
| 41 | $ I = I + 1 | ||
| 42 | $ IF D .EQS. "," THEN GOTO LOOP_FDIRS_END | ||
| 43 | $ tmp = EXHEADER_'D' | ||
| 44 | $ IF tmp .EQS. "" THEN GOTO LOOP_FDIRS | ||
| 45 | $ IF D .EQS. "" | ||
| 46 | $ THEN | ||
| 47 | $ COPY 'tmp' WRK_SSLINCLUDE: /LOG | ||
| 48 | $ ELSE | ||
| 49 | $ COPY [.'D']'tmp' WRK_SSLINCLUDE: /LOG | ||
| 50 | $ ENDIF | ||
| 51 | $ SET FILE/PROT=WORLD:RE WRK_SSLINCLUDE:'tmp' | ||
| 52 | $ GOTO LOOP_FDIRS | ||
| 53 | $ LOOP_FDIRS_END: | ||
| 54 | $ | ||
| 55 | $ EXIT | ||
diff --git a/src/lib/libssl/src/fips/openssl_fips_fingerprint b/src/lib/libssl/src/fips/openssl_fips_fingerprint new file mode 100755 index 0000000000..d3dfb7eb61 --- /dev/null +++ b/src/lib/libssl/src/fips/openssl_fips_fingerprint | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # Check the library fingerprint and generate an executable fingerprint, or | ||
| 4 | # return an error | ||
| 5 | |||
| 6 | lib=$1 | ||
| 7 | exe=$2 | ||
| 8 | |||
| 9 | # deal with the case where we're run from within the build and OpenSSL is | ||
| 10 | # not yet installed. Also, make sure LD_LIBRARY_PATH is properly set in | ||
| 11 | # case shared libraries are built. | ||
| 12 | if [ "X$TOP" != "X" ] | ||
| 13 | then | ||
| 14 | if test "$OSTYPE" = msdosdjgpp; then | ||
| 15 | PATH="$TOP/apps;$TOP;$PATH" | ||
| 16 | else | ||
| 17 | PATH="$TOP/apps:$TOP:$PATH" | ||
| 18 | fi | ||
| 19 | LD_LIBRARY_PATH=$TOP; export LD_LIBRARY_PATH | ||
| 20 | else | ||
| 21 | LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH | ||
| 22 | fi | ||
| 23 | |||
| 24 | echo "Checking library fingerprint for $lib" | ||
| 25 | openssl sha1 -hmac etaonrishdlcupfm $lib | sed "s/(.*\//(/" | diff -w $lib.sha1 - || { echo "$libs fingerprint mismatch"; exit 1; } | ||
| 26 | |||
| 27 | [ -x $exe.exe ] && exe=$exe.exe | ||
| 28 | |||
| 29 | echo "Making fingerprint for $exe" | ||
| 30 | openssl sha1 -hmac etaonrishdlcupfm -binary $exe > $exe.sha1 || rm $exe.sha1 | ||
diff --git a/src/lib/libssl/src/fips/rand/Makefile b/src/lib/libssl/src/fips/rand/Makefile new file mode 100644 index 0000000000..c8922abc77 --- /dev/null +++ b/src/lib/libssl/src/fips/rand/Makefile | |||
| @@ -0,0 +1,104 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/fips/rand/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rand | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= fips_randtest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=fips_rand.c | ||
| 26 | LIBOBJ=fips_rand.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= fips_rand.h | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: check lib | ||
| 39 | |||
| 40 | check: | ||
| 41 | TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @sleep 2; touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | fips_rand.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 84 | fips_rand.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 85 | fips_rand.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 86 | fips_rand.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h | ||
| 87 | fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 88 | fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 89 | fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 90 | fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 91 | fips_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 92 | fips_rand.o: fips_rand.c | ||
| 93 | fips_randtest.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 94 | fips_randtest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 95 | fips_randtest.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 96 | fips_randtest.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h | ||
| 97 | fips_randtest.o: ../../include/openssl/lhash.h | ||
| 98 | fips_randtest.o: ../../include/openssl/opensslconf.h | ||
| 99 | fips_randtest.o: ../../include/openssl/opensslv.h | ||
| 100 | fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 101 | fips_randtest.o: ../../include/openssl/safestack.h | ||
| 102 | fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 103 | fips_randtest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 104 | fips_randtest.o: fips_randtest.c | ||
diff --git a/src/lib/libssl/src/fips/rand/fips_rand.c b/src/lib/libssl/src/fips/rand/fips_rand.c new file mode 100644 index 0000000000..cc2f12deb9 --- /dev/null +++ b/src/lib/libssl/src/fips/rand/fips_rand.c | |||
| @@ -0,0 +1,355 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | /* | ||
| 51 | * This is a FIPS approved PRNG, ANSI X9.31 A.2.4. | ||
| 52 | */ | ||
| 53 | |||
| 54 | #include "e_os.h" | ||
| 55 | |||
| 56 | /* If we don't define _XOPEN_SOURCE_EXTENDED, struct timeval won't | ||
| 57 | be defined and gettimeofday() won't be declared with strict compilers | ||
| 58 | like DEC C in ANSI C mode. */ | ||
| 59 | #ifndef _XOPEN_SOURCE_EXTENDED | ||
| 60 | #define _XOPEN_SOURCE_EXTENDED 1 | ||
| 61 | #endif | ||
| 62 | |||
| 63 | #include <openssl/des.h> | ||
| 64 | #include <openssl/rand.h> | ||
| 65 | #include <openssl/err.h> | ||
| 66 | #include <openssl/fips_rand.h> | ||
| 67 | #ifndef OPENSSL_SYS_WIN32 | ||
| 68 | #include <sys/time.h> | ||
| 69 | #endif | ||
| 70 | #include <assert.h> | ||
| 71 | #ifndef OPENSSL_SYS_WIN32 | ||
| 72 | # ifdef OPENSSL_UNISTD | ||
| 73 | # include OPENSSL_UNISTD | ||
| 74 | # else | ||
| 75 | # include <unistd.h> | ||
| 76 | # endif | ||
| 77 | #endif | ||
| 78 | #include <string.h> | ||
| 79 | |||
| 80 | #ifdef OPENSSL_FIPS | ||
| 81 | |||
| 82 | #define SEED_SIZE 8 | ||
| 83 | |||
| 84 | static unsigned char seed[SEED_SIZE]; | ||
| 85 | static FIPS_RAND_SIZE_T n_seed; | ||
| 86 | static FIPS_RAND_SIZE_T o_seed; | ||
| 87 | static DES_cblock key1; | ||
| 88 | static DES_cblock key2; | ||
| 89 | static DES_key_schedule ks1,ks2; | ||
| 90 | static int key_set; | ||
| 91 | static int test_mode; | ||
| 92 | static unsigned char test_faketime[8]; | ||
| 93 | |||
| 94 | #ifndef GETPID_IS_MEANINGLESS | ||
| 95 | static int seed_pid; | ||
| 96 | static int key_pid; | ||
| 97 | #endif | ||
| 98 | |||
| 99 | static void fips_rand_cleanup(void); | ||
| 100 | static void fips_rand_add(const void *buf, FIPS_RAND_SIZE_T num, double add_entropy); | ||
| 101 | static int fips_rand_bytes(unsigned char *buf, FIPS_RAND_SIZE_T num); | ||
| 102 | static int fips_rand_status(void); | ||
| 103 | |||
| 104 | static RAND_METHOD rand_fips_meth= | ||
| 105 | { | ||
| 106 | FIPS_rand_seed, | ||
| 107 | fips_rand_bytes, | ||
| 108 | fips_rand_cleanup, | ||
| 109 | fips_rand_add, | ||
| 110 | fips_rand_bytes, | ||
| 111 | fips_rand_status | ||
| 112 | }; | ||
| 113 | |||
| 114 | static int second; | ||
| 115 | |||
| 116 | RAND_METHOD *FIPS_rand_method(void) | ||
| 117 | { | ||
| 118 | return &rand_fips_meth; | ||
| 119 | } | ||
| 120 | |||
| 121 | void FIPS_set_prng_key(const unsigned char k1[8],const unsigned char k2[8]) | ||
| 122 | { | ||
| 123 | memcpy(&key1,k1,sizeof key1); | ||
| 124 | memcpy(&key2,k2,sizeof key2); | ||
| 125 | key_set=1; | ||
| 126 | #ifndef GETPID_IS_MEANINGLESS | ||
| 127 | key_pid=getpid(); | ||
| 128 | #endif | ||
| 129 | second=0; | ||
| 130 | } | ||
| 131 | |||
| 132 | void FIPS_test_mode(int test,const unsigned char faketime[8]) | ||
| 133 | { | ||
| 134 | test_mode=test; | ||
| 135 | if(!test_mode) | ||
| 136 | return; | ||
| 137 | memcpy(test_faketime,faketime,sizeof test_faketime); | ||
| 138 | } | ||
| 139 | |||
| 140 | /* NB: this returns true if _partially_ seeded */ | ||
| 141 | int FIPS_rand_seeded() | ||
| 142 | { return key_set || n_seed; } | ||
| 143 | |||
| 144 | static void fips_gettime(unsigned char buf[8]) | ||
| 145 | { | ||
| 146 | #ifdef OPENSSL_SYS_WIN32 | ||
| 147 | FILETIME ft; | ||
| 148 | #else | ||
| 149 | struct timeval tv; | ||
| 150 | #endif | ||
| 151 | |||
| 152 | if(test_mode) | ||
| 153 | { | ||
| 154 | fprintf(stderr,"WARNING!!! PRNG IN TEST MODE!!!\n"); | ||
| 155 | memcpy(buf,test_faketime,sizeof test_faketime); | ||
| 156 | return; | ||
| 157 | } | ||
| 158 | #ifdef OPENSSL_SYS_WIN32 | ||
| 159 | GetSystemTimeAsFileTime(&ft); | ||
| 160 | buf[0] = (unsigned char) (ft.dwHighDateTime & 0xff); | ||
| 161 | buf[1] = (unsigned char) ((ft.dwHighDateTime >> 8) & 0xff); | ||
| 162 | buf[2] = (unsigned char) ((ft.dwHighDateTime >> 16) & 0xff); | ||
| 163 | buf[3] = (unsigned char) ((ft.dwHighDateTime >> 24) & 0xff); | ||
| 164 | buf[4] = (unsigned char) (ft.dwLowDateTime & 0xff); | ||
| 165 | buf[5] = (unsigned char) ((ft.dwLowDateTime >> 8) & 0xff); | ||
| 166 | buf[6] = (unsigned char) ((ft.dwLowDateTime >> 16) & 0xff); | ||
| 167 | buf[7] = (unsigned char) ((ft.dwLowDateTime >> 24) & 0xff); | ||
| 168 | #else | ||
| 169 | gettimeofday(&tv,NULL); | ||
| 170 | buf[0] = (unsigned char) (tv.tv_sec & 0xff); | ||
| 171 | buf[1] = (unsigned char) ((tv.tv_sec >> 8) & 0xff); | ||
| 172 | buf[2] = (unsigned char) ((tv.tv_sec >> 16) & 0xff); | ||
| 173 | buf[3] = (unsigned char) ((tv.tv_sec >> 24) & 0xff); | ||
| 174 | buf[4] = (unsigned char) (tv.tv_usec & 0xff); | ||
| 175 | buf[5] = (unsigned char) ((tv.tv_usec >> 8) & 0xff); | ||
| 176 | buf[6] = (unsigned char) ((tv.tv_usec >> 16) & 0xff); | ||
| 177 | buf[7] = (unsigned char) ((tv.tv_usec >> 24) & 0xff); | ||
| 178 | #endif | ||
| 179 | |||
| 180 | #if 0 /* This eminently sensible strategy is not acceptable to NIST. Sigh. */ | ||
| 181 | #ifndef GETPID_IS_MEANINGLESS | ||
| 182 | /* we mix in the PID to ensure that after a fork the children don't give | ||
| 183 | * the same results as each other | ||
| 184 | */ | ||
| 185 | pid=getpid(); | ||
| 186 | /* make sure we shift the pid to the MSB */ | ||
| 187 | if((pid&0xffff0000) == 0) | ||
| 188 | pid<<=16; | ||
| 189 | *(long *)&buf[0]^=pid; | ||
| 190 | #endif | ||
| 191 | #endif | ||
| 192 | } | ||
| 193 | |||
| 194 | static void fips_rand_encrypt(unsigned char *out,const unsigned char *in) | ||
| 195 | { | ||
| 196 | DES_ecb2_encrypt(in,out,&ks1,&ks2,1); | ||
| 197 | } | ||
| 198 | |||
| 199 | static void fips_rand_cleanup(void) | ||
| 200 | { | ||
| 201 | OPENSSL_cleanse(seed,sizeof seed); | ||
| 202 | n_seed=0; | ||
| 203 | } | ||
| 204 | |||
| 205 | void FIPS_rand_seed(const void *buf_, FIPS_RAND_SIZE_T num) | ||
| 206 | { | ||
| 207 | const char *buf=buf_; | ||
| 208 | FIPS_RAND_SIZE_T n; | ||
| 209 | static int init; | ||
| 210 | |||
| 211 | /* If the key hasn't been set, we can't seed! */ | ||
| 212 | if(!key_set) | ||
| 213 | return; | ||
| 214 | |||
| 215 | CRYPTO_w_lock(CRYPTO_LOCK_RAND); | ||
| 216 | if(!init) | ||
| 217 | { | ||
| 218 | init=1; | ||
| 219 | DES_set_key(&key1,&ks1); | ||
| 220 | DES_set_key(&key2,&ks2); | ||
| 221 | } | ||
| 222 | |||
| 223 | /* | ||
| 224 | * This algorithm only uses 64 bits of seed, so ensure that we use | ||
| 225 | * the most recent 64 bits. | ||
| 226 | */ | ||
| 227 | for(n=0 ; n < num ; ) | ||
| 228 | { | ||
| 229 | FIPS_RAND_SIZE_T t=num-n; | ||
| 230 | |||
| 231 | if(o_seed+t > sizeof seed) | ||
| 232 | t=sizeof seed-o_seed; | ||
| 233 | memcpy(seed+o_seed,buf+n,t); | ||
| 234 | n+=t; | ||
| 235 | o_seed+=t; | ||
| 236 | if(o_seed == sizeof seed) | ||
| 237 | o_seed=0; | ||
| 238 | if(n_seed < sizeof seed) | ||
| 239 | n_seed+=t; | ||
| 240 | } | ||
| 241 | |||
| 242 | #ifndef GETPID_IS_MEANINGLESS | ||
| 243 | seed_pid=getpid(); | ||
| 244 | #endif | ||
| 245 | |||
| 246 | CRYPTO_w_unlock(CRYPTO_LOCK_RAND); | ||
| 247 | } | ||
| 248 | |||
| 249 | static void fips_rand_add(const void *buf, FIPS_RAND_SIZE_T num, double add_entropy) | ||
| 250 | { | ||
| 251 | FIPS_rand_seed(buf,num); | ||
| 252 | } | ||
| 253 | |||
| 254 | static int fips_rand_bytes(unsigned char *buf,FIPS_RAND_SIZE_T num) | ||
| 255 | { | ||
| 256 | FIPS_RAND_SIZE_T n; | ||
| 257 | unsigned char timeseed[8]; | ||
| 258 | unsigned char intermediate[SEED_SIZE]; | ||
| 259 | unsigned char output[SEED_SIZE]; | ||
| 260 | static unsigned char previous[SEED_SIZE]; | ||
| 261 | #ifndef GETPID_IS_MEANINGLESS | ||
| 262 | int pid; | ||
| 263 | #endif | ||
| 264 | |||
| 265 | if(n_seed < sizeof seed) | ||
| 266 | { | ||
| 267 | RANDerr(RAND_F_FIPS_RAND_BYTES,RAND_R_PRNG_NOT_SEEDED); | ||
| 268 | return 0; | ||
| 269 | } | ||
| 270 | |||
| 271 | #ifdef FIPS_RAND_MAX_SIZE_T | ||
| 272 | if (num > FIPS_RAND_MAX_SIZE_T) | ||
| 273 | { | ||
| 274 | #ifdef RAND_R_PRNG_ASKING_FOR_TOO_MUCH | ||
| 275 | RANDerr(RAND_F_FIPS_RAND_BYTES,RAND_R_PRNG_ASKING_FOR_TOO_MUCH); | ||
| 276 | return 0; | ||
| 277 | #else | ||
| 278 | return -1; /* signal "not supported" condition */ | ||
| 279 | #endif | ||
| 280 | } | ||
| 281 | #endif | ||
| 282 | |||
| 283 | #ifndef GETPID_IS_MEANINGLESS | ||
| 284 | pid=getpid(); | ||
| 285 | if(pid != seed_pid) | ||
| 286 | { | ||
| 287 | RANDerr(RAND_F_FIPS_RAND_BYTES,RAND_R_PRNG_NOT_RESEEDED); | ||
| 288 | return 0; | ||
| 289 | } | ||
| 290 | if(pid != key_pid) | ||
| 291 | { | ||
| 292 | RANDerr(RAND_F_FIPS_RAND_BYTES,RAND_R_PRNG_NOT_REKEYED); | ||
| 293 | return 0; | ||
| 294 | } | ||
| 295 | #endif | ||
| 296 | |||
| 297 | CRYPTO_w_lock(CRYPTO_LOCK_RAND); | ||
| 298 | |||
| 299 | for(n=0 ; n < num ; ) | ||
| 300 | { | ||
| 301 | unsigned char t[SEED_SIZE]; | ||
| 302 | FIPS_RAND_SIZE_T l; | ||
| 303 | |||
| 304 | /* ANS X9.31 A.2.4: I = ede*K(DT) | ||
| 305 | timeseed == DT | ||
| 306 | intermediate == I | ||
| 307 | */ | ||
| 308 | fips_gettime(timeseed); | ||
| 309 | fips_rand_encrypt(intermediate,timeseed); | ||
| 310 | |||
| 311 | /* ANS X9.31 A.2.4: R = ede*K(I^V) | ||
| 312 | intermediate == I | ||
| 313 | seed == V | ||
| 314 | output == R | ||
| 315 | */ | ||
| 316 | for(l=0 ; l < sizeof t ; ++l) | ||
| 317 | t[l]=intermediate[l]^seed[l]; | ||
| 318 | fips_rand_encrypt(output,t); | ||
| 319 | |||
| 320 | /* ANS X9.31 A.2.4: V = ede*K(R^I) | ||
| 321 | output == R | ||
| 322 | intermediate == I | ||
| 323 | seed == V | ||
| 324 | */ | ||
| 325 | for(l=0 ; l < sizeof t ; ++l) | ||
| 326 | t[l]=output[l]^intermediate[l]; | ||
| 327 | fips_rand_encrypt(seed,t); | ||
| 328 | |||
| 329 | if(second && !memcmp(output,previous,sizeof previous)) | ||
| 330 | { | ||
| 331 | RANDerr(RAND_F_FIPS_RAND_BYTES,RAND_R_PRNG_STUCK); | ||
| 332 | CRYPTO_w_unlock(CRYPTO_LOCK_RAND); | ||
| 333 | return 0; | ||
| 334 | } | ||
| 335 | memcpy(previous,output,sizeof previous); | ||
| 336 | second=1; | ||
| 337 | |||
| 338 | /* Successive values of R may be concatenated to produce a | ||
| 339 | pseudo random number of the desired length */ | ||
| 340 | l=SEED_SIZE < num-n ? SEED_SIZE : num-n; | ||
| 341 | memcpy(buf+n,output,l); | ||
| 342 | n+=l; | ||
| 343 | } | ||
| 344 | |||
| 345 | CRYPTO_w_unlock(CRYPTO_LOCK_RAND); | ||
| 346 | |||
| 347 | return 1; | ||
| 348 | } | ||
| 349 | |||
| 350 | static int fips_rand_status(void) | ||
| 351 | { | ||
| 352 | return n_seed == sizeof seed; | ||
| 353 | } | ||
| 354 | |||
| 355 | #endif /* OPENSSL_FIPS */ | ||
diff --git a/src/lib/libssl/src/fips/rand/fips_rand.h b/src/lib/libssl/src/fips/rand/fips_rand.h new file mode 100644 index 0000000000..1286b63ab2 --- /dev/null +++ b/src/lib/libssl/src/fips/rand/fips_rand.h | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #ifndef HEADER_FIPS_RAND_H | ||
| 51 | #define HEADER_FIPS_RAND_H | ||
| 52 | |||
| 53 | #include "des.h" | ||
| 54 | |||
| 55 | #ifdef OPENSSL_FIPS | ||
| 56 | |||
| 57 | #ifdef __cplusplus | ||
| 58 | extern "C" { | ||
| 59 | #endif | ||
| 60 | |||
| 61 | void FIPS_set_prng_key(const unsigned char k1[8],const unsigned char k2[8]); | ||
| 62 | void FIPS_test_mode(int test,const unsigned char faketime[8]); | ||
| 63 | void FIPS_rand_seed(const void *buf, FIPS_RAND_SIZE_T num); | ||
| 64 | /* NB: this returns true if _partially_ seeded */ | ||
| 65 | int FIPS_rand_seeded(void); | ||
| 66 | |||
| 67 | RAND_METHOD *FIPS_rand_method(void); | ||
| 68 | |||
| 69 | #ifdef __cplusplus | ||
| 70 | } | ||
| 71 | #endif | ||
| 72 | #endif | ||
| 73 | #endif | ||
diff --git a/src/lib/libssl/src/fips/rand/fips_randtest.c b/src/lib/libssl/src/fips/rand/fips_randtest.c new file mode 100644 index 0000000000..6165944e56 --- /dev/null +++ b/src/lib/libssl/src/fips/rand/fips_randtest.c | |||
| @@ -0,0 +1,369 @@ | |||
| 1 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 2 | * All rights reserved. | ||
| 3 | * | ||
| 4 | * This package is an SSL implementation written | ||
| 5 | * by Eric Young (eay@cryptsoft.com). | ||
| 6 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 7 | * | ||
| 8 | * This library is free for commercial and non-commercial use as long as | ||
| 9 | * the following conditions are aheared to. The following conditions | ||
| 10 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 11 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 12 | * included with this distribution is covered by the same copyright terms | ||
| 13 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 14 | * | ||
| 15 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 16 | * the code are not to be removed. | ||
| 17 | * If this package is used in a product, Eric Young should be given attribution | ||
| 18 | * as the author of the parts of the library used. | ||
| 19 | * This can be in the form of a textual message at program startup or | ||
| 20 | * in documentation (online or textual) provided with the package. | ||
| 21 | * | ||
| 22 | * Redistribution and use in source and binary forms, with or without | ||
| 23 | * modification, are permitted provided that the following conditions | ||
| 24 | * are met: | ||
| 25 | * 1. Redistributions of source code must retain the copyright | ||
| 26 | * notice, this list of conditions and the following disclaimer. | ||
| 27 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 28 | * notice, this list of conditions and the following disclaimer in the | ||
| 29 | * documentation and/or other materials provided with the distribution. | ||
| 30 | * 3. All advertising materials mentioning features or use of this software | ||
| 31 | * must display the following acknowledgement: | ||
| 32 | * "This product includes cryptographic software written by | ||
| 33 | * Eric Young (eay@cryptsoft.com)" | ||
| 34 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 35 | * being used are not cryptographic related :-). | ||
| 36 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 37 | * the apps directory (application code) you must include an acknowledgement: | ||
| 38 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 39 | * | ||
| 40 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 41 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 43 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 44 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 45 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 46 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 48 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 49 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 50 | * SUCH DAMAGE. | ||
| 51 | * | ||
| 52 | * The licence and distribution terms for any publically available version or | ||
| 53 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 54 | * copied and put under another distribution licence | ||
| 55 | * [including the GNU Public Licence.] | ||
| 56 | */ | ||
| 57 | /* ==================================================================== | ||
| 58 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 59 | * | ||
| 60 | * Redistribution and use in source and binary forms, with or without | ||
| 61 | * modification, are permitted provided that the following conditions | ||
| 62 | * are met: | ||
| 63 | * | ||
| 64 | * 1. Redistributions of source code must retain the above copyright | ||
| 65 | * notice, this list of conditions and the following disclaimer. | ||
| 66 | * | ||
| 67 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 68 | * notice, this list of conditions and the following disclaimer in | ||
| 69 | * the documentation and/or other materials provided with the | ||
| 70 | * distribution. | ||
| 71 | * | ||
| 72 | * 3. All advertising materials mentioning features or use of this | ||
| 73 | * software must display the following acknowledgment: | ||
| 74 | * "This product includes software developed by the OpenSSL Project | ||
| 75 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 76 | * | ||
| 77 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 78 | * endorse or promote products derived from this software without | ||
| 79 | * prior written permission. For written permission, please contact | ||
| 80 | * openssl-core@openssl.org. | ||
| 81 | * | ||
| 82 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 83 | * nor may "OpenSSL" appear in their names without prior written | ||
| 84 | * permission of the OpenSSL Project. | ||
| 85 | * | ||
| 86 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 87 | * acknowledgment: | ||
| 88 | * "This product includes software developed by the OpenSSL Project | ||
| 89 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 90 | * | ||
| 91 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 92 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 93 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 94 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 95 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 96 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 97 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 98 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 99 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 100 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 101 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 102 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 103 | * | ||
| 104 | */ | ||
| 105 | |||
| 106 | #include <stdio.h> | ||
| 107 | #include <stdlib.h> | ||
| 108 | #include <openssl/rand.h> | ||
| 109 | #include <openssl/fips_rand.h> | ||
| 110 | #include <openssl/err.h> | ||
| 111 | |||
| 112 | #include "e_os.h" | ||
| 113 | |||
| 114 | #ifndef OPENSSL_FIPS | ||
| 115 | int main(int argc, char *argv[]) | ||
| 116 | { | ||
| 117 | printf("No FIPS RAND support\n"); | ||
| 118 | return(0); | ||
| 119 | } | ||
| 120 | |||
| 121 | #else | ||
| 122 | |||
| 123 | /* some FIPS 140-1 random number test */ | ||
| 124 | /* some simple tests */ | ||
| 125 | |||
| 126 | static DES_cblock prng_key1={0x21,0x58,0x47,0xb7,0xc2,0x97,0x5a,0x8e}; | ||
| 127 | static DES_cblock prng_key2={0x61,0x23,0x05,0x96,0x18,0x91,0x86,0xac}; | ||
| 128 | static unsigned char prng_seed[8]={0x6b,0xa3,0x4f,0x07,0xe4,0x2a,0xb0,0xc}; | ||
| 129 | |||
| 130 | typedef struct | ||
| 131 | { | ||
| 132 | DES_cblock keys[2]; | ||
| 133 | const unsigned char time[8]; | ||
| 134 | const unsigned char seed[8]; | ||
| 135 | const unsigned char block1[8]; | ||
| 136 | const unsigned char block100[8]; | ||
| 137 | } PRNGtest; | ||
| 138 | |||
| 139 | /* FIXME: these test vectors are made up! */ | ||
| 140 | static PRNGtest t1= | ||
| 141 | { | ||
| 142 | { { 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07 }, | ||
| 143 | { 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f }, | ||
| 144 | }, | ||
| 145 | { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, | ||
| 146 | { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, | ||
| 147 | { 0x33,0xc3,0xdf,0xfe,0x60,0x60,0x49,0x9e }, | ||
| 148 | { 0xcd,0x2b,0x41,0xaf,0x80,0x51,0x37,0xd8 } | ||
| 149 | }; | ||
| 150 | static PRNGtest t2= | ||
| 151 | { | ||
| 152 | { { 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff }, | ||
| 153 | { 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff } }, | ||
| 154 | { 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff }, | ||
| 155 | { 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff }, | ||
| 156 | { 0x65,0xf1,0xa4,0x07,0x42,0x38,0xd5,0x25 }, | ||
| 157 | { 0xbb,0x75,0x84,0x20,0x7a,0x44,0xf0,0xa0 } | ||
| 158 | }; | ||
| 159 | |||
| 160 | static void dump(const unsigned char *b,int n) | ||
| 161 | { | ||
| 162 | while(n-- > 0) | ||
| 163 | { | ||
| 164 | printf(" %02x",*b++); | ||
| 165 | } | ||
| 166 | } | ||
| 167 | |||
| 168 | static void compare(const unsigned char *result,const unsigned char *expected, | ||
| 169 | int n) | ||
| 170 | { | ||
| 171 | int i; | ||
| 172 | |||
| 173 | for(i=0 ; i < n ; ++i) | ||
| 174 | if(result[i] != expected[i]) | ||
| 175 | { | ||
| 176 | puts("Random test failed, got:"); | ||
| 177 | dump(result,8); | ||
| 178 | puts("\n expected:"); | ||
| 179 | dump(expected,8); | ||
| 180 | putchar('\n'); | ||
| 181 | EXIT(1); | ||
| 182 | } | ||
| 183 | } | ||
| 184 | |||
| 185 | static void run_test(const PRNGtest *t) | ||
| 186 | { | ||
| 187 | unsigned char buf[8]; | ||
| 188 | int n; | ||
| 189 | |||
| 190 | FIPS_set_prng_key(t->keys[0],t->keys[1]); | ||
| 191 | FIPS_test_mode(1,t->time); | ||
| 192 | RAND_seed(t->seed,sizeof t->seed); | ||
| 193 | |||
| 194 | if(RAND_bytes(buf,8) <= 0) | ||
| 195 | { | ||
| 196 | ERR_print_errors_fp(stderr); | ||
| 197 | EXIT(2); | ||
| 198 | } | ||
| 199 | compare(buf,t->block1,8); | ||
| 200 | for(n=0 ; n < 99 ; ++n) | ||
| 201 | if(RAND_bytes(buf,8) <= 0) | ||
| 202 | { | ||
| 203 | ERR_print_errors_fp(stderr); | ||
| 204 | EXIT(2); | ||
| 205 | } | ||
| 206 | compare(buf,t->block100,8); | ||
| 207 | FIPS_test_mode(0,NULL); | ||
| 208 | } | ||
| 209 | |||
| 210 | int main() | ||
| 211 | { | ||
| 212 | unsigned char buf[2500]; | ||
| 213 | int i,j,k,s,sign,nsign,err=0; | ||
| 214 | unsigned long n1; | ||
| 215 | unsigned long n2[16]; | ||
| 216 | unsigned long runs[2][34]; | ||
| 217 | /*double d; */ | ||
| 218 | long d; | ||
| 219 | |||
| 220 | ERR_load_crypto_strings(); | ||
| 221 | RAND_set_rand_method(FIPS_rand_method()); | ||
| 222 | |||
| 223 | run_test(&t1); | ||
| 224 | run_test(&t2); | ||
| 225 | |||
| 226 | FIPS_set_prng_key(prng_key1,prng_key2); | ||
| 227 | RAND_seed(prng_seed,sizeof prng_seed); | ||
| 228 | |||
| 229 | i = RAND_pseudo_bytes(buf,2500); | ||
| 230 | if (i <= 0) | ||
| 231 | { | ||
| 232 | printf ("init failed, the rand method is not properly installed\n"); | ||
| 233 | err++; | ||
| 234 | goto err; | ||
| 235 | } | ||
| 236 | |||
| 237 | n1=0; | ||
| 238 | for (i=0; i<16; i++) n2[i]=0; | ||
| 239 | for (i=0; i<34; i++) runs[0][i]=runs[1][i]=0; | ||
| 240 | |||
| 241 | /* test 1 and 2 */ | ||
| 242 | sign=0; | ||
| 243 | nsign=0; | ||
| 244 | for (i=0; i<2500; i++) | ||
| 245 | { | ||
| 246 | j=buf[i]; | ||
| 247 | |||
| 248 | n2[j&0x0f]++; | ||
| 249 | n2[(j>>4)&0x0f]++; | ||
| 250 | |||
| 251 | for (k=0; k<8; k++) | ||
| 252 | { | ||
| 253 | s=(j&0x01); | ||
| 254 | if (s == sign) | ||
| 255 | nsign++; | ||
| 256 | else | ||
| 257 | { | ||
| 258 | if (nsign > 34) nsign=34; | ||
| 259 | if (nsign != 0) | ||
| 260 | { | ||
| 261 | runs[sign][nsign-1]++; | ||
| 262 | if (nsign > 6) | ||
| 263 | runs[sign][5]++; | ||
| 264 | } | ||
| 265 | sign=s; | ||
| 266 | nsign=1; | ||
| 267 | } | ||
| 268 | |||
| 269 | if (s) n1++; | ||
| 270 | j>>=1; | ||
| 271 | } | ||
| 272 | } | ||
| 273 | if (nsign > 34) nsign=34; | ||
| 274 | if (nsign != 0) runs[sign][nsign-1]++; | ||
| 275 | |||
| 276 | /* test 1 */ | ||
| 277 | if (!((9654 < n1) && (n1 < 10346))) | ||
| 278 | { | ||
| 279 | printf("test 1 failed, X=%lu\n",n1); | ||
| 280 | err++; | ||
| 281 | } | ||
| 282 | printf("test 1 done\n"); | ||
| 283 | |||
| 284 | /* test 2 */ | ||
| 285 | #ifdef undef | ||
| 286 | d=0; | ||
| 287 | for (i=0; i<16; i++) | ||
| 288 | d+=n2[i]*n2[i]; | ||
| 289 | d=d*16.0/5000.0-5000.0; | ||
| 290 | if (!((1.03 < d) && (d < 57.4))) | ||
| 291 | { | ||
| 292 | printf("test 2 failed, X=%.2f\n",d); | ||
| 293 | err++; | ||
| 294 | } | ||
| 295 | #endif | ||
| 296 | d=0; | ||
| 297 | for (i=0; i<16; i++) | ||
| 298 | d+=n2[i]*n2[i]; | ||
| 299 | d=(d*8)/25-500000; | ||
| 300 | if (!((103 < d) && (d < 5740))) | ||
| 301 | { | ||
| 302 | printf("test 2 failed, X=%ld.%02ld\n",d/100L,d%100L); | ||
| 303 | err++; | ||
| 304 | } | ||
| 305 | printf("test 2 done\n"); | ||
| 306 | |||
| 307 | /* test 3 */ | ||
| 308 | for (i=0; i<2; i++) | ||
| 309 | { | ||
| 310 | if (!((2267 < runs[i][0]) && (runs[i][0] < 2733))) | ||
| 311 | { | ||
| 312 | printf("test 3 failed, bit=%d run=%d num=%lu\n", | ||
| 313 | i,1,runs[i][0]); | ||
| 314 | err++; | ||
| 315 | } | ||
| 316 | if (!((1079 < runs[i][1]) && (runs[i][1] < 1421))) | ||
| 317 | { | ||
| 318 | printf("test 3 failed, bit=%d run=%d num=%lu\n", | ||
| 319 | i,2,runs[i][1]); | ||
| 320 | err++; | ||
| 321 | } | ||
| 322 | if (!(( 502 < runs[i][2]) && (runs[i][2] < 748))) | ||
| 323 | { | ||
| 324 | printf("test 3 failed, bit=%d run=%d num=%lu\n", | ||
| 325 | i,3,runs[i][2]); | ||
| 326 | err++; | ||
| 327 | } | ||
| 328 | if (!(( 223 < runs[i][3]) && (runs[i][3] < 402))) | ||
| 329 | { | ||
| 330 | printf("test 3 failed, bit=%d run=%d num=%lu\n", | ||
| 331 | i,4,runs[i][3]); | ||
| 332 | err++; | ||
| 333 | } | ||
| 334 | if (!(( 90 < runs[i][4]) && (runs[i][4] < 223))) | ||
| 335 | { | ||
| 336 | printf("test 3 failed, bit=%d run=%d num=%lu\n", | ||
| 337 | i,5,runs[i][4]); | ||
| 338 | err++; | ||
| 339 | } | ||
| 340 | if (!(( 90 < runs[i][5]) && (runs[i][5] < 223))) | ||
| 341 | { | ||
| 342 | printf("test 3 failed, bit=%d run=%d num=%lu\n", | ||
| 343 | i,6,runs[i][5]); | ||
| 344 | err++; | ||
| 345 | } | ||
| 346 | } | ||
| 347 | printf("test 3 done\n"); | ||
| 348 | |||
| 349 | /* test 4 */ | ||
| 350 | if (runs[0][33] != 0) | ||
| 351 | { | ||
| 352 | printf("test 4 failed, bit=%d run=%d num=%lu\n", | ||
| 353 | 0,34,runs[0][33]); | ||
| 354 | err++; | ||
| 355 | } | ||
| 356 | if (runs[1][33] != 0) | ||
| 357 | { | ||
| 358 | printf("test 4 failed, bit=%d run=%d num=%lu\n", | ||
| 359 | 1,34,runs[1][33]); | ||
| 360 | err++; | ||
| 361 | } | ||
| 362 | printf("test 4 done\n"); | ||
| 363 | err: | ||
| 364 | err=((err)?1:0); | ||
| 365 | EXIT(err); | ||
| 366 | return(err); | ||
| 367 | } | ||
| 368 | |||
| 369 | #endif | ||
diff --git a/src/lib/libssl/src/fips/rsa/Makefile b/src/lib/libssl/src/fips/rsa/Makefile new file mode 100644 index 0000000000..bb20f86442 --- /dev/null +++ b/src/lib/libssl/src/fips/rsa/Makefile | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/fips/rsa/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rsa | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=fips_rsa_eay.c fips_rsa_gen.c fips_rsa_selftest.c | ||
| 26 | LIBOBJ=fips_rsa_eay.o fips_rsa_gen.o fips_rsa_selftest.o | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= | ||
| 31 | HEADER= $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: check lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @sleep 2; touch lib | ||
| 44 | |||
| 45 | check: | ||
| 46 | TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | fips_rsa_eay.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 83 | fips_rsa_eay.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 84 | fips_rsa_eay.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 85 | fips_rsa_eay.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 86 | fips_rsa_eay.o: ../../include/openssl/opensslconf.h | ||
| 87 | fips_rsa_eay.o: ../../include/openssl/opensslv.h | ||
| 88 | fips_rsa_eay.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 89 | fips_rsa_eay.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 90 | fips_rsa_eay.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 91 | fips_rsa_eay.o: fips_rsa_eay.c | ||
| 92 | fips_rsa_gen.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 93 | fips_rsa_gen.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 94 | fips_rsa_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 95 | fips_rsa_gen.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 96 | fips_rsa_gen.o: ../../include/openssl/opensslconf.h | ||
| 97 | fips_rsa_gen.o: ../../include/openssl/opensslv.h | ||
| 98 | fips_rsa_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h | ||
| 99 | fips_rsa_gen.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 100 | fips_rsa_gen.o: ../../include/openssl/symhacks.h fips_rsa_gen.c | ||
| 101 | fips_rsa_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 102 | fips_rsa_selftest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 103 | fips_rsa_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 104 | fips_rsa_selftest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 105 | fips_rsa_selftest.o: ../../include/openssl/opensslconf.h | ||
| 106 | fips_rsa_selftest.o: ../../include/openssl/opensslv.h | ||
| 107 | fips_rsa_selftest.o: ../../include/openssl/ossl_typ.h | ||
| 108 | fips_rsa_selftest.o: ../../include/openssl/rsa.h | ||
| 109 | fips_rsa_selftest.o: ../../include/openssl/safestack.h | ||
| 110 | fips_rsa_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 111 | fips_rsa_selftest.o: ../../include/openssl/symhacks.h fips_rsa_selftest.c | ||
diff --git a/src/lib/libssl/src/fips/rsa/fips_rsa_eay.c b/src/lib/libssl/src/fips/rsa/fips_rsa_eay.c new file mode 100644 index 0000000000..c571e2b1bf --- /dev/null +++ b/src/lib/libssl/src/fips/rsa/fips_rsa_eay.c | |||
| @@ -0,0 +1,735 @@ | |||
| 1 | /* crypto/rsa/rsa_eay.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <openssl/err.h> | ||
| 61 | #include <openssl/bn.h> | ||
| 62 | #include <openssl/rsa.h> | ||
| 63 | #include <openssl/rand.h> | ||
| 64 | #include <openssl/fips.h> | ||
| 65 | |||
| 66 | #if !defined(RSA_NULL) && defined(OPENSSL_FIPS) | ||
| 67 | |||
| 68 | static int RSA_eay_public_encrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 69 | unsigned char *to, RSA *rsa,int padding); | ||
| 70 | static int RSA_eay_private_encrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 71 | unsigned char *to, RSA *rsa,int padding); | ||
| 72 | static int RSA_eay_public_decrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 73 | unsigned char *to, RSA *rsa,int padding); | ||
| 74 | static int RSA_eay_private_decrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 75 | unsigned char *to, RSA *rsa,int padding); | ||
| 76 | static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa); | ||
| 77 | static int RSA_eay_init(RSA *rsa); | ||
| 78 | static int RSA_eay_finish(RSA *rsa); | ||
| 79 | static RSA_METHOD rsa_pkcs1_eay_meth={ | ||
| 80 | "Eric Young's PKCS#1 RSA", | ||
| 81 | RSA_eay_public_encrypt, | ||
| 82 | RSA_eay_public_decrypt, /* signature verification */ | ||
| 83 | RSA_eay_private_encrypt, /* signing */ | ||
| 84 | RSA_eay_private_decrypt, | ||
| 85 | RSA_eay_mod_exp, | ||
| 86 | BN_mod_exp_mont, /* XXX probably we should not use Montgomery if e == 3 */ | ||
| 87 | RSA_eay_init, | ||
| 88 | RSA_eay_finish, | ||
| 89 | 0, /* flags */ | ||
| 90 | NULL, | ||
| 91 | 0, /* rsa_sign */ | ||
| 92 | 0 /* rsa_verify */ | ||
| 93 | }; | ||
| 94 | |||
| 95 | const RSA_METHOD *RSA_PKCS1_SSLeay(void) | ||
| 96 | { | ||
| 97 | return(&rsa_pkcs1_eay_meth); | ||
| 98 | } | ||
| 99 | |||
| 100 | static int RSA_eay_public_encrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 101 | unsigned char *to, RSA *rsa, int padding) | ||
| 102 | { | ||
| 103 | BIGNUM f,ret; | ||
| 104 | int i,j,k,num=0,r= -1; | ||
| 105 | unsigned char *buf=NULL; | ||
| 106 | BN_CTX *ctx=NULL; | ||
| 107 | |||
| 108 | BN_init(&f); | ||
| 109 | BN_init(&ret); | ||
| 110 | |||
| 111 | if(FIPS_selftest_failed()) | ||
| 112 | { | ||
| 113 | FIPSerr(FIPS_F_RSA_EAY_PUBLIC_ENCRYPT,FIPS_R_FIPS_SELFTEST_FAILED); | ||
| 114 | goto err; | ||
| 115 | } | ||
| 116 | |||
| 117 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 118 | num=BN_num_bytes(rsa->n); | ||
| 119 | if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL) | ||
| 120 | { | ||
| 121 | RSAerr(RSA_F_RSA_EAY_PUBLIC_ENCRYPT,ERR_R_MALLOC_FAILURE); | ||
| 122 | goto err; | ||
| 123 | } | ||
| 124 | |||
| 125 | switch (padding) | ||
| 126 | { | ||
| 127 | case RSA_PKCS1_PADDING: | ||
| 128 | i=RSA_padding_add_PKCS1_type_2(buf,num,from,flen); | ||
| 129 | break; | ||
| 130 | #ifndef OPENSSL_NO_SHA | ||
| 131 | case RSA_PKCS1_OAEP_PADDING: | ||
| 132 | i=RSA_padding_add_PKCS1_OAEP(buf,num,from,flen,NULL,0); | ||
| 133 | break; | ||
| 134 | #endif | ||
| 135 | case RSA_SSLV23_PADDING: | ||
| 136 | i=RSA_padding_add_SSLv23(buf,num,from,flen); | ||
| 137 | break; | ||
| 138 | case RSA_NO_PADDING: | ||
| 139 | i=RSA_padding_add_none(buf,num,from,flen); | ||
| 140 | break; | ||
| 141 | default: | ||
| 142 | RSAerr(RSA_F_RSA_EAY_PUBLIC_ENCRYPT,RSA_R_UNKNOWN_PADDING_TYPE); | ||
| 143 | goto err; | ||
| 144 | } | ||
| 145 | if (i <= 0) goto err; | ||
| 146 | |||
| 147 | if (BN_bin2bn(buf,num,&f) == NULL) goto err; | ||
| 148 | |||
| 149 | if (BN_ucmp(&f, rsa->n) >= 0) | ||
| 150 | { | ||
| 151 | /* usually the padding functions would catch this */ | ||
| 152 | RSAerr(RSA_F_RSA_EAY_PUBLIC_ENCRYPT,RSA_R_DATA_TOO_LARGE_FOR_MODULUS); | ||
| 153 | goto err; | ||
| 154 | } | ||
| 155 | |||
| 156 | if ((rsa->_method_mod_n == NULL) && (rsa->flags & RSA_FLAG_CACHE_PUBLIC)) | ||
| 157 | { | ||
| 158 | BN_MONT_CTX* bn_mont_ctx; | ||
| 159 | if ((bn_mont_ctx=BN_MONT_CTX_new()) == NULL) | ||
| 160 | goto err; | ||
| 161 | if (!BN_MONT_CTX_set(bn_mont_ctx,rsa->n,ctx)) | ||
| 162 | { | ||
| 163 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 164 | goto err; | ||
| 165 | } | ||
| 166 | if (rsa->_method_mod_n == NULL) /* other thread may have finished first */ | ||
| 167 | { | ||
| 168 | CRYPTO_w_lock(CRYPTO_LOCK_RSA); | ||
| 169 | if (rsa->_method_mod_n == NULL) | ||
| 170 | { | ||
| 171 | rsa->_method_mod_n = bn_mont_ctx; | ||
| 172 | bn_mont_ctx = NULL; | ||
| 173 | } | ||
| 174 | CRYPTO_w_unlock(CRYPTO_LOCK_RSA); | ||
| 175 | } | ||
| 176 | if (bn_mont_ctx) | ||
| 177 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 178 | } | ||
| 179 | |||
| 180 | if (!rsa->meth->bn_mod_exp(&ret,&f,rsa->e,rsa->n,ctx, | ||
| 181 | rsa->_method_mod_n)) goto err; | ||
| 182 | |||
| 183 | /* put in leading 0 bytes if the number is less than the | ||
| 184 | * length of the modulus */ | ||
| 185 | j=BN_num_bytes(&ret); | ||
| 186 | i=BN_bn2bin(&ret,&(to[num-j])); | ||
| 187 | for (k=0; k<(num-i); k++) | ||
| 188 | to[k]=0; | ||
| 189 | |||
| 190 | r=num; | ||
| 191 | err: | ||
| 192 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 193 | BN_clear_free(&f); | ||
| 194 | BN_clear_free(&ret); | ||
| 195 | if (buf != NULL) | ||
| 196 | { | ||
| 197 | OPENSSL_cleanse(buf,num); | ||
| 198 | OPENSSL_free(buf); | ||
| 199 | } | ||
| 200 | return(r); | ||
| 201 | } | ||
| 202 | |||
| 203 | static int rsa_eay_blinding(RSA *rsa, BN_CTX *ctx) | ||
| 204 | { | ||
| 205 | int ret = 1; | ||
| 206 | CRYPTO_w_lock(CRYPTO_LOCK_RSA); | ||
| 207 | /* Check again inside the lock - the macro's check is racey */ | ||
| 208 | if(rsa->blinding == NULL) | ||
| 209 | ret = RSA_blinding_on(rsa, ctx); | ||
| 210 | CRYPTO_w_unlock(CRYPTO_LOCK_RSA); | ||
| 211 | return ret; | ||
| 212 | } | ||
| 213 | |||
| 214 | #define BLINDING_HELPER(rsa, ctx, err_instr) \ | ||
| 215 | do { \ | ||
| 216 | if((!((rsa)->flags & RSA_FLAG_NO_BLINDING)) && \ | ||
| 217 | ((rsa)->blinding == NULL) && \ | ||
| 218 | !rsa_eay_blinding(rsa, ctx)) \ | ||
| 219 | err_instr \ | ||
| 220 | } while(0) | ||
| 221 | |||
| 222 | static BN_BLINDING *setup_blinding(RSA *rsa, BN_CTX *ctx) | ||
| 223 | { | ||
| 224 | BIGNUM *A, *Ai; | ||
| 225 | BN_BLINDING *ret = NULL; | ||
| 226 | |||
| 227 | /* added in OpenSSL 0.9.6j and 0.9.7b */ | ||
| 228 | |||
| 229 | /* NB: similar code appears in RSA_blinding_on (rsa_lib.c); | ||
| 230 | * this should be placed in a new function of its own, but for reasons | ||
| 231 | * of binary compatibility can't */ | ||
| 232 | |||
| 233 | BN_CTX_start(ctx); | ||
| 234 | A = BN_CTX_get(ctx); | ||
| 235 | if ((RAND_status() == 0) && rsa->d != NULL && rsa->d->d != NULL) | ||
| 236 | { | ||
| 237 | /* if PRNG is not properly seeded, resort to secret exponent as unpredictable seed */ | ||
| 238 | RAND_add(rsa->d->d, rsa->d->dmax * sizeof rsa->d->d[0], 0); | ||
| 239 | if (!BN_pseudo_rand_range(A,rsa->n)) goto err; | ||
| 240 | } | ||
| 241 | else | ||
| 242 | { | ||
| 243 | if (!BN_rand_range(A,rsa->n)) goto err; | ||
| 244 | } | ||
| 245 | if ((Ai=BN_mod_inverse(NULL,A,rsa->n,ctx)) == NULL) goto err; | ||
| 246 | |||
| 247 | if (!rsa->meth->bn_mod_exp(A,A,rsa->e,rsa->n,ctx,rsa->_method_mod_n)) | ||
| 248 | goto err; | ||
| 249 | ret = BN_BLINDING_new(A,Ai,rsa->n); | ||
| 250 | BN_free(Ai); | ||
| 251 | err: | ||
| 252 | BN_CTX_end(ctx); | ||
| 253 | return ret; | ||
| 254 | } | ||
| 255 | |||
| 256 | /* signing */ | ||
| 257 | static int RSA_eay_private_encrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 258 | unsigned char *to, RSA *rsa, int padding) | ||
| 259 | { | ||
| 260 | BIGNUM f,ret; | ||
| 261 | int i,j,k,num=0,r= -1; | ||
| 262 | unsigned char *buf=NULL; | ||
| 263 | BN_CTX *ctx=NULL; | ||
| 264 | int local_blinding = 0; | ||
| 265 | BN_BLINDING *blinding = NULL; | ||
| 266 | |||
| 267 | BN_init(&f); | ||
| 268 | BN_init(&ret); | ||
| 269 | |||
| 270 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 271 | num=BN_num_bytes(rsa->n); | ||
| 272 | if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL) | ||
| 273 | { | ||
| 274 | RSAerr(RSA_F_RSA_EAY_PRIVATE_ENCRYPT,ERR_R_MALLOC_FAILURE); | ||
| 275 | goto err; | ||
| 276 | } | ||
| 277 | |||
| 278 | switch (padding) | ||
| 279 | { | ||
| 280 | case RSA_PKCS1_PADDING: | ||
| 281 | i=RSA_padding_add_PKCS1_type_1(buf,num,from,flen); | ||
| 282 | break; | ||
| 283 | case RSA_NO_PADDING: | ||
| 284 | i=RSA_padding_add_none(buf,num,from,flen); | ||
| 285 | break; | ||
| 286 | case RSA_SSLV23_PADDING: | ||
| 287 | default: | ||
| 288 | RSAerr(RSA_F_RSA_EAY_PRIVATE_ENCRYPT,RSA_R_UNKNOWN_PADDING_TYPE); | ||
| 289 | goto err; | ||
| 290 | } | ||
| 291 | if (i <= 0) goto err; | ||
| 292 | |||
| 293 | if (BN_bin2bn(buf,num,&f) == NULL) goto err; | ||
| 294 | |||
| 295 | if (BN_ucmp(&f, rsa->n) >= 0) | ||
| 296 | { | ||
| 297 | /* usually the padding functions would catch this */ | ||
| 298 | RSAerr(RSA_F_RSA_EAY_PRIVATE_ENCRYPT,RSA_R_DATA_TOO_LARGE_FOR_MODULUS); | ||
| 299 | goto err; | ||
| 300 | } | ||
| 301 | |||
| 302 | BLINDING_HELPER(rsa, ctx, goto err;); | ||
| 303 | blinding = rsa->blinding; | ||
| 304 | |||
| 305 | /* Now unless blinding is disabled, 'blinding' is non-NULL. | ||
| 306 | * But the BN_BLINDING object may be owned by some other thread | ||
| 307 | * (we don't want to keep it constant and we don't want to use | ||
| 308 | * lots of locking to avoid race conditions, so only a single | ||
| 309 | * thread can use it; other threads have to use local blinding | ||
| 310 | * factors) */ | ||
| 311 | if (!(rsa->flags & RSA_FLAG_NO_BLINDING)) | ||
| 312 | { | ||
| 313 | if (blinding == NULL) | ||
| 314 | { | ||
| 315 | RSAerr(RSA_F_RSA_EAY_PRIVATE_ENCRYPT, ERR_R_INTERNAL_ERROR); | ||
| 316 | goto err; | ||
| 317 | } | ||
| 318 | } | ||
| 319 | |||
| 320 | if (blinding != NULL) | ||
| 321 | { | ||
| 322 | if (blinding->thread_id != CRYPTO_thread_id()) | ||
| 323 | { | ||
| 324 | /* we need a local one-time blinding factor */ | ||
| 325 | |||
| 326 | blinding = setup_blinding(rsa, ctx); | ||
| 327 | if (blinding == NULL) | ||
| 328 | goto err; | ||
| 329 | local_blinding = 1; | ||
| 330 | } | ||
| 331 | } | ||
| 332 | |||
| 333 | if (blinding) | ||
| 334 | if (!BN_BLINDING_convert(&f, blinding, ctx)) goto err; | ||
| 335 | |||
| 336 | if ( (rsa->flags & RSA_FLAG_EXT_PKEY) || | ||
| 337 | ((rsa->p != NULL) && | ||
| 338 | (rsa->q != NULL) && | ||
| 339 | (rsa->dmp1 != NULL) && | ||
| 340 | (rsa->dmq1 != NULL) && | ||
| 341 | (rsa->iqmp != NULL)) ) | ||
| 342 | { if (!rsa->meth->rsa_mod_exp(&ret,&f,rsa)) goto err; } | ||
| 343 | else | ||
| 344 | { | ||
| 345 | if (!rsa->meth->bn_mod_exp(&ret,&f,rsa->d,rsa->n,ctx,NULL)) goto err; | ||
| 346 | } | ||
| 347 | |||
| 348 | if (blinding) | ||
| 349 | if (!BN_BLINDING_invert(&ret, blinding, ctx)) goto err; | ||
| 350 | |||
| 351 | /* put in leading 0 bytes if the number is less than the | ||
| 352 | * length of the modulus */ | ||
| 353 | j=BN_num_bytes(&ret); | ||
| 354 | i=BN_bn2bin(&ret,&(to[num-j])); | ||
| 355 | for (k=0; k<(num-i); k++) | ||
| 356 | to[k]=0; | ||
| 357 | |||
| 358 | r=num; | ||
| 359 | err: | ||
| 360 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 361 | BN_clear_free(&ret); | ||
| 362 | BN_clear_free(&f); | ||
| 363 | if (local_blinding) | ||
| 364 | BN_BLINDING_free(blinding); | ||
| 365 | if (buf != NULL) | ||
| 366 | { | ||
| 367 | OPENSSL_cleanse(buf,num); | ||
| 368 | OPENSSL_free(buf); | ||
| 369 | } | ||
| 370 | return(r); | ||
| 371 | } | ||
| 372 | |||
| 373 | static int RSA_eay_private_decrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 374 | unsigned char *to, RSA *rsa, int padding) | ||
| 375 | { | ||
| 376 | BIGNUM f,ret; | ||
| 377 | int j,num=0,r= -1; | ||
| 378 | unsigned char *p; | ||
| 379 | unsigned char *buf=NULL; | ||
| 380 | BN_CTX *ctx=NULL; | ||
| 381 | int local_blinding = 0; | ||
| 382 | BN_BLINDING *blinding = NULL; | ||
| 383 | |||
| 384 | BN_init(&f); | ||
| 385 | BN_init(&ret); | ||
| 386 | ctx=BN_CTX_new(); | ||
| 387 | if (ctx == NULL) goto err; | ||
| 388 | |||
| 389 | num=BN_num_bytes(rsa->n); | ||
| 390 | |||
| 391 | if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL) | ||
| 392 | { | ||
| 393 | RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,ERR_R_MALLOC_FAILURE); | ||
| 394 | goto err; | ||
| 395 | } | ||
| 396 | |||
| 397 | /* This check was for equality but PGP does evil things | ||
| 398 | * and chops off the top '0' bytes */ | ||
| 399 | if (flen > num) | ||
| 400 | { | ||
| 401 | RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,RSA_R_DATA_GREATER_THAN_MOD_LEN); | ||
| 402 | goto err; | ||
| 403 | } | ||
| 404 | |||
| 405 | /* make data into a big number */ | ||
| 406 | if (BN_bin2bn(from,(int)flen,&f) == NULL) goto err; | ||
| 407 | |||
| 408 | if (BN_ucmp(&f, rsa->n) >= 0) | ||
| 409 | { | ||
| 410 | RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,RSA_R_DATA_TOO_LARGE_FOR_MODULUS); | ||
| 411 | goto err; | ||
| 412 | } | ||
| 413 | |||
| 414 | BLINDING_HELPER(rsa, ctx, goto err;); | ||
| 415 | blinding = rsa->blinding; | ||
| 416 | |||
| 417 | /* Now unless blinding is disabled, 'blinding' is non-NULL. | ||
| 418 | * But the BN_BLINDING object may be owned by some other thread | ||
| 419 | * (we don't want to keep it constant and we don't want to use | ||
| 420 | * lots of locking to avoid race conditions, so only a single | ||
| 421 | * thread can use it; other threads have to use local blinding | ||
| 422 | * factors) */ | ||
| 423 | if (!(rsa->flags & RSA_FLAG_NO_BLINDING)) | ||
| 424 | { | ||
| 425 | if (blinding == NULL) | ||
| 426 | { | ||
| 427 | RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT, ERR_R_INTERNAL_ERROR); | ||
| 428 | goto err; | ||
| 429 | } | ||
| 430 | } | ||
| 431 | |||
| 432 | if (blinding != NULL) | ||
| 433 | { | ||
| 434 | if (blinding->thread_id != CRYPTO_thread_id()) | ||
| 435 | { | ||
| 436 | /* we need a local one-time blinding factor */ | ||
| 437 | |||
| 438 | blinding = setup_blinding(rsa, ctx); | ||
| 439 | if (blinding == NULL) | ||
| 440 | goto err; | ||
| 441 | local_blinding = 1; | ||
| 442 | } | ||
| 443 | } | ||
| 444 | |||
| 445 | if (blinding) | ||
| 446 | if (!BN_BLINDING_convert(&f, blinding, ctx)) goto err; | ||
| 447 | |||
| 448 | /* do the decrypt */ | ||
| 449 | if ( (rsa->flags & RSA_FLAG_EXT_PKEY) || | ||
| 450 | ((rsa->p != NULL) && | ||
| 451 | (rsa->q != NULL) && | ||
| 452 | (rsa->dmp1 != NULL) && | ||
| 453 | (rsa->dmq1 != NULL) && | ||
| 454 | (rsa->iqmp != NULL)) ) | ||
| 455 | { if (!rsa->meth->rsa_mod_exp(&ret,&f,rsa)) goto err; } | ||
| 456 | else | ||
| 457 | { | ||
| 458 | if (!rsa->meth->bn_mod_exp(&ret,&f,rsa->d,rsa->n,ctx,NULL)) | ||
| 459 | goto err; | ||
| 460 | } | ||
| 461 | |||
| 462 | if (blinding) | ||
| 463 | if (!BN_BLINDING_invert(&ret, blinding, ctx)) goto err; | ||
| 464 | |||
| 465 | p=buf; | ||
| 466 | j=BN_bn2bin(&ret,p); /* j is only used with no-padding mode */ | ||
| 467 | |||
| 468 | switch (padding) | ||
| 469 | { | ||
| 470 | case RSA_PKCS1_PADDING: | ||
| 471 | r=RSA_padding_check_PKCS1_type_2(to,num,buf,j,num); | ||
| 472 | break; | ||
| 473 | #ifndef OPENSSL_NO_SHA | ||
| 474 | case RSA_PKCS1_OAEP_PADDING: | ||
| 475 | r=RSA_padding_check_PKCS1_OAEP(to,num,buf,j,num,NULL,0); | ||
| 476 | break; | ||
| 477 | #endif | ||
| 478 | case RSA_SSLV23_PADDING: | ||
| 479 | r=RSA_padding_check_SSLv23(to,num,buf,j,num); | ||
| 480 | break; | ||
| 481 | case RSA_NO_PADDING: | ||
| 482 | r=RSA_padding_check_none(to,num,buf,j,num); | ||
| 483 | break; | ||
| 484 | default: | ||
| 485 | RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,RSA_R_UNKNOWN_PADDING_TYPE); | ||
| 486 | goto err; | ||
| 487 | } | ||
| 488 | if (r < 0) | ||
| 489 | RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,RSA_R_PADDING_CHECK_FAILED); | ||
| 490 | |||
| 491 | err: | ||
| 492 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 493 | BN_clear_free(&f); | ||
| 494 | BN_clear_free(&ret); | ||
| 495 | if (local_blinding) | ||
| 496 | BN_BLINDING_free(blinding); | ||
| 497 | if (buf != NULL) | ||
| 498 | { | ||
| 499 | OPENSSL_cleanse(buf,num); | ||
| 500 | OPENSSL_free(buf); | ||
| 501 | } | ||
| 502 | return(r); | ||
| 503 | } | ||
| 504 | |||
| 505 | /* signature verification */ | ||
| 506 | static int RSA_eay_public_decrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, | ||
| 507 | unsigned char *to, RSA *rsa, int padding) | ||
| 508 | { | ||
| 509 | BIGNUM f,ret; | ||
| 510 | int i,num=0,r= -1; | ||
| 511 | unsigned char *p; | ||
| 512 | unsigned char *buf=NULL; | ||
| 513 | BN_CTX *ctx=NULL; | ||
| 514 | |||
| 515 | BN_init(&f); | ||
| 516 | BN_init(&ret); | ||
| 517 | ctx=BN_CTX_new(); | ||
| 518 | if (ctx == NULL) goto err; | ||
| 519 | |||
| 520 | num=BN_num_bytes(rsa->n); | ||
| 521 | buf=(unsigned char *)OPENSSL_malloc(num); | ||
| 522 | if (buf == NULL) | ||
| 523 | { | ||
| 524 | RSAerr(RSA_F_RSA_EAY_PUBLIC_DECRYPT,ERR_R_MALLOC_FAILURE); | ||
| 525 | goto err; | ||
| 526 | } | ||
| 527 | |||
| 528 | /* This check was for equality but PGP does evil things | ||
| 529 | * and chops off the top '0' bytes */ | ||
| 530 | if (flen > num) | ||
| 531 | { | ||
| 532 | RSAerr(RSA_F_RSA_EAY_PUBLIC_DECRYPT,RSA_R_DATA_GREATER_THAN_MOD_LEN); | ||
| 533 | goto err; | ||
| 534 | } | ||
| 535 | |||
| 536 | if (BN_bin2bn(from,flen,&f) == NULL) goto err; | ||
| 537 | |||
| 538 | if (BN_ucmp(&f, rsa->n) >= 0) | ||
| 539 | { | ||
| 540 | RSAerr(RSA_F_RSA_EAY_PUBLIC_DECRYPT,RSA_R_DATA_TOO_LARGE_FOR_MODULUS); | ||
| 541 | goto err; | ||
| 542 | } | ||
| 543 | |||
| 544 | /* do the decrypt */ | ||
| 545 | if ((rsa->_method_mod_n == NULL) && (rsa->flags & RSA_FLAG_CACHE_PUBLIC)) | ||
| 546 | { | ||
| 547 | BN_MONT_CTX* bn_mont_ctx; | ||
| 548 | if ((bn_mont_ctx=BN_MONT_CTX_new()) == NULL) | ||
| 549 | goto err; | ||
| 550 | if (!BN_MONT_CTX_set(bn_mont_ctx,rsa->n,ctx)) | ||
| 551 | { | ||
| 552 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 553 | goto err; | ||
| 554 | } | ||
| 555 | if (rsa->_method_mod_n == NULL) /* other thread may have finished first */ | ||
| 556 | { | ||
| 557 | CRYPTO_w_lock(CRYPTO_LOCK_RSA); | ||
| 558 | if (rsa->_method_mod_n == NULL) | ||
| 559 | { | ||
| 560 | rsa->_method_mod_n = bn_mont_ctx; | ||
| 561 | bn_mont_ctx = NULL; | ||
| 562 | } | ||
| 563 | CRYPTO_w_unlock(CRYPTO_LOCK_RSA); | ||
| 564 | } | ||
| 565 | if (bn_mont_ctx) | ||
| 566 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 567 | } | ||
| 568 | |||
| 569 | if (!rsa->meth->bn_mod_exp(&ret,&f,rsa->e,rsa->n,ctx, | ||
| 570 | rsa->_method_mod_n)) goto err; | ||
| 571 | |||
| 572 | p=buf; | ||
| 573 | i=BN_bn2bin(&ret,p); | ||
| 574 | |||
| 575 | switch (padding) | ||
| 576 | { | ||
| 577 | case RSA_PKCS1_PADDING: | ||
| 578 | r=RSA_padding_check_PKCS1_type_1(to,num,buf,i,num); | ||
| 579 | break; | ||
| 580 | case RSA_NO_PADDING: | ||
| 581 | r=RSA_padding_check_none(to,num,buf,i,num); | ||
| 582 | break; | ||
| 583 | default: | ||
| 584 | RSAerr(RSA_F_RSA_EAY_PUBLIC_DECRYPT,RSA_R_UNKNOWN_PADDING_TYPE); | ||
| 585 | goto err; | ||
| 586 | } | ||
| 587 | if (r < 0) | ||
| 588 | RSAerr(RSA_F_RSA_EAY_PUBLIC_DECRYPT,RSA_R_PADDING_CHECK_FAILED); | ||
| 589 | |||
| 590 | err: | ||
| 591 | if (ctx != NULL) BN_CTX_free(ctx); | ||
| 592 | BN_clear_free(&f); | ||
| 593 | BN_clear_free(&ret); | ||
| 594 | if (buf != NULL) | ||
| 595 | { | ||
| 596 | OPENSSL_cleanse(buf,num); | ||
| 597 | OPENSSL_free(buf); | ||
| 598 | } | ||
| 599 | return(r); | ||
| 600 | } | ||
| 601 | |||
| 602 | static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa) | ||
| 603 | { | ||
| 604 | BIGNUM r1,m1,vrfy; | ||
| 605 | int ret=0; | ||
| 606 | BN_CTX *ctx; | ||
| 607 | |||
| 608 | BN_init(&m1); | ||
| 609 | BN_init(&r1); | ||
| 610 | BN_init(&vrfy); | ||
| 611 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 612 | |||
| 613 | if (rsa->flags & RSA_FLAG_CACHE_PRIVATE) | ||
| 614 | { | ||
| 615 | if (rsa->_method_mod_p == NULL) | ||
| 616 | { | ||
| 617 | BN_MONT_CTX* bn_mont_ctx; | ||
| 618 | if ((bn_mont_ctx=BN_MONT_CTX_new()) == NULL) | ||
| 619 | goto err; | ||
| 620 | if (!BN_MONT_CTX_set(bn_mont_ctx,rsa->p,ctx)) | ||
| 621 | { | ||
| 622 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 623 | goto err; | ||
| 624 | } | ||
| 625 | if (rsa->_method_mod_p == NULL) /* other thread may have finished first */ | ||
| 626 | { | ||
| 627 | CRYPTO_w_lock(CRYPTO_LOCK_RSA); | ||
| 628 | if (rsa->_method_mod_p == NULL) | ||
| 629 | { | ||
| 630 | rsa->_method_mod_p = bn_mont_ctx; | ||
| 631 | bn_mont_ctx = NULL; | ||
| 632 | } | ||
| 633 | CRYPTO_w_unlock(CRYPTO_LOCK_RSA); | ||
| 634 | } | ||
| 635 | if (bn_mont_ctx) | ||
| 636 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 637 | } | ||
| 638 | |||
| 639 | if (rsa->_method_mod_q == NULL) | ||
| 640 | { | ||
| 641 | BN_MONT_CTX* bn_mont_ctx; | ||
| 642 | if ((bn_mont_ctx=BN_MONT_CTX_new()) == NULL) | ||
| 643 | goto err; | ||
| 644 | if (!BN_MONT_CTX_set(bn_mont_ctx,rsa->q,ctx)) | ||
| 645 | { | ||
| 646 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 647 | goto err; | ||
| 648 | } | ||
| 649 | if (rsa->_method_mod_q == NULL) /* other thread may have finished first */ | ||
| 650 | { | ||
| 651 | CRYPTO_w_lock(CRYPTO_LOCK_RSA); | ||
| 652 | if (rsa->_method_mod_q == NULL) | ||
| 653 | { | ||
| 654 | rsa->_method_mod_q = bn_mont_ctx; | ||
| 655 | bn_mont_ctx = NULL; | ||
| 656 | } | ||
| 657 | CRYPTO_w_unlock(CRYPTO_LOCK_RSA); | ||
| 658 | } | ||
| 659 | if (bn_mont_ctx) | ||
| 660 | BN_MONT_CTX_free(bn_mont_ctx); | ||
| 661 | } | ||
| 662 | } | ||
| 663 | |||
| 664 | if (!BN_mod(&r1,I,rsa->q,ctx)) goto err; | ||
| 665 | if (!rsa->meth->bn_mod_exp(&m1,&r1,rsa->dmq1,rsa->q,ctx, | ||
| 666 | rsa->_method_mod_q)) goto err; | ||
| 667 | |||
| 668 | if (!BN_mod(&r1,I,rsa->p,ctx)) goto err; | ||
| 669 | if (!rsa->meth->bn_mod_exp(r0,&r1,rsa->dmp1,rsa->p,ctx, | ||
| 670 | rsa->_method_mod_p)) goto err; | ||
| 671 | |||
| 672 | if (!BN_sub(r0,r0,&m1)) goto err; | ||
| 673 | /* This will help stop the size of r0 increasing, which does | ||
| 674 | * affect the multiply if it optimised for a power of 2 size */ | ||
| 675 | if (r0->neg) | ||
| 676 | if (!BN_add(r0,r0,rsa->p)) goto err; | ||
| 677 | |||
| 678 | if (!BN_mul(&r1,r0,rsa->iqmp,ctx)) goto err; | ||
| 679 | if (!BN_mod(r0,&r1,rsa->p,ctx)) goto err; | ||
| 680 | /* If p < q it is occasionally possible for the correction of | ||
| 681 | * adding 'p' if r0 is negative above to leave the result still | ||
| 682 | * negative. This can break the private key operations: the following | ||
| 683 | * second correction should *always* correct this rare occurrence. | ||
| 684 | * This will *never* happen with OpenSSL generated keys because | ||
| 685 | * they ensure p > q [steve] | ||
| 686 | */ | ||
| 687 | if (r0->neg) | ||
| 688 | if (!BN_add(r0,r0,rsa->p)) goto err; | ||
| 689 | if (!BN_mul(&r1,r0,rsa->q,ctx)) goto err; | ||
| 690 | if (!BN_add(r0,&r1,&m1)) goto err; | ||
| 691 | |||
| 692 | if (rsa->e && rsa->n) | ||
| 693 | { | ||
| 694 | if (!rsa->meth->bn_mod_exp(&vrfy,r0,rsa->e,rsa->n,ctx,NULL)) goto err; | ||
| 695 | /* If 'I' was greater than (or equal to) rsa->n, the operation | ||
| 696 | * will be equivalent to using 'I mod n'. However, the result of | ||
| 697 | * the verify will *always* be less than 'n' so we don't check | ||
| 698 | * for absolute equality, just congruency. */ | ||
| 699 | if (!BN_sub(&vrfy, &vrfy, I)) goto err; | ||
| 700 | if (!BN_mod(&vrfy, &vrfy, rsa->n, ctx)) goto err; | ||
| 701 | if (vrfy.neg) | ||
| 702 | if (!BN_add(&vrfy, &vrfy, rsa->n)) goto err; | ||
| 703 | if (!BN_is_zero(&vrfy)) | ||
| 704 | /* 'I' and 'vrfy' aren't congruent mod n. Don't leak | ||
| 705 | * miscalculated CRT output, just do a raw (slower) | ||
| 706 | * mod_exp and return that instead. */ | ||
| 707 | if (!rsa->meth->bn_mod_exp(r0,I,rsa->d,rsa->n,ctx,NULL)) goto err; | ||
| 708 | } | ||
| 709 | ret=1; | ||
| 710 | err: | ||
| 711 | BN_clear_free(&m1); | ||
| 712 | BN_clear_free(&r1); | ||
| 713 | BN_clear_free(&vrfy); | ||
| 714 | BN_CTX_free(ctx); | ||
| 715 | return(ret); | ||
| 716 | } | ||
| 717 | |||
| 718 | static int RSA_eay_init(RSA *rsa) | ||
| 719 | { | ||
| 720 | rsa->flags|=RSA_FLAG_CACHE_PUBLIC|RSA_FLAG_CACHE_PRIVATE; | ||
| 721 | return(1); | ||
| 722 | } | ||
| 723 | |||
| 724 | static int RSA_eay_finish(RSA *rsa) | ||
| 725 | { | ||
| 726 | if (rsa->_method_mod_n != NULL) | ||
| 727 | BN_MONT_CTX_free(rsa->_method_mod_n); | ||
| 728 | if (rsa->_method_mod_p != NULL) | ||
| 729 | BN_MONT_CTX_free(rsa->_method_mod_p); | ||
| 730 | if (rsa->_method_mod_q != NULL) | ||
| 731 | BN_MONT_CTX_free(rsa->_method_mod_q); | ||
| 732 | return(1); | ||
| 733 | } | ||
| 734 | |||
| 735 | #endif | ||
diff --git a/src/lib/libssl/src/fips/rsa/fips_rsa_gen.c b/src/lib/libssl/src/fips/rsa/fips_rsa_gen.c new file mode 100644 index 0000000000..2c92112477 --- /dev/null +++ b/src/lib/libssl/src/fips/rsa/fips_rsa_gen.c | |||
| @@ -0,0 +1,249 @@ | |||
| 1 | /* crypto/rsa/rsa_gen.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <string.h> | ||
| 61 | #include <time.h> | ||
| 62 | #include <openssl/err.h> | ||
| 63 | #include <openssl/bn.h> | ||
| 64 | #include <openssl/rsa.h> | ||
| 65 | #include <openssl/fips.h> | ||
| 66 | |||
| 67 | #ifdef OPENSSL_FIPS | ||
| 68 | |||
| 69 | static int fips_check_rsa(RSA *rsa) | ||
| 70 | { | ||
| 71 | int n; | ||
| 72 | unsigned char ctext[256]; | ||
| 73 | unsigned char ptext[256]; | ||
| 74 | /* The longest we can have with OAEP padding and a 512 bit key */ | ||
| 75 | static unsigned char original_ptext[] = | ||
| 76 | "\x01\x23\x45\x67\x89\xab\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0" | ||
| 77 | "\x23\x45\x67\x89\xab\xcd"; | ||
| 78 | |||
| 79 | /* this will fail for keys shorter than 512 bits */ | ||
| 80 | n=RSA_public_encrypt(sizeof(original_ptext)-1,original_ptext,ctext,rsa, | ||
| 81 | RSA_PKCS1_OAEP_PADDING); | ||
| 82 | if(n < 0) | ||
| 83 | { | ||
| 84 | ERR_print_errors_fp(stderr); | ||
| 85 | exit(1); | ||
| 86 | } | ||
| 87 | if(!memcmp(ctext,original_ptext,n)) | ||
| 88 | { | ||
| 89 | FIPSerr(FIPS_F_FIPS_CHECK_RSA,FIPS_R_PAIRWISE_TEST_FAILED); | ||
| 90 | return 0; | ||
| 91 | } | ||
| 92 | n=RSA_private_decrypt(n,ctext,ptext,rsa,RSA_PKCS1_OAEP_PADDING); | ||
| 93 | if(n < 0) | ||
| 94 | { | ||
| 95 | ERR_print_errors_fp(stderr); | ||
| 96 | exit(1); | ||
| 97 | } | ||
| 98 | if(n != sizeof(original_ptext)-1 || memcmp(ptext,original_ptext,n)) | ||
| 99 | { | ||
| 100 | FIPSerr(FIPS_F_FIPS_CHECK_RSA,FIPS_R_PAIRWISE_TEST_FAILED); | ||
| 101 | return 0; | ||
| 102 | } | ||
| 103 | |||
| 104 | return 1; | ||
| 105 | } | ||
| 106 | |||
| 107 | RSA *RSA_generate_key(FIPS_RSA_SIZE_T bits, unsigned long e_value, | ||
| 108 | void (*callback)(int,int,void *), void *cb_arg) | ||
| 109 | { | ||
| 110 | RSA *rsa=NULL; | ||
| 111 | BIGNUM *r0=NULL,*r1=NULL,*r2=NULL,*r3=NULL,*tmp; | ||
| 112 | int bitsp,bitsq,ok= -1,n=0,i; | ||
| 113 | BN_CTX *ctx=NULL,*ctx2=NULL; | ||
| 114 | |||
| 115 | if(FIPS_selftest_failed()) | ||
| 116 | { | ||
| 117 | FIPSerr(FIPS_F_RSA_GENERATE_KEY,FIPS_R_FIPS_SELFTEST_FAILED); | ||
| 118 | return NULL; | ||
| 119 | } | ||
| 120 | |||
| 121 | ctx=BN_CTX_new(); | ||
| 122 | if (ctx == NULL) goto err; | ||
| 123 | ctx2=BN_CTX_new(); | ||
| 124 | if (ctx2 == NULL) goto err; | ||
| 125 | BN_CTX_start(ctx); | ||
| 126 | r0 = BN_CTX_get(ctx); | ||
| 127 | r1 = BN_CTX_get(ctx); | ||
| 128 | r2 = BN_CTX_get(ctx); | ||
| 129 | r3 = BN_CTX_get(ctx); | ||
| 130 | if (r3 == NULL) goto err; | ||
| 131 | |||
| 132 | bitsp=(bits+1)/2; | ||
| 133 | bitsq=bits-bitsp; | ||
| 134 | rsa=RSA_new(); | ||
| 135 | if (rsa == NULL) goto err; | ||
| 136 | |||
| 137 | /* set e */ | ||
| 138 | rsa->e=BN_new(); | ||
| 139 | if (rsa->e == NULL) goto err; | ||
| 140 | |||
| 141 | #if 1 | ||
| 142 | /* The problem is when building with 8, 16, or 32 BN_ULONG, | ||
| 143 | * unsigned long can be larger */ | ||
| 144 | for (i=0; i<sizeof(unsigned long)*8; i++) | ||
| 145 | { | ||
| 146 | if (e_value & (1UL<<i)) | ||
| 147 | BN_set_bit(rsa->e,i); | ||
| 148 | } | ||
| 149 | #else | ||
| 150 | if (!BN_set_word(rsa->e,e_value)) goto err; | ||
| 151 | #endif | ||
| 152 | |||
| 153 | /* generate p and q */ | ||
| 154 | for (;;) | ||
| 155 | { | ||
| 156 | rsa->p=BN_generate_prime(NULL,bitsp,0,NULL,NULL,callback,cb_arg); | ||
| 157 | if (rsa->p == NULL) goto err; | ||
| 158 | if (!BN_sub(r2,rsa->p,BN_value_one())) goto err; | ||
| 159 | if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err; | ||
| 160 | if (BN_is_one(r1)) break; | ||
| 161 | if (callback != NULL) callback(2,n++,cb_arg); | ||
| 162 | BN_free(rsa->p); | ||
| 163 | } | ||
| 164 | if (callback != NULL) callback(3,0,cb_arg); | ||
| 165 | for (;;) | ||
| 166 | { | ||
| 167 | rsa->q=BN_generate_prime(NULL,bitsq,0,NULL,NULL,callback,cb_arg); | ||
| 168 | if (rsa->q == NULL) goto err; | ||
| 169 | if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; | ||
| 170 | if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err; | ||
| 171 | if (BN_is_one(r1) && (BN_cmp(rsa->p,rsa->q) != 0)) | ||
| 172 | break; | ||
| 173 | if (callback != NULL) callback(2,n++,cb_arg); | ||
| 174 | BN_free(rsa->q); | ||
| 175 | } | ||
| 176 | if (callback != NULL) callback(3,1,cb_arg); | ||
| 177 | if (BN_cmp(rsa->p,rsa->q) < 0) | ||
| 178 | { | ||
| 179 | tmp=rsa->p; | ||
| 180 | rsa->p=rsa->q; | ||
| 181 | rsa->q=tmp; | ||
| 182 | } | ||
| 183 | |||
| 184 | /* calculate n */ | ||
| 185 | rsa->n=BN_new(); | ||
| 186 | if (rsa->n == NULL) goto err; | ||
| 187 | if (!BN_mul(rsa->n,rsa->p,rsa->q,ctx)) goto err; | ||
| 188 | |||
| 189 | /* calculate d */ | ||
| 190 | if (!BN_sub(r1,rsa->p,BN_value_one())) goto err; /* p-1 */ | ||
| 191 | if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; /* q-1 */ | ||
| 192 | if (!BN_mul(r0,r1,r2,ctx)) goto err; /* (p-1)(q-1) */ | ||
| 193 | |||
| 194 | /* should not be needed, since gcd(p-1,e) == 1 and gcd(q-1,e) == 1 */ | ||
| 195 | /* for (;;) | ||
| 196 | { | ||
| 197 | if (!BN_gcd(r3,r0,rsa->e,ctx)) goto err; | ||
| 198 | if (BN_is_one(r3)) break; | ||
| 199 | |||
| 200 | if (1) | ||
| 201 | { | ||
| 202 | if (!BN_add_word(rsa->e,2L)) goto err; | ||
| 203 | continue; | ||
| 204 | } | ||
| 205 | RSAerr(RSA_F_RSA_GENERATE_KEY,RSA_R_BAD_E_VALUE); | ||
| 206 | goto err; | ||
| 207 | } | ||
| 208 | */ | ||
| 209 | rsa->d=BN_mod_inverse(NULL,rsa->e,r0,ctx2); /* d */ | ||
| 210 | if (rsa->d == NULL) goto err; | ||
| 211 | |||
| 212 | /* calculate d mod (p-1) */ | ||
| 213 | rsa->dmp1=BN_new(); | ||
| 214 | if (rsa->dmp1 == NULL) goto err; | ||
| 215 | if (!BN_mod(rsa->dmp1,rsa->d,r1,ctx)) goto err; | ||
| 216 | |||
| 217 | /* calculate d mod (q-1) */ | ||
| 218 | rsa->dmq1=BN_new(); | ||
| 219 | if (rsa->dmq1 == NULL) goto err; | ||
| 220 | if (!BN_mod(rsa->dmq1,rsa->d,r2,ctx)) goto err; | ||
| 221 | |||
| 222 | /* calculate inverse of q mod p */ | ||
| 223 | rsa->iqmp=BN_mod_inverse(NULL,rsa->q,rsa->p,ctx2); | ||
| 224 | if (rsa->iqmp == NULL) goto err; | ||
| 225 | |||
| 226 | if(!fips_check_rsa(rsa)) | ||
| 227 | goto err; | ||
| 228 | |||
| 229 | ok=1; | ||
| 230 | err: | ||
| 231 | if (ok == -1) | ||
| 232 | { | ||
| 233 | RSAerr(RSA_F_RSA_GENERATE_KEY,ERR_LIB_BN); | ||
| 234 | ok=0; | ||
| 235 | } | ||
| 236 | BN_CTX_end(ctx); | ||
| 237 | BN_CTX_free(ctx); | ||
| 238 | BN_CTX_free(ctx2); | ||
| 239 | |||
| 240 | if (!ok) | ||
| 241 | { | ||
| 242 | if (rsa != NULL) RSA_free(rsa); | ||
| 243 | return(NULL); | ||
| 244 | } | ||
| 245 | else | ||
| 246 | return(rsa); | ||
| 247 | } | ||
| 248 | |||
| 249 | #endif | ||
diff --git a/src/lib/libssl/src/fips/rsa/fips_rsa_selftest.c b/src/lib/libssl/src/fips/rsa/fips_rsa_selftest.c new file mode 100644 index 0000000000..4e3b9445fc --- /dev/null +++ b/src/lib/libssl/src/fips/rsa/fips_rsa_selftest.c | |||
| @@ -0,0 +1,251 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * openssl-core@openssl.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * | ||
| 48 | */ | ||
| 49 | |||
| 50 | #include <string.h> | ||
| 51 | #include <openssl/err.h> | ||
| 52 | #include <openssl/fips.h> | ||
| 53 | #include <openssl/rsa.h> | ||
| 54 | #include <openssl/sha.h> | ||
| 55 | #include <openssl/opensslconf.h> | ||
| 56 | |||
| 57 | #ifdef OPENSSL_FIPS | ||
| 58 | #define SetKey \ | ||
| 59 | key->n = BN_bin2bn(n, sizeof(n)-1, key->n); \ | ||
| 60 | key->e = BN_bin2bn(e, sizeof(e)-1, key->e); \ | ||
| 61 | key->d = BN_bin2bn(d, sizeof(d)-1, key->d); \ | ||
| 62 | key->p = BN_bin2bn(p, sizeof(p)-1, key->p); \ | ||
| 63 | key->q = BN_bin2bn(q, sizeof(q)-1, key->q); \ | ||
| 64 | key->dmp1 = BN_bin2bn(dmp1, sizeof(dmp1)-1, key->dmp1); \ | ||
| 65 | key->dmq1 = BN_bin2bn(dmq1, sizeof(dmq1)-1, key->dmq1); \ | ||
| 66 | key->iqmp = BN_bin2bn(iqmp, sizeof(iqmp)-1, key->iqmp); \ | ||
| 67 | memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \ | ||
| 68 | return (sizeof(ctext_ex) - 1); | ||
| 69 | |||
| 70 | static unsigned char n[] = | ||
| 71 | "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71" | ||
| 72 | "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5" | ||
| 73 | "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD" | ||
| 74 | "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80" | ||
| 75 | "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25" | ||
| 76 | "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39" | ||
| 77 | "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68" | ||
| 78 | "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD" | ||
| 79 | "\xCB"; | ||
| 80 | |||
| 81 | |||
| 82 | static int setrsakey(RSA *key, unsigned char *c) | ||
| 83 | { | ||
| 84 | static unsigned char e[] = "\x11"; | ||
| 85 | |||
| 86 | static unsigned char d[] = | ||
| 87 | "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD" | ||
| 88 | "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41" | ||
| 89 | "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69" | ||
| 90 | "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA" | ||
| 91 | "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94" | ||
| 92 | "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A" | ||
| 93 | "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94" | ||
| 94 | "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3" | ||
| 95 | "\xC1"; | ||
| 96 | |||
| 97 | static unsigned char p[] = | ||
| 98 | "\x00\xEE\xCF\xAE\x81\xB1\xB9\xB3\xC9\x08\x81\x0B\x10\xA1\xB5\x60" | ||
| 99 | "\x01\x99\xEB\x9F\x44\xAE\xF4\xFD\xA4\x93\xB8\x1A\x9E\x3D\x84\xF6" | ||
| 100 | "\x32\x12\x4E\xF0\x23\x6E\x5D\x1E\x3B\x7E\x28\xFA\xE7\xAA\x04\x0A" | ||
| 101 | "\x2D\x5B\x25\x21\x76\x45\x9D\x1F\x39\x75\x41\xBA\x2A\x58\xFB\x65" | ||
| 102 | "\x99"; | ||
| 103 | |||
| 104 | static unsigned char q[] = | ||
| 105 | "\x00\xC9\x7F\xB1\xF0\x27\xF4\x53\xF6\x34\x12\x33\xEA\xAA\xD1\xD9" | ||
| 106 | "\x35\x3F\x6C\x42\xD0\x88\x66\xB1\xD0\x5A\x0F\x20\x35\x02\x8B\x9D" | ||
| 107 | "\x86\x98\x40\xB4\x16\x66\xB4\x2E\x92\xEA\x0D\xA3\xB4\x32\x04\xB5" | ||
| 108 | "\xCF\xCE\x33\x52\x52\x4D\x04\x16\xA5\xA4\x41\xE7\x00\xAF\x46\x15" | ||
| 109 | "\x03"; | ||
| 110 | |||
| 111 | static unsigned char dmp1[] = | ||
| 112 | "\x54\x49\x4C\xA6\x3E\xBA\x03\x37\xE4\xE2\x40\x23\xFC\xD6\x9A\x5A" | ||
| 113 | "\xEB\x07\xDD\xDC\x01\x83\xA4\xD0\xAC\x9B\x54\xB0\x51\xF2\xB1\x3E" | ||
| 114 | "\xD9\x49\x09\x75\xEA\xB7\x74\x14\xFF\x59\xC1\xF7\x69\x2E\x9A\x2E" | ||
| 115 | "\x20\x2B\x38\xFC\x91\x0A\x47\x41\x74\xAD\xC9\x3C\x1F\x67\xC9\x81"; | ||
| 116 | |||
| 117 | static unsigned char dmq1[] = | ||
| 118 | "\x47\x1E\x02\x90\xFF\x0A\xF0\x75\x03\x51\xB7\xF8\x78\x86\x4C\xA9" | ||
| 119 | "\x61\xAD\xBD\x3A\x8A\x7E\x99\x1C\x5C\x05\x56\xA9\x4C\x31\x46\xA7" | ||
| 120 | "\xF9\x80\x3F\x8F\x6F\x8A\xE3\x42\xE9\x31\xFD\x8A\xE4\x7A\x22\x0D" | ||
| 121 | "\x1B\x99\xA4\x95\x84\x98\x07\xFE\x39\xF9\x24\x5A\x98\x36\xDA\x3D"; | ||
| 122 | |||
| 123 | static unsigned char iqmp[] = | ||
| 124 | "\x00\xB0\x6C\x4F\xDA\xBB\x63\x01\x19\x8D\x26\x5B\xDB\xAE\x94\x23" | ||
| 125 | "\xB3\x80\xF2\x71\xF7\x34\x53\x88\x50\x93\x07\x7F\xCD\x39\xE2\x11" | ||
| 126 | "\x9F\xC9\x86\x32\x15\x4F\x58\x83\xB1\x67\xA9\x67\xBF\x40\x2B\x4E" | ||
| 127 | "\x9E\x2E\x0F\x96\x56\xE6\x98\xEA\x36\x66\xED\xFB\x25\x79\x80\x39" | ||
| 128 | "\xF7"; | ||
| 129 | |||
| 130 | static unsigned char ctext_ex[] = | ||
| 131 | "\x42\x4b\xc9\x51\x61\xd4\xca\xa0\x18\x6c\x4d\xca\x61\x8f\x2d\x07" | ||
| 132 | "\x8c\x63\xc5\x6b\xa2\x4c\x32\xb1\xda\xb7\xdd\x32\xb6\x51\x68\xc3" | ||
| 133 | "\x6e\x98\x46\xd6\xbb\x1a\xd5\x99\x05\x92\x7c\xd7\xbc\x08\x9e\xe4" | ||
| 134 | "\xc3\x70\x4d\xe6\x99\x7e\x61\x31\x07\x7a\x19\xdb\x3e\x11\xfa\x3d" | ||
| 135 | "\x7c\x61\xd7\x78\x14\x3f\x05\x16\xa0\xc4\xbf\xcd\xee\xca\x67\x4c" | ||
| 136 | "\x80\x4e\xca\x43\x2f\x35\x43\x58\xa7\x50\x7e\x3e\x52\x82\xab\xac" | ||
| 137 | "\xa6\x50\xe8\x39\x9f\xe0\x7f\x58\x1d\x1b\x90\x93\x04\xec\xb3\xf9" | ||
| 138 | "\x24\xd3\x75\x3e\x39\xd1\x14\xc6\x33\xce\xd6\xee\x20\x47\xec\xe4"; | ||
| 139 | |||
| 140 | SetKey; | ||
| 141 | } | ||
| 142 | |||
| 143 | void FIPS_corrupt_rsa() | ||
| 144 | { | ||
| 145 | n[0]++; | ||
| 146 | } | ||
| 147 | |||
| 148 | int FIPS_selftest_rsa() | ||
| 149 | { | ||
| 150 | int clen; | ||
| 151 | RSA *key; | ||
| 152 | unsigned char expected_ctext[256]; | ||
| 153 | unsigned char ctext[256]; | ||
| 154 | unsigned char ptext[256]; | ||
| 155 | static unsigned char original_ptext[] = | ||
| 156 | "\x01\x23\x45\x67\x89\xab\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0" | ||
| 157 | "\x23\x45\x67\x89\xab\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12" | ||
| 158 | "\x45\x67\x89\xab\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12\x34" | ||
| 159 | "\x67\x89\xab\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12\x34\x56" | ||
| 160 | "\x89\xab\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12\x34\x56\x78" | ||
| 161 | "\xab\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12\x34\x56\x78\x9a" | ||
| 162 | "\xcd\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12\x34\x56\x78\x9a\xbc" | ||
| 163 | "\xef\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12\x34\x56\x78\x9a\xbc\xde" | ||
| 164 | "\xf0\x12\x34\x56\x78\x9a\xbc\xde\xf0\x12\x34\x56\x78\x9a\xbc\xde"; | ||
| 165 | unsigned char md[SHA_DIGEST_LENGTH]; | ||
| 166 | unsigned char mdkat[SHA_DIGEST_LENGTH] = | ||
| 167 | "\x2d\x57\x1d\x6f\x5c\x37\xf9\xf0\x3b\xb4\x3c\xe8\x2c\x4c\xb3\x04" | ||
| 168 | "\x75\xa2\x0e\xfb"; | ||
| 169 | unsigned char ctextkat[] = | ||
| 170 | "\x3e\xc5\x0a\xbe\x29\xa2\xca\x9a\x35\x14\x17\x26\xa4\x0f\xa3\x03" | ||
| 171 | "\x65\xb5\x37\xf5\x6a\xaa\xb\xf\x2c\x0d\x8\xc0\x73\x8\x3c\x88\x85" | ||
| 172 | "\x36\x68\x16\xfe\x2f\x59\x77\x7e\x2a\x76\x9a\xc7\x27\x19\x9b\x54" | ||
| 173 | "\x14\x87\xf3\xe0\xce\x1e\x68\x10\x40\x14\xac\xbc\xe6\x6f\x26\x1f" | ||
| 174 | "\x55\xd1\x15\x81\x48\x10\xf4\x89\xe5\x67\x52\x42\x87\x04\x74\x4e" | ||
| 175 | "\x96\x14\x7c\x53\xc9\x1e\x84\x11\x7d\x7d\x23\xbd\xff\x6c\xcb\x00" | ||
| 176 | "\x96\x2e\x7d\xfb\x47\xea\x78\xcd\xd8\x04\x3a\x98\x06\x13\x68\x39" | ||
| 177 | "\xa1\xe2\xbc\x9f\x64\xc7\x62\xf0\x74\x4d\x42\xe0\x0b\xcf\x24\x48"; | ||
| 178 | int i; | ||
| 179 | |||
| 180 | /* Perform pairwise consistency test by: ... */ | ||
| 181 | |||
| 182 | key=RSA_new(); | ||
| 183 | clen=setrsakey(key,expected_ctext); | ||
| 184 | /* ...1) apply public key to plaintext, resulting ciphertext must be | ||
| 185 | * different | ||
| 186 | */ | ||
| 187 | i=RSA_public_encrypt(128,original_ptext,ctext,key, | ||
| 188 | RSA_NO_PADDING); | ||
| 189 | if(i != clen || memcmp(ctext,expected_ctext,i)) | ||
| 190 | { | ||
| 191 | FIPSerr(FIPS_F_FIPS_SELFTEST_RSA,FIPS_R_SELFTEST_FAILED); | ||
| 192 | return 0; | ||
| 193 | } | ||
| 194 | if(!memcmp(ctext,original_ptext,i)) | ||
| 195 | { | ||
| 196 | FIPSerr(FIPS_F_FIPS_SELFTEST_RSA,FIPS_R_SELFTEST_FAILED); | ||
| 197 | return 0; | ||
| 198 | } | ||
| 199 | /* ...2) apply private key to ciphertext and compare result to | ||
| 200 | * original plaintext; results must be equal | ||
| 201 | */ | ||
| 202 | i=RSA_private_decrypt(i,ctext,ptext,key,RSA_NO_PADDING); | ||
| 203 | if(i != 128 || memcmp(ptext,original_ptext,i)) | ||
| 204 | { | ||
| 205 | FIPSerr(FIPS_F_FIPS_SELFTEST_RSA,FIPS_R_SELFTEST_FAILED); | ||
| 206 | return 0; | ||
| 207 | } | ||
| 208 | |||
| 209 | /* Perform sign and verify Known Answer Test by... */ | ||
| 210 | |||
| 211 | /* ...1) using the same RSA key to encrypt the SHA-1 hash of a | ||
| 212 | * plaintext value larger than the RSA key size | ||
| 213 | */ | ||
| 214 | if (RSA_size(key) >= sizeof(original_ptext) - 1) | ||
| 215 | { | ||
| 216 | FIPSerr(FIPS_F_FIPS_SELFTEST_RSA,FIPS_R_SELFTEST_FAILED); | ||
| 217 | return 0; | ||
| 218 | } | ||
| 219 | /* ...2) then generate the SHA-1 digest of plaintext, and compare the | ||
| 220 | * digest to the Known Answer (note here we duplicate the SHA-1 KAT) | ||
| 221 | */ | ||
| 222 | SHA1(original_ptext,sizeof(original_ptext) - 1,md); | ||
| 223 | if(memcmp(md,mdkat,SHA_DIGEST_LENGTH)) | ||
| 224 | { | ||
| 225 | FIPSerr(FIPS_F_FIPS_SELFTEST_SHA1,FIPS_R_SELFTEST_FAILED); | ||
| 226 | return 0; | ||
| 227 | } | ||
| 228 | /* ...3) then encrypt the digest, and compare the ciphertext | ||
| 229 | * to the Known Answer | ||
| 230 | */ | ||
| 231 | i=RSA_private_encrypt(sizeof(md),md,ctext,key,RSA_PKCS1_PADDING); | ||
| 232 | if(i != clen || memcmp(ctextkat,ctext,i)) | ||
| 233 | { | ||
| 234 | FIPSerr(FIPS_F_FIPS_SELFTEST_RSA,FIPS_R_SELFTEST_FAILED); | ||
| 235 | return 0; | ||
| 236 | } | ||
| 237 | /* ...4) and finally decrypt the signed digest and compare with | ||
| 238 | * the original Known Answer | ||
| 239 | */ | ||
| 240 | i=RSA_public_decrypt(i,ctext,md,key,RSA_PKCS1_PADDING); | ||
| 241 | if(i != sizeof(md) || memcmp(mdkat,md,i)) | ||
| 242 | { | ||
| 243 | FIPSerr(FIPS_F_FIPS_SELFTEST_RSA,FIPS_R_SELFTEST_FAILED); | ||
| 244 | return 0; | ||
| 245 | } | ||
| 246 | |||
| 247 | RSA_free(key); | ||
| 248 | return 1; | ||
| 249 | } | ||
| 250 | |||
| 251 | #endif /* def OPENSSL_FIPS */ | ||
diff --git a/src/lib/libssl/src/ssl/Makefile b/src/lib/libssl/src/ssl/Makefile new file mode 100644 index 0000000000..baf191b909 --- /dev/null +++ b/src/lib/libssl/src/ssl/Makefile | |||
| @@ -0,0 +1,1020 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/ssl/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ssl | ||
| 6 | TOP= .. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I../crypto -I$(TOP) -I../include $(KRB5_INCLUDES) | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | # KRB5 stuff | ||
| 18 | KRB5_INCLUDES= | ||
| 19 | |||
| 20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 21 | |||
| 22 | GENERAL=Makefile README ssl-lib.com install.com | ||
| 23 | TEST=ssltest.c | ||
| 24 | APPS= | ||
| 25 | |||
| 26 | LIB=$(TOP)/libssl.a | ||
| 27 | SHARED_LIB= libssl$(SHLIB_EXT) | ||
| 28 | LIBSRC= \ | ||
| 29 | s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \ | ||
| 30 | s3_meth.c s3_srvr.c s3_clnt.c s3_lib.c s3_enc.c s3_pkt.c s3_both.c \ | ||
| 31 | s23_meth.c s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ | ||
| 32 | t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \ | ||
| 33 | ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ | ||
| 34 | ssl_ciph.c ssl_stat.c ssl_rsa.c \ | ||
| 35 | ssl_asn1.c ssl_txt.c ssl_algs.c \ | ||
| 36 | bio_ssl.c ssl_err.c kssl.c | ||
| 37 | LIBOBJ= \ | ||
| 38 | s2_meth.o s2_srvr.o s2_clnt.o s2_lib.o s2_enc.o s2_pkt.o \ | ||
| 39 | s3_meth.o s3_srvr.o s3_clnt.o s3_lib.o s3_enc.o s3_pkt.o s3_both.o \ | ||
| 40 | s23_meth.o s23_srvr.o s23_clnt.o s23_lib.o s23_pkt.o \ | ||
| 41 | t1_meth.o t1_srvr.o t1_clnt.o t1_lib.o t1_enc.o \ | ||
| 42 | ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o \ | ||
| 43 | ssl_ciph.o ssl_stat.o ssl_rsa.o \ | ||
| 44 | ssl_asn1.o ssl_txt.o ssl_algs.o \ | ||
| 45 | bio_ssl.o ssl_err.o kssl.o | ||
| 46 | |||
| 47 | SRC= $(LIBSRC) | ||
| 48 | |||
| 49 | EXHEADER= ssl.h ssl2.h ssl3.h ssl23.h tls1.h kssl.h | ||
| 50 | HEADER= $(EXHEADER) ssl_locl.h kssl_lcl.h | ||
| 51 | |||
| 52 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 53 | |||
| 54 | top: | ||
| 55 | (cd ..; $(MAKE) DIRS=$(DIR) all) | ||
| 56 | |||
| 57 | all: shared | ||
| 58 | |||
| 59 | lib: $(LIBOBJ) | ||
| 60 | $(AR) $(LIB) $(LIBOBJ) | ||
| 61 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 62 | @touch lib | ||
| 63 | |||
| 64 | shared: lib | ||
| 65 | if [ -n "$(SHARED_LIBS)" ]; then \ | ||
| 66 | (cd ..; $(MAKE) $(SHARED_LIB)); \ | ||
| 67 | fi | ||
| 68 | |||
| 69 | files: | ||
| 70 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 71 | |||
| 72 | links: | ||
| 73 | @$(PERL) $(TOP)/util/mklink.pl ../include/openssl $(EXHEADER) | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../test $(TEST) | ||
| 75 | @$(PERL) $(TOP)/util/mklink.pl ../apps $(APPS) | ||
| 76 | |||
| 77 | install: | ||
| 78 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 79 | do \ | ||
| 80 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 81 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 82 | done; | ||
| 83 | |||
| 84 | tags: | ||
| 85 | ctags $(SRC) | ||
| 86 | |||
| 87 | tests: | ||
| 88 | |||
| 89 | lint: | ||
| 90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 91 | |||
| 92 | depend: | ||
| 93 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 94 | |||
| 95 | dclean: | ||
| 96 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 97 | mv -f Makefile.new $(MAKEFILE) | ||
| 98 | |||
| 99 | clean: | ||
| 100 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 101 | |||
| 102 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 103 | |||
| 104 | bio_ssl.o: ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 105 | bio_ssl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 106 | bio_ssl.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 107 | bio_ssl.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 108 | bio_ssl.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 109 | bio_ssl.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 110 | bio_ssl.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 111 | bio_ssl.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 112 | bio_ssl.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 113 | bio_ssl.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 114 | bio_ssl.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 115 | bio_ssl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 116 | bio_ssl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 117 | bio_ssl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 118 | bio_ssl.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 119 | bio_ssl.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 120 | bio_ssl.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 121 | bio_ssl.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 122 | bio_ssl.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 123 | bio_ssl.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 124 | bio_ssl.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 125 | bio_ssl.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 126 | bio_ssl.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 127 | bio_ssl.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 128 | bio_ssl.o: ../include/openssl/x509_vfy.h bio_ssl.c | ||
| 129 | kssl.o: ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 130 | kssl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 131 | kssl.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 132 | kssl.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 133 | kssl.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 134 | kssl.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 135 | kssl.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 136 | kssl.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 137 | kssl.o: ../include/openssl/krb5_asn.h ../include/openssl/kssl.h | ||
| 138 | kssl.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 139 | kssl.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 140 | kssl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 141 | kssl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 142 | kssl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 143 | kssl.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 144 | kssl.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 145 | kssl.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 146 | kssl.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 147 | kssl.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 148 | kssl.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 149 | kssl.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 150 | kssl.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 151 | kssl.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 152 | kssl.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 153 | kssl.o: ../include/openssl/x509_vfy.h kssl.c | ||
| 154 | s23_clnt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 155 | s23_clnt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 156 | s23_clnt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 157 | s23_clnt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 158 | s23_clnt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 159 | s23_clnt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 160 | s23_clnt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 161 | s23_clnt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 162 | s23_clnt.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 163 | s23_clnt.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 164 | s23_clnt.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 165 | s23_clnt.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 166 | s23_clnt.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 167 | s23_clnt.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 168 | s23_clnt.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 169 | s23_clnt.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 170 | s23_clnt.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 171 | s23_clnt.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 172 | s23_clnt.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 173 | s23_clnt.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 174 | s23_clnt.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 175 | s23_clnt.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 176 | s23_clnt.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 177 | s23_clnt.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 178 | s23_clnt.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h s23_clnt.c | ||
| 179 | s23_clnt.o: ssl_locl.h | ||
| 180 | s23_lib.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 181 | s23_lib.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 182 | s23_lib.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 183 | s23_lib.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 184 | s23_lib.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 185 | s23_lib.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 186 | s23_lib.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 187 | s23_lib.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 188 | s23_lib.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 189 | s23_lib.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 190 | s23_lib.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 191 | s23_lib.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 192 | s23_lib.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 193 | s23_lib.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 194 | s23_lib.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 195 | s23_lib.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 196 | s23_lib.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 197 | s23_lib.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 198 | s23_lib.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 199 | s23_lib.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 200 | s23_lib.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 201 | s23_lib.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 202 | s23_lib.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 203 | s23_lib.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 204 | s23_lib.o: ../include/openssl/x509_vfy.h s23_lib.c ssl_locl.h | ||
| 205 | s23_meth.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 206 | s23_meth.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 207 | s23_meth.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 208 | s23_meth.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 209 | s23_meth.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 210 | s23_meth.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 211 | s23_meth.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 212 | s23_meth.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 213 | s23_meth.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 214 | s23_meth.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 215 | s23_meth.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 216 | s23_meth.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 217 | s23_meth.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 218 | s23_meth.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 219 | s23_meth.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 220 | s23_meth.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 221 | s23_meth.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 222 | s23_meth.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 223 | s23_meth.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 224 | s23_meth.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 225 | s23_meth.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 226 | s23_meth.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 227 | s23_meth.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 228 | s23_meth.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 229 | s23_meth.o: ../include/openssl/x509_vfy.h s23_meth.c ssl_locl.h | ||
| 230 | s23_pkt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 231 | s23_pkt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 232 | s23_pkt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 233 | s23_pkt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 234 | s23_pkt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 235 | s23_pkt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 236 | s23_pkt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 237 | s23_pkt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 238 | s23_pkt.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 239 | s23_pkt.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 240 | s23_pkt.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 241 | s23_pkt.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 242 | s23_pkt.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 243 | s23_pkt.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 244 | s23_pkt.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 245 | s23_pkt.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 246 | s23_pkt.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 247 | s23_pkt.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 248 | s23_pkt.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 249 | s23_pkt.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 250 | s23_pkt.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 251 | s23_pkt.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 252 | s23_pkt.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 253 | s23_pkt.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 254 | s23_pkt.o: ../include/openssl/x509_vfy.h s23_pkt.c ssl_locl.h | ||
| 255 | s23_srvr.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 256 | s23_srvr.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 257 | s23_srvr.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 258 | s23_srvr.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 259 | s23_srvr.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 260 | s23_srvr.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 261 | s23_srvr.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 262 | s23_srvr.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 263 | s23_srvr.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 264 | s23_srvr.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 265 | s23_srvr.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 266 | s23_srvr.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 267 | s23_srvr.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 268 | s23_srvr.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 269 | s23_srvr.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 270 | s23_srvr.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 271 | s23_srvr.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 272 | s23_srvr.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 273 | s23_srvr.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 274 | s23_srvr.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 275 | s23_srvr.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 276 | s23_srvr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 277 | s23_srvr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 278 | s23_srvr.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 279 | s23_srvr.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h s23_srvr.c | ||
| 280 | s23_srvr.o: ssl_locl.h | ||
| 281 | s2_clnt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 282 | s2_clnt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 283 | s2_clnt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 284 | s2_clnt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 285 | s2_clnt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 286 | s2_clnt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 287 | s2_clnt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 288 | s2_clnt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 289 | s2_clnt.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 290 | s2_clnt.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 291 | s2_clnt.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 292 | s2_clnt.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 293 | s2_clnt.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 294 | s2_clnt.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 295 | s2_clnt.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 296 | s2_clnt.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 297 | s2_clnt.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 298 | s2_clnt.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 299 | s2_clnt.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 300 | s2_clnt.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 301 | s2_clnt.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 302 | s2_clnt.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 303 | s2_clnt.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 304 | s2_clnt.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 305 | s2_clnt.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h s2_clnt.c | ||
| 306 | s2_clnt.o: ssl_locl.h | ||
| 307 | s2_enc.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 308 | s2_enc.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 309 | s2_enc.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 310 | s2_enc.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 311 | s2_enc.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 312 | s2_enc.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 313 | s2_enc.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 314 | s2_enc.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 315 | s2_enc.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 316 | s2_enc.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 317 | s2_enc.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 318 | s2_enc.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 319 | s2_enc.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 320 | s2_enc.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 321 | s2_enc.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 322 | s2_enc.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 323 | s2_enc.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 324 | s2_enc.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 325 | s2_enc.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 326 | s2_enc.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 327 | s2_enc.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 328 | s2_enc.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 329 | s2_enc.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 330 | s2_enc.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 331 | s2_enc.o: ../include/openssl/x509_vfy.h s2_enc.c ssl_locl.h | ||
| 332 | s2_lib.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 333 | s2_lib.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 334 | s2_lib.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 335 | s2_lib.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 336 | s2_lib.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 337 | s2_lib.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 338 | s2_lib.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 339 | s2_lib.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 340 | s2_lib.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 341 | s2_lib.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 342 | s2_lib.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 343 | s2_lib.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 344 | s2_lib.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 345 | s2_lib.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 346 | s2_lib.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 347 | s2_lib.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 348 | s2_lib.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 349 | s2_lib.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 350 | s2_lib.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 351 | s2_lib.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 352 | s2_lib.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 353 | s2_lib.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 354 | s2_lib.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 355 | s2_lib.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 356 | s2_lib.o: ../include/openssl/x509_vfy.h s2_lib.c ssl_locl.h | ||
| 357 | s2_meth.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 358 | s2_meth.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 359 | s2_meth.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 360 | s2_meth.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 361 | s2_meth.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 362 | s2_meth.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 363 | s2_meth.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 364 | s2_meth.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 365 | s2_meth.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 366 | s2_meth.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 367 | s2_meth.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 368 | s2_meth.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 369 | s2_meth.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 370 | s2_meth.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 371 | s2_meth.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 372 | s2_meth.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 373 | s2_meth.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 374 | s2_meth.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 375 | s2_meth.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 376 | s2_meth.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 377 | s2_meth.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 378 | s2_meth.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 379 | s2_meth.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 380 | s2_meth.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 381 | s2_meth.o: ../include/openssl/x509_vfy.h s2_meth.c ssl_locl.h | ||
| 382 | s2_pkt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 383 | s2_pkt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 384 | s2_pkt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 385 | s2_pkt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 386 | s2_pkt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 387 | s2_pkt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 388 | s2_pkt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 389 | s2_pkt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 390 | s2_pkt.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 391 | s2_pkt.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 392 | s2_pkt.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 393 | s2_pkt.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 394 | s2_pkt.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 395 | s2_pkt.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 396 | s2_pkt.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 397 | s2_pkt.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 398 | s2_pkt.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 399 | s2_pkt.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 400 | s2_pkt.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 401 | s2_pkt.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 402 | s2_pkt.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 403 | s2_pkt.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 404 | s2_pkt.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 405 | s2_pkt.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 406 | s2_pkt.o: ../include/openssl/x509_vfy.h s2_pkt.c ssl_locl.h | ||
| 407 | s2_srvr.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 408 | s2_srvr.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 409 | s2_srvr.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 410 | s2_srvr.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 411 | s2_srvr.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 412 | s2_srvr.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 413 | s2_srvr.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 414 | s2_srvr.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 415 | s2_srvr.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 416 | s2_srvr.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 417 | s2_srvr.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 418 | s2_srvr.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 419 | s2_srvr.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 420 | s2_srvr.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 421 | s2_srvr.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 422 | s2_srvr.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 423 | s2_srvr.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 424 | s2_srvr.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 425 | s2_srvr.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 426 | s2_srvr.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 427 | s2_srvr.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 428 | s2_srvr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 429 | s2_srvr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 430 | s2_srvr.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 431 | s2_srvr.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h s2_srvr.c | ||
| 432 | s2_srvr.o: ssl_locl.h | ||
| 433 | s3_both.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 434 | s3_both.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 435 | s3_both.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 436 | s3_both.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 437 | s3_both.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 438 | s3_both.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 439 | s3_both.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 440 | s3_both.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 441 | s3_both.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 442 | s3_both.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 443 | s3_both.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 444 | s3_both.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 445 | s3_both.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 446 | s3_both.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 447 | s3_both.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 448 | s3_both.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 449 | s3_both.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 450 | s3_both.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 451 | s3_both.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 452 | s3_both.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 453 | s3_both.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 454 | s3_both.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 455 | s3_both.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 456 | s3_both.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 457 | s3_both.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h s3_both.c | ||
| 458 | s3_both.o: ssl_locl.h | ||
| 459 | s3_clnt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 460 | s3_clnt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 461 | s3_clnt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 462 | s3_clnt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 463 | s3_clnt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 464 | s3_clnt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 465 | s3_clnt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 466 | s3_clnt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 467 | s3_clnt.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
| 468 | s3_clnt.o: ../include/openssl/kssl.h ../include/openssl/lhash.h | ||
| 469 | s3_clnt.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 470 | s3_clnt.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 471 | s3_clnt.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 472 | s3_clnt.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 473 | s3_clnt.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 474 | s3_clnt.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 475 | s3_clnt.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 476 | s3_clnt.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 477 | s3_clnt.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 478 | s3_clnt.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 479 | s3_clnt.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 480 | s3_clnt.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 481 | s3_clnt.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 482 | s3_clnt.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 483 | s3_clnt.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 484 | s3_clnt.o: ../include/openssl/x509_vfy.h kssl_lcl.h s3_clnt.c ssl_locl.h | ||
| 485 | s3_enc.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 486 | s3_enc.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 487 | s3_enc.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 488 | s3_enc.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 489 | s3_enc.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 490 | s3_enc.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 491 | s3_enc.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 492 | s3_enc.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 493 | s3_enc.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 494 | s3_enc.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 495 | s3_enc.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 496 | s3_enc.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 497 | s3_enc.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 498 | s3_enc.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 499 | s3_enc.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 500 | s3_enc.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 501 | s3_enc.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 502 | s3_enc.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 503 | s3_enc.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 504 | s3_enc.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 505 | s3_enc.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 506 | s3_enc.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 507 | s3_enc.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 508 | s3_enc.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 509 | s3_enc.o: ../include/openssl/x509_vfy.h s3_enc.c ssl_locl.h | ||
| 510 | s3_lib.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 511 | s3_lib.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 512 | s3_lib.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 513 | s3_lib.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 514 | s3_lib.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 515 | s3_lib.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 516 | s3_lib.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 517 | s3_lib.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 518 | s3_lib.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 519 | s3_lib.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 520 | s3_lib.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 521 | s3_lib.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 522 | s3_lib.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 523 | s3_lib.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 524 | s3_lib.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 525 | s3_lib.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 526 | s3_lib.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 527 | s3_lib.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 528 | s3_lib.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 529 | s3_lib.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 530 | s3_lib.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 531 | s3_lib.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 532 | s3_lib.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 533 | s3_lib.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 534 | s3_lib.o: ../include/openssl/x509_vfy.h kssl_lcl.h s3_lib.c ssl_locl.h | ||
| 535 | s3_meth.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 536 | s3_meth.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 537 | s3_meth.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 538 | s3_meth.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 539 | s3_meth.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 540 | s3_meth.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 541 | s3_meth.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 542 | s3_meth.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 543 | s3_meth.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 544 | s3_meth.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 545 | s3_meth.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 546 | s3_meth.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 547 | s3_meth.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 548 | s3_meth.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 549 | s3_meth.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 550 | s3_meth.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 551 | s3_meth.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 552 | s3_meth.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 553 | s3_meth.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 554 | s3_meth.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 555 | s3_meth.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 556 | s3_meth.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 557 | s3_meth.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 558 | s3_meth.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 559 | s3_meth.o: ../include/openssl/x509_vfy.h s3_meth.c ssl_locl.h | ||
| 560 | s3_pkt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 561 | s3_pkt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 562 | s3_pkt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 563 | s3_pkt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 564 | s3_pkt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 565 | s3_pkt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 566 | s3_pkt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 567 | s3_pkt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 568 | s3_pkt.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 569 | s3_pkt.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 570 | s3_pkt.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 571 | s3_pkt.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 572 | s3_pkt.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 573 | s3_pkt.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 574 | s3_pkt.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 575 | s3_pkt.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 576 | s3_pkt.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 577 | s3_pkt.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 578 | s3_pkt.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 579 | s3_pkt.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 580 | s3_pkt.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 581 | s3_pkt.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 582 | s3_pkt.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 583 | s3_pkt.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 584 | s3_pkt.o: ../include/openssl/x509_vfy.h s3_pkt.c ssl_locl.h | ||
| 585 | s3_srvr.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 586 | s3_srvr.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 587 | s3_srvr.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 588 | s3_srvr.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 589 | s3_srvr.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 590 | s3_srvr.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 591 | s3_srvr.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 592 | s3_srvr.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 593 | s3_srvr.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
| 594 | s3_srvr.o: ../include/openssl/kssl.h ../include/openssl/lhash.h | ||
| 595 | s3_srvr.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 596 | s3_srvr.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 597 | s3_srvr.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 598 | s3_srvr.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 599 | s3_srvr.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 600 | s3_srvr.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 601 | s3_srvr.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 602 | s3_srvr.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 603 | s3_srvr.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 604 | s3_srvr.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 605 | s3_srvr.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 606 | s3_srvr.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 607 | s3_srvr.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 608 | s3_srvr.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 609 | s3_srvr.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 610 | s3_srvr.o: ../include/openssl/x509_vfy.h kssl_lcl.h s3_srvr.c ssl_locl.h | ||
| 611 | ssl_algs.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 612 | ssl_algs.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 613 | ssl_algs.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 614 | ssl_algs.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 615 | ssl_algs.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 616 | ssl_algs.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 617 | ssl_algs.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 618 | ssl_algs.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 619 | ssl_algs.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 620 | ssl_algs.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 621 | ssl_algs.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 622 | ssl_algs.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 623 | ssl_algs.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 624 | ssl_algs.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 625 | ssl_algs.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 626 | ssl_algs.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 627 | ssl_algs.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 628 | ssl_algs.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 629 | ssl_algs.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 630 | ssl_algs.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 631 | ssl_algs.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 632 | ssl_algs.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 633 | ssl_algs.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 634 | ssl_algs.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 635 | ssl_algs.o: ../include/openssl/x509_vfy.h ssl_algs.c ssl_locl.h | ||
| 636 | ssl_asn1.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 637 | ssl_asn1.o: ../include/openssl/asn1_mac.h ../include/openssl/bio.h | ||
| 638 | ssl_asn1.o: ../include/openssl/blowfish.h ../include/openssl/bn.h | ||
| 639 | ssl_asn1.o: ../include/openssl/buffer.h ../include/openssl/cast.h | ||
| 640 | ssl_asn1.o: ../include/openssl/comp.h ../include/openssl/crypto.h | ||
| 641 | ssl_asn1.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 642 | ssl_asn1.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 643 | ssl_asn1.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 644 | ssl_asn1.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 645 | ssl_asn1.o: ../include/openssl/kssl.h ../include/openssl/lhash.h | ||
| 646 | ssl_asn1.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 647 | ssl_asn1.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 648 | ssl_asn1.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 649 | ssl_asn1.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 650 | ssl_asn1.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 651 | ssl_asn1.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 652 | ssl_asn1.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 653 | ssl_asn1.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 654 | ssl_asn1.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 655 | ssl_asn1.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 656 | ssl_asn1.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 657 | ssl_asn1.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 658 | ssl_asn1.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 659 | ssl_asn1.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 660 | ssl_asn1.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h ssl_asn1.c | ||
| 661 | ssl_asn1.o: ssl_locl.h | ||
| 662 | ssl_cert.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 663 | ssl_cert.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 664 | ssl_cert.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 665 | ssl_cert.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 666 | ssl_cert.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 667 | ssl_cert.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 668 | ssl_cert.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 669 | ssl_cert.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 670 | ssl_cert.o: ../include/openssl/evp.h ../include/openssl/fips.h | ||
| 671 | ssl_cert.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 672 | ssl_cert.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 673 | ssl_cert.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 674 | ssl_cert.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 675 | ssl_cert.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 676 | ssl_cert.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 677 | ssl_cert.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 678 | ssl_cert.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 679 | ssl_cert.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 680 | ssl_cert.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 681 | ssl_cert.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 682 | ssl_cert.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 683 | ssl_cert.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 684 | ssl_cert.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 685 | ssl_cert.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 686 | ssl_cert.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 687 | ssl_cert.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h | ||
| 688 | ssl_cert.o: ssl_cert.c ssl_locl.h | ||
| 689 | ssl_ciph.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 690 | ssl_ciph.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 691 | ssl_ciph.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 692 | ssl_ciph.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 693 | ssl_ciph.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 694 | ssl_ciph.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 695 | ssl_ciph.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 696 | ssl_ciph.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 697 | ssl_ciph.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
| 698 | ssl_ciph.o: ../include/openssl/kssl.h ../include/openssl/lhash.h | ||
| 699 | ssl_ciph.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 700 | ssl_ciph.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 701 | ssl_ciph.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 702 | ssl_ciph.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 703 | ssl_ciph.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 704 | ssl_ciph.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 705 | ssl_ciph.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 706 | ssl_ciph.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 707 | ssl_ciph.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 708 | ssl_ciph.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 709 | ssl_ciph.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 710 | ssl_ciph.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 711 | ssl_ciph.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 712 | ssl_ciph.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 713 | ssl_ciph.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h ssl_ciph.c | ||
| 714 | ssl_ciph.o: ssl_locl.h | ||
| 715 | ssl_err.o: ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 716 | ssl_err.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 717 | ssl_err.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 718 | ssl_err.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 719 | ssl_err.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 720 | ssl_err.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 721 | ssl_err.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 722 | ssl_err.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 723 | ssl_err.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 724 | ssl_err.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 725 | ssl_err.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 726 | ssl_err.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 727 | ssl_err.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 728 | ssl_err.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 729 | ssl_err.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 730 | ssl_err.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 731 | ssl_err.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 732 | ssl_err.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 733 | ssl_err.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 734 | ssl_err.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 735 | ssl_err.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 736 | ssl_err.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 737 | ssl_err.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 738 | ssl_err.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 739 | ssl_err.o: ../include/openssl/x509_vfy.h ssl_err.c | ||
| 740 | ssl_err2.o: ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 741 | ssl_err2.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 742 | ssl_err2.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 743 | ssl_err2.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 744 | ssl_err2.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 745 | ssl_err2.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 746 | ssl_err2.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 747 | ssl_err2.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 748 | ssl_err2.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 749 | ssl_err2.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 750 | ssl_err2.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 751 | ssl_err2.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 752 | ssl_err2.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 753 | ssl_err2.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 754 | ssl_err2.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 755 | ssl_err2.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 756 | ssl_err2.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 757 | ssl_err2.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 758 | ssl_err2.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 759 | ssl_err2.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 760 | ssl_err2.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 761 | ssl_err2.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 762 | ssl_err2.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 763 | ssl_err2.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 764 | ssl_err2.o: ../include/openssl/x509_vfy.h ssl_err2.c | ||
| 765 | ssl_lib.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 766 | ssl_lib.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 767 | ssl_lib.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 768 | ssl_lib.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 769 | ssl_lib.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 770 | ssl_lib.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 771 | ssl_lib.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 772 | ssl_lib.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 773 | ssl_lib.o: ../include/openssl/evp.h ../include/openssl/fips.h | ||
| 774 | ssl_lib.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 775 | ssl_lib.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 776 | ssl_lib.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 777 | ssl_lib.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 778 | ssl_lib.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 779 | ssl_lib.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 780 | ssl_lib.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 781 | ssl_lib.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 782 | ssl_lib.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 783 | ssl_lib.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 784 | ssl_lib.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 785 | ssl_lib.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 786 | ssl_lib.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 787 | ssl_lib.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 788 | ssl_lib.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 789 | ssl_lib.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 790 | ssl_lib.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h kssl_lcl.h | ||
| 791 | ssl_lib.o: ssl_lib.c ssl_locl.h | ||
| 792 | ssl_rsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 793 | ssl_rsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 794 | ssl_rsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 795 | ssl_rsa.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 796 | ssl_rsa.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 797 | ssl_rsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 798 | ssl_rsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 799 | ssl_rsa.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 800 | ssl_rsa.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 801 | ssl_rsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 802 | ssl_rsa.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 803 | ssl_rsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 804 | ssl_rsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 805 | ssl_rsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 806 | ssl_rsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 807 | ssl_rsa.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 808 | ssl_rsa.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 809 | ssl_rsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 810 | ssl_rsa.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 811 | ssl_rsa.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 812 | ssl_rsa.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 813 | ssl_rsa.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 814 | ssl_rsa.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 815 | ssl_rsa.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 816 | ssl_rsa.o: ../include/openssl/x509_vfy.h ssl_locl.h ssl_rsa.c | ||
| 817 | ssl_sess.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 818 | ssl_sess.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 819 | ssl_sess.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 820 | ssl_sess.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 821 | ssl_sess.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 822 | ssl_sess.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 823 | ssl_sess.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 824 | ssl_sess.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 825 | ssl_sess.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 826 | ssl_sess.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 827 | ssl_sess.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 828 | ssl_sess.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 829 | ssl_sess.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 830 | ssl_sess.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 831 | ssl_sess.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 832 | ssl_sess.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 833 | ssl_sess.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 834 | ssl_sess.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 835 | ssl_sess.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 836 | ssl_sess.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 837 | ssl_sess.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 838 | ssl_sess.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 839 | ssl_sess.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 840 | ssl_sess.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 841 | ssl_sess.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h ssl_locl.h | ||
| 842 | ssl_sess.o: ssl_sess.c | ||
| 843 | ssl_stat.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 844 | ssl_stat.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 845 | ssl_stat.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 846 | ssl_stat.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 847 | ssl_stat.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 848 | ssl_stat.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 849 | ssl_stat.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 850 | ssl_stat.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 851 | ssl_stat.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 852 | ssl_stat.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 853 | ssl_stat.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 854 | ssl_stat.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 855 | ssl_stat.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 856 | ssl_stat.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 857 | ssl_stat.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 858 | ssl_stat.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 859 | ssl_stat.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 860 | ssl_stat.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 861 | ssl_stat.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 862 | ssl_stat.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 863 | ssl_stat.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 864 | ssl_stat.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 865 | ssl_stat.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 866 | ssl_stat.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 867 | ssl_stat.o: ../include/openssl/x509_vfy.h ssl_locl.h ssl_stat.c | ||
| 868 | ssl_txt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 869 | ssl_txt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 870 | ssl_txt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 871 | ssl_txt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 872 | ssl_txt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 873 | ssl_txt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 874 | ssl_txt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 875 | ssl_txt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 876 | ssl_txt.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 877 | ssl_txt.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 878 | ssl_txt.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 879 | ssl_txt.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 880 | ssl_txt.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 881 | ssl_txt.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 882 | ssl_txt.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 883 | ssl_txt.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 884 | ssl_txt.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 885 | ssl_txt.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 886 | ssl_txt.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 887 | ssl_txt.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 888 | ssl_txt.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 889 | ssl_txt.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 890 | ssl_txt.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 891 | ssl_txt.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 892 | ssl_txt.o: ../include/openssl/x509_vfy.h ssl_locl.h ssl_txt.c | ||
| 893 | t1_clnt.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 894 | t1_clnt.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 895 | t1_clnt.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 896 | t1_clnt.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 897 | t1_clnt.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 898 | t1_clnt.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 899 | t1_clnt.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 900 | t1_clnt.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 901 | t1_clnt.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 902 | t1_clnt.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 903 | t1_clnt.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 904 | t1_clnt.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 905 | t1_clnt.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 906 | t1_clnt.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 907 | t1_clnt.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 908 | t1_clnt.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 909 | t1_clnt.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 910 | t1_clnt.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 911 | t1_clnt.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 912 | t1_clnt.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 913 | t1_clnt.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 914 | t1_clnt.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 915 | t1_clnt.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 916 | t1_clnt.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 917 | t1_clnt.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h ssl_locl.h | ||
| 918 | t1_clnt.o: t1_clnt.c | ||
| 919 | t1_enc.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 920 | t1_enc.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 921 | t1_enc.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 922 | t1_enc.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 923 | t1_enc.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 924 | t1_enc.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 925 | t1_enc.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 926 | t1_enc.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 927 | t1_enc.o: ../include/openssl/fips.h ../include/openssl/hmac.h | ||
| 928 | t1_enc.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 929 | t1_enc.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 930 | t1_enc.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 931 | t1_enc.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 932 | t1_enc.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 933 | t1_enc.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 934 | t1_enc.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 935 | t1_enc.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 936 | t1_enc.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 937 | t1_enc.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 938 | t1_enc.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 939 | t1_enc.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 940 | t1_enc.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 941 | t1_enc.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 942 | t1_enc.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 943 | t1_enc.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 944 | t1_enc.o: ../include/openssl/x509_vfy.h ssl_locl.h t1_enc.c | ||
| 945 | t1_lib.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 946 | t1_lib.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 947 | t1_lib.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 948 | t1_lib.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 949 | t1_lib.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 950 | t1_lib.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 951 | t1_lib.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 952 | t1_lib.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 953 | t1_lib.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 954 | t1_lib.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 955 | t1_lib.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 956 | t1_lib.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 957 | t1_lib.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 958 | t1_lib.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 959 | t1_lib.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 960 | t1_lib.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 961 | t1_lib.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 962 | t1_lib.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 963 | t1_lib.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 964 | t1_lib.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 965 | t1_lib.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 966 | t1_lib.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 967 | t1_lib.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 968 | t1_lib.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 969 | t1_lib.o: ../include/openssl/x509_vfy.h ssl_locl.h t1_lib.c | ||
| 970 | t1_meth.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 971 | t1_meth.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 972 | t1_meth.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 973 | t1_meth.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 974 | t1_meth.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 975 | t1_meth.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 976 | t1_meth.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 977 | t1_meth.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 978 | t1_meth.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 979 | t1_meth.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 980 | t1_meth.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 981 | t1_meth.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 982 | t1_meth.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 983 | t1_meth.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 984 | t1_meth.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 985 | t1_meth.o: ../include/openssl/pkcs7.h ../include/openssl/rc2.h | ||
| 986 | t1_meth.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 987 | t1_meth.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 988 | t1_meth.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 989 | t1_meth.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 990 | t1_meth.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 991 | t1_meth.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 992 | t1_meth.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 993 | t1_meth.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 994 | t1_meth.o: ../include/openssl/x509_vfy.h ssl_locl.h t1_meth.c | ||
| 995 | t1_srvr.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 996 | t1_srvr.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 997 | t1_srvr.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 998 | t1_srvr.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 999 | t1_srvr.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 1000 | t1_srvr.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 1001 | t1_srvr.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 1002 | t1_srvr.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 1003 | t1_srvr.o: ../include/openssl/idea.h ../include/openssl/kssl.h | ||
| 1004 | t1_srvr.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 1005 | t1_srvr.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 1006 | t1_srvr.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 1007 | t1_srvr.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 1008 | t1_srvr.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 1009 | t1_srvr.o: ../include/openssl/pem.h ../include/openssl/pem2.h | ||
| 1010 | t1_srvr.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 1011 | t1_srvr.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 1012 | t1_srvr.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 1013 | t1_srvr.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 1014 | t1_srvr.o: ../include/openssl/sha.h ../include/openssl/ssl.h | ||
| 1015 | t1_srvr.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | ||
| 1016 | t1_srvr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | ||
| 1017 | t1_srvr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | ||
| 1018 | t1_srvr.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 1019 | t1_srvr.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h ssl_locl.h | ||
| 1020 | t1_srvr.o: t1_srvr.c | ||
diff --git a/src/lib/libssl/src/test/CAss.cnf b/src/lib/libssl/src/test/CAss.cnf index b941b7ae15..21da59a73a 100644 --- a/src/lib/libssl/src/test/CAss.cnf +++ b/src/lib/libssl/src/test/CAss.cnf | |||
| @@ -23,3 +23,11 @@ organizationName_value = Dodgy Brothers | |||
| 23 | 23 | ||
| 24 | commonName = Common Name (eg, YOUR name) | 24 | commonName = Common Name (eg, YOUR name) |
| 25 | commonName_value = Dodgy CA | 25 | commonName_value = Dodgy CA |
| 26 | |||
| 27 | [ v3_ca ] | ||
| 28 | subjectKeyIdentifier=hash | ||
| 29 | authorityKeyIdentifier=keyid:always,issuer:always | ||
| 30 | basicConstraints = CA:true,pathlen:1 | ||
| 31 | keyUsage = cRLSign, keyCertSign | ||
| 32 | issuerAltName=issuer:copy | ||
| 33 | |||
diff --git a/src/lib/libssl/src/test/Makefile b/src/lib/libssl/src/test/Makefile new file mode 100644 index 0000000000..6aeedf7fa3 --- /dev/null +++ b/src/lib/libssl/src/test/Makefile | |||
| @@ -0,0 +1,788 @@ | |||
| 1 | # | ||
| 2 | # test/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= test | ||
| 6 | TOP= .. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I$(TOP) -I../include $(KRB5_INCLUDES) | ||
| 9 | CFLAG= -g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP= /usr/local/ssl | ||
| 13 | MAKEFILE= Makefile | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | PERL= perl | ||
| 17 | # KRB5 stuff | ||
| 18 | KRB5_INCLUDES= | ||
| 19 | LIBKRB5= | ||
| 20 | |||
| 21 | PEX_LIBS= | ||
| 22 | EX_LIBS= #-lnsl -lsocket | ||
| 23 | |||
| 24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 25 | |||
| 26 | GENERAL=Makefile maketests.com \ | ||
| 27 | tests.com testenc.com tx509.com trsa.com tcrl.com tsid.com treq.com \ | ||
| 28 | tpkcs7.com tpkcs7d.com tverify.com testgen.com testss.com testssl.com \ | ||
| 29 | testca.com VMSca-response.1 VMSca-response.2 | ||
| 30 | |||
| 31 | DLIBCRYPTO= ../libcrypto.a | ||
| 32 | DLIBSSL= ../libssl.a | ||
| 33 | LIBCRYPTO= -L.. -lcrypto | ||
| 34 | LIBSSL= -L.. -lssl | ||
| 35 | |||
| 36 | BNTEST= bntest | ||
| 37 | ECTEST= ectest | ||
| 38 | EXPTEST= exptest | ||
| 39 | IDEATEST= ideatest | ||
| 40 | SHATEST= shatest | ||
| 41 | SHA1TEST= sha1test | ||
| 42 | FIPS_SHA1TEST= fips_sha1test | ||
| 43 | MDC2TEST= mdc2test | ||
| 44 | RMDTEST= rmdtest | ||
| 45 | MD2TEST= md2test | ||
| 46 | MD4TEST= md4test | ||
| 47 | MD5TEST= md5test | ||
| 48 | HMACTEST= hmactest | ||
| 49 | RC2TEST= rc2test | ||
| 50 | RC4TEST= rc4test | ||
| 51 | RC5TEST= rc5test | ||
| 52 | BFTEST= bftest | ||
| 53 | CASTTEST= casttest | ||
| 54 | DESTEST= destest | ||
| 55 | FIPS_DESTEST= fips_desmovs | ||
| 56 | RANDTEST= randtest | ||
| 57 | FIPS_RANDTEST= fips_randtest | ||
| 58 | DHTEST= dhtest | ||
| 59 | DSATEST= dsatest | ||
| 60 | FIPS_DSATEST= fips_dsatest | ||
| 61 | METHTEST= methtest | ||
| 62 | SSLTEST= ssltest | ||
| 63 | RSATEST= rsa_test | ||
| 64 | ENGINETEST= enginetest | ||
| 65 | EVPTEST= evp_test | ||
| 66 | FIPS_AESTEST= fips_aesavs | ||
| 67 | |||
| 68 | TESTS= alltests | ||
| 69 | |||
| 70 | EXE= $(BNTEST)$(EXE_EXT) $(ECTEST)$(EXE_EXT) $(IDEATEST)$(EXE_EXT) $(MD2TEST)$(EXE_EXT) $(MD4TEST)$(EXE_EXT) $(MD5TEST)$(EXE_EXT) $(HMACTEST)$(EXE_EXT) \ | ||
| 71 | $(RC2TEST)$(EXE_EXT) $(RC4TEST)$(EXE_EXT) $(RC5TEST)$(EXE_EXT) \ | ||
| 72 | $(DESTEST)$(EXE_EXT) $(FIPS_DESTEST)$(EXE_EXT) $(SHATEST)$(EXE_EXT) $(SHA1TEST)$(EXE_EXT) $(FIPS_SHA1TEST)$(EXE_EXT) $(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \ | ||
| 73 | $(RANDTEST)$(EXE_EXT) $(FIPS_RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \ | ||
| 74 | $(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(FIPS_DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \ | ||
| 75 | $(EVPTEST)$(EXE_EXT) $(FIPS_AESTEST)$(EXE_EXT) | ||
| 76 | |||
| 77 | # $(METHTEST)$(EXE_EXT) | ||
| 78 | |||
| 79 | OBJ= $(BNTEST).o $(ECTEST).o $(IDEATEST).o $(MD2TEST).o $(MD4TEST).o $(MD5TEST).o \ | ||
| 80 | $(HMACTEST).o \ | ||
| 81 | $(RC2TEST).o $(RC4TEST).o $(RC5TEST).o \ | ||
| 82 | $(DESTEST).o $(FIPS_DESTEST).o $(SHATEST).o $(SHA1TEST).o $(FIPS_SHA1TEST).o $(MDC2TEST).o $(RMDTEST).o \ | ||
| 83 | $(RANDTEST).o $(FIPS_RANDTEST).o $(DHTEST).o $(ENGINETEST).o $(CASTTEST).o \ | ||
| 84 | $(BFTEST).o $(SSLTEST).o $(DSATEST).o $(FIPS_DSATEST).o $(EXPTEST).o $(RSATEST).o \ | ||
| 85 | $(EVPTEST).o $(FIPS_AESTEST).o | ||
| 86 | SRC= $(BNTEST).c $(ECTEST).c $(IDEATEST).c $(MD2TEST).c $(MD4TEST).c $(MD5TEST).c \ | ||
| 87 | $(HMACTEST).c \ | ||
| 88 | $(RC2TEST).c $(RC4TEST).c $(RC5TEST).c \ | ||
| 89 | $(DESTEST).c $(FIPS_DESTEST).c $(SHATEST).c $(SHA1TEST).c $(FIPS_SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \ | ||
| 90 | $(RANDTEST).c $(FIPS_RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \ | ||
| 91 | $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(FIPS_DSATEST).c $(EXPTEST).c $(RSATEST).c \ | ||
| 92 | $(EVPTEST).c $(FIPS_AESTEST).c | ||
| 93 | |||
| 94 | EXHEADER= | ||
| 95 | HEADER= $(EXHEADER) | ||
| 96 | |||
| 97 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 98 | |||
| 99 | top: | ||
| 100 | (cd ..; $(MAKE) DIRS=$(DIR) TESTS=$(TESTS) all) | ||
| 101 | |||
| 102 | all: exe | ||
| 103 | |||
| 104 | exe: $(EXE) dummytest$(EXE_EXT) | ||
| 105 | |||
| 106 | files: | ||
| 107 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 108 | |||
| 109 | links: | ||
| 110 | |||
| 111 | generate: $(SRC) | ||
| 112 | $(SRC): | ||
| 113 | @sh $(TOP)/util/point.sh dummytest.c $@ | ||
| 114 | |||
| 115 | errors: | ||
| 116 | |||
| 117 | install: | ||
| 118 | |||
| 119 | tags: | ||
| 120 | ctags $(SRC) | ||
| 121 | |||
| 122 | tests: exe apps $(TESTS) | ||
| 123 | |||
| 124 | apps: | ||
| 125 | @(cd ..; $(MAKE) DIRS=apps all) | ||
| 126 | |||
| 127 | alltests: \ | ||
| 128 | test_des test_idea test_sha test_md4 test_md5 test_hmac \ | ||
| 129 | test_md2 test_mdc2 \ | ||
| 130 | test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast test_aes \ | ||
| 131 | test_rand test_bn test_ec test_enc test_x509 test_rsa test_crl test_sid \ | ||
| 132 | test_gen test_req test_pkcs7 test_verify test_dh test_dsa \ | ||
| 133 | test_ss test_ca test_engine test_evp test_ssl | ||
| 134 | # temporarily removed | ||
| 135 | # fips_test_aes | ||
| 136 | |||
| 137 | fips_test_aes: | ||
| 138 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 139 | mkdir -p fips_aes_data/rsp; \ | ||
| 140 | ../util/shlib_wrap.sh ./$(FIPS_AESTEST) -d fips_aes_data/list; \ | ||
| 141 | fi | ||
| 142 | |||
| 143 | test_evp: | ||
| 144 | ../util/shlib_wrap.sh ./$(EVPTEST) evptests.txt | ||
| 145 | |||
| 146 | test_des: | ||
| 147 | ../util/shlib_wrap.sh ./$(DESTEST) | ||
| 148 | |||
| 149 | test_idea: | ||
| 150 | ../util/shlib_wrap.sh ./$(IDEATEST) | ||
| 151 | |||
| 152 | test_sha: | ||
| 153 | ../util/shlib_wrap.sh ./$(SHATEST) | ||
| 154 | ../util/shlib_wrap.sh ./$(SHA1TEST) | ||
| 155 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 156 | ../util/shlib_wrap.sh ./$(FIPS_SHA1TEST) sha1vectors.txt | sed s/Strings/Hashes/ | cmp sha1hashes.txt - ; \ | ||
| 157 | fi | ||
| 158 | |||
| 159 | test_mdc2: | ||
| 160 | ../util/shlib_wrap.sh ./$(MDC2TEST) | ||
| 161 | |||
| 162 | test_md5: | ||
| 163 | ../util/shlib_wrap.sh ./$(MD5TEST) | ||
| 164 | |||
| 165 | test_md4: | ||
| 166 | ../util/shlib_wrap.sh ./$(MD4TEST) | ||
| 167 | |||
| 168 | test_hmac: | ||
| 169 | ../util/shlib_wrap.sh ./$(HMACTEST) | ||
| 170 | |||
| 171 | test_md2: | ||
| 172 | ../util/shlib_wrap.sh ./$(MD2TEST) | ||
| 173 | |||
| 174 | test_rmd: | ||
| 175 | ../util/shlib_wrap.sh ./$(RMDTEST) | ||
| 176 | |||
| 177 | test_bf: | ||
| 178 | ../util/shlib_wrap.sh ./$(BFTEST) | ||
| 179 | |||
| 180 | test_cast: | ||
| 181 | ../util/shlib_wrap.sh ./$(CASTTEST) | ||
| 182 | |||
| 183 | test_rc2: | ||
| 184 | ../util/shlib_wrap.sh ./$(RC2TEST) | ||
| 185 | |||
| 186 | test_rc4: | ||
| 187 | ../util/shlib_wrap.sh ./$(RC4TEST) | ||
| 188 | |||
| 189 | test_rc5: | ||
| 190 | ../util/shlib_wrap.sh ./$(RC5TEST) | ||
| 191 | |||
| 192 | test_rand: | ||
| 193 | ../util/shlib_wrap.sh ./$(RANDTEST) | ||
| 194 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 195 | ../util/shlib_wrap.sh ./$(FIPS_RANDTEST); \ | ||
| 196 | fi | ||
| 197 | |||
| 198 | test_enc: | ||
| 199 | @sh ./testenc | ||
| 200 | |||
| 201 | test_x509: | ||
| 202 | echo test normal x509v1 certificate | ||
| 203 | sh ./tx509 2>/dev/null | ||
| 204 | echo test first x509v3 certificate | ||
| 205 | sh ./tx509 v3-cert1.pem 2>/dev/null | ||
| 206 | echo test second x509v3 certificate | ||
| 207 | sh ./tx509 v3-cert2.pem 2>/dev/null | ||
| 208 | |||
| 209 | test_rsa: | ||
| 210 | @sh ./trsa 2>/dev/null | ||
| 211 | ../util/shlib_wrap.sh ./$(RSATEST) | ||
| 212 | |||
| 213 | test_crl: | ||
| 214 | @sh ./tcrl 2>/dev/null | ||
| 215 | |||
| 216 | test_sid: | ||
| 217 | @sh ./tsid 2>/dev/null | ||
| 218 | |||
| 219 | test_req: | ||
| 220 | @sh ./treq 2>/dev/null | ||
| 221 | @sh ./treq testreq2.pem 2>/dev/null | ||
| 222 | |||
| 223 | test_pkcs7: | ||
| 224 | @sh ./tpkcs7 2>/dev/null | ||
| 225 | @sh ./tpkcs7d 2>/dev/null | ||
| 226 | |||
| 227 | test_bn: | ||
| 228 | @echo starting big number library test, could take a while... | ||
| 229 | @../util/shlib_wrap.sh ./$(BNTEST) >tmp.bntest | ||
| 230 | @echo quit >>tmp.bntest | ||
| 231 | @echo "running bc" | ||
| 232 | @<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"' | ||
| 233 | @echo 'test a^b%c implementations' | ||
| 234 | ../util/shlib_wrap.sh ./$(EXPTEST) | ||
| 235 | |||
| 236 | test_ec: | ||
| 237 | @echo 'test elliptic curves' | ||
| 238 | ../util/shlib_wrap.sh ./$(ECTEST) | ||
| 239 | |||
| 240 | test_verify: | ||
| 241 | @echo "The following command should have some OK's and some failures" | ||
| 242 | @echo "There are definitly a few expired certificates" | ||
| 243 | -../util/shlib_wrap.sh ../apps/openssl verify -CApath ../certs ../certs/*.pem | ||
| 244 | |||
| 245 | test_dh: | ||
| 246 | @echo "Generate a set of DH parameters" | ||
| 247 | ../util/shlib_wrap.sh ./$(DHTEST) | ||
| 248 | |||
| 249 | test_dsa: | ||
| 250 | @echo "Generate a set of DSA parameters" | ||
| 251 | ../util/shlib_wrap.sh ./$(DSATEST) | ||
| 252 | ../util/shlib_wrap.sh ./$(DSATEST) -app2_1 | ||
| 253 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 254 | ../util/shlib_wrap.sh ./$(FIPS_DSATEST); \ | ||
| 255 | ../util/shlib_wrap.sh ./$(FIPS_DSATEST) -app2_1; \ | ||
| 256 | fi | ||
| 257 | |||
| 258 | test_gen: | ||
| 259 | @echo "Generate and verify a certificate request" | ||
| 260 | @sh ./testgen | ||
| 261 | |||
| 262 | test_ss keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \ | ||
| 263 | intP1.ss intP2.ss: testss | ||
| 264 | @echo "Generate and certify a test certificate" | ||
| 265 | @sh ./testss | ||
| 266 | @cat certCA.ss certU.ss > intP1.ss | ||
| 267 | @cat certCA.ss certU.ss certP1.ss > intP2.ss | ||
| 268 | |||
| 269 | test_engine: | ||
| 270 | @echo "Manipulate the ENGINE structures" | ||
| 271 | ../util/shlib_wrap.sh ./$(ENGINETEST) | ||
| 272 | |||
| 273 | test_ssl: keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \ | ||
| 274 | intP1.ss intP2.ss | ||
| 275 | @echo "test SSL protocol" | ||
| 276 | @if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 277 | sh ./testfipsssl keyU.ss certU.ss certCA.ss; \ | ||
| 278 | fi | ||
| 279 | @sh ./testssl keyU.ss certU.ss certCA.ss | ||
| 280 | @sh ./testsslproxy keyP1.ss certP1.ss intP1.ss | ||
| 281 | @sh ./testsslproxy keyP2.ss certP2.ss intP2.ss | ||
| 282 | |||
| 283 | test_ca: | ||
| 284 | @if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then \ | ||
| 285 | echo "skipping CA.sh test -- requires RSA"; \ | ||
| 286 | else \ | ||
| 287 | echo "Generate and certify a test certificate via the 'ca' program"; \ | ||
| 288 | sh ./testca; \ | ||
| 289 | fi | ||
| 290 | |||
| 291 | test_aes: #$(AESTEST) | ||
| 292 | # @echo "test Rijndael" | ||
| 293 | # ../util/shlib_wrap.sh ./$(AESTEST) | ||
| 294 | |||
| 295 | lint: | ||
| 296 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 297 | |||
| 298 | depend: | ||
| 299 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC) | ||
| 300 | |||
| 301 | dclean: | ||
| 302 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 303 | mv -f Makefile.new $(MAKEFILE) | ||
| 304 | |||
| 305 | clean: | ||
| 306 | rm -f .rnd tmp.bntest tmp.bctest *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss *.srl log | ||
| 307 | |||
| 308 | $(DLIBSSL): | ||
| 309 | (cd ..; $(MAKE) DIRS=ssl all) | ||
| 310 | |||
| 311 | $(DLIBCRYPTO): | ||
| 312 | (cd ..; $(MAKE) DIRS=crypto all) | ||
| 313 | |||
| 314 | BUILD_CMD=if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \ | ||
| 315 | set -x; $${CC:-$(CC)} -o $$target$(EXE_EXT) $(CFLAGS) $$target.o $(PEX_LIBS) $(DLIBSSL) $(LIBKRB5) $(DLIBCRYPTO) $(EX_LIBS) ; \ | ||
| 316 | elif [ -z "$(SHARED_LIBS)" ]; then \ | ||
| 317 | set -x; $${CC:-$(CC)} -o $$target$(EXE_EXT) $(CFLAGS) $$target.o $(PEX_LIBS) $(LIBSSL) $(LIBKRB5) $(LIBCRYPTO) $(EX_LIBS) ; \ | ||
| 318 | else \ | ||
| 319 | set -x; LD_LIBRARY_PATH=..:$$LD_LIBRARY_PATH \ | ||
| 320 | $(CC) -o $$target$(EXE_EXT) $(CFLAGS) $$target.o $(PEX_LIBS) $(LIBSSL) $(LIBKRB5) $(LIBCRYPTO) $(EX_LIBS) ; \ | ||
| 321 | fi; | ||
| 322 | |||
| 323 | $(FIPS_AESTEST)$(EXE_EXT): $(FIPS_AESTEST).o $(DLIBCRYPTO) | ||
| 324 | @target=$(FIPS_AESTEST); $(BUILD_CMD) | ||
| 325 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 326 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_AESTEST); \ | ||
| 327 | fi | ||
| 328 | |||
| 329 | $(RSATEST)$(EXE_EXT): $(RSATEST).o $(DLIBCRYPTO) | ||
| 330 | @target=$(RSATEST); $(BUILD_CMD) | ||
| 331 | |||
| 332 | $(BNTEST)$(EXE_EXT): $(BNTEST).o $(DLIBCRYPTO) | ||
| 333 | @target=$(BNTEST); $(BUILD_CMD) | ||
| 334 | |||
| 335 | $(ECTEST)$(EXE_EXT): $(ECTEST).o $(DLIBCRYPTO) | ||
| 336 | @target=$(ECTEST); $(BUILD_CMD) | ||
| 337 | |||
| 338 | $(EXPTEST)$(EXE_EXT): $(EXPTEST).o $(DLIBCRYPTO) | ||
| 339 | @target=$(EXPTEST); $(BUILD_CMD) | ||
| 340 | |||
| 341 | $(IDEATEST)$(EXE_EXT): $(IDEATEST).o $(DLIBCRYPTO) | ||
| 342 | @target=$(IDEATEST); $(BUILD_CMD) | ||
| 343 | |||
| 344 | $(MD2TEST)$(EXE_EXT): $(MD2TEST).o $(DLIBCRYPTO) | ||
| 345 | @target=$(MD2TEST); $(BUILD_CMD) | ||
| 346 | |||
| 347 | $(SHATEST)$(EXE_EXT): $(SHATEST).o $(DLIBCRYPTO) | ||
| 348 | @target=$(SHATEST); $(BUILD_CMD) | ||
| 349 | |||
| 350 | $(SHA1TEST)$(EXE_EXT): $(SHA1TEST).o $(DLIBCRYPTO) | ||
| 351 | @target=$(SHA1TEST); $(BUILD_CMD) | ||
| 352 | |||
| 353 | $(FIPS_SHA1TEST)$(EXE_EXT): $(FIPS_SHA1TEST).o $(DLIBCRYPTO) | ||
| 354 | @target=$(FIPS_SHA1TEST); $(BUILD_CMD) | ||
| 355 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 356 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_SHA1TEST); \ | ||
| 357 | fi | ||
| 358 | |||
| 359 | $(RMDTEST)$(EXE_EXT): $(RMDTEST).o $(DLIBCRYPTO) | ||
| 360 | @target=$(RMDTEST); $(BUILD_CMD) | ||
| 361 | |||
| 362 | $(MDC2TEST)$(EXE_EXT): $(MDC2TEST).o $(DLIBCRYPTO) | ||
| 363 | @target=$(MDC2TEST); $(BUILD_CMD) | ||
| 364 | |||
| 365 | $(MD4TEST)$(EXE_EXT): $(MD4TEST).o $(DLIBCRYPTO) | ||
| 366 | @target=$(MD4TEST); $(BUILD_CMD) | ||
| 367 | |||
| 368 | $(MD5TEST)$(EXE_EXT): $(MD5TEST).o $(DLIBCRYPTO) | ||
| 369 | @target=$(MD5TEST); $(BUILD_CMD) | ||
| 370 | |||
| 371 | $(HMACTEST)$(EXE_EXT): $(HMACTEST).o $(DLIBCRYPTO) | ||
| 372 | @target=$(HMACTEST); $(BUILD_CMD) | ||
| 373 | |||
| 374 | $(RC2TEST)$(EXE_EXT): $(RC2TEST).o $(DLIBCRYPTO) | ||
| 375 | @target=$(RC2TEST); $(BUILD_CMD) | ||
| 376 | |||
| 377 | $(BFTEST)$(EXE_EXT): $(BFTEST).o $(DLIBCRYPTO) | ||
| 378 | @target=$(BFTEST); $(BUILD_CMD) | ||
| 379 | |||
| 380 | $(CASTTEST)$(EXE_EXT): $(CASTTEST).o $(DLIBCRYPTO) | ||
| 381 | @target=$(CASTTEST); $(BUILD_CMD) | ||
| 382 | |||
| 383 | $(RC4TEST)$(EXE_EXT): $(RC4TEST).o $(DLIBCRYPTO) | ||
| 384 | @target=$(RC4TEST); $(BUILD_CMD) | ||
| 385 | |||
| 386 | $(RC5TEST)$(EXE_EXT): $(RC5TEST).o $(DLIBCRYPTO) | ||
| 387 | @target=$(RC5TEST); $(BUILD_CMD) | ||
| 388 | |||
| 389 | $(DESTEST)$(EXE_EXT): $(DESTEST).o $(DLIBCRYPTO) | ||
| 390 | @target=$(DESTEST); $(BUILD_CMD) | ||
| 391 | |||
| 392 | $(FIPS_DESTEST)$(EXE_EXT): $(FIPS_DESTEST).o $(DLIBCRYPTO) | ||
| 393 | @target=$(FIPS_DESTEST); $(BUILD_CMD) | ||
| 394 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 395 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_DESTEST); \ | ||
| 396 | fi | ||
| 397 | |||
| 398 | $(RANDTEST)$(EXE_EXT): $(RANDTEST).o $(DLIBCRYPTO) | ||
| 399 | @target=$(RANDTEST); $(BUILD_CMD) | ||
| 400 | |||
| 401 | $(FIPS_RANDTEST)$(EXE_EXT): $(FIPS_RANDTEST).o $(DLIBCRYPTO) | ||
| 402 | @target=$(FIPS_RANDTEST); $(BUILD_CMD) | ||
| 403 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 404 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_RANDTEST); \ | ||
| 405 | fi | ||
| 406 | |||
| 407 | $(DHTEST)$(EXE_EXT): $(DHTEST).o $(DLIBCRYPTO) | ||
| 408 | @target=$(DHTEST); $(BUILD_CMD) | ||
| 409 | |||
| 410 | $(DSATEST)$(EXE_EXT): $(DSATEST).o $(DLIBCRYPTO) | ||
| 411 | @target=$(DSATEST); $(BUILD_CMD) | ||
| 412 | |||
| 413 | $(FIPS_DSATEST)$(EXE_EXT): $(FIPS_DSATEST).o $(DLIBCRYPTO) | ||
| 414 | @target=$(FIPS_DSATEST); $(BUILD_CMD) | ||
| 415 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 416 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_DSATEST); \ | ||
| 417 | fi | ||
| 418 | |||
| 419 | $(METHTEST)$(EXE_EXT): $(METHTEST).o $(DLIBCRYPTO) | ||
| 420 | @target=$(METHTEST); $(BUILD_CMD) | ||
| 421 | |||
| 422 | $(SSLTEST)$(EXE_EXT): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO) | ||
| 423 | @target=$(SSLTEST); $(BUILD_CMD) | ||
| 424 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
| 425 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(SSLTEST); \ | ||
| 426 | fi | ||
| 427 | |||
| 428 | $(ENGINETEST)$(EXE_EXT): $(ENGINETEST).o $(DLIBCRYPTO) | ||
| 429 | @target=$(ENGINETEST); $(BUILD_CMD) | ||
| 430 | |||
| 431 | $(EVPTEST)$(EXE_EXT): $(EVPTEST).o $(DLIBCRYPTO) | ||
| 432 | @target=$(EVPTEST); $(BUILD_CMD) | ||
| 433 | |||
| 434 | #$(AESTEST).o: $(AESTEST).c | ||
| 435 | # $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c | ||
| 436 | |||
| 437 | #$(AESTEST)$(EXE_EXT): $(AESTEST).o $(DLIBCRYPTO) | ||
| 438 | # @target=$(AESTEST); $(BUILD_CMD) | ||
| 439 | |||
| 440 | dummytest$(EXE_EXT): dummytest.o $(DLIBCRYPTO) | ||
| 441 | @target=dummytest; $(BUILD_CMD) | ||
| 442 | |||
| 443 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 444 | |||
| 445 | bftest.o: ../e_os.h ../include/openssl/blowfish.h ../include/openssl/e_os2.h | ||
| 446 | bftest.o: ../include/openssl/opensslconf.h bftest.c | ||
| 447 | bntest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 448 | bntest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 449 | bntest.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 450 | bntest.o: ../include/openssl/cast.h ../include/openssl/crypto.h | ||
| 451 | bntest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 452 | bntest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 453 | bntest.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 454 | bntest.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 455 | bntest.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 456 | bntest.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 457 | bntest.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 458 | bntest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 459 | bntest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 460 | bntest.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
| 461 | bntest.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 462 | bntest.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 463 | bntest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 464 | bntest.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 465 | bntest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 466 | bntest.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 467 | bntest.o: ../include/openssl/x509_vfy.h bntest.c | ||
| 468 | casttest.o: ../e_os.h ../include/openssl/cast.h ../include/openssl/e_os2.h | ||
| 469 | casttest.o: ../include/openssl/opensslconf.h casttest.c | ||
| 470 | destest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 471 | destest.o: ../include/openssl/des_old.h ../include/openssl/e_os2.h | ||
| 472 | destest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 473 | destest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 474 | destest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 475 | destest.o: ../include/openssl/ui_compat.h destest.c | ||
| 476 | dhtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h | ||
| 477 | dhtest.o: ../include/openssl/crypto.h ../include/openssl/dh.h | ||
| 478 | dhtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 479 | dhtest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
| 480 | dhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 481 | dhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h | ||
| 482 | dhtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h dhtest.c | ||
| 483 | dsatest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h | ||
| 484 | dsatest.o: ../include/openssl/crypto.h ../include/openssl/dh.h | ||
| 485 | dsatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 486 | dsatest.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 487 | dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 488 | dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
| 489 | dsatest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 490 | dsatest.o: ../include/openssl/symhacks.h dsatest.c | ||
| 491 | ectest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h | ||
| 492 | ectest.o: ../include/openssl/bn.h ../include/openssl/crypto.h | ||
| 493 | ectest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 494 | ectest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h | ||
| 495 | ectest.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 496 | ectest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
| 497 | ectest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 498 | ectest.o: ../include/openssl/rand.h ../include/openssl/rsa.h | ||
| 499 | ectest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 500 | ectest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h ectest.c | ||
| 501 | enginetest.o: ../include/openssl/asn1.h ../include/openssl/bio.h | ||
| 502 | enginetest.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 503 | enginetest.o: ../include/openssl/crypto.h ../include/openssl/dh.h | ||
| 504 | enginetest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 505 | enginetest.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
| 506 | enginetest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
| 507 | enginetest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 508 | enginetest.o: ../include/openssl/rand.h ../include/openssl/rsa.h | ||
| 509 | enginetest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 510 | enginetest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 511 | enginetest.o: enginetest.c | ||
| 512 | evp_test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 513 | evp_test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 514 | evp_test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 515 | evp_test.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 516 | evp_test.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 517 | evp_test.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 518 | evp_test.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 519 | evp_test.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 520 | evp_test.o: ../include/openssl/idea.h ../include/openssl/lhash.h | ||
| 521 | evp_test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 522 | evp_test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 523 | evp_test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 524 | evp_test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 525 | evp_test.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
| 526 | evp_test.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 527 | evp_test.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 528 | evp_test.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 529 | evp_test.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 530 | evp_test.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 531 | evp_test.o: ../include/openssl/ui_compat.h evp_test.c | ||
| 532 | exptest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h | ||
| 533 | exptest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 534 | exptest.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 535 | exptest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 536 | exptest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
| 537 | exptest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 538 | exptest.o: ../include/openssl/symhacks.h exptest.c | ||
| 539 | fips_aesavs.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 540 | fips_aesavs.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 541 | fips_aesavs.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 542 | fips_aesavs.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 543 | fips_aesavs.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 544 | fips_aesavs.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 545 | fips_aesavs.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 546 | fips_aesavs.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
| 547 | fips_aesavs.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 548 | fips_aesavs.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 549 | fips_aesavs.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 550 | fips_aesavs.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 551 | fips_aesavs.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 552 | fips_aesavs.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 553 | fips_aesavs.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 554 | fips_aesavs.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 555 | fips_aesavs.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 556 | fips_aesavs.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 557 | fips_aesavs.o: ../include/openssl/ui_compat.h fips_aesavs.c | ||
| 558 | fips_desmovs.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 559 | fips_desmovs.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 560 | fips_desmovs.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 561 | fips_desmovs.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 562 | fips_desmovs.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 563 | fips_desmovs.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 564 | fips_desmovs.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 565 | fips_desmovs.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
| 566 | fips_desmovs.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
| 567 | fips_desmovs.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 568 | fips_desmovs.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 569 | fips_desmovs.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 570 | fips_desmovs.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 571 | fips_desmovs.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 572 | fips_desmovs.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 573 | fips_desmovs.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 574 | fips_desmovs.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 575 | fips_desmovs.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 576 | fips_desmovs.o: ../include/openssl/ui_compat.h fips_desmovs.c | ||
| 577 | fips_dsatest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h | ||
| 578 | fips_dsatest.o: ../include/openssl/bn.h ../include/openssl/crypto.h | ||
| 579 | fips_dsatest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 580 | fips_dsatest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 581 | fips_dsatest.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 582 | fips_dsatest.o: ../include/openssl/err.h ../include/openssl/fips.h | ||
| 583 | fips_dsatest.o: ../include/openssl/fips_rand.h ../include/openssl/lhash.h | ||
| 584 | fips_dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 585 | fips_dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
| 586 | fips_dsatest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 587 | fips_dsatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 588 | fips_dsatest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
| 589 | fips_dsatest.o: fips_dsatest.c | ||
| 590 | fips_randtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/crypto.h | ||
| 591 | fips_randtest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 592 | fips_randtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 593 | fips_randtest.o: ../include/openssl/fips_rand.h ../include/openssl/lhash.h | ||
| 594 | fips_randtest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 595 | fips_randtest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
| 596 | fips_randtest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 597 | fips_randtest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 598 | fips_randtest.o: ../include/openssl/ui_compat.h fips_randtest.c | ||
| 599 | fips_sha1test.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/crypto.h | ||
| 600 | fips_sha1test.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 601 | fips_sha1test.o: ../include/openssl/fips.h ../include/openssl/lhash.h | ||
| 602 | fips_sha1test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 603 | fips_sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 604 | fips_sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 605 | fips_sha1test.o: fips_sha1test.c | ||
| 606 | hmactest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 607 | hmactest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 608 | hmactest.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 609 | hmactest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 610 | hmactest.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 611 | hmactest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 612 | hmactest.o: ../include/openssl/evp.h ../include/openssl/hmac.h | ||
| 613 | hmactest.o: ../include/openssl/idea.h ../include/openssl/md2.h | ||
| 614 | hmactest.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
| 615 | hmactest.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
| 616 | hmactest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
| 617 | hmactest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 618 | hmactest.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
| 619 | hmactest.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
| 620 | hmactest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
| 621 | hmactest.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
| 622 | hmactest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
| 623 | hmactest.o: ../include/openssl/ui_compat.h hmactest.c | ||
| 624 | ideatest.o: ../e_os.h ../include/openssl/e_os2.h ../include/openssl/idea.h | ||
| 625 | ideatest.o: ../include/openssl/opensslconf.h ideatest.c | ||
| 626 | md2test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 627 | md2test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 628 | md2test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 629 | md2test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 630 | md2test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 631 | md2test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 632 | md2test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 633 | md2test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 634 | md2test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 635 | md2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 636 | md2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 637 | md2test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
| 638 | md2test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 639 | md2test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 640 | md2test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 641 | md2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 642 | md2test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md2test.c | ||
| 643 | md4test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 644 | md4test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 645 | md4test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 646 | md4test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 647 | md4test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 648 | md4test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 649 | md4test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 650 | md4test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 651 | md4test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 652 | md4test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 653 | md4test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 654 | md4test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
| 655 | md4test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 656 | md4test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 657 | md4test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 658 | md4test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 659 | md4test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md4test.c | ||
| 660 | md5test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 661 | md5test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 662 | md5test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 663 | md5test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 664 | md5test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 665 | md5test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 666 | md5test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 667 | md5test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 668 | md5test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 669 | md5test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 670 | md5test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 671 | md5test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
| 672 | md5test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 673 | md5test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 674 | md5test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 675 | md5test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 676 | md5test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md5test.c | ||
| 677 | mdc2test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 678 | mdc2test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 679 | mdc2test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 680 | mdc2test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 681 | mdc2test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 682 | mdc2test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 683 | mdc2test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 684 | mdc2test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 685 | mdc2test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 686 | mdc2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 687 | mdc2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 688 | mdc2test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
| 689 | mdc2test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 690 | mdc2test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 691 | mdc2test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 692 | mdc2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 693 | mdc2test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h mdc2test.c | ||
| 694 | randtest.o: ../e_os.h ../include/openssl/e_os2.h | ||
| 695 | randtest.o: ../include/openssl/opensslconf.h ../include/openssl/ossl_typ.h | ||
| 696 | randtest.o: ../include/openssl/rand.h randtest.c | ||
| 697 | rc2test.o: ../e_os.h ../include/openssl/e_os2.h | ||
| 698 | rc2test.o: ../include/openssl/opensslconf.h ../include/openssl/rc2.h rc2test.c | ||
| 699 | rc4test.o: ../e_os.h ../include/openssl/e_os2.h | ||
| 700 | rc4test.o: ../include/openssl/opensslconf.h ../include/openssl/rc4.h rc4test.c | ||
| 701 | rc5test.o: ../e_os.h ../include/openssl/e_os2.h | ||
| 702 | rc5test.o: ../include/openssl/opensslconf.h ../include/openssl/rc5.h rc5test.c | ||
| 703 | rmdtest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 704 | rmdtest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 705 | rmdtest.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 706 | rmdtest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 707 | rmdtest.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 708 | rmdtest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 709 | rmdtest.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 710 | rmdtest.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 711 | rmdtest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 712 | rmdtest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 713 | rmdtest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 714 | rmdtest.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
| 715 | rmdtest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 716 | rmdtest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 717 | rmdtest.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 718 | rmdtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 719 | rmdtest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h rmdtest.c | ||
| 720 | rsa_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h | ||
| 721 | rsa_test.o: ../include/openssl/bn.h ../include/openssl/crypto.h | ||
| 722 | rsa_test.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 723 | rsa_test.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
| 724 | rsa_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
| 725 | rsa_test.o: ../include/openssl/rand.h ../include/openssl/rsa.h | ||
| 726 | rsa_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 727 | rsa_test.o: ../include/openssl/symhacks.h rsa_test.c | ||
| 728 | sha1test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 729 | sha1test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 730 | sha1test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 731 | sha1test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 732 | sha1test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 733 | sha1test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 734 | sha1test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 735 | sha1test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 736 | sha1test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 737 | sha1test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 738 | sha1test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 739 | sha1test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
| 740 | sha1test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 741 | sha1test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 742 | sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 743 | sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 744 | sha1test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h sha1test.c | ||
| 745 | shatest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 746 | shatest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 747 | shatest.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
| 748 | shatest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
| 749 | shatest.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
| 750 | shatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
| 751 | shatest.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
| 752 | shatest.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 753 | shatest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 754 | shatest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 755 | shatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 756 | shatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
| 757 | shatest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 758 | shatest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 759 | shatest.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 760 | shatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 761 | shatest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h shatest.c | ||
| 762 | ssltest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
| 763 | ssltest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
| 764 | ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
| 765 | ssltest.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
| 766 | ssltest.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
| 767 | ssltest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
| 768 | ssltest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
| 769 | ssltest.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
| 770 | ssltest.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
| 771 | ssltest.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
| 772 | ssltest.o: ../include/openssl/kssl.h ../include/openssl/lhash.h | ||
| 773 | ssltest.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
| 774 | ssltest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
| 775 | ssltest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
| 776 | ssltest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 777 | ssltest.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
| 778 | ssltest.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
| 779 | ssltest.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
| 780 | ssltest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
| 781 | ssltest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
| 782 | ssltest.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
| 783 | ssltest.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
| 784 | ssltest.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
| 785 | ssltest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
| 786 | ssltest.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
| 787 | ssltest.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
| 788 | ssltest.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h ssltest.c | ||
diff --git a/src/lib/libssl/src/test/P1ss.cnf b/src/lib/libssl/src/test/P1ss.cnf new file mode 100644 index 0000000000..876a0d35f8 --- /dev/null +++ b/src/lib/libssl/src/test/P1ss.cnf | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | # | ||
| 2 | # SSLeay example configuration file. | ||
| 3 | # This is mostly being used for generation of certificate requests. | ||
| 4 | # | ||
| 5 | |||
| 6 | RANDFILE = ./.rnd | ||
| 7 | |||
| 8 | #################################################################### | ||
| 9 | [ req ] | ||
| 10 | default_bits = 512 | ||
| 11 | default_keyfile = keySS.pem | ||
| 12 | distinguished_name = req_distinguished_name | ||
| 13 | encrypt_rsa_key = no | ||
| 14 | default_md = md2 | ||
| 15 | |||
| 16 | [ req_distinguished_name ] | ||
| 17 | countryName = Country Name (2 letter code) | ||
| 18 | countryName_default = AU | ||
| 19 | countryName_value = AU | ||
| 20 | |||
| 21 | organizationName = Organization Name (eg, company) | ||
| 22 | organizationName_value = Dodgy Brothers | ||
| 23 | |||
| 24 | 0.commonName = Common Name (eg, YOUR name) | ||
| 25 | 0.commonName_value = Brother 1 | ||
| 26 | |||
| 27 | 1.commonName = Common Name (eg, YOUR name) | ||
| 28 | 1.commonName_value = Brother 2 | ||
| 29 | |||
| 30 | 2.commonName = Common Name (eg, YOUR name) | ||
| 31 | 2.commonName_value = Proxy 1 | ||
| 32 | |||
| 33 | [ v3_proxy ] | ||
| 34 | basicConstraints=CA:FALSE | ||
| 35 | subjectKeyIdentifier=hash | ||
| 36 | authorityKeyIdentifier=keyid,issuer:always | ||
| 37 | proxyCertInfo=critical,language:id-ppl-anyLanguage,pathlen:1,policy:text:AB | ||
diff --git a/src/lib/libssl/src/test/P2ss.cnf b/src/lib/libssl/src/test/P2ss.cnf new file mode 100644 index 0000000000..373a87e7c2 --- /dev/null +++ b/src/lib/libssl/src/test/P2ss.cnf | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | # | ||
| 2 | # SSLeay example configuration file. | ||
| 3 | # This is mostly being used for generation of certificate requests. | ||
| 4 | # | ||
| 5 | |||
| 6 | RANDFILE = ./.rnd | ||
| 7 | |||
| 8 | #################################################################### | ||
| 9 | [ req ] | ||
| 10 | default_bits = 512 | ||
| 11 | default_keyfile = keySS.pem | ||
| 12 | distinguished_name = req_distinguished_name | ||
| 13 | encrypt_rsa_key = no | ||
| 14 | default_md = md2 | ||
| 15 | |||
| 16 | [ req_distinguished_name ] | ||
| 17 | countryName = Country Name (2 letter code) | ||
| 18 | countryName_default = AU | ||
| 19 | countryName_value = AU | ||
| 20 | |||
| 21 | organizationName = Organization Name (eg, company) | ||
| 22 | organizationName_value = Dodgy Brothers | ||
| 23 | |||
| 24 | 0.commonName = Common Name (eg, YOUR name) | ||
| 25 | 0.commonName_value = Brother 1 | ||
| 26 | |||
| 27 | 1.commonName = Common Name (eg, YOUR name) | ||
| 28 | 1.commonName_value = Brother 2 | ||
| 29 | |||
| 30 | 2.commonName = Common Name (eg, YOUR name) | ||
| 31 | 2.commonName_value = Proxy 1 | ||
| 32 | |||
| 33 | 3.commonName = Common Name (eg, YOUR name) | ||
| 34 | 3.commonName_value = Proxy 2 | ||
| 35 | |||
| 36 | [ v3_proxy ] | ||
| 37 | basicConstraints=CA:FALSE | ||
| 38 | subjectKeyIdentifier=hash | ||
| 39 | authorityKeyIdentifier=keyid,issuer:always | ||
| 40 | proxyCertInfo=critical,@proxy_ext | ||
| 41 | |||
| 42 | [ proxy_ext ] | ||
| 43 | language=id-ppl-anyLanguage | ||
| 44 | pathlen=0 | ||
| 45 | policy=text:BC | ||
diff --git a/src/lib/libssl/src/test/Uss.cnf b/src/lib/libssl/src/test/Uss.cnf index c89692d519..0c0ebb5f67 100644 --- a/src/lib/libssl/src/test/Uss.cnf +++ b/src/lib/libssl/src/test/Uss.cnf | |||
| @@ -26,3 +26,11 @@ organizationName_value = Dodgy Brothers | |||
| 26 | 26 | ||
| 27 | 1.commonName = Common Name (eg, YOUR name) | 27 | 1.commonName = Common Name (eg, YOUR name) |
| 28 | 1.commonName_value = Brother 2 | 28 | 1.commonName_value = Brother 2 |
| 29 | |||
| 30 | [ v3_ee ] | ||
| 31 | subjectKeyIdentifier=hash | ||
| 32 | authorityKeyIdentifier=keyid,issuer:always | ||
| 33 | basicConstraints = CA:false | ||
| 34 | keyUsage = nonRepudiation, digitalSignature, keyEncipherment | ||
| 35 | issuerAltName=issuer:copy | ||
| 36 | |||
diff --git a/src/lib/libssl/src/test/evptests.txt b/src/lib/libssl/src/test/evptests.txt index 80bd9c7765..dfe91a5bc0 100644 --- a/src/lib/libssl/src/test/evptests.txt +++ b/src/lib/libssl/src/test/evptests.txt | |||
| @@ -92,7 +92,102 @@ AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:000 | |||
| 92 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:F58C4C04D6E5F1BA779EABFB5F7BFBD6:AE2D8A571E03AC9C9EB76FAC45AF8E51:9CFC4E967EDB808D679F777BC6702C7D | 92 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:F58C4C04D6E5F1BA779EABFB5F7BFBD6:AE2D8A571E03AC9C9EB76FAC45AF8E51:9CFC4E967EDB808D679F777BC6702C7D |
| 93 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:9CFC4E967EDB808D679F777BC6702C7D:30C81C46A35CE411E5FBC1191A0A52EF:39F23369A9D9BACFA530E26304231461 | 93 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:9CFC4E967EDB808D679F777BC6702C7D:30C81C46A35CE411E5FBC1191A0A52EF:39F23369A9D9BACFA530E26304231461 |
| 94 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:39F23369A9D9BACFA530E26304231461:F69F2445DF4F9B17AD2B417BE66C3710:B2EB05E2C39BE9FCDA6C19078C6A9D1B | 94 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:39F23369A9D9BACFA530E26304231461:F69F2445DF4F9B17AD2B417BE66C3710:B2EB05E2C39BE9FCDA6C19078C6A9D1B |
| 95 | # We don't support CFB{1,8}-AESxxx.{En,De}crypt | 95 | |
| 96 | # CFB1-AES128.Encrypt | ||
| 97 | |||
| 98 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:00:00:1 | ||
| 99 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00020406080a0c0e10121416181a1c1e:80:80:1 | ||
| 100 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0004080c1014181c2024282c3034383d:80:80:1 | ||
| 101 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0008101820283038404850586068707b:00:00:1 | ||
| 102 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00102030405060708090a0b0c0d0e0f6:80:80:1 | ||
| 103 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0020406080a0c0e10121416181a1c1ed:00:00:1 | ||
| 104 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:004080c1014181c2024282c3034383da:80:00:1 | ||
| 105 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:008101820283038404850586068707b4:80:00:1 | ||
| 106 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f68:80:80:1 | ||
| 107 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:020406080a0c0e10121416181a1c1ed1:80:00:1 | ||
| 108 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:04080c1014181c2024282c3034383da2:00:80:1 | ||
| 109 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:08101820283038404850586068707b45:00:80:1 | ||
| 110 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:102030405060708090a0b0c0d0e0f68b:00:00:1 | ||
| 111 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:20406080a0c0e10121416181a1c1ed16:00:00:1 | ||
| 112 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:4080c1014181c2024282c3034383da2c:00:80:1 | ||
| 113 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:8101820283038404850586068707b459:80:80:1 | ||
| 114 | # all of the above packed into one... | ||
| 115 | # in: 0110 1011 1100 0001 = 6bc1 | ||
| 116 | # out: 0110 1000 1011 0011 = 68b3 | ||
| 117 | AES-128-CFB1*8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1:68b3:1 | ||
| 118 | |||
| 119 | # CFB1-AES128.Decrypt | ||
| 120 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:00:00:0 | ||
| 121 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00020406080a0c0e10121416181a1c1e:80:80:0 | ||
| 122 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0004080c1014181c2024282c3034383d:80:80:0 | ||
| 123 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0008101820283038404850586068707b:00:00:0 | ||
| 124 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00102030405060708090a0b0c0d0e0f6:80:80:0 | ||
| 125 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0020406080a0c0e10121416181a1c1ed:00:00:0 | ||
| 126 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:004080c1014181c2024282c3034383da:80:00:0 | ||
| 127 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:008101820283038404850586068707b4:80:00:0 | ||
| 128 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f68:80:80:0 | ||
| 129 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:020406080a0c0e10121416181a1c1ed1:80:00:0 | ||
| 130 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:04080c1014181c2024282c3034383da2:00:80:0 | ||
| 131 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:08101820283038404850586068707b45:00:80:0 | ||
| 132 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:102030405060708090a0b0c0d0e0f68b:00:00:0 | ||
| 133 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:20406080a0c0e10121416181a1c1ed16:00:00:0 | ||
| 134 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:4080c1014181c2024282c3034383da2c:00:80:0 | ||
| 135 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:8101820283038404850586068707b459:80:80:0 | ||
| 136 | # all of the above packed into one... | ||
| 137 | # in: 0110 1000 1011 0011 = 68b3 | ||
| 138 | # out: 0110 1011 1100 0001 = 6bc1 | ||
| 139 | AES-128-CFB1*8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1:68b3:0 | ||
| 140 | |||
| 141 | # TODO: CFB1-AES192 and 256 | ||
| 142 | |||
| 143 | # CFB8-AES128.Encrypt | ||
| 144 | |||
| 145 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6b:3b:1 | ||
| 146 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f3b:c1:79:1 | ||
| 147 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:02030405060708090a0b0c0d0e0f3b79:be:42:1 | ||
| 148 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:030405060708090a0b0c0d0e0f3b7942:e2:4c:1 | ||
| 149 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0405060708090a0b0c0d0e0f3b79424c:2e:9c:1 | ||
| 150 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:05060708090a0b0c0d0e0f3b79424c9c:40:0d:1 | ||
| 151 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:060708090a0b0c0d0e0f3b79424c9c0d:9f:d4:1 | ||
| 152 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0708090a0b0c0d0e0f3b79424c9c0dd4:96:36:1 | ||
| 153 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:08090a0b0c0d0e0f3b79424c9c0dd436:e9:ba:1 | ||
| 154 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:090a0b0c0d0e0f3b79424c9c0dd436ba:3d:ce:1 | ||
| 155 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0a0b0c0d0e0f3b79424c9c0dd436bace:7e:9e:1 | ||
| 156 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0b0c0d0e0f3b79424c9c0dd436bace9e:11:0e:1 | ||
| 157 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0c0d0e0f3b79424c9c0dd436bace9e0e:73:d4:1 | ||
| 158 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0d0e0f3b79424c9c0dd436bace9e0ed4:93:58:1 | ||
| 159 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0e0f3b79424c9c0dd436bace9e0ed458:17:6a:1 | ||
| 160 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0f3b79424c9c0dd436bace9e0ed4586a:2a:4f:1 | ||
| 161 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:3b79424c9c0dd436bace9e0ed4586a4f:ae:32:1 | ||
| 162 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:79424c9c0dd436bace9e0ed4586a4f32:2d:b9:1 | ||
| 163 | # all of the above packed into one | ||
| 164 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1bee22e409f96e93d7e117393172aae2d:3b79424c9c0dd436bace9e0ed4586a4f32b9:1 | ||
| 165 | |||
| 166 | # CFB8-AES128.Decrypt | ||
| 167 | |||
| 168 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6b:3b:0 | ||
| 169 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f3b:c1:79:0 | ||
| 170 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:02030405060708090a0b0c0d0e0f3b79:be:42:0 | ||
| 171 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:030405060708090a0b0c0d0e0f3b7942:e2:4c:0 | ||
| 172 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0405060708090a0b0c0d0e0f3b79424c:2e:9c:0 | ||
| 173 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:05060708090a0b0c0d0e0f3b79424c9c:40:0d:0 | ||
| 174 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:060708090a0b0c0d0e0f3b79424c9c0d:9f:d4:0 | ||
| 175 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0708090a0b0c0d0e0f3b79424c9c0dd4:96:36:0 | ||
| 176 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:08090a0b0c0d0e0f3b79424c9c0dd436:e9:ba:0 | ||
| 177 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:090a0b0c0d0e0f3b79424c9c0dd436ba:3d:ce:0 | ||
| 178 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0a0b0c0d0e0f3b79424c9c0dd436bace:7e:9e:0 | ||
| 179 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0b0c0d0e0f3b79424c9c0dd436bace9e:11:0e:0 | ||
| 180 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0c0d0e0f3b79424c9c0dd436bace9e0e:73:d4:0 | ||
| 181 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0d0e0f3b79424c9c0dd436bace9e0ed4:93:58:0 | ||
| 182 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0e0f3b79424c9c0dd436bace9e0ed458:17:6a:0 | ||
| 183 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0f3b79424c9c0dd436bace9e0ed4586a:2a:4f:0 | ||
| 184 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:3b79424c9c0dd436bace9e0ed4586a4f:ae:32:0 | ||
| 185 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:79424c9c0dd436bace9e0ed4586a4f32:2d:b9:0 | ||
| 186 | # all of the above packed into one | ||
| 187 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1bee22e409f96e93d7e117393172aae2d:3b79424c9c0dd436bace9e0ed4586a4f32b9:0 | ||
| 188 | |||
| 189 | # TODO: 192 and 256 bit keys | ||
| 190 | |||
| 96 | # For all CFB128 encrypts and decrypts, the transformed sequence is | 191 | # For all CFB128 encrypts and decrypts, the transformed sequence is |
| 97 | # AES-bits-CFB:key:IV/ciphertext':plaintext:ciphertext:encdec | 192 | # AES-bits-CFB:key:IV/ciphertext':plaintext:ciphertext:encdec |
| 98 | # CFB128-AES128.Encrypt | 193 | # CFB128-AES128.Encrypt |
| @@ -174,6 +269,16 @@ DESX-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363 | |||
| 174 | # DES EDE3 CBC tests (from destest) | 269 | # DES EDE3 CBC tests (from destest) |
| 175 | DES-EDE3-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 | 270 | DES-EDE3-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 |
| 176 | 271 | ||
| 272 | # DES CFB1 from FIPS 81 | ||
| 273 | # plaintext: 0100 1110 0110 1111 0111 0111 = 4e6f77 | ||
| 274 | # ciphertext: 1100 1101 0001 1110 1100 1001 = cd1ec9 | ||
| 275 | |||
| 276 | DES-CFB1*8:0123456789abcdef:1234567890abcdef:4e6f77:cd1ec9 | ||
| 277 | |||
| 278 | # DES CFB8 from FIPS 81 | ||
| 279 | |||
| 280 | DES-CFB8:0123456789abcdef:1234567890abcdef:4e6f7720697320746865:f31fda07011462ee187f | ||
| 281 | |||
| 177 | # RC4 tests (from rc4test) | 282 | # RC4 tests (from rc4test) |
| 178 | RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596 | 283 | RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596 |
| 179 | RC4:0123456789abcdef0123456789abcdef::0000000000000000:7494c2e7104b0879 | 284 | RC4:0123456789abcdef0123456789abcdef::0000000000000000:7494c2e7104b0879 |
diff --git a/src/lib/libssl/src/test/testfipsssl b/src/lib/libssl/src/test/testfipsssl new file mode 100644 index 0000000000..c4836edc25 --- /dev/null +++ b/src/lib/libssl/src/test/testfipsssl | |||
| @@ -0,0 +1,113 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if [ "$1" = "" ]; then | ||
| 4 | key=../apps/server.pem | ||
| 5 | else | ||
| 6 | key="$1" | ||
| 7 | fi | ||
| 8 | if [ "$2" = "" ]; then | ||
| 9 | cert=../apps/server.pem | ||
| 10 | else | ||
| 11 | cert="$2" | ||
| 12 | fi | ||
| 13 | |||
| 14 | ciphers="DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:DES-CBC3-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA:EXP1024-DHE-DSS-DES-CBC-SHA:EXP1024-DES-CBC-SHA:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA:DES-CBC-SHA:EXP-EDH-RSA-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA:EXP-DES-CBC-SHA" | ||
| 15 | |||
| 16 | ssltest="../util/shlib_wrap.sh ./ssltest -F -key $key -cert $cert -c_key $key -c_cert $cert -cipher $ciphers" | ||
| 17 | |||
| 18 | if ../util/shlib_wrap.sh ../apps/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key' >/dev/null; then | ||
| 19 | dsa_cert=YES | ||
| 20 | else | ||
| 21 | dsa_cert=NO | ||
| 22 | fi | ||
| 23 | |||
| 24 | if [ "$3" = "" ]; then | ||
| 25 | CA="-CApath ../certs" | ||
| 26 | else | ||
| 27 | CA="-CAfile $3" | ||
| 28 | fi | ||
| 29 | |||
| 30 | if [ "$4" = "" ]; then | ||
| 31 | extra="" | ||
| 32 | else | ||
| 33 | extra="$4" | ||
| 34 | fi | ||
| 35 | |||
| 36 | ############################################################################# | ||
| 37 | |||
| 38 | echo test ssl3 is forbidden in FIPS mode | ||
| 39 | $ssltest -ssl3 $extra && exit 1 | ||
| 40 | |||
| 41 | echo test ssl2 is forbidden in FIPS mode | ||
| 42 | $ssltest -ssl2 $extra && exit 1 | ||
| 43 | |||
| 44 | echo test tls1 | ||
| 45 | $ssltest -tls1 $extra || exit 1 | ||
| 46 | |||
| 47 | echo test tls1 with server authentication | ||
| 48 | $ssltest -tls1 -server_auth $CA $extra || exit 1 | ||
| 49 | |||
| 50 | echo test tls1 with client authentication | ||
| 51 | $ssltest -tls1 -client_auth $CA $extra || exit 1 | ||
| 52 | |||
| 53 | echo test tls1 with both client and server authentication | ||
| 54 | $ssltest -tls1 -server_auth -client_auth $CA $extra || exit 1 | ||
| 55 | |||
| 56 | echo test tls1 via BIO pair | ||
| 57 | $ssltest -bio_pair -tls1 $extra || exit 1 | ||
| 58 | |||
| 59 | echo test tls1 with server authentication via BIO pair | ||
| 60 | $ssltest -bio_pair -tls1 -server_auth $CA $extra || exit 1 | ||
| 61 | |||
| 62 | echo test tls1 with client authentication via BIO pair | ||
| 63 | $ssltest -bio_pair -tls1 -client_auth $CA $extra || exit 1 | ||
| 64 | |||
| 65 | echo test tls1 with both client and server authentication via BIO pair | ||
| 66 | $ssltest -bio_pair -tls1 -server_auth -client_auth $CA $extra || exit 1 | ||
| 67 | |||
| 68 | # note that all the below actually choose TLS... | ||
| 69 | |||
| 70 | if [ $dsa_cert = NO ]; then | ||
| 71 | echo test sslv2/sslv3 w/o DHE via BIO pair | ||
| 72 | $ssltest -bio_pair -no_dhe $extra || exit 1 | ||
| 73 | fi | ||
| 74 | |||
| 75 | echo test sslv2/sslv3 with 1024bit DHE via BIO pair | ||
| 76 | $ssltest -bio_pair -dhe1024dsa -v $extra || exit 1 | ||
| 77 | |||
| 78 | echo test sslv2/sslv3 with server authentication | ||
| 79 | $ssltest -bio_pair -server_auth $CA $extra || exit 1 | ||
| 80 | |||
| 81 | echo test sslv2/sslv3 with client authentication via BIO pair | ||
| 82 | $ssltest -bio_pair -client_auth $CA $extra || exit 1 | ||
| 83 | |||
| 84 | echo test sslv2/sslv3 with both client and server authentication via BIO pair | ||
| 85 | $ssltest -bio_pair -server_auth -client_auth $CA $extra || exit 1 | ||
| 86 | |||
| 87 | echo test sslv2/sslv3 with both client and server authentication via BIO pair and app verify | ||
| 88 | $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1 | ||
| 89 | |||
| 90 | ############################################################################# | ||
| 91 | |||
| 92 | if ../util/shlib_wrap.sh ../apps/openssl no-dh; then | ||
| 93 | echo skipping anonymous DH tests | ||
| 94 | else | ||
| 95 | echo test tls1 with 1024bit anonymous DH, multiple handshakes | ||
| 96 | $ssltest -v -bio_pair -tls1 -cipher ADH -dhe1024dsa -num 10 -f -time $extra || exit 1 | ||
| 97 | fi | ||
| 98 | |||
| 99 | if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then | ||
| 100 | echo skipping RSA tests | ||
| 101 | else | ||
| 102 | echo test tls1 with 1024bit RSA, no DHE, multiple handshakes | ||
| 103 | ../util/shlib_wrap.sh ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -no_dhe -num 10 -f -time $extra || exit 1 | ||
| 104 | |||
| 105 | if ../util/shlib_wrap.sh ../apps/openssl no-dh; then | ||
| 106 | echo skipping RSA+DHE tests | ||
| 107 | else | ||
| 108 | echo test tls1 with 1024bit RSA, 1024bit DHE, multiple handshakes | ||
| 109 | ../util/shlib_wrap.sh ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -dhe1024dsa -num 10 -f -time $extra || exit 1 | ||
| 110 | fi | ||
| 111 | fi | ||
| 112 | |||
| 113 | exit 0 | ||
diff --git a/src/lib/libssl/src/test/testsslproxy b/src/lib/libssl/src/test/testsslproxy new file mode 100644 index 0000000000..58bbda8ab7 --- /dev/null +++ b/src/lib/libssl/src/test/testsslproxy | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | echo 'Testing a lot of proxy conditions.' | ||
| 4 | echo 'Some of them may turn out being invalid, which is fine.' | ||
| 5 | for auth in A B C BC; do | ||
| 6 | for cond in A B C 'A|B&!C'; do | ||
| 7 | sh ./testssl $1 $2 $3 "-proxy -proxy_auth $auth -proxy_cond $cond" | ||
| 8 | if [ $? = 3 ]; then exit 1; fi | ||
| 9 | done | ||
| 10 | done | ||
diff --git a/src/lib/libssl/src/tools/Makefile b/src/lib/libssl/src/tools/Makefile new file mode 100644 index 0000000000..52a7970455 --- /dev/null +++ b/src/lib/libssl/src/tools/Makefile | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/tools/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= tools | ||
| 6 | TOP= .. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | |||
| 17 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 18 | |||
| 19 | TEST= | ||
| 20 | APPS= c_rehash | ||
| 21 | MISC_APPS= c_hash c_info c_issuer c_name | ||
| 22 | |||
| 23 | all: | ||
| 24 | |||
| 25 | install: | ||
| 26 | @for i in $(APPS) ; \ | ||
| 27 | do \ | ||
| 28 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
| 29 | chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
| 30 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \ | ||
| 31 | done; | ||
| 32 | @for i in $(MISC_APPS) ; \ | ||
| 33 | do \ | ||
| 34 | (cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
| 35 | chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
| 36 | mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \ | ||
| 37 | done; | ||
| 38 | |||
| 39 | files: | ||
| 40 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 41 | |||
| 42 | links: | ||
| 43 | |||
| 44 | lint: | ||
| 45 | |||
| 46 | tags: | ||
| 47 | |||
| 48 | errors: | ||
| 49 | |||
| 50 | depend: | ||
| 51 | |||
| 52 | dclean: | ||
| 53 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 54 | mv -f Makefile.new $(MAKEFILE) | ||
| 55 | |||
| 56 | clean: | ||
| 57 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 58 | |||
| 59 | errors: | ||
| 60 | |||
| 61 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/util/extract-names.pl b/src/lib/libssl/src/util/extract-names.pl index 744a8e2324..35bd6ed843 100644 --- a/src/lib/libssl/src/util/extract-names.pl +++ b/src/lib/libssl/src/util/extract-names.pl | |||
| @@ -9,9 +9,11 @@ while(<STDIN>) { | |||
| 9 | } elsif ($name) { | 9 | } elsif ($name) { |
| 10 | if (/ - /) { | 10 | if (/ - /) { |
| 11 | s/ - .*//; | 11 | s/ - .*//; |
| 12 | s/,[ \t]+/,/g; | 12 | s/,\s+/,/g; |
| 13 | s/^[ \t]+//g; | 13 | s/\s+,/,/g; |
| 14 | s/[ \t]+$//g; | 14 | s/^\s+//g; |
| 15 | s/\s+$//g; | ||
| 16 | s/\s/_/g; | ||
| 15 | push @words, split ','; | 17 | push @words, split ','; |
| 16 | } | 18 | } |
| 17 | } | 19 | } |
diff --git a/src/lib/libssl/src/util/fixNT.sh b/src/lib/libssl/src/util/fixNT.sh index ce4f19299b..ab9e766b86 100644 --- a/src/lib/libssl/src/util/fixNT.sh +++ b/src/lib/libssl/src/util/fixNT.sh | |||
| @@ -3,12 +3,12 @@ | |||
| 3 | # clean up the mess that NT makes of my source tree | 3 | # clean up the mess that NT makes of my source tree |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | if [ -f makefile.ssl -a ! -f Makefile.ssl ]; then | 6 | if [ -f makefile -a ! -f Makefile ]; then |
| 7 | /bin/mv makefile.ssl Makefile.ssl | 7 | /bin/mv makefile Makefile |
| 8 | fi | 8 | fi |
| 9 | chmod +x Configure util/* | 9 | chmod +x Configure util/* |
| 10 | echo cleaning | 10 | echo cleaning |
| 11 | /bin/rm -f `find . -name '*.$$$' -print` 2>/dev/null >/dev/null | 11 | /bin/rm -f `find . -name '*.$$$' -print` 2>/dev/null >/dev/null |
| 12 | echo 'removing those damn ^M' | 12 | echo 'removing those damn ^M' |
| 13 | perl -pi -e 's/\015//' `find . -type 'f' -print |grep -v '.obj$' |grep -v '.der$' |grep -v '.gz'` | 13 | perl -pi -e 's/\015//' `find . -type 'f' -print |grep -v '.obj$' |grep -v '.der$' |grep -v '.gz'` |
| 14 | make -f Makefile.ssl links | 14 | make -f Makefile links |
diff --git a/src/lib/libssl/src/util/opensslwrap.sh b/src/lib/libssl/src/util/opensslwrap.sh new file mode 100755 index 0000000000..91d29e2b87 --- /dev/null +++ b/src/lib/libssl/src/util/opensslwrap.sh | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | HERE="`echo $0 | sed -e 's|[^/]*$||'`" | ||
| 4 | OPENSSL="${HERE}../apps/openssl" | ||
| 5 | |||
| 6 | if [ -x "${OPENSSL}.exe" ]; then | ||
| 7 | # The original reason for this script existence is to work around | ||
| 8 | # certain caveats in run-time linker behaviour. On Windows platforms | ||
| 9 | # adjusting $PATH used to be sufficient, but with introduction of | ||
| 10 | # SafeDllSearchMode in XP/2003 the only way to get it right in | ||
| 11 | # *all* possible situations is to copy newly built .DLLs to apps/ | ||
| 12 | # and test/, which is now done elsewhere... The $PATH is adjusted | ||
| 13 | # for backward compatibility (and nostagical reasons:-). | ||
| 14 | if [ "$OSTYPE" != msdosdjgpp ]; then | ||
| 15 | PATH="${HERE}..:$PATH"; export PATH | ||
| 16 | fi | ||
| 17 | exec "${OPENSSL}.exe" "$@" | ||
| 18 | elif [ -x "${OPENSSL}" -a -x "${HERE}shlib_wrap.sh" ]; then | ||
| 19 | exec "${HERE}shlib_wrap.sh" "${OPENSSL}" "$@" | ||
| 20 | else | ||
| 21 | exec "${OPENSSL}" "$@" # hope for the best... | ||
| 22 | fi | ||
diff --git a/src/lib/libssl/src/util/pl/VC-CE.pl b/src/lib/libssl/src/util/pl/VC-CE.pl index 1805ef9d97..2fd0c4dd32 100644 --- a/src/lib/libssl/src/util/pl/VC-CE.pl +++ b/src/lib/libssl/src/util/pl/VC-CE.pl | |||
| @@ -47,7 +47,7 @@ $shlibp=($shlib)?".dll":".lib"; | |||
| 47 | $lfile='/out:'; | 47 | $lfile='/out:'; |
| 48 | 48 | ||
| 49 | $shlib_ex_obj=""; | 49 | $shlib_ex_obj=""; |
| 50 | #$app_ex_obj="setargv.obj"; | 50 | $app_ex_obj=""; |
| 51 | $app_ex_obj=""; | 51 | $app_ex_obj=""; |
| 52 | 52 | ||
| 53 | $bn_asm_obj=''; | 53 | $bn_asm_obj=''; |
| @@ -97,14 +97,19 @@ sub do_lib_rule | |||
| 97 | 97 | ||
| 98 | sub do_link_rule | 98 | sub do_link_rule |
| 99 | { | 99 | { |
| 100 | local($target,$files,$dep_libs,$libs)=@_; | 100 | local($target,$files,$dep_libs,$libs,$sha1file,$openssl)=@_; |
| 101 | local($ret,$_); | 101 | local($ret,$_); |
| 102 | 102 | ||
| 103 | $file =~ s/\//$o/g if $o ne '/'; | 103 | $file =~ s/\//$o/g if $o ne '/'; |
| 104 | $n=&bname($targer); | 104 | $n=&bname($targer); |
| 105 | $ret.="$target: $files $dep_libs\n"; | 105 | $ret.="$target: $files $dep_libs\n"; |
| 106 | $ret.=" \$(LINK) \$(LFLAGS) $efile$target @<<\n"; | 106 | $ret.=" \$(LINK) \$(LFLAGS) $efile$target @<<\n"; |
| 107 | $ret.=" \$(APP_EX_OBJ) $files $libs\n<<\n\n"; | 107 | $ret.=" \$(APP_EX_OBJ) $files $libs\n<<\n"; |
| 108 | if (defined $sha1file) | ||
| 109 | { | ||
| 110 | $ret.=" $openssl sha1 -hmac etaonrishdlcupfm -binary $target > $sha1file"; | ||
| 111 | } | ||
| 112 | $ret.="\n"; | ||
| 108 | return($ret); | 113 | return($ret); |
| 109 | } | 114 | } |
| 110 | 115 | ||
diff --git a/src/lib/libssl/src/util/pod2mantest b/src/lib/libssl/src/util/pod2mantest index 412ca8d6d8..384e683df4 100644 --- a/src/lib/libssl/src/util/pod2mantest +++ b/src/lib/libssl/src/util/pod2mantest | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # This script is used by test/Makefile.ssl to check whether a sane 'pod2man' | 3 | # This script is used by test/Makefile to check whether a sane 'pod2man' |
| 4 | # is installed. | 4 | # is installed. |
| 5 | # ('make install' should not try to run 'pod2man' if it does not exist or if | 5 | # ('make install' should not try to run 'pod2man' if it does not exist or if |
| 6 | # it is a broken 'pod2man' version that is known to cause trouble. if we find | 6 | # it is a broken 'pod2man' version that is known to cause trouble. if we find |
diff --git a/src/lib/libssl/src/util/shlib_wrap.sh b/src/lib/libssl/src/util/shlib_wrap.sh new file mode 100755 index 0000000000..dc5f5b1ce4 --- /dev/null +++ b/src/lib/libssl/src/util/shlib_wrap.sh | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | [ $# -ne 0 ] || set -x # debug mode without arguments:-) | ||
| 4 | |||
| 5 | THERE="`echo $0 | sed -e 's|[^/]*$||' 2>/dev/null`.." | ||
| 6 | [ -d "${THERE}" ] || exec "$@" # should never happen... | ||
| 7 | |||
| 8 | # Alternative to this is to parse ${THERE}/Makefile... | ||
| 9 | LIBCRYPTOSO="${THERE}/libcrypto.so" | ||
| 10 | if [ -f "$LIBCRYPTOSO" ]; then | ||
| 11 | while [ -h "$LIBCRYPTOSO" ]; do | ||
| 12 | LIBCRYPTOSO="${THERE}/`ls -l "$LIBCRYPTOSO" | sed -e 's|.*\-> ||'`" | ||
| 13 | done | ||
| 14 | SOSUFFIX=`echo ${LIBCRYPTOSO} | sed -e 's|.*\.so||' 2>/dev/null` | ||
| 15 | LIBSSLSO="${THERE}/libssl.so${SOSUFFIX}" | ||
| 16 | fi | ||
| 17 | |||
| 18 | SYSNAME=`(uname -s) 2>/dev/null`; | ||
| 19 | case "$SYSNAME" in | ||
| 20 | SunOS|IRIX*) | ||
| 21 | # SunOS and IRIX run-time linkers evaluate alternative | ||
| 22 | # variables depending on target ABI... | ||
| 23 | rld_var=LD_LIBRARY_PATH | ||
| 24 | case "`(/usr/bin/file "$LIBCRYPTOSO") 2>/dev/null`" in | ||
| 25 | *ELF\ 64*SPARC*) | ||
| 26 | [ -n "$LD_LIBRARY_PATH_64" ] && rld_var=LD_LIBRARY_PATH_64 | ||
| 27 | ;; | ||
| 28 | *ELF\ N32*MIPS*) | ||
| 29 | [ -n "$LD_LIBRARYN32_PATH" ] && rld_var=LD_LIBRARYN32_PATH | ||
| 30 | _RLDN32_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT"; export _RLDN32_LIST | ||
| 31 | ;; | ||
| 32 | *ELF\ 64*MIPS*) | ||
| 33 | [ -n "$LD_LIBRARY64_PATH" ] && rld_var=LD_LIBRARY64_PATH | ||
| 34 | _RLD64_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT"; export _RLD64_LIST | ||
| 35 | ;; | ||
| 36 | esac | ||
| 37 | eval $rld_var=\"${THERE}:'$'$rld_var\"; export $rld_var | ||
| 38 | unset rld_var | ||
| 39 | ;; | ||
| 40 | *) LD_LIBRARY_PATH="${THERE}:$LD_LIBRARY_PATH" # Linux, ELF HP-UX | ||
| 41 | DYLD_LIBRARY_PATH="${THERE}:$DYLD_LIBRARY_PATH" # MacOS X | ||
| 42 | SHLIB_PATH="${THERE}:$SHLIB_PATH" # legacy HP-UX | ||
| 43 | LIBPATH="${THERE}:$LIBPATH" # AIX, OS/2 | ||
| 44 | export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH | ||
| 45 | # Even though $PATH is adjusted [for Windows sake], it doesn't | ||
| 46 | # necessarily does the trick. Trouble is that with introduction | ||
| 47 | # of SafeDllSearchMode in XP/2003 it's more appropriate to copy | ||
| 48 | # .DLLs in vicinity of executable, which is done elsewhere... | ||
| 49 | if [ "$OSTYPE" != msdosdjgpp ]; then | ||
| 50 | PATH="${THERE}:$PATH"; export PATH | ||
| 51 | fi | ||
| 52 | ;; | ||
| 53 | esac | ||
| 54 | |||
| 55 | if [ -f "$LIBCRYPTOSO" ]; then | ||
| 56 | # Following three lines are major excuse for isolating them into | ||
| 57 | # this wrapper script. Original reason for setting LD_PRELOAD | ||
| 58 | # was to make it possible to pass 'make test' when user linked | ||
| 59 | # with -rpath pointing to previous version installation. Wrapping | ||
| 60 | # it into a script makes it possible to do so on multi-ABI | ||
| 61 | # platforms. | ||
| 62 | case "$SYSNAME" in | ||
| 63 | *BSD) LD_PRELOAD="$LIBCRYPTOSO:$LIBSSLSO" ;; # *BSD | ||
| 64 | *) LD_PRELOAD="$LIBCRYPTOSO $LIBSSLSO" ;; # SunOS, Linux, ELF HP-UX | ||
| 65 | esac | ||
| 66 | _RLD_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT" # Tru64, o32 IRIX | ||
| 67 | export LD_PRELOAD _RLD_LIST | ||
| 68 | fi | ||
| 69 | |||
| 70 | exec "$@" | ||
