diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-24 22:11:03 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-24 22:11:03 +0000 |
commit | 4179bb3888461061584858ba18408cc139c23a7e (patch) | |
tree | de07f7cbcf8355718e35e424e98ee816a56d670d /sys | |
parent | 259fd3f06dd8eee50637b9563a6b6102aac76fef (diff) |
Fix RSA structure.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/crypto/cryptodev.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/sys/crypto/cryptodev.h b/sys/crypto/cryptodev.h index 0edd1edea9c..7c31b8ea6a1 100644 --- a/sys/crypto/cryptodev.h +++ b/sys/crypto/cryptodev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.h,v 1.6 2001/06/23 21:57:00 angelos Exp $ */ +/* $OpenBSD: cryptodev.h,v 1.7 2001/06/24 22:11:02 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -155,19 +155,22 @@ struct DH_buf { */ struct RSA_key { /* Length of variables (in bits) */ - u_int16_t rsak_exponent_length; /* Length of exponent */ + u_int16_t rsak_exponent_length; /* Length of exponent (e) */ u_int16_t rsak_mod_length; /* Length of modulus */ - u_int16_t rsak_p_length; /* Length of prime number p */ - u_int16_t rsak_q_length; /* Length of prime number q */ - u_int16_t rsak_priv_key_length; /* Length of private key */ + u_int16_t rsak_p_length; /* Length of p */ + u_int16_t rsak_q_length; /* Length of q */ + u_int16_t rsak_dp_length; /* Length of CRT dp */ + u_int16_t rsak_dq_length; /* Length of CRT dq */ + u_int16_t rsak_qinv_length; /* Length of CRT qinv */ /* Input/output buffers */ caddr_t rsak_exponent; caddr_t rsak_modulus; - caddr_t rsak_prime_p; - caddr_t rsak_prime_q; - caddr_t rsak_priv_coeff; - caddr_t rsak_priv_key; + caddr_t rsak_p; + caddr_t rsak_q; + caddr_t rsak_dp; + caddr_t rsak_dq; + caddr_t rsak_qinv; }; /* |