summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc4/asm
diff options
context:
space:
mode:
authormiod <>2014-07-12 20:11:45 +0000
committermiod <>2014-07-12 20:11:45 +0000
commitf9a1965b55172034933a39d8fb8dfd6a6d32c7a7 (patch)
tree7ff4083d03be3653d14d8297fb0377c332f66c8d /src/lib/libcrypto/rc4/asm
parent7e58d56f7a655feae6127c5fb15e4042012d02f5 (diff)
downloadopenbsd-f9a1965b55172034933a39d8fb8dfd6a6d32c7a7.tar.gz
openbsd-f9a1965b55172034933a39d8fb8dfd6a6d32c7a7.tar.bz2
openbsd-f9a1965b55172034933a39d8fb8dfd6a6d32c7a7.zip
Remove private_{Camellia,RC4}_set_key FIPS indirection tentacles, as has been
done for other symmetric algorithms recently.
Diffstat (limited to 'src/lib/libcrypto/rc4/asm')
-rw-r--r--src/lib/libcrypto/rc4/asm/rc4-586.pl4
-rw-r--r--src/lib/libcrypto/rc4/asm/rc4-parisc.pl4
-rw-r--r--src/lib/libcrypto/rc4/asm/rc4-s390x.pl8
-rwxr-xr-xsrc/lib/libcrypto/rc4/asm/rc4-x86_64.pl8
4 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/rc4/asm/rc4-586.pl b/src/lib/libcrypto/rc4/asm/rc4-586.pl
index 5c9ac6ad28..84f1a798cb 100644
--- a/src/lib/libcrypto/rc4/asm/rc4-586.pl
+++ b/src/lib/libcrypto/rc4/asm/rc4-586.pl
@@ -300,7 +300,7 @@ $ido="ecx";
300$idx="edx"; 300$idx="edx";
301 301
302# void RC4_set_key(RC4_KEY *key,int len,const unsigned char *data); 302# void RC4_set_key(RC4_KEY *key,int len,const unsigned char *data);
303&function_begin("private_RC4_set_key"); 303&function_begin("RC4_set_key");
304 &mov ($out,&wparam(0)); # load key 304 &mov ($out,&wparam(0)); # load key
305 &mov ($idi,&wparam(1)); # load len 305 &mov ($idi,&wparam(1)); # load len
306 &mov ($inp,&wparam(2)); # load data 306 &mov ($inp,&wparam(2)); # load data
@@ -378,7 +378,7 @@ $idx="edx";
378 &xor ("eax","eax"); 378 &xor ("eax","eax");
379 &mov (&DWP(-8,$out),"eax"); # key->x=0; 379 &mov (&DWP(-8,$out),"eax"); # key->x=0;
380 &mov (&DWP(-4,$out),"eax"); # key->y=0; 380 &mov (&DWP(-4,$out),"eax"); # key->y=0;
381&function_end("private_RC4_set_key"); 381&function_end("RC4_set_key");
382 382
383# const char *RC4_options(void); 383# const char *RC4_options(void);
384&function_begin_B("RC4_options"); 384&function_begin_B("RC4_options");
diff --git a/src/lib/libcrypto/rc4/asm/rc4-parisc.pl b/src/lib/libcrypto/rc4/asm/rc4-parisc.pl
index 9eca69902e..7e7974430a 100644
--- a/src/lib/libcrypto/rc4/asm/rc4-parisc.pl
+++ b/src/lib/libcrypto/rc4/asm/rc4-parisc.pl
@@ -247,9 +247,9 @@ ___
247 247
248$code.=<<___; 248$code.=<<___;
249 249
250 .EXPORT private_RC4_set_key,ENTRY,ARGW0=GR,ARGW1=GR,ARGW2=GR 250 .EXPORT RC4_set_key,ENTRY,ARGW0=GR,ARGW1=GR,ARGW2=GR
251 .ALIGN 8 251 .ALIGN 8
252private_RC4_set_key 252RC4_set_key
253 .PROC 253 .PROC
254 .CALLINFO NO_CALLS 254 .CALLINFO NO_CALLS
255 .ENTRY 255 .ENTRY
diff --git a/src/lib/libcrypto/rc4/asm/rc4-s390x.pl b/src/lib/libcrypto/rc4/asm/rc4-s390x.pl
index 7528ece13c..1aa754820c 100644
--- a/src/lib/libcrypto/rc4/asm/rc4-s390x.pl
+++ b/src/lib/libcrypto/rc4/asm/rc4-s390x.pl
@@ -171,10 +171,10 @@ $ikey="%r7";
171$iinp="%r8"; 171$iinp="%r8";
172 172
173$code.=<<___; 173$code.=<<___;
174.globl private_RC4_set_key 174.globl RC4_set_key
175.type private_RC4_set_key,\@function 175.type RC4_set_key,\@function
176.align 64 176.align 64
177private_RC4_set_key: 177RC4_set_key:
178 stm${g} %r6,%r8,6*$SIZE_T($sp) 178 stm${g} %r6,%r8,6*$SIZE_T($sp)
179 lhi $cnt,256 179 lhi $cnt,256
180 la $idx,0(%r0) 180 la $idx,0(%r0)
@@ -210,7 +210,7 @@ private_RC4_set_key:
210.Ldone: 210.Ldone:
211 lm${g} %r6,%r8,6*$SIZE_T($sp) 211 lm${g} %r6,%r8,6*$SIZE_T($sp)
212 br $rp 212 br $rp
213.size private_RC4_set_key,.-private_RC4_set_key 213.size RC4_set_key,.-RC4_set_key
214 214
215___ 215___
216} 216}
diff --git a/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl b/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl
index 2bed1e279f..197749dda7 100755
--- a/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl
+++ b/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl
@@ -428,10 +428,10 @@ $idx="%r8";
428$ido="%r9"; 428$ido="%r9";
429 429
430$code.=<<___; 430$code.=<<___;
431.globl private_RC4_set_key 431.globl RC4_set_key
432.type private_RC4_set_key,\@function,3 432.type RC4_set_key,\@function,3
433.align 16 433.align 16
434private_RC4_set_key: 434RC4_set_key:
435 lea 8($dat),$dat 435 lea 8($dat),$dat
436 lea ($inp,$len),$inp 436 lea ($inp,$len),$inp
437 neg $len 437 neg $len
@@ -498,7 +498,7 @@ private_RC4_set_key:
498 mov %eax,-8($dat) 498 mov %eax,-8($dat)
499 mov %eax,-4($dat) 499 mov %eax,-4($dat)
500 ret 500 ret
501.size private_RC4_set_key,.-private_RC4_set_key 501.size RC4_set_key,.-RC4_set_key
502 502
503.globl RC4_options 503.globl RC4_options
504.type RC4_options,\@abi-omnipotent 504.type RC4_options,\@abi-omnipotent