diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-06-23 01:29:41 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-06-23 01:29:41 +0000 |
commit | b474b3ec4f599ea21eb95b88a053590903effe1f (patch) | |
tree | e12014196e03012f17b81f38bdfdd30b5e67376e | |
parent | 7f2b68d88d83e131f27a3560522d915fa10870f3 (diff) |
hifn now supports up to 256K
-rw-r--r-- | sys/crypto/cryptodev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index 6175170f15d..6a5a72684cd 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.13 2001/06/18 10:55:01 deraadt Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.14 2001/06/23 01:29:40 pvalchev Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -279,7 +279,7 @@ crypto_op(struct csession *cse, struct crypt_op *cop, struct proc *p) struct cryptodesc *crde = NULL, *crda = NULL; int i, error; - if (cop->len > 64*1024-4) /* XXX -4 because of hifn bug */ + if (cop->len > 256*1024-4) return (E2BIG); if (cse->txform && (cop->len % cse->txform->blocksize) != 0) |