diff options
author | markus <> | 2002-06-20 11:01:15 +0000 |
---|---|---|
committer | markus <> | 2002-06-20 11:01:15 +0000 |
commit | 403c6466072dcd35f27270cbae14d8ba3baa7a03 (patch) | |
tree | c5914377ed327bd94e6de5150b10ab5e18d48d0d /src | |
parent | d1a01a2c3d1eceb61c7402f7b9b3f4685059a3a4 (diff) | |
download | openbsd-403c6466072dcd35f27270cbae14d8ba3baa7a03.tar.gz openbsd-403c6466072dcd35f27270cbae14d8ba3baa7a03.tar.bz2 openbsd-403c6466072dcd35f27270cbae14d8ba3baa7a03.zip |
remove support for RC4 via /dev/crypto, suggested by Niels; ok provos@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/engine/hw_cryptodev.c | 18 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/engine/hw_cryptodev.c | 18 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c index b8aa3cd62c..954eb85207 100644 --- a/src/lib/libcrypto/engine/hw_cryptodev.c +++ b/src/lib/libcrypto/engine/hw_cryptodev.c | |||
@@ -120,7 +120,6 @@ static struct { | |||
120 | { CRYPTO_BLF_CBC, NID_bf_cbc, 8, 16, }, | 120 | { CRYPTO_BLF_CBC, NID_bf_cbc, 8, 16, }, |
121 | { CRYPTO_CAST_CBC, NID_cast5_cbc, 8, 16, }, | 121 | { CRYPTO_CAST_CBC, NID_cast5_cbc, 8, 16, }, |
122 | { CRYPTO_SKIPJACK_CBC, NID_undef, 0, 0, }, | 122 | { CRYPTO_SKIPJACK_CBC, NID_undef, 0, 0, }, |
123 | { CRYPTO_ARC4, NID_rc4, 8, 16, }, | ||
124 | { 0, NID_undef, 0, 0, }, | 123 | { 0, NID_undef, 0, 0, }, |
125 | }; | 124 | }; |
126 | 125 | ||
@@ -481,20 +480,6 @@ cryptodev_cleanup(EVP_CIPHER_CTX *ctx) | |||
481 | * gets called when libcrypto requests a cipher NID. | 480 | * gets called when libcrypto requests a cipher NID. |
482 | */ | 481 | */ |
483 | 482 | ||
484 | /* ARC4 (16 byte key) */ | ||
485 | const EVP_CIPHER cryptodev_arc4_cipher = { | ||
486 | NID_rc4, | ||
487 | 1, 16, 0, | ||
488 | EVP_CIPH_VARIABLE_LENGTH, | ||
489 | cryptodev_init_key, | ||
490 | cryptodev_cipher, | ||
491 | cryptodev_cleanup, | ||
492 | sizeof(struct dev_crypto_state), | ||
493 | NULL, | ||
494 | NULL, | ||
495 | NULL | ||
496 | }; | ||
497 | |||
498 | /* DES CBC EVP */ | 483 | /* DES CBC EVP */ |
499 | const EVP_CIPHER cryptodev_des_cbc = { | 484 | const EVP_CIPHER cryptodev_des_cbc = { |
500 | NID_des_cbc, | 485 | NID_des_cbc, |
@@ -575,9 +560,6 @@ cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, | |||
575 | return (cryptodev_usable_ciphers(nids)); | 560 | return (cryptodev_usable_ciphers(nids)); |
576 | 561 | ||
577 | switch (nid) { | 562 | switch (nid) { |
578 | case NID_rc4: | ||
579 | *cipher = &cryptodev_arc4_cipher; | ||
580 | break; | ||
581 | case NID_des_ede3_cbc: | 563 | case NID_des_ede3_cbc: |
582 | *cipher = &cryptodev_3des_cbc; | 564 | *cipher = &cryptodev_3des_cbc; |
583 | break; | 565 | break; |
diff --git a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c index b8aa3cd62c..954eb85207 100644 --- a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c +++ b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c | |||
@@ -120,7 +120,6 @@ static struct { | |||
120 | { CRYPTO_BLF_CBC, NID_bf_cbc, 8, 16, }, | 120 | { CRYPTO_BLF_CBC, NID_bf_cbc, 8, 16, }, |
121 | { CRYPTO_CAST_CBC, NID_cast5_cbc, 8, 16, }, | 121 | { CRYPTO_CAST_CBC, NID_cast5_cbc, 8, 16, }, |
122 | { CRYPTO_SKIPJACK_CBC, NID_undef, 0, 0, }, | 122 | { CRYPTO_SKIPJACK_CBC, NID_undef, 0, 0, }, |
123 | { CRYPTO_ARC4, NID_rc4, 8, 16, }, | ||
124 | { 0, NID_undef, 0, 0, }, | 123 | { 0, NID_undef, 0, 0, }, |
125 | }; | 124 | }; |
126 | 125 | ||
@@ -481,20 +480,6 @@ cryptodev_cleanup(EVP_CIPHER_CTX *ctx) | |||
481 | * gets called when libcrypto requests a cipher NID. | 480 | * gets called when libcrypto requests a cipher NID. |
482 | */ | 481 | */ |
483 | 482 | ||
484 | /* ARC4 (16 byte key) */ | ||
485 | const EVP_CIPHER cryptodev_arc4_cipher = { | ||
486 | NID_rc4, | ||
487 | 1, 16, 0, | ||
488 | EVP_CIPH_VARIABLE_LENGTH, | ||
489 | cryptodev_init_key, | ||
490 | cryptodev_cipher, | ||
491 | cryptodev_cleanup, | ||
492 | sizeof(struct dev_crypto_state), | ||
493 | NULL, | ||
494 | NULL, | ||
495 | NULL | ||
496 | }; | ||
497 | |||
498 | /* DES CBC EVP */ | 483 | /* DES CBC EVP */ |
499 | const EVP_CIPHER cryptodev_des_cbc = { | 484 | const EVP_CIPHER cryptodev_des_cbc = { |
500 | NID_des_cbc, | 485 | NID_des_cbc, |
@@ -575,9 +560,6 @@ cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, | |||
575 | return (cryptodev_usable_ciphers(nids)); | 560 | return (cryptodev_usable_ciphers(nids)); |
576 | 561 | ||
577 | switch (nid) { | 562 | switch (nid) { |
578 | case NID_rc4: | ||
579 | *cipher = &cryptodev_arc4_cipher; | ||
580 | break; | ||
581 | case NID_des_ede3_cbc: | 563 | case NID_des_ede3_cbc: |
582 | *cipher = &cryptodev_3des_cbc; | 564 | *cipher = &cryptodev_3des_cbc; |
583 | break; | 565 | break; |