summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-04-26 05:06:04 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-04-26 05:06:04 +0000
commit5a56489eaef687575237d927aa58858d19ece1c7 (patch)
tree6d33f200b5fb3ebf80cbd0e33b00a584aa02f1d0
parentbb55709bdbaf263eac7b3cf9aa305d66f1be268b (diff)
1024 bit max
-rw-r--r--sys/dev/pci/ubsec.c12
-rw-r--r--sys/dev/pci/ubsecreg.h4
-rw-r--r--sys/dev/pci/ubsecvar.h3
3 files changed, 9 insertions, 10 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index 7d7b7db8c6e..3eb1d461572 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.86 2002/04/26 04:24:17 jason Exp $ */
+/* $OpenBSD: ubsec.c,v 1.87 2002/04/26 05:06:03 jason Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -1789,17 +1789,17 @@ ubsec_kprocess_modexp(sc, krp)
goto errout;
}
- if (ubsec_dma_malloc(sc, 2048 / 8, &me->me_M, 0)) {
+ if (ubsec_dma_malloc(sc, 1024 / 8, &me->me_M, 0)) {
err = ENOMEM;
goto errout;
}
- if (ubsec_dma_malloc(sc, 2048 / 8, &me->me_E, 0)) {
+ if (ubsec_dma_malloc(sc, 1024 / 8, &me->me_E, 0)) {
err = ENOMEM;
goto errout;
}
- if (ubsec_dma_malloc(sc, 2048 / 8, &me->me_C, 0)) {
+ if (ubsec_dma_malloc(sc, 1024 / 8, &me->me_C, 0)) {
err = ENOMEM;
goto errout;
}
@@ -1831,7 +1831,7 @@ ubsec_kprocess_modexp(sc, krp)
mcr->mcr_reserved = 0;
if (ubsec_kcopyin(&krp->krp_param[0], me->me_M.dma_vaddr,
- 2048 / 8, &len)) {
+ 1024 / 8, &len)) {
err = EOPNOTSUPP;
goto errout;
}
@@ -1850,7 +1850,7 @@ ubsec_kprocess_modexp(sc, krp)
ctx = (struct ubsec_ctx_modexp *)me->me_q.q_ctx.dma_vaddr;
bzero(ctx, sizeof(*ctx));
if (ubsec_kcopyin(&krp->krp_param[2], ctx->me_N,
- 2048 / 8, &len)) {
+ 1024 / 8, &len)) {
err = EOPNOTSUPP;
goto errout;
}
diff --git a/sys/dev/pci/ubsecreg.h b/sys/dev/pci/ubsecreg.h
index ac09923ac97..e1e5ecd9e4d 100644
--- a/sys/dev/pci/ubsecreg.h
+++ b/sys/dev/pci/ubsecreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsecreg.h,v 1.20 2002/04/26 04:24:17 jason Exp $ */
+/* $OpenBSD: ubsecreg.h,v 1.21 2002/04/26 05:06:03 jason Exp $ */
/*
* Copyright (c) 2000 Theo de Raadt
@@ -178,5 +178,5 @@ struct ubsec_ctx_modexp {
volatile u_int16_t me_op; /* modexp, 0x47 */
volatile u_int16_t me_E_len; /* E (bits) */
volatile u_int16_t me_N_len; /* N (bits) */
- u_int8_t me_N[2048/8]; /* N */
+ u_int8_t me_N[1024/8]; /* N */
};
diff --git a/sys/dev/pci/ubsecvar.h b/sys/dev/pci/ubsecvar.h
index 77bafb6ea09..460d9b0c276 100644
--- a/sys/dev/pci/ubsecvar.h
+++ b/sys/dev/pci/ubsecvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsecvar.h,v 1.27 2002/04/26 04:24:17 jason Exp $ */
+/* $OpenBSD: ubsecvar.h,v 1.28 2002/04/26 05:06:03 jason Exp $ */
/*
* Copyright (c) 2000 Theo de Raadt
@@ -172,4 +172,3 @@ struct ubsec_stats {
u_int32_t hst_mcrerr;
u_int32_t hst_nodmafree;
};
-