summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */
};