summaryrefslogtreecommitdiff
path: root/crypto/rsaprivkey.asn1
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2015-10-08 09:26:55 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2015-10-14 22:23:16 +0800
commita897342ffc43687f7e49a4eac15df37af1c65fe5 (patch)
tree246185e9b313a4fb2b77e6485856d8c28a6ec497 /crypto/rsaprivkey.asn1
parent75c56391de7c3151691cb9a04fa4da96129f258c (diff)
downloadlinux-crypto-a897342ffc43687f7e49a4eac15df37af1c65fe5.tar.gz
linux-crypto-a897342ffc43687f7e49a4eac15df37af1c65fe5.zip
crypto: akcipher - Changes to asymmetric key API
Setkey function has been split into set_priv_key and set_pub_key. Akcipher requests takes sgl for src and dst instead of void *. Users of the API i.e. two existing RSA implementation and test mgr code have been updated accordingly. Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/rsaprivkey.asn1')
-rw-r--r--crypto/rsaprivkey.asn111
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/rsaprivkey.asn1 b/crypto/rsaprivkey.asn1
new file mode 100644
index 00000000..731aea5e
--- /dev/null
+++ b/crypto/rsaprivkey.asn1
@@ -0,0 +1,11 @@
+RsaPrivKey ::= SEQUENCE {
+ version INTEGER,
+ 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
+}