summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/engine/hw_cryptodev.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2002-06-20 11:01:15 +0000
committermarkus <markus@openbsd.org>2002-06-20 11:01:15 +0000
commit84045f540438d0ba8e1f18d3b59fe4d418e2907c (patch)
tree2cc937ee14797dc8c1ba048cfe72a2e33a34154e /lib/libssl/src/crypto/engine/hw_cryptodev.c
parentundo last commit; deraadt@ (diff)
downloadwireguard-openbsd-84045f540438d0ba8e1f18d3b59fe4d418e2907c.tar.xz
wireguard-openbsd-84045f540438d0ba8e1f18d3b59fe4d418e2907c.zip
remove support for RC4 via /dev/crypto, suggested by Niels; ok provos@
Diffstat (limited to 'lib/libssl/src/crypto/engine/hw_cryptodev.c')
-rw-r--r--lib/libssl/src/crypto/engine/hw_cryptodev.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/libssl/src/crypto/engine/hw_cryptodev.c b/lib/libssl/src/crypto/engine/hw_cryptodev.c
index b8aa3cd62c6..954eb852078 100644
--- a/lib/libssl/src/crypto/engine/hw_cryptodev.c
+++ b/lib/libssl/src/crypto/engine/hw_cryptodev.c
@@ -120,7 +120,6 @@ static struct {
{ CRYPTO_BLF_CBC, NID_bf_cbc, 8, 16, },
{ CRYPTO_CAST_CBC, NID_cast5_cbc, 8, 16, },
{ CRYPTO_SKIPJACK_CBC, NID_undef, 0, 0, },
- { CRYPTO_ARC4, NID_rc4, 8, 16, },
{ 0, NID_undef, 0, 0, },
};
@@ -481,20 +480,6 @@ cryptodev_cleanup(EVP_CIPHER_CTX *ctx)
* gets called when libcrypto requests a cipher NID.
*/
-/* ARC4 (16 byte key) */
-const EVP_CIPHER cryptodev_arc4_cipher = {
- NID_rc4,
- 1, 16, 0,
- EVP_CIPH_VARIABLE_LENGTH,
- cryptodev_init_key,
- cryptodev_cipher,
- cryptodev_cleanup,
- sizeof(struct dev_crypto_state),
- NULL,
- NULL,
- NULL
-};
-
/* DES CBC EVP */
const EVP_CIPHER cryptodev_des_cbc = {
NID_des_cbc,
@@ -575,9 +560,6 @@ cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
return (cryptodev_usable_ciphers(nids));
switch (nid) {
- case NID_rc4:
- *cipher = &cryptodev_arc4_cipher;
- break;
case NID_des_ede3_cbc:
*cipher = &cryptodev_3des_cbc;
break;