summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-21 12:24:22 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-21 12:24:22 +0200
commit8f6ef273e5e0ef9bad24ebe6b95cbf90f82e74b9 (patch)
treeaa137c9cf524fb05867fb929d62780e0607b3202
parent7b2f60fb851e7fe728ff80e5f9416b34ba47dde1 (diff)
downloadcryptodev-linux-8f6ef273e5e0ef9bad24ebe6b95cbf90f82e74b9.tar.gz
cryptodev-linux-8f6ef273e5e0ef9bad24ebe6b95cbf90f82e74b9.tar.xz
cryptodev-linux-8f6ef273e5e0ef9bad24ebe6b95cbf90f82e74b9.zip
Corrected bug in importing RSA private keys.
-rw-r--r--libtomcrypt/pk/rsa/rsa_import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtomcrypt/pk/rsa/rsa_import.c b/libtomcrypt/pk/rsa/rsa_import.c
index 9f3c5bf..87cb103 100644
--- a/libtomcrypt/pk/rsa/rsa_import.c
+++ b/libtomcrypt/pk/rsa/rsa_import.c
@@ -84,7 +84,7 @@ int rsa_import(const unsigned char *in, unsigned long inlen, rsa_key *key)
}
/* it's a private key */
if ((err = der_decode_sequence_multi(in, inlen,
- LTC_ASN1_INTEGER, 1UL, zero,
+ LTC_ASN1_INTEGER, 1UL, &zero,
LTC_ASN1_INTEGER, 1UL, &key->N,
LTC_ASN1_INTEGER, 1UL, &key->e,
LTC_ASN1_INTEGER, 1UL, &key->d,