diff options
author | djm <> | 2008-09-06 12:15:54 +0000 |
---|---|---|
committer | djm <> | 2008-09-06 12:15:54 +0000 |
commit | f519f07de9bfb123f2b32aa3965e6f73c8364b80 (patch) | |
tree | ad353b318ee632f73212a174cffac9bb9e573b7c /src/lib/libcrypto/bn | |
parent | 89b182c5db7ea802edfc3ee734b4899b43e13e09 (diff) | |
parent | f1625f274acf5dcd5601f6cb5e29e233b2a441a3 (diff) | |
download | openbsd-f519f07de9bfb123f2b32aa3965e6f73c8364b80.tar.gz openbsd-f519f07de9bfb123f2b32aa3965e6f73c8364b80.tar.bz2 openbsd-f519f07de9bfb123f2b32aa3965e6f73c8364b80.zip |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r-- | src/lib/libcrypto/bn/Makefile | 286 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/asm/mo-586.pl | 603 |
2 files changed, 755 insertions, 134 deletions
diff --git a/src/lib/libcrypto/bn/Makefile b/src/lib/libcrypto/bn/Makefile index 9969d242cc..e97c751390 100644 --- a/src/lib/libcrypto/bn/Makefile +++ b/src/lib/libcrypto/bn/Makefile | |||
@@ -8,11 +8,6 @@ CC= cc | |||
8 | CPP= $(CC) -E | 8 | CPP= $(CC) -E |
9 | INCLUDES= -I.. -I$(TOP) -I../../include | 9 | INCLUDES= -I.. -I$(TOP) -I../../include |
10 | CFLAG=-g | 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 | 11 | MAKEFILE= Makefile |
17 | AR= ar r | 12 | AR= ar r |
18 | 13 | ||
@@ -22,6 +17,7 @@ BN_ASM= bn_asm.o | |||
22 | 17 | ||
23 | CFLAGS= $(INCLUDES) $(CFLAG) | 18 | CFLAGS= $(INCLUDES) $(CFLAG) |
24 | ASFLAGS= $(INCLUDES) $(ASFLAG) | 19 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
20 | AFLAGS= $(ASFLAGS) | ||
25 | 21 | ||
26 | GENERAL=Makefile | 22 | GENERAL=Makefile |
27 | TEST=bntest.c exptest.c | 23 | TEST=bntest.c exptest.c |
@@ -31,12 +27,14 @@ 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 \ | 27 | 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 \ | 28 | 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 \ | 29 | 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 bn_x931p.c | 30 | bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c bn_gf2m.c bn_nist.c \ |
31 | bn_depr.c bn_const.c | ||
35 | 32 | ||
36 | LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_ctx.o bn_mul.o bn_mod.o \ | 33 | 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 \ | 34 | 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) \ | 35 | 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 bn_x931p.o | 36 | bn_recp.o bn_mont.o bn_mpi.o bn_exp2.o bn_gf2m.o bn_nist.o \ |
37 | bn_depr.o bn_const.o | ||
40 | 38 | ||
41 | SRC= $(LIBSRC) | 39 | SRC= $(LIBSRC) |
42 | 40 | ||
@@ -64,70 +62,60 @@ lib: $(LIBOBJ) | |||
64 | $(RANLIB) $(LIB) || echo Never mind. | 62 | $(RANLIB) $(LIB) || echo Never mind. |
65 | @touch lib | 63 | @touch lib |
66 | 64 | ||
67 | # elf | 65 | # ELF |
68 | asm/bn86-elf.s: asm/bn-586.pl ../perlasm/x86asm.pl | 66 | bn86-elf.s: asm/bn-586.pl ../perlasm/x86asm.pl |
69 | (cd asm; $(PERL) bn-586.pl elf $(CFLAGS) > bn86-elf.s) | 67 | (cd asm; $(PERL) bn-586.pl elf $(CFLAGS) > ../$@) |
70 | 68 | co86-elf.s: asm/co-586.pl ../perlasm/x86asm.pl | |
71 | asm/co86-elf.s: asm/co-586.pl ../perlasm/x86asm.pl | 69 | (cd asm; $(PERL) co-586.pl elf $(CFLAGS) > ../$@) |
72 | (cd asm; $(PERL) co-586.pl elf $(CFLAGS) > co86-elf.s) | 70 | mo86-elf.s: asm/mo-586.pl ../perlasm/x86asm.pl |
73 | 71 | (cd asm; $(PERL) mo-586.pl elf $(CFLAGS) > ../$@) | |
72 | # COFF | ||
73 | bn86-cof.s: asm/bn-586.pl ../perlasm/x86asm.pl | ||
74 | (cd asm; $(PERL) bn-586.pl coff $(CFLAGS) > ../$@) | ||
75 | co86-cof.s: asm/co-586.pl ../perlasm/x86asm.pl | ||
76 | (cd asm; $(PERL) co-586.pl coff $(CFLAGS) > ../$@) | ||
77 | mo86-cof.s: asm/mo-586.pl ../perlasm/x86asm.pl | ||
78 | (cd asm; $(PERL) mo-586.pl coff $(CFLAGS) > ../$@) | ||
74 | # a.out | 79 | # a.out |
75 | asm/bn86-out.o: asm/bn86unix.cpp | 80 | bn86-out.s: asm/bn-586.pl ../perlasm/x86asm.pl |
76 | $(CPP) -DOUT asm/bn86unix.cpp | as -o asm/bn86-out.o | 81 | (cd asm; $(PERL) bn-586.pl a.out $(CFLAGS) > ../$@) |
77 | 82 | co86-out.s: asm/co-586.pl ../perlasm/x86asm.pl | |
78 | asm/co86-out.o: asm/co86unix.cpp | 83 | (cd asm; $(PERL) co-586.pl a.out $(CFLAGS) > ../$@) |
79 | $(CPP) -DOUT asm/co86unix.cpp | as -o asm/co86-out.o | 84 | mo86-out.s: asm/mo-586.pl ../perlasm/x86asm.pl |
80 | 85 | (cd asm; $(PERL) mo-586.pl a.out $(CFLAGS) > ../$@) | |
81 | # bsdi | 86 | |
82 | asm/bn86bsdi.o: asm/bn86unix.cpp | 87 | sparcv8.o: asm/sparcv8.S |
83 | $(CPP) -DBSDI asm/bn86unix.cpp | sed 's/ :/:/' | as -o asm/bn86bsdi.o | 88 | $(CC) $(CFLAGS) -c asm/sparcv8.S |
84 | 89 | sparcv8plus.o: asm/sparcv8plus.S | |
85 | asm/co86bsdi.o: asm/co86unix.cpp | 90 | $(CC) $(CFLAGS) -c asm/sparcv8plus.S |
86 | $(CPP) -DBSDI asm/co86unix.cpp | sed 's/ :/:/' | as -o asm/co86bsdi.o | 91 | |
87 | 92 | bn-mips3.o: asm/mips3.s | |
88 | asm/bn86unix.cpp: asm/bn-586.pl ../perlasm/x86asm.pl | 93 | @if [ "$(CC)" = "gcc" ]; then \ |
89 | (cd asm; $(PERL) bn-586.pl cpp >bn86unix.cpp ) | 94 | ABI=`expr "$(CFLAGS)" : ".*-mabi=\([n3264]*\)"` && \ |
90 | 95 | as -$$ABI -O -o $@ asm/mips3.s; \ | |
91 | asm/co86unix.cpp: asm/co-586.pl ../perlasm/x86asm.pl | 96 | else $(CC) -c $(CFLAGS) -o $@ asm/mips3.s; fi |
92 | (cd asm; $(PERL) co-586.pl cpp >co86unix.cpp ) | 97 | |
93 | 98 | x86_64-gcc.o: asm/x86_64-gcc.c | |
94 | asm/sparcv8.o: asm/sparcv8.S | 99 | $(CC) $(CFLAGS) -c -o $@ asm/x86_64-gcc.c |
95 | 100 | x86_64-mont.s: asm/x86_64-mont.pl | |
96 | asm/sparcv8plus.o: asm/sparcv8plus.S | 101 | $(PERL) asm/x86_64-mont.pl $@ |
97 | 102 | ||
98 | # Old GNU assembler doesn't understand V9 instructions, so we | 103 | bn-ia64.s: asm/ia64.S |
99 | # hire /usr/ccs/bin/as to do the job. Note that option is called | 104 | $(CC) $(CFLAGS) -E asm/ia64.S > $@ |
100 | # *-gcc27, but even gcc 2>=8 users may experience similar problem | 105 | |
101 | # if they didn't bother to upgrade GNU assembler. Such users should | 106 | # GNU assembler fails to compile PA-RISC2 modules, insist on calling |
102 | # not choose this option, but be adviced to *remove* GNU assembler | 107 | # vendor assembler... |
103 | # or upgrade it. | 108 | pa-risc2W.o: asm/pa-risc2W.s |
104 | asm/sparcv8plus-gcc27.o: asm/sparcv8plus.S | 109 | /usr/ccs/bin/as -o pa-risc2W.o asm/pa-risc2W.s |
105 | $(CC) $(ASFLAGS) -E asm/sparcv8plus.S | \ | 110 | pa-risc2.o: asm/pa-risc2.s |
106 | /usr/ccs/bin/as -xarch=v8plus - -o asm/sparcv8plus-gcc27.o | 111 | /usr/ccs/bin/as -o pa-risc2.o asm/pa-risc2.s |
107 | 112 | ||
108 | 113 | # ppc - AIX, Linux, MacOS X... | |
109 | asm/ia64.o: asm/ia64.S | 114 | linux_ppc32.s: asm/ppc.pl; $(PERL) $< $@ |
110 | 115 | linux_ppc64.s: asm/ppc.pl; $(PERL) $< $@ | |
111 | # Some compiler drivers (most notably HP-UX and Intel C++) don't | 116 | aix_ppc32.s: asm/ppc.pl; $(PERL) asm/ppc.pl $@ |
112 | # understand .S extension:-( I wish I could pipe output from cc -E, | 117 | aix_ppc64.s: asm/ppc.pl; $(PERL) asm/ppc.pl $@ |
113 | # but it's too compiler driver/ABI dependent to cover with a single | 118 | osx_ppc32.s: asm/ppc.pl; $(PERL) $< $@ |
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 | 119 | ||
132 | files: | 120 | files: |
133 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 121 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
@@ -138,6 +126,7 @@ links: | |||
138 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 126 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
139 | 127 | ||
140 | install: | 128 | install: |
129 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
141 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 130 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
142 | do \ | 131 | do \ |
143 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 132 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
@@ -161,6 +150,7 @@ lint: | |||
161 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 150 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
162 | 151 | ||
163 | depend: | 152 | depend: |
153 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
164 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 154 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
165 | 155 | ||
166 | dclean: | 156 | dclean: |
@@ -168,7 +158,7 @@ dclean: | |||
168 | mv -f Makefile.new $(MAKEFILE) | 158 | mv -f Makefile.new $(MAKEFILE) |
169 | 159 | ||
170 | clean: | 160 | 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 | 161 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
172 | 162 | ||
173 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 163 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
174 | 164 | ||
@@ -176,101 +166,131 @@ 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 | 166 | bn_add.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
177 | bn_add.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 167 | bn_add.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
178 | bn_add.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 168 | bn_add.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
179 | bn_add.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 169 | bn_add.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
180 | bn_add.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 170 | bn_add.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
181 | bn_add.o: ../cryptlib.h bn_add.c bn_lcl.h | 171 | bn_add.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_add.c bn_lcl.h |
182 | bn_asm.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 172 | 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 | 173 | bn_asm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
184 | bn_asm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 174 | bn_asm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
185 | bn_asm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 175 | bn_asm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
186 | bn_asm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 176 | bn_asm.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
187 | bn_asm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 177 | bn_asm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
188 | bn_asm.o: ../cryptlib.h bn_asm.c bn_lcl.h | 178 | bn_asm.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_asm.c bn_lcl.h |
189 | bn_blind.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 179 | 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 | 180 | bn_blind.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
191 | bn_blind.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 181 | bn_blind.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
192 | bn_blind.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 182 | bn_blind.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
193 | bn_blind.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 183 | bn_blind.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
194 | bn_blind.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 184 | bn_blind.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
195 | bn_blind.o: ../cryptlib.h bn_blind.c bn_lcl.h | 185 | bn_blind.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_blind.c bn_lcl.h |
186 | bn_const.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
187 | bn_const.o: ../../include/openssl/ossl_typ.h bn.h bn_const.c | ||
196 | bn_ctx.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 188 | 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 | 189 | bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
198 | bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 190 | bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
199 | bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 191 | bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
200 | bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 192 | bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
201 | bn_ctx.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 193 | bn_ctx.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
202 | bn_ctx.o: ../cryptlib.h bn_ctx.c bn_lcl.h | 194 | bn_ctx.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_ctx.c bn_lcl.h |
195 | bn_depr.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
196 | bn_depr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
197 | bn_depr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
198 | bn_depr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
199 | bn_depr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
200 | bn_depr.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
201 | bn_depr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
202 | bn_depr.o: ../cryptlib.h bn_depr.c bn_lcl.h | ||
203 | bn_div.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.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 | 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 | 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 | 206 | bn_div.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
207 | bn_div.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 207 | bn_div.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
208 | bn_div.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 208 | bn_div.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
209 | bn_div.o: ../cryptlib.h bn_div.c bn_lcl.h | 209 | bn_div.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_div.c bn_lcl.h |
210 | bn_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.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 | 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 | 212 | bn_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h |
213 | bn_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.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 | 214 | bn_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h |
215 | bn_err.o: ../../include/openssl/symhacks.h bn_err.c | 215 | bn_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
216 | bn_err.o: bn_err.c | ||
216 | bn_exp.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 217 | 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/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/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/lhash.h ../../include/openssl/opensslconf.h |
220 | bn_exp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 221 | bn_exp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
221 | bn_exp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 222 | bn_exp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
222 | bn_exp.o: ../cryptlib.h bn_exp.c bn_lcl.h | 223 | bn_exp.o: ../../include/openssl/symhacks.h ../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: ../../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/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/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/lhash.h ../../include/openssl/opensslconf.h |
227 | bn_exp2.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 228 | bn_exp2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
228 | bn_exp2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 229 | bn_exp2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
229 | bn_exp2.o: ../cryptlib.h bn_exp2.c bn_lcl.h | 230 | bn_exp2.o: ../../include/openssl/symhacks.h ../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: ../../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/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/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/lhash.h ../../include/openssl/opensslconf.h |
234 | bn_gcd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 235 | bn_gcd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
235 | bn_gcd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 236 | bn_gcd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
236 | bn_gcd.o: ../cryptlib.h bn_gcd.c bn_lcl.h | 237 | bn_gcd.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_gcd.c bn_lcl.h |
237 | bn_kron.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | 238 | bn_gf2m.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h |
238 | bn_kron.o: ../../include/openssl/opensslconf.h bn_kron.c bn_lcl.h | 239 | bn_gf2m.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
240 | bn_gf2m.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
241 | bn_gf2m.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
242 | bn_gf2m.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
243 | bn_gf2m.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
244 | bn_gf2m.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_gf2m.c bn_lcl.h | ||
245 | bn_kron.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
246 | bn_kron.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
247 | bn_kron.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
248 | bn_kron.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
249 | bn_kron.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
250 | bn_kron.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
251 | bn_kron.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_kron.c bn_lcl.h | ||
239 | bn_lib.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 252 | 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 | 253 | bn_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
241 | bn_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 254 | bn_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
242 | bn_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 255 | bn_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
243 | bn_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 256 | bn_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
244 | bn_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 257 | bn_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
245 | bn_lib.o: ../cryptlib.h bn_lcl.h bn_lib.c | 258 | bn_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_lib.c |
246 | bn_mod.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 259 | 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 | 260 | bn_mod.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
248 | bn_mod.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 261 | bn_mod.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
249 | bn_mod.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 262 | bn_mod.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
250 | bn_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 263 | bn_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
251 | bn_mod.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 264 | bn_mod.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
252 | bn_mod.o: ../cryptlib.h bn_lcl.h bn_mod.c | 265 | bn_mod.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_mod.c |
253 | bn_mont.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 266 | 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 | 267 | bn_mont.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
255 | bn_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 268 | bn_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
256 | bn_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 269 | bn_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
257 | bn_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 270 | bn_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
258 | bn_mont.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 271 | bn_mont.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
259 | bn_mont.o: ../cryptlib.h bn_lcl.h bn_mont.c | 272 | bn_mont.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_mont.c |
260 | bn_mpi.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 273 | 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 | 274 | bn_mpi.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
262 | bn_mpi.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 275 | bn_mpi.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
263 | bn_mpi.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 276 | bn_mpi.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
264 | bn_mpi.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 277 | bn_mpi.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
265 | bn_mpi.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 278 | bn_mpi.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
266 | bn_mpi.o: ../cryptlib.h bn_lcl.h bn_mpi.c | 279 | bn_mpi.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_mpi.c |
267 | bn_mul.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 280 | 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 | 281 | bn_mul.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
269 | bn_mul.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 282 | bn_mul.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
270 | bn_mul.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 283 | bn_mul.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
271 | bn_mul.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 284 | bn_mul.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
272 | bn_mul.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 285 | bn_mul.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
273 | bn_mul.o: ../cryptlib.h bn_lcl.h bn_mul.c | 286 | bn_mul.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_mul.c |
287 | bn_nist.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
288 | bn_nist.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
289 | bn_nist.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
290 | bn_nist.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
291 | bn_nist.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
292 | bn_nist.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
293 | bn_nist.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_nist.c | ||
274 | bn_prime.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 294 | 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 | 295 | bn_prime.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
276 | bn_prime.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 296 | bn_prime.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
@@ -283,9 +303,9 @@ 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 | 303 | bn_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
284 | bn_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 304 | bn_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
285 | bn_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 305 | bn_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
286 | bn_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 306 | bn_print.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
287 | bn_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 307 | bn_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
288 | bn_print.o: ../cryptlib.h bn_lcl.h bn_print.c | 308 | bn_print.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_print.c |
289 | bn_rand.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 309 | 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 | 310 | bn_rand.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
291 | bn_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 311 | bn_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
@@ -298,36 +318,34 @@ 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 | 318 | bn_recp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
299 | bn_recp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 319 | bn_recp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
300 | bn_recp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 320 | bn_recp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
301 | bn_recp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 321 | bn_recp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
302 | bn_recp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 322 | bn_recp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
303 | bn_recp.o: ../cryptlib.h bn_lcl.h bn_recp.c | 323 | bn_recp.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_recp.c |
304 | bn_shift.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 324 | 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 | 325 | bn_shift.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
306 | bn_shift.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 326 | bn_shift.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
307 | bn_shift.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 327 | bn_shift.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
308 | bn_shift.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 328 | bn_shift.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
309 | bn_shift.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 329 | bn_shift.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
310 | bn_shift.o: ../cryptlib.h bn_lcl.h bn_shift.c | 330 | bn_shift.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_shift.c |
311 | bn_sqr.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 331 | 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 | 332 | bn_sqr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
313 | bn_sqr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 333 | bn_sqr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
314 | bn_sqr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 334 | bn_sqr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
315 | bn_sqr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 335 | bn_sqr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
316 | bn_sqr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 336 | bn_sqr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
317 | bn_sqr.o: ../cryptlib.h bn_lcl.h bn_sqr.c | 337 | bn_sqr.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_sqr.c |
318 | bn_sqrt.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 338 | 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 | 339 | bn_sqrt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
320 | bn_sqrt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 340 | bn_sqrt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
321 | bn_sqrt.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 341 | bn_sqrt.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
322 | bn_sqrt.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 342 | bn_sqrt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
323 | bn_sqrt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 343 | bn_sqrt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
324 | bn_sqrt.o: ../cryptlib.h bn_lcl.h bn_sqrt.c | 344 | bn_sqrt.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_sqrt.c |
325 | bn_word.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | 345 | 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 | 346 | bn_word.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
327 | bn_word.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 347 | bn_word.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
328 | bn_word.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 348 | bn_word.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
329 | bn_word.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 349 | bn_word.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
330 | bn_word.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 350 | bn_word.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
331 | bn_word.o: ../cryptlib.h bn_lcl.h bn_word.c | 351 | bn_word.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_lcl.h bn_word.c |
332 | bn_x931p.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
333 | bn_x931p.o: ../../include/openssl/opensslconf.h bn_x931p.c | ||
diff --git a/src/lib/libcrypto/bn/asm/mo-586.pl b/src/lib/libcrypto/bn/asm/mo-586.pl new file mode 100644 index 0000000000..0982293094 --- /dev/null +++ b/src/lib/libcrypto/bn/asm/mo-586.pl | |||
@@ -0,0 +1,603 @@ | |||
1 | #!/usr/bin/env perl | ||
2 | |||
3 | # This is crypto/bn/asm/x86-mont.pl (with asciz from crypto/perlasm/x86asm.pl) | ||
4 | # from OpenSSL 0.9.9-dev | ||
5 | |||
6 | sub ::asciz | ||
7 | { my @str=unpack("C*",shift); | ||
8 | push @str,0; | ||
9 | while ($#str>15) { | ||
10 | &data_byte(@str[0..15]); | ||
11 | foreach (0..15) { shift @str; } | ||
12 | } | ||
13 | &data_byte(@str) if (@str); | ||
14 | } | ||
15 | |||
16 | # ==================================================================== | ||
17 | # Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL | ||
18 | # project. The module is, however, dual licensed under OpenSSL and | ||
19 | # CRYPTOGAMS licenses depending on where you obtain it. For further | ||
20 | # details see http://www.openssl.org/~appro/cryptogams/. | ||
21 | # ==================================================================== | ||
22 | |||
23 | # October 2005 | ||
24 | # | ||
25 | # This is a "teaser" code, as it can be improved in several ways... | ||
26 | # First of all non-SSE2 path should be implemented (yes, for now it | ||
27 | # performs Montgomery multiplication/convolution only on SSE2-capable | ||
28 | # CPUs such as P4, others fall down to original code). Then inner loop | ||
29 | # can be unrolled and modulo-scheduled to improve ILP and possibly | ||
30 | # moved to 128-bit XMM register bank (though it would require input | ||
31 | # rearrangement and/or increase bus bandwidth utilization). Dedicated | ||
32 | # squaring procedure should give further performance improvement... | ||
33 | # Yet, for being draft, the code improves rsa512 *sign* benchmark by | ||
34 | # 110%(!), rsa1024 one - by 70% and rsa4096 - by 20%:-) | ||
35 | |||
36 | # December 2006 | ||
37 | # | ||
38 | # Modulo-scheduling SSE2 loops results in further 15-20% improvement. | ||
39 | # Integer-only code [being equipped with dedicated squaring procedure] | ||
40 | # gives ~40% on rsa512 sign benchmark... | ||
41 | |||
42 | push(@INC,"perlasm","../../perlasm"); | ||
43 | require "x86asm.pl"; | ||
44 | |||
45 | &asm_init($ARGV[0],$0); | ||
46 | |||
47 | $sse2=0; | ||
48 | for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } | ||
49 | |||
50 | &external_label("OPENSSL_ia32cap_P") if ($sse2); | ||
51 | |||
52 | &function_begin("bn_mul_mont"); | ||
53 | |||
54 | $i="edx"; | ||
55 | $j="ecx"; | ||
56 | $ap="esi"; $tp="esi"; # overlapping variables!!! | ||
57 | $rp="edi"; $bp="edi"; # overlapping variables!!! | ||
58 | $np="ebp"; | ||
59 | $num="ebx"; | ||
60 | |||
61 | $_num=&DWP(4*0,"esp"); # stack top layout | ||
62 | $_rp=&DWP(4*1,"esp"); | ||
63 | $_ap=&DWP(4*2,"esp"); | ||
64 | $_bp=&DWP(4*3,"esp"); | ||
65 | $_np=&DWP(4*4,"esp"); | ||
66 | $_n0=&DWP(4*5,"esp"); $_n0q=&QWP(4*5,"esp"); | ||
67 | $_sp=&DWP(4*6,"esp"); | ||
68 | $_bpend=&DWP(4*7,"esp"); | ||
69 | $frame=32; # size of above frame rounded up to 16n | ||
70 | |||
71 | &xor ("eax","eax"); | ||
72 | &mov ("edi",&wparam(5)); # int num | ||
73 | &cmp ("edi",4); | ||
74 | &jl (&label("just_leave")); | ||
75 | |||
76 | &lea ("esi",&wparam(0)); # put aside pointer to argument block | ||
77 | &lea ("edx",&wparam(1)); # load ap | ||
78 | &mov ("ebp","esp"); # saved stack pointer! | ||
79 | &add ("edi",2); # extra two words on top of tp | ||
80 | &neg ("edi"); | ||
81 | &lea ("esp",&DWP(-$frame,"esp","edi",4)); # alloca($frame+4*(num+2)) | ||
82 | &neg ("edi"); | ||
83 | |||
84 | # minimize cache contention by arraning 2K window between stack | ||
85 | # pointer and ap argument [np is also position sensitive vector, | ||
86 | # but it's assumed to be near ap, as it's allocated at ~same | ||
87 | # time]. | ||
88 | &mov ("eax","esp"); | ||
89 | &sub ("eax","edx"); | ||
90 | &and ("eax",2047); | ||
91 | &sub ("esp","eax"); # this aligns sp and ap modulo 2048 | ||
92 | |||
93 | &xor ("edx","esp"); | ||
94 | &and ("edx",2048); | ||
95 | &xor ("edx",2048); | ||
96 | &sub ("esp","edx"); # this splits them apart modulo 4096 | ||
97 | |||
98 | &and ("esp",-64); # align to cache line | ||
99 | |||
100 | ################################# load argument block... | ||
101 | &mov ("eax",&DWP(0*4,"esi"));# BN_ULONG *rp | ||
102 | &mov ("ebx",&DWP(1*4,"esi"));# const BN_ULONG *ap | ||
103 | &mov ("ecx",&DWP(2*4,"esi"));# const BN_ULONG *bp | ||
104 | &mov ("edx",&DWP(3*4,"esi"));# const BN_ULONG *np | ||
105 | &mov ("esi",&DWP(4*4,"esi"));# const BN_ULONG *n0 | ||
106 | #&mov ("edi",&DWP(5*4,"esi"));# int num | ||
107 | |||
108 | &mov ("esi",&DWP(0,"esi")); # pull n0[0] | ||
109 | &mov ($_rp,"eax"); # ... save a copy of argument block | ||
110 | &mov ($_ap,"ebx"); | ||
111 | &mov ($_bp,"ecx"); | ||
112 | &mov ($_np,"edx"); | ||
113 | &mov ($_n0,"esi"); | ||
114 | &lea ($num,&DWP(-3,"edi")); # num=num-1 to assist modulo-scheduling | ||
115 | #&mov ($_num,$num); # redundant as $num is not reused | ||
116 | &mov ($_sp,"ebp"); # saved stack pointer! | ||
117 | |||
118 | if($sse2) { | ||
119 | $acc0="mm0"; # mmx register bank layout | ||
120 | $acc1="mm1"; | ||
121 | $car0="mm2"; | ||
122 | $car1="mm3"; | ||
123 | $mul0="mm4"; | ||
124 | $mul1="mm5"; | ||
125 | $temp="mm6"; | ||
126 | $mask="mm7"; | ||
127 | |||
128 | &picmeup("eax","OPENSSL_ia32cap_P"); | ||
129 | &bt (&DWP(0,"eax"),26); | ||
130 | &jnc (&label("non_sse2")); | ||
131 | |||
132 | &mov ("eax",-1); | ||
133 | &movd ($mask,"eax"); # mask 32 lower bits | ||
134 | |||
135 | &mov ($ap,$_ap); # load input pointers | ||
136 | &mov ($bp,$_bp); | ||
137 | &mov ($np,$_np); | ||
138 | |||
139 | &xor ($i,$i); # i=0 | ||
140 | &xor ($j,$j); # j=0 | ||
141 | |||
142 | &movd ($mul0,&DWP(0,$bp)); # bp[0] | ||
143 | &movd ($mul1,&DWP(0,$ap)); # ap[0] | ||
144 | &movd ($car1,&DWP(0,$np)); # np[0] | ||
145 | |||
146 | &pmuludq($mul1,$mul0); # ap[0]*bp[0] | ||
147 | &movq ($car0,$mul1); | ||
148 | &movq ($acc0,$mul1); # I wish movd worked for | ||
149 | &pand ($acc0,$mask); # inter-register transfers | ||
150 | |||
151 | &pmuludq($mul1,$_n0q); # *=n0 | ||
152 | |||
153 | &pmuludq($car1,$mul1); # "t[0]"*np[0]*n0 | ||
154 | &paddq ($car1,$acc0); | ||
155 | |||
156 | &movd ($acc1,&DWP(4,$np)); # np[1] | ||
157 | &movd ($acc0,&DWP(4,$ap)); # ap[1] | ||
158 | |||
159 | &psrlq ($car0,32); | ||
160 | &psrlq ($car1,32); | ||
161 | |||
162 | &inc ($j); # j++ | ||
163 | &set_label("1st",16); | ||
164 | &pmuludq($acc0,$mul0); # ap[j]*bp[0] | ||
165 | &pmuludq($acc1,$mul1); # np[j]*m1 | ||
166 | &paddq ($car0,$acc0); # +=c0 | ||
167 | &paddq ($car1,$acc1); # +=c1 | ||
168 | |||
169 | &movq ($acc0,$car0); | ||
170 | &pand ($acc0,$mask); | ||
171 | &movd ($acc1,&DWP(4,$np,$j,4)); # np[j+1] | ||
172 | &paddq ($car1,$acc0); # +=ap[j]*bp[0]; | ||
173 | &movd ($acc0,&DWP(4,$ap,$j,4)); # ap[j+1] | ||
174 | &psrlq ($car0,32); | ||
175 | &movd (&DWP($frame-4,"esp",$j,4),$car1); # tp[j-1]= | ||
176 | &psrlq ($car1,32); | ||
177 | |||
178 | &lea ($j,&DWP(1,$j)); | ||
179 | &cmp ($j,$num); | ||
180 | &jl (&label("1st")); | ||
181 | |||
182 | &pmuludq($acc0,$mul0); # ap[num-1]*bp[0] | ||
183 | &pmuludq($acc1,$mul1); # np[num-1]*m1 | ||
184 | &paddq ($car0,$acc0); # +=c0 | ||
185 | &paddq ($car1,$acc1); # +=c1 | ||
186 | |||
187 | &movq ($acc0,$car0); | ||
188 | &pand ($acc0,$mask); | ||
189 | &paddq ($car1,$acc0); # +=ap[num-1]*bp[0]; | ||
190 | &movd (&DWP($frame-4,"esp",$j,4),$car1); # tp[num-2]= | ||
191 | |||
192 | &psrlq ($car0,32); | ||
193 | &psrlq ($car1,32); | ||
194 | |||
195 | &paddq ($car1,$car0); | ||
196 | &movq (&QWP($frame,"esp",$num,4),$car1); # tp[num].tp[num-1] | ||
197 | |||
198 | &inc ($i); # i++ | ||
199 | &set_label("outer"); | ||
200 | &xor ($j,$j); # j=0 | ||
201 | |||
202 | &movd ($mul0,&DWP(0,$bp,$i,4)); # bp[i] | ||
203 | &movd ($mul1,&DWP(0,$ap)); # ap[0] | ||
204 | &movd ($temp,&DWP($frame,"esp")); # tp[0] | ||
205 | &movd ($car1,&DWP(0,$np)); # np[0] | ||
206 | &pmuludq($mul1,$mul0); # ap[0]*bp[i] | ||
207 | |||
208 | &paddq ($mul1,$temp); # +=tp[0] | ||
209 | &movq ($acc0,$mul1); | ||
210 | &movq ($car0,$mul1); | ||
211 | &pand ($acc0,$mask); | ||
212 | |||
213 | &pmuludq($mul1,$_n0q); # *=n0 | ||
214 | |||
215 | &pmuludq($car1,$mul1); | ||
216 | &paddq ($car1,$acc0); | ||
217 | |||
218 | &movd ($temp,&DWP($frame+4,"esp")); # tp[1] | ||
219 | &movd ($acc1,&DWP(4,$np)); # np[1] | ||
220 | &movd ($acc0,&DWP(4,$ap)); # ap[1] | ||
221 | |||
222 | &psrlq ($car0,32); | ||
223 | &psrlq ($car1,32); | ||
224 | &paddq ($car0,$temp); # +=tp[1] | ||
225 | |||
226 | &inc ($j); # j++ | ||
227 | &dec ($num); | ||
228 | &set_label("inner"); | ||
229 | &pmuludq($acc0,$mul0); # ap[j]*bp[i] | ||
230 | &pmuludq($acc1,$mul1); # np[j]*m1 | ||
231 | &paddq ($car0,$acc0); # +=c0 | ||
232 | &paddq ($car1,$acc1); # +=c1 | ||
233 | |||
234 | &movq ($acc0,$car0); | ||
235 | &movd ($temp,&DWP($frame+4,"esp",$j,4));# tp[j+1] | ||
236 | &pand ($acc0,$mask); | ||
237 | &movd ($acc1,&DWP(4,$np,$j,4)); # np[j+1] | ||
238 | &paddq ($car1,$acc0); # +=ap[j]*bp[i]+tp[j] | ||
239 | &movd ($acc0,&DWP(4,$ap,$j,4)); # ap[j+1] | ||
240 | &psrlq ($car0,32); | ||
241 | &movd (&DWP($frame-4,"esp",$j,4),$car1);# tp[j-1]= | ||
242 | &psrlq ($car1,32); | ||
243 | &paddq ($car0,$temp); # +=tp[j+1] | ||
244 | |||
245 | &dec ($num); | ||
246 | &lea ($j,&DWP(1,$j)); # j++ | ||
247 | &jnz (&label("inner")); | ||
248 | |||
249 | &mov ($num,$j); | ||
250 | &pmuludq($acc0,$mul0); # ap[num-1]*bp[i] | ||
251 | &pmuludq($acc1,$mul1); # np[num-1]*m1 | ||
252 | &paddq ($car0,$acc0); # +=c0 | ||
253 | &paddq ($car1,$acc1); # +=c1 | ||
254 | |||
255 | &movq ($acc0,$car0); | ||
256 | &pand ($acc0,$mask); | ||
257 | &paddq ($car1,$acc0); # +=ap[num-1]*bp[i]+tp[num-1] | ||
258 | &movd (&DWP($frame-4,"esp",$j,4),$car1); # tp[num-2]= | ||
259 | &psrlq ($car0,32); | ||
260 | &psrlq ($car1,32); | ||
261 | |||
262 | &movd ($temp,&DWP($frame+4,"esp",$num,4)); # += tp[num] | ||
263 | &paddq ($car1,$car0); | ||
264 | &paddq ($car1,$temp); | ||
265 | &movq (&QWP($frame,"esp",$num,4),$car1); # tp[num].tp[num-1] | ||
266 | |||
267 | &lea ($i,&DWP(1,$i)); # i++ | ||
268 | &cmp ($i,$num); | ||
269 | &jle (&label("outer")); | ||
270 | |||
271 | &emms (); # done with mmx bank | ||
272 | &jmp (&label("common_tail")); | ||
273 | |||
274 | &set_label("non_sse2",16); | ||
275 | } | ||
276 | |||
277 | if (0) { | ||
278 | &mov ("esp",$_sp); | ||
279 | &xor ("eax","eax"); # signal "not fast enough [yet]" | ||
280 | &jmp (&label("just_leave")); | ||
281 | # While the below code provides competitive performance for | ||
282 | # all key lengthes on modern Intel cores, it's still more | ||
283 | # than 10% slower for 4096-bit key elsewhere:-( "Competitive" | ||
284 | # means compared to the original integer-only assembler. | ||
285 | # 512-bit RSA sign is better by ~40%, but that's about all | ||
286 | # one can say about all CPUs... | ||
287 | } else { | ||
288 | $inp="esi"; # integer path uses these registers differently | ||
289 | $word="edi"; | ||
290 | $carry="ebp"; | ||
291 | |||
292 | &mov ($inp,$_ap); | ||
293 | &lea ($carry,&DWP(1,$num)); | ||
294 | &mov ($word,$_bp); | ||
295 | &xor ($j,$j); # j=0 | ||
296 | &mov ("edx",$inp); | ||
297 | &and ($carry,1); # see if num is even | ||
298 | &sub ("edx",$word); # see if ap==bp | ||
299 | &lea ("eax",&DWP(4,$word,$num,4)); # &bp[num] | ||
300 | &or ($carry,"edx"); | ||
301 | &mov ($word,&DWP(0,$word)); # bp[0] | ||
302 | &jz (&label("bn_sqr_mont")); | ||
303 | &mov ($_bpend,"eax"); | ||
304 | &mov ("eax",&DWP(0,$inp)); | ||
305 | &xor ("edx","edx"); | ||
306 | |||
307 | &set_label("mull",16); | ||
308 | &mov ($carry,"edx"); | ||
309 | &mul ($word); # ap[j]*bp[0] | ||
310 | &add ($carry,"eax"); | ||
311 | &lea ($j,&DWP(1,$j)); | ||
312 | &adc ("edx",0); | ||
313 | &mov ("eax",&DWP(0,$inp,$j,4)); # ap[j+1] | ||
314 | &cmp ($j,$num); | ||
315 | &mov (&DWP($frame-4,"esp",$j,4),$carry); # tp[j]= | ||
316 | &jl (&label("mull")); | ||
317 | |||
318 | &mov ($carry,"edx"); | ||
319 | &mul ($word); # ap[num-1]*bp[0] | ||
320 | &mov ($word,$_n0); | ||
321 | &add ("eax",$carry); | ||
322 | &mov ($inp,$_np); | ||
323 | &adc ("edx",0); | ||
324 | &imul ($word,&DWP($frame,"esp")); # n0*tp[0] | ||
325 | |||
326 | &mov (&DWP($frame,"esp",$num,4),"eax"); # tp[num-1]= | ||
327 | &xor ($j,$j); | ||
328 | &mov (&DWP($frame+4,"esp",$num,4),"edx"); # tp[num]= | ||
329 | &mov (&DWP($frame+8,"esp",$num,4),$j); # tp[num+1]= | ||
330 | |||
331 | &mov ("eax",&DWP(0,$inp)); # np[0] | ||
332 | &mul ($word); # np[0]*m | ||
333 | &add ("eax",&DWP($frame,"esp")); # +=tp[0] | ||
334 | &mov ("eax",&DWP(4,$inp)); # np[1] | ||
335 | &adc ("edx",0); | ||
336 | &inc ($j); | ||
337 | |||
338 | &jmp (&label("2ndmadd")); | ||
339 | |||
340 | &set_label("1stmadd",16); | ||
341 | &mov ($carry,"edx"); | ||
342 | &mul ($word); # ap[j]*bp[i] | ||
343 | &add ($carry,&DWP($frame,"esp",$j,4)); # +=tp[j] | ||
344 | &lea ($j,&DWP(1,$j)); | ||
345 | &adc ("edx",0); | ||
346 | &add ($carry,"eax"); | ||
347 | &mov ("eax",&DWP(0,$inp,$j,4)); # ap[j+1] | ||
348 | &adc ("edx",0); | ||
349 | &cmp ($j,$num); | ||
350 | &mov (&DWP($frame-4,"esp",$j,4),$carry); # tp[j]= | ||
351 | &jl (&label("1stmadd")); | ||
352 | |||
353 | &mov ($carry,"edx"); | ||
354 | &mul ($word); # ap[num-1]*bp[i] | ||
355 | &add ("eax",&DWP($frame,"esp",$num,4)); # +=tp[num-1] | ||
356 | &mov ($word,$_n0); | ||
357 | &adc ("edx",0); | ||
358 | &mov ($inp,$_np); | ||
359 | &add ($carry,"eax"); | ||
360 | &adc ("edx",0); | ||
361 | &imul ($word,&DWP($frame,"esp")); # n0*tp[0] | ||
362 | |||
363 | &xor ($j,$j); | ||
364 | &add ("edx",&DWP($frame+4,"esp",$num,4)); # carry+=tp[num] | ||
365 | &mov (&DWP($frame,"esp",$num,4),$carry); # tp[num-1]= | ||
366 | &adc ($j,0); | ||
367 | &mov ("eax",&DWP(0,$inp)); # np[0] | ||
368 | &mov (&DWP($frame+4,"esp",$num,4),"edx"); # tp[num]= | ||
369 | &mov (&DWP($frame+8,"esp",$num,4),$j); # tp[num+1]= | ||
370 | |||
371 | &mul ($word); # np[0]*m | ||
372 | &add ("eax",&DWP($frame,"esp")); # +=tp[0] | ||
373 | &mov ("eax",&DWP(4,$inp)); # np[1] | ||
374 | &adc ("edx",0); | ||
375 | &mov ($j,1); | ||
376 | |||
377 | &set_label("2ndmadd",16); | ||
378 | &mov ($carry,"edx"); | ||
379 | &mul ($word); # np[j]*m | ||
380 | &add ($carry,&DWP($frame,"esp",$j,4)); # +=tp[j] | ||
381 | &lea ($j,&DWP(1,$j)); | ||
382 | &adc ("edx",0); | ||
383 | &add ($carry,"eax"); | ||
384 | &mov ("eax",&DWP(0,$inp,$j,4)); # np[j+1] | ||
385 | &adc ("edx",0); | ||
386 | &cmp ($j,$num); | ||
387 | &mov (&DWP($frame-8,"esp",$j,4),$carry); # tp[j-1]= | ||
388 | &jl (&label("2ndmadd")); | ||
389 | |||
390 | &mov ($carry,"edx"); | ||
391 | &mul ($word); # np[j]*m | ||
392 | &add ($carry,&DWP($frame,"esp",$num,4)); # +=tp[num-1] | ||
393 | &adc ("edx",0); | ||
394 | &add ($carry,"eax"); | ||
395 | &adc ("edx",0); | ||
396 | &mov (&DWP($frame-4,"esp",$num,4),$carry); # tp[num-2]= | ||
397 | |||
398 | &xor ("eax","eax"); | ||
399 | &mov ($j,$_bp); # &bp[i] | ||
400 | &add ("edx",&DWP($frame+4,"esp",$num,4)); # carry+=tp[num] | ||
401 | &adc ("eax",&DWP($frame+8,"esp",$num,4)); # +=tp[num+1] | ||
402 | &lea ($j,&DWP(4,$j)); | ||
403 | &mov (&DWP($frame,"esp",$num,4),"edx"); # tp[num-1]= | ||
404 | &cmp ($j,$_bpend); | ||
405 | &mov (&DWP($frame+4,"esp",$num,4),"eax"); # tp[num]= | ||
406 | &je (&label("common_tail")); | ||
407 | |||
408 | &mov ($word,&DWP(0,$j)); # bp[i+1] | ||
409 | &mov ($inp,$_ap); | ||
410 | &mov ($_bp,$j); # &bp[++i] | ||
411 | &xor ($j,$j); | ||
412 | &xor ("edx","edx"); | ||
413 | &mov ("eax",&DWP(0,$inp)); | ||
414 | &jmp (&label("1stmadd")); | ||
415 | |||
416 | &set_label("bn_sqr_mont",16); | ||
417 | $sbit=$num; | ||
418 | &mov ($_num,$num); | ||
419 | &mov ($_bp,$j); # i=0 | ||
420 | |||
421 | &mov ("eax",$word); # ap[0] | ||
422 | &mul ($word); # ap[0]*ap[0] | ||
423 | &mov (&DWP($frame,"esp"),"eax"); # tp[0]= | ||
424 | &mov ($sbit,"edx"); | ||
425 | &shr ("edx",1); | ||
426 | &and ($sbit,1); | ||
427 | &inc ($j); | ||
428 | &set_label("sqr",16); | ||
429 | &mov ("eax",&DWP(0,$inp,$j,4)); # ap[j] | ||
430 | &mov ($carry,"edx"); | ||
431 | &mul ($word); # ap[j]*ap[0] | ||
432 | &add ("eax",$carry); | ||
433 | &lea ($j,&DWP(1,$j)); | ||
434 | &adc ("edx",0); | ||
435 | &lea ($carry,&DWP(0,$sbit,"eax",2)); | ||
436 | &shr ("eax",31); | ||
437 | &cmp ($j,$_num); | ||
438 | &mov ($sbit,"eax"); | ||
439 | &mov (&DWP($frame-4,"esp",$j,4),$carry); # tp[j]= | ||
440 | &jl (&label("sqr")); | ||
441 | |||
442 | &mov ("eax",&DWP(0,$inp,$j,4)); # ap[num-1] | ||
443 | &mov ($carry,"edx"); | ||
444 | &mul ($word); # ap[num-1]*ap[0] | ||
445 | &add ("eax",$carry); | ||
446 | &mov ($word,$_n0); | ||
447 | &adc ("edx",0); | ||
448 | &mov ($inp,$_np); | ||
449 | &lea ($carry,&DWP(0,$sbit,"eax",2)); | ||
450 | &imul ($word,&DWP($frame,"esp")); # n0*tp[0] | ||
451 | &shr ("eax",31); | ||
452 | &mov (&DWP($frame,"esp",$j,4),$carry); # tp[num-1]= | ||
453 | |||
454 | &lea ($carry,&DWP(0,"eax","edx",2)); | ||
455 | &mov ("eax",&DWP(0,$inp)); # np[0] | ||
456 | &shr ("edx",31); | ||
457 | &mov (&DWP($frame+4,"esp",$j,4),$carry); # tp[num]= | ||
458 | &mov (&DWP($frame+8,"esp",$j,4),"edx"); # tp[num+1]= | ||
459 | |||
460 | &mul ($word); # np[0]*m | ||
461 | &add ("eax",&DWP($frame,"esp")); # +=tp[0] | ||
462 | &mov ($num,$j); | ||
463 | &adc ("edx",0); | ||
464 | &mov ("eax",&DWP(4,$inp)); # np[1] | ||
465 | &mov ($j,1); | ||
466 | |||
467 | &set_label("3rdmadd",16); | ||
468 | &mov ($carry,"edx"); | ||
469 | &mul ($word); # np[j]*m | ||
470 | &add ($carry,&DWP($frame,"esp",$j,4)); # +=tp[j] | ||
471 | &adc ("edx",0); | ||
472 | &add ($carry,"eax"); | ||
473 | &mov ("eax",&DWP(4,$inp,$j,4)); # np[j+1] | ||
474 | &adc ("edx",0); | ||
475 | &mov (&DWP($frame-4,"esp",$j,4),$carry); # tp[j-1]= | ||
476 | |||
477 | &mov ($carry,"edx"); | ||
478 | &mul ($word); # np[j+1]*m | ||
479 | &add ($carry,&DWP($frame+4,"esp",$j,4)); # +=tp[j+1] | ||
480 | &lea ($j,&DWP(2,$j)); | ||
481 | &adc ("edx",0); | ||
482 | &add ($carry,"eax"); | ||
483 | &mov ("eax",&DWP(0,$inp,$j,4)); # np[j+2] | ||
484 | &adc ("edx",0); | ||
485 | &cmp ($j,$num); | ||
486 | &mov (&DWP($frame-8,"esp",$j,4),$carry); # tp[j]= | ||
487 | &jl (&label("3rdmadd")); | ||
488 | |||
489 | &mov ($carry,"edx"); | ||
490 | &mul ($word); # np[j]*m | ||
491 | &add ($carry,&DWP($frame,"esp",$num,4)); # +=tp[num-1] | ||
492 | &adc ("edx",0); | ||
493 | &add ($carry,"eax"); | ||
494 | &adc ("edx",0); | ||
495 | &mov (&DWP($frame-4,"esp",$num,4),$carry); # tp[num-2]= | ||
496 | |||
497 | &mov ($j,$_bp); # i | ||
498 | &xor ("eax","eax"); | ||
499 | &mov ($inp,$_ap); | ||
500 | &add ("edx",&DWP($frame+4,"esp",$num,4)); # carry+=tp[num] | ||
501 | &adc ("eax",&DWP($frame+8,"esp",$num,4)); # +=tp[num+1] | ||
502 | &mov (&DWP($frame,"esp",$num,4),"edx"); # tp[num-1]= | ||
503 | &cmp ($j,$num); | ||
504 | &mov (&DWP($frame+4,"esp",$num,4),"eax"); # tp[num]= | ||
505 | &je (&label("common_tail")); | ||
506 | |||
507 | &mov ($word,&DWP(4,$inp,$j,4)); # ap[i] | ||
508 | &lea ($j,&DWP(1,$j)); | ||
509 | &mov ("eax",$word); | ||
510 | &mov ($_bp,$j); # ++i | ||
511 | &mul ($word); # ap[i]*ap[i] | ||
512 | &add ("eax",&DWP($frame,"esp",$j,4)); # +=tp[i] | ||
513 | &adc ("edx",0); | ||
514 | &mov (&DWP($frame,"esp",$j,4),"eax"); # tp[i]= | ||
515 | &xor ($carry,$carry); | ||
516 | &cmp ($j,$num); | ||
517 | &lea ($j,&DWP(1,$j)); | ||
518 | &je (&label("sqrlast")); | ||
519 | |||
520 | &mov ($sbit,"edx"); # zaps $num | ||
521 | &shr ("edx",1); | ||
522 | &and ($sbit,1); | ||
523 | &set_label("sqradd",16); | ||
524 | &mov ("eax",&DWP(0,$inp,$j,4)); # ap[j] | ||
525 | &mov ($carry,"edx"); | ||
526 | &mul ($word); # ap[j]*ap[i] | ||
527 | &add ("eax",$carry); | ||
528 | &lea ($carry,&DWP(0,"eax","eax")); | ||
529 | &adc ("edx",0); | ||
530 | &shr ("eax",31); | ||
531 | &add ($carry,&DWP($frame,"esp",$j,4)); # +=tp[j] | ||
532 | &lea ($j,&DWP(1,$j)); | ||
533 | &adc ("eax",0); | ||
534 | &add ($carry,$sbit); | ||
535 | &adc ("eax",0); | ||
536 | &cmp ($j,$_num); | ||
537 | &mov (&DWP($frame-4,"esp",$j,4),$carry); # tp[j]= | ||
538 | &mov ($sbit,"eax"); | ||
539 | &jle (&label("sqradd")); | ||
540 | |||
541 | &mov ($carry,"edx"); | ||
542 | &lea ("edx",&DWP(0,$sbit,"edx",2)); | ||
543 | &shr ($carry,31); | ||
544 | &set_label("sqrlast"); | ||
545 | &mov ($word,$_n0); | ||
546 | &mov ($inp,$_np); | ||
547 | &imul ($word,&DWP($frame,"esp")); # n0*tp[0] | ||
548 | |||
549 | &add ("edx",&DWP($frame,"esp",$j,4)); # +=tp[num] | ||
550 | &mov ("eax",&DWP(0,$inp)); # np[0] | ||
551 | &adc ($carry,0); | ||
552 | &mov (&DWP($frame,"esp",$j,4),"edx"); # tp[num]= | ||
553 | &mov (&DWP($frame+4,"esp",$j,4),$carry); # tp[num+1]= | ||
554 | |||
555 | &mul ($word); # np[0]*m | ||
556 | &add ("eax",&DWP($frame,"esp")); # +=tp[0] | ||
557 | &lea ($num,&DWP(-1,$j)); | ||
558 | &adc ("edx",0); | ||
559 | &mov ($j,1); | ||
560 | &mov ("eax",&DWP(4,$inp)); # np[1] | ||
561 | |||
562 | &jmp (&label("3rdmadd")); | ||
563 | } | ||
564 | |||
565 | &set_label("common_tail",16); | ||
566 | &mov ($np,$_np); # load modulus pointer | ||
567 | &mov ($rp,$_rp); # load result pointer | ||
568 | &lea ($tp,&DWP($frame,"esp")); # [$ap and $bp are zapped] | ||
569 | |||
570 | &mov ("eax",&DWP(0,$tp)); # tp[0] | ||
571 | &mov ($j,$num); # j=num-1 | ||
572 | &xor ($i,$i); # i=0 and clear CF! | ||
573 | |||
574 | &set_label("sub",16); | ||
575 | &sbb ("eax",&DWP(0,$np,$i,4)); | ||
576 | &mov (&DWP(0,$rp,$i,4),"eax"); # rp[i]=tp[i]-np[i] | ||
577 | &dec ($j); # doesn't affect CF! | ||
578 | &mov ("eax",&DWP(4,$tp,$i,4)); # tp[i+1] | ||
579 | &lea ($i,&DWP(1,$i)); # i++ | ||
580 | &jge (&label("sub")); | ||
581 | |||
582 | &sbb ("eax",0); # handle upmost overflow bit | ||
583 | &and ($tp,"eax"); | ||
584 | ¬ ("eax"); | ||
585 | &mov ($np,$rp); | ||
586 | &and ($np,"eax"); | ||
587 | &or ($tp,$np); # tp=carry?tp:rp | ||
588 | |||
589 | &set_label("copy",16); # copy or in-place refresh | ||
590 | &mov ("eax",&DWP(0,$tp,$num,4)); | ||
591 | &mov (&DWP(0,$rp,$num,4),"eax"); # rp[i]=tp[i] | ||
592 | &mov (&DWP($frame,"esp",$num,4),$j); # zap temporary vector | ||
593 | &dec ($num); | ||
594 | &jge (&label("copy")); | ||
595 | |||
596 | &mov ("esp",$_sp); # pull saved stack pointer | ||
597 | &mov ("eax",1); | ||
598 | &set_label("just_leave"); | ||
599 | &function_end("bn_mul_mont"); | ||
600 | |||
601 | &asciz("Montgomery Multiplication for x86, CRYPTOGAMS by <appro\@openssl.org>"); | ||
602 | |||
603 | &asm_finish(); | ||