diff options
| author | djm <> | 2012-10-13 21:23:58 +0000 |
|---|---|---|
| committer | djm <> | 2012-10-13 21:23:58 +0000 |
| commit | adb31f466163d59ad933cf9d299ce6c610f1cff3 (patch) | |
| tree | cfb338ea736543eb88bd6c3f56f007ecb05dce51 /src/lib/libcrypto/sha | |
| parent | 767ddad28eb81a703656eed39ed362c83ac9e20a (diff) | |
| download | openbsd-adb31f466163d59ad933cf9d299ce6c610f1cff3.tar.gz openbsd-adb31f466163d59ad933cf9d299ce6c610f1cff3.tar.bz2 openbsd-adb31f466163d59ad933cf9d299ce6c610f1cff3.zip | |
import OpenSSL-1.0.1c
Diffstat (limited to 'src/lib/libcrypto/sha')
| -rw-r--r-- | src/lib/libcrypto/sha/Makefile | 39 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha_dgst.c | 1 |
2 files changed, 31 insertions, 9 deletions
diff --git a/src/lib/libcrypto/sha/Makefile b/src/lib/libcrypto/sha/Makefile index e6eccb05f9..6d191d3936 100644 --- a/src/lib/libcrypto/sha/Makefile +++ b/src/lib/libcrypto/sha/Makefile | |||
| @@ -56,8 +56,11 @@ sha256-ia64.s: asm/sha512-ia64.pl | |||
| 56 | sha512-ia64.s: asm/sha512-ia64.pl | 56 | sha512-ia64.s: asm/sha512-ia64.pl |
| 57 | (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) | 57 | (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) |
| 58 | 58 | ||
| 59 | sha256-armv4.s: asm/sha256-armv4.pl | 59 | sha256-armv4.S: asm/sha256-armv4.pl |
| 60 | $(PERL) $< $@ | 60 | $(PERL) $< $(PERLASM_SCHEME) $@ |
| 61 | |||
| 62 | sha1-alpha.s: asm/sha1-alpha.pl | ||
| 63 | $(PERL) $< | $(CC) -E - | tee $@ > /dev/null | ||
| 61 | 64 | ||
| 62 | # Solaris make has to be explicitly told | 65 | # Solaris make has to be explicitly told |
| 63 | sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@ | 66 | sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@ |
| @@ -71,10 +74,22 @@ sha1-ppc.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@ | |||
| 71 | sha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ | 74 | sha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ |
| 72 | sha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ | 75 | sha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ |
| 73 | 76 | ||
| 77 | sha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME) $@ | ||
| 78 | sha256-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@ | ||
| 79 | sha512-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@ | ||
| 80 | |||
| 81 | sha1-mips.S: asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@ | ||
| 82 | sha256-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@ | ||
| 83 | sha512-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@ | ||
| 84 | |||
| 74 | # GNU make "catch all" | 85 | # GNU make "catch all" |
| 75 | sha1-%.s: asm/sha1-%.pl; $(PERL) $< $@ | 86 | sha1-%.S: asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ |
| 76 | sha256-%.s: asm/sha512-%.pl; $(PERL) $< $@ | 87 | sha256-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ |
| 77 | sha512-%.s: asm/sha512-%.pl; $(PERL) $< $@ | 88 | sha512-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ |
| 89 | |||
| 90 | sha1-armv4-large.o: sha1-armv4-large.S | ||
| 91 | sha256-armv4.o: sha256-armv4.S | ||
| 92 | sha512-armv4.o: sha512-armv4.S | ||
| 78 | 93 | ||
| 79 | files: | 94 | files: |
| 80 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 95 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
| @@ -119,8 +134,11 @@ sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |||
| 119 | sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 134 | sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 120 | sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 135 | sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
| 121 | sha1_one.o: sha1_one.c | 136 | sha1_one.o: sha1_one.c |
| 122 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | 137 | sha1dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
| 123 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | 138 | sha1dgst.o: ../../include/openssl/opensslconf.h |
| 139 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 140 | sha1dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 141 | sha1dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 124 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h | 142 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h |
| 125 | sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 143 | sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
| 126 | sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 144 | sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| @@ -135,8 +153,11 @@ sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |||
| 135 | sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 153 | sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 136 | sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 154 | sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
| 137 | sha512.o: ../cryptlib.h sha512.c | 155 | sha512.o: ../cryptlib.h sha512.c |
| 138 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | 156 | sha_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
| 139 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | 157 | sha_dgst.o: ../../include/openssl/opensslconf.h |
| 158 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 159 | sha_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 160 | sha_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 140 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h | 161 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h |
| 141 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 162 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
| 142 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 163 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
diff --git a/src/lib/libcrypto/sha/sha_dgst.c b/src/lib/libcrypto/sha/sha_dgst.c index 70eb56032c..c946ad827d 100644 --- a/src/lib/libcrypto/sha/sha_dgst.c +++ b/src/lib/libcrypto/sha/sha_dgst.c | |||
| @@ -57,6 +57,7 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <openssl/opensslconf.h> | 59 | #include <openssl/opensslconf.h> |
| 60 | #include <openssl/crypto.h> | ||
| 60 | #if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA) | 61 | #if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA) |
| 61 | 62 | ||
| 62 | #undef SHA_1 | 63 | #undef SHA_1 |
