diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-03-04 21:23:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-03-04 21:23:40 +0000 |
commit | 756345892b76e8d472523b177404c1daa6bc1b02 (patch) | |
tree | 737c25416b515705c98564581d7c367c5cc7ead3 /sys/crypto | |
parent | 68a5ede445379ac3df129d93f551ba44ea04a36d (diff) |
crypto_check_alg() is not needed
Diffstat (limited to 'sys/crypto')
-rw-r--r-- | sys/crypto/crypto.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c index 836984d1d65..67def30329c 100644 --- a/sys/crypto/crypto.c +++ b/sys/crypto/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.32 2002/01/23 01:33:07 art Exp $ */ +/* $OpenBSD: crypto.c,v 1.33 2002/03/04 21:23:39 deraadt Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -474,34 +474,3 @@ crypto_done(struct cryptop *crp) { crp->crp_callback(crp); } - -/* - * Return SYMMETRIC or PUBLIC_KEY, depending on the algorithm type. - */ -int -crypto_check_alg(struct cryptoini *cri) -{ - switch (cri->cri_alg) - { - case CRYPTO_DES_CBC: - case CRYPTO_3DES_CBC: - case CRYPTO_BLF_CBC: - case CRYPTO_CAST_CBC: - case CRYPTO_SKIPJACK_CBC: - case CRYPTO_RIJNDAEL128_CBC: - case CRYPTO_ARC4: - return SYMMETRIC; - case CRYPTO_DH_SEND: - case CRYPTO_DH_RECEIVE: - case CRYPTO_RSA_ENCRYPT: - case CRYPTO_RSA_DECRYPT: - case CRYPTO_DSA_SIGN: - case CRYPTO_DSA_VERIFY: - return PUBLIC_KEY; - } - -#ifdef DIAGNOSTIC - panic("crypto_check_alg: unknown algorithm %d", cri->cri_alg); -#endif - return -1; -} |