summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-04-24 21:44:12 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-04-24 21:44:12 +0000
commit767845303816d6a74680f4a7a5f9a70087b57e44 (patch)
tree6e575674dbef567872db15c14adb2e75ab8104d8 /sys
parent67a5936c5838f139d755df98e5893a436c71fa33 (diff)
whoops, missed two fields in modexp structure (kinda important ones =)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/ubsecreg.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/ubsecreg.h b/sys/dev/pci/ubsecreg.h
index 00306b9f626..8c5d816ffc5 100644
--- a/sys/dev/pci/ubsecreg.h
+++ b/sys/dev/pci/ubsecreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsecreg.h,v 1.18 2002/04/23 22:16:05 jason Exp $ */
+/* $OpenBSD: ubsecreg.h,v 1.19 2002/04/24 21:44:11 jason Exp $ */
/*
* Copyright (c) 2000 Theo de Raadt
@@ -172,8 +172,11 @@ struct ubsec_ctx_rngbypass {
volatile u_int8_t rbp_pad[60]; /* padding */
};
+/* modexp: C = (M ^ E) mod N */
struct ubsec_ctx_modexp {
volatile u_int16_t me_len; /* command length */
volatile u_int16_t me_op; /* modexp, 0x47 */
- volatile u_int8_t me_N[2048/8]; /* N of C = M^E mod N */
+ volatile u_int16_t me_E_len; /* E (bits) */
+ volatile u_int16_t me_N_len; /* N (bits) */
+ volatile u_int8_t me_N[2048/8]; /* N */
};