summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc4/asm/rc4-586.pl
diff options
context:
space:
mode:
authortb <>2023-07-28 10:35:14 +0000
committertb <>2023-07-28 10:35:14 +0000
commitf081b066a62db7e3bea15c67edb84e04026495b2 (patch)
treea224a2dfd6e61c26d9769cf16e0585806b712161 /src/lib/libcrypto/rc4/asm/rc4-586.pl
parentd13035e40f9f0aeb77be3097963f11fabf83e401 (diff)
downloadopenbsd-f081b066a62db7e3bea15c67edb84e04026495b2.tar.gz
openbsd-f081b066a62db7e3bea15c67edb84e04026495b2.tar.bz2
openbsd-f081b066a62db7e3bea15c67edb84e04026495b2.zip
Remove various ${thing}_options
Various, ancient ciphers exposed some of their innards via an _options() API. Apart from openssl version/speed, only some lua thingie in nmap ever looked at these. Go figure. hppa testing by miod, i386 testing by sthen. Thanks! ok jsing
Diffstat (limited to 'src/lib/libcrypto/rc4/asm/rc4-586.pl')
-rw-r--r--src/lib/libcrypto/rc4/asm/rc4-586.pl28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/lib/libcrypto/rc4/asm/rc4-586.pl b/src/lib/libcrypto/rc4/asm/rc4-586.pl
index 4991c37c2c..bb30f9b88f 100644
--- a/src/lib/libcrypto/rc4/asm/rc4-586.pl
+++ b/src/lib/libcrypto/rc4/asm/rc4-586.pl
@@ -384,32 +384,4 @@ $idx="edx";
384 &mov (&DWP(-4,$out),"eax"); # key->y=0; 384 &mov (&DWP(-4,$out),"eax"); # key->y=0;
385&function_end("RC4_set_key"); 385&function_end("RC4_set_key");
386 386
387# const char *RC4_options(void);
388&static_label("opts");
389&function_begin_B("RC4_options");
390 &picsetup("edx");
391 &picsymbol("eax", &label("opts"), "edx");
392 &picsymbol("edx", "OPENSSL_ia32cap_P", "edx");;
393
394 &mov ("edx",&DWP(0,"edx"));
395 &bt ("edx","\$IA32CAP_BIT0_INTELP4");
396 &jc (&label("1xchar"));
397 &bt ("edx","\$IA32CAP_BIT0_SSE2");
398 &jnc (&label("ret"));
399 &add ("eax",25);
400 &ret ();
401&set_label("1xchar");
402 &add ("eax",12);
403&set_label("ret");
404 &ret ();
405&function_end_B("RC4_options");
406
407 &rodataseg();
408&set_label("opts");
409&asciz ("rc4(4x,int)");
410&asciz ("rc4(1x,char)");
411&asciz ("rc4(8x,mmx)");
412 &previous();
413
414&asm_finish(); 387&asm_finish();
415