diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-11-12 18:23:14 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-11-12 18:23:14 +0000 |
commit | 5310b67125a2c4c3936791cfd77dbe37cf314856 (patch) | |
tree | 35c124c4a8ee94f13c2115b7119f8227754e3963 /sys/crypto/cryptodev.c | |
parent | 66b98bce28788e0c2a144d43ce2b8e993d42f880 (diff) |
Add a CRYPTO_NULL xform (it's a do nothing, but nice for measuring the
bandwidth of the kernel API). It's only available from userland and
then only if kern.cryptodevallowsoft=1.
Diffstat (limited to 'sys/crypto/cryptodev.c')
-rw-r--r-- | sys/crypto/cryptodev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index 4647cd836f8..91e4e46c77c 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.54 2002/11/12 18:23:13 jason Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -175,6 +175,9 @@ cryptof_ioctl(struct file *fp, u_long cmd, caddr_t data, struct proc *p) case CRYPTO_ARC4: txform = &enc_xform_arc4; break; + case CRYPTO_NULL: + txform = &enc_xform_null; + break; default: return (EINVAL); } |