summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ubsecvar.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-05-15 15:15:43 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-05-15 15:15:43 +0000
commitf42af0c450d69bd07595da4883d4a7bbd148562f (patch)
tree135d9b859cca9de2c73ffb93a5be3e1adb4ea37a /sys/dev/pci/ubsecvar.h
parent89699e6bc100cb4df9bfc78e5c2dbbae49bc0a53 (diff)
Rework MODEXP:
5805 (and 5601) require the modulus and base to be normalized to the right of one of several different register lengths. The result is also normalized to the same length. Provide functions for shifting the bits back and forth as appropriate. Note: for consistencies sake the exponent is NOT normalized.
Diffstat (limited to 'sys/dev/pci/ubsecvar.h')
-rw-r--r--sys/dev/pci/ubsecvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/ubsecvar.h b/sys/dev/pci/ubsecvar.h
index 818c7a55fb3..fb861fa5e6d 100644
--- a/sys/dev/pci/ubsecvar.h
+++ b/sys/dev/pci/ubsecvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsecvar.h,v 1.32 2002/05/13 22:28:56 jason Exp $ */
+/* $OpenBSD: ubsecvar.h,v 1.33 2002/05/15 15:15:42 jason Exp $ */
/*
* Copyright (c) 2000 Theo de Raadt
@@ -87,6 +87,7 @@ struct ubsec_q2_modexp {
struct ubsec_dma_alloc me_C;
struct ubsec_dma_alloc me_epb;
int me_modbits;
+ int me_shiftbits;
};
#define UBS_RSAPRIV_PAR_P 0