projects
/
crypto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
02f1b38
)
Packed structure.
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Jul 2007 12:59:28 +0000
(12:59 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Jul 2007 12:59:28 +0000
(12:59 +0000)
lib/silccrypt/rsa.h
patch
|
blob
|
history
diff --git
a/lib/silccrypt/rsa.h
b/lib/silccrypt/rsa.h
index 81247b05cbe93563e5df86e505e4805a922ab4e7..6a9506a4aadf5896080f723d632d9a18808c4b29 100644
(file)
--- a/
lib/silccrypt/rsa.h
+++ b/
lib/silccrypt/rsa.h
@@
-22,14
+22,13
@@
/* RSA Public Key */
typedef struct {
/* RSA Public Key */
typedef struct {
- int bits; /* bits in key */
SilcMPInt n; /* modulus */
SilcMPInt e; /* public exponent */
SilcMPInt n; /* modulus */
SilcMPInt e; /* public exponent */
+ int bits; /* bits in key */
} RsaPublicKey;
/* RSA Private Key */
typedef struct {
} RsaPublicKey;
/* RSA Private Key */
typedef struct {
- int bits; /* bits in key */
SilcMPInt n; /* modulus */
SilcMPInt e; /* public exponent */
SilcMPInt d; /* private exponent */
SilcMPInt n; /* modulus */
SilcMPInt e; /* public exponent */
SilcMPInt d; /* private exponent */
@@
-38,6
+37,7
@@
typedef struct {
SilcMPInt dP; /* CRT, d mod p - 1 */
SilcMPInt dQ; /* CRT, d mod q - 1 */
SilcMPInt qP; /* CRT, q ^ -1 mod p (aka u, aka qInv) */
SilcMPInt dP; /* CRT, d mod p - 1 */
SilcMPInt dQ; /* CRT, d mod q - 1 */
SilcMPInt qP; /* CRT, q ^ -1 mod p (aka u, aka qInv) */
+ int bits; /* bits in key */
} RsaPrivateKey;
SilcBool silc_rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q,
} RsaPrivateKey;
SilcBool silc_rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q,