summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ubsecvar.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-05-06 20:53:06 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-05-06 20:53:06 +0000
commit7210613d2dc79308da717a6705d7c5063405d6cd (patch)
tree51c221b427f05741522c7a5dcbe571f3db10d0d6 /sys/dev/pci/ubsecvar.h
parentdc923c1dc36e9df9e9f50572d6db872bd233dd29 (diff)
basic infrastructure for handling RSA with CRT parameters. Just need to
figure out how p, q, dp, dq, and pinv fit into the context.
Diffstat (limited to 'sys/dev/pci/ubsecvar.h')
-rw-r--r--sys/dev/pci/ubsecvar.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/pci/ubsecvar.h b/sys/dev/pci/ubsecvar.h
index 9d7962840ea..e4607284ce9 100644
--- a/sys/dev/pci/ubsecvar.h
+++ b/sys/dev/pci/ubsecvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsecvar.h,v 1.30 2002/05/06 15:42:23 jason Exp $ */
+/* $OpenBSD: ubsecvar.h,v 1.31 2002/05/06 20:53:05 jason Exp $ */
/*
* Copyright (c) 2000 Theo de Raadt
@@ -89,6 +89,20 @@ struct ubsec_q2_modexp {
int me_modbits;
};
+#define UBS_RSAPRIV_PAR_P 0
+#define UBS_RSAPRIV_PAR_Q 1
+#define UBS_RSAPRIV_PAR_DP 2
+#define UBS_RSAPRIV_PAR_DQ 3
+#define UBS_RSAPRIV_PAR_PINV 4
+#define UBS_RSAPRIV_PAR_MSGIN 5
+#define UBS_RSAPRIV_PAR_MSGOUT 6
+struct ubsec_q2_rsapriv {
+ struct ubsec_q2 rpr_q;
+ struct cryptkop * rpr_krp;
+ struct ubsec_dma_alloc rpr_msgin;
+ struct ubsec_dma_alloc rpr_msgout;
+};
+
#define UBSEC_RNG_BUFSIZ 16 /* measured in 32bit words */
struct ubsec_dmachunk {