summaryrefslogtreecommitdiff
path: root/crypto/rsaprivkey.asn1
diff options
context:
space:
mode:
authorSalvatore Benedetto <salvatore.benedetto@intel.com>2016-07-04 19:21:38 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-05 18:05:26 +0300
commit8be0b84e58a9b07c314f920792926c5c5a53d3da (patch)
treec75ddebfc0ea68a3cd05bc8bbf2dc2b85bdfb462 /crypto/rsaprivkey.asn1
parente24860f2a6b50eb09f3a627e168433005798f8d9 (diff)
downloadlinux-8be0b84e58a9b07c314f920792926c5c5a53d3da.tar.xz
crypto: rsa - Store rest of the private key components
When parsing a private key, store all non-optional fields. These are required for enabling CRT mode for decrypt and verify Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/rsaprivkey.asn1')
-rw-r--r--crypto/rsaprivkey.asn110
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/rsaprivkey.asn1 b/crypto/rsaprivkey.asn1
index 731aea5edb0c..4ce06758e8af 100644
--- a/crypto/rsaprivkey.asn1
+++ b/crypto/rsaprivkey.asn1
@@ -3,9 +3,9 @@ RsaPrivKey ::= SEQUENCE {
n INTEGER ({ rsa_get_n }),
e INTEGER ({ rsa_get_e }),
d INTEGER ({ rsa_get_d }),
- prime1 INTEGER,
- prime2 INTEGER,
- exponent1 INTEGER,
- exponent2 INTEGER,
- coefficient INTEGER
+ prime1 INTEGER ({ rsa_get_p }),
+ prime2 INTEGER ({ rsa_get_q }),
+ exponent1 INTEGER ({ rsa_get_dp }),
+ exponent2 INTEGER ({ rsa_get_dq }),
+ coefficient INTEGER ({ rsa_get_qinv })
}