From f2ef183a2142b44d7ea247ede96da74f5c211844 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Fri, 30 May 2003 03:33:24 +0000 Subject: move max limit back down to 65536-4 --- sys/crypto/cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index 25386790a0a..25b91cd5ba2 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.55 2002/11/21 19:34:25 jason Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.56 2003/05/30 03:33:23 jason Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -301,7 +301,7 @@ cryptodev_op(struct csession *cse, struct crypt_op *cop, struct proc *p) struct cryptodesc *crde = NULL, *crda = NULL; int i, error; - if (cop->len > 256*1024-4) + if (cop->len > 64*1024-4) return (E2BIG); if (cse->txform && (cop->len % cse->txform->blocksize) != 0) { -- cgit v1.2.3