diff options
| author | tb <> | 2023-07-28 10:35:14 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-28 10:35:14 +0000 |
| commit | e91177528644d7ab4206592aac5a07f85a3ceec2 (patch) | |
| tree | a224a2dfd6e61c26d9769cf16e0585806b712161 /src/lib/libcrypto/rc4/asm | |
| parent | b8d30e719ace66cc62ab262ddf8f89df4046d5e8 (diff) | |
| download | openbsd-e91177528644d7ab4206592aac5a07f85a3ceec2.tar.gz openbsd-e91177528644d7ab4206592aac5a07f85a3ceec2.tar.bz2 openbsd-e91177528644d7ab4206592aac5a07f85a3ceec2.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')
| -rw-r--r-- | src/lib/libcrypto/rc4/asm/rc4-586.pl | 28 | ||||
| -rw-r--r-- | src/lib/libcrypto/rc4/asm/rc4-md5-x86_64.pl | 13 | ||||
| -rw-r--r-- | src/lib/libcrypto/rc4/asm/rc4-parisc.pl | 18 | ||||
| -rwxr-xr-x | src/lib/libcrypto/rc4/asm/rc4-x86_64.pl | 27 |
4 files changed, 0 insertions, 86 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 | |||
diff --git a/src/lib/libcrypto/rc4/asm/rc4-md5-x86_64.pl b/src/lib/libcrypto/rc4/asm/rc4-md5-x86_64.pl index 6d058bd9d4..3190e6a8e7 100644 --- a/src/lib/libcrypto/rc4/asm/rc4-md5-x86_64.pl +++ b/src/lib/libcrypto/rc4/asm/rc4-md5-x86_64.pl | |||
| @@ -491,19 +491,6 @@ RC4_set_key: | |||
| 491 | mov %eax,-4($dat) | 491 | mov %eax,-4($dat) |
| 492 | ret | 492 | ret |
| 493 | .size RC4_set_key,.-RC4_set_key | 493 | .size RC4_set_key,.-RC4_set_key |
| 494 | |||
| 495 | .globl RC4_options | ||
| 496 | .type RC4_options,\@abi-omnipotent | ||
| 497 | .align 16 | ||
| 498 | RC4_options: | ||
| 499 | endbr64 | ||
| 500 | lea .Lopts(%rip),%rax | ||
| 501 | ret | ||
| 502 | .align 64 | ||
| 503 | .Lopts: | ||
| 504 | .asciz "rc4(64x,int)" | ||
| 505 | .align 64 | ||
| 506 | .size RC4_options,.-RC4_options | ||
| 507 | ___ | 494 | ___ |
| 508 | } | 495 | } |
| 509 | 496 | ||
diff --git a/src/lib/libcrypto/rc4/asm/rc4-parisc.pl b/src/lib/libcrypto/rc4/asm/rc4-parisc.pl index 24e3e0c30b..831d785979 100644 --- a/src/lib/libcrypto/rc4/asm/rc4-parisc.pl +++ b/src/lib/libcrypto/rc4/asm/rc4-parisc.pl | |||
| @@ -286,24 +286,6 @@ L\$2nd | |||
| 286 | nop | 286 | nop |
| 287 | .PROCEND | 287 | .PROCEND |
| 288 | 288 | ||
| 289 | .EXPORT RC4_options,ENTRY | ||
| 290 | .ALIGN 8 | ||
| 291 | RC4_options | ||
| 292 | .PROC | ||
| 293 | .CALLINFO NO_CALLS | ||
| 294 | .ENTRY | ||
| 295 | #ifdef __PIC__ | ||
| 296 | addil LT'L\$opts, %r19 | ||
| 297 | ldw RT'L\$opts(%r1), %r28 | ||
| 298 | #else | ||
| 299 | ldil L'L\$opts, %t1 | ||
| 300 | ldo R'L\$opts(%t1), %r28 | ||
| 301 | #endif | ||
| 302 | bv (%r2) | ||
| 303 | .EXIT | ||
| 304 | nop | ||
| 305 | .PROCEND | ||
| 306 | |||
| 307 | .section .rodata | 289 | .section .rodata |
| 308 | .ALIGN 8 | 290 | .ALIGN 8 |
| 309 | L\$opts | 291 | L\$opts |
diff --git a/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl b/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl index 2bac7d744d..0472acce8a 100755 --- a/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl +++ b/src/lib/libcrypto/rc4/asm/rc4-x86_64.pl | |||
| @@ -503,33 +503,6 @@ RC4_set_key: | |||
| 503 | mov %eax,-4($dat) | 503 | mov %eax,-4($dat) |
| 504 | ret | 504 | ret |
| 505 | .size RC4_set_key,.-RC4_set_key | 505 | .size RC4_set_key,.-RC4_set_key |
| 506 | |||
| 507 | .globl RC4_options | ||
| 508 | .type RC4_options,\@abi-omnipotent | ||
| 509 | .align 16 | ||
| 510 | RC4_options: | ||
| 511 | endbr64 | ||
| 512 | lea .Lopts(%rip),%rax | ||
| 513 | mov OPENSSL_ia32cap_P(%rip),%edx | ||
| 514 | bt \$IA32CAP_BIT0_INTELP4,%edx | ||
| 515 | jc .L8xchar | ||
| 516 | bt \$IA32CAP_BIT0_INTEL,%edx | ||
| 517 | jnc .Ldone | ||
| 518 | add \$25,%rax | ||
| 519 | ret | ||
| 520 | .L8xchar: | ||
| 521 | add \$12,%rax | ||
| 522 | .Ldone: | ||
| 523 | ret | ||
| 524 | .section .rodata | ||
| 525 | .align 64 | ||
| 526 | .Lopts: | ||
| 527 | .asciz "rc4(8x,int)" | ||
| 528 | .asciz "rc4(8x,char)" | ||
| 529 | .asciz "rc4(16x,int)" | ||
| 530 | .align 64 | ||
| 531 | .text | ||
| 532 | .size RC4_options,.-RC4_options | ||
| 533 | ___ | 506 | ___ |
| 534 | 507 | ||
| 535 | sub reg_part { | 508 | sub reg_part { |
