diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-05-06 20:53:06 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-05-06 20:53:06 +0000 |
commit | 7210613d2dc79308da717a6705d7c5063405d6cd (patch) | |
tree | 51c221b427f05741522c7a5dcbe571f3db10d0d6 /sys/dev/pci/ubsecreg.h | |
parent | dc923c1dc36e9df9e9f50572d6db872bd233dd29 (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/ubsecreg.h')
-rw-r--r-- | sys/dev/pci/ubsecreg.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/pci/ubsecreg.h b/sys/dev/pci/ubsecreg.h index e1e5ecd9e4d..10c383de8c5 100644 --- a/sys/dev/pci/ubsecreg.h +++ b/sys/dev/pci/ubsecreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsecreg.h,v 1.21 2002/04/26 05:06:03 jason Exp $ */ +/* $OpenBSD: ubsecreg.h,v 1.22 2002/05/06 20:53:05 jason Exp $ */ /* * Copyright (c) 2000 Theo de Raadt @@ -180,3 +180,12 @@ struct ubsec_ctx_modexp { volatile u_int16_t me_N_len; /* N (bits) */ u_int8_t me_N[1024/8]; /* N */ }; + +struct ubsec_ctx_rsapriv { + volatile u_int16_t rpr_len; /* command length */ + volatile u_int16_t rpr_op; /* rsaprivate, 0x04 */ + volatile u_int16_t rpr_q_len; /* q (bits) */ + volatile u_int16_t rpr_p_len; /* p (bits) */ + volatile u_int8_t rpr_buf[(5 * 512) / 8]; /* parameters: */ + /* p, q, dp, dq, pinv */ +}; |