crypto: rsa - return raw integers for the ASN.1 parser
authorTudor Ambarus <tudor-dan.ambarus@nxp.com>
Tue, 14 Jun 2016 13:14:58 +0000 (16:14 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jun 2016 09:07:54 +0000 (17:07 +0800)
commit5a7de97309f5af4458b1a25a2a529a1a893c5269
tree269fd7cdc654e79e2f3ff1b4b9c1ca149d56415d
parent103eb3f7bfb4fce0e299afbf50fef8ffa8d9d38c
crypto: rsa - return raw integers for the ASN.1 parser

Return the raw key with no other processing so that the caller
can copy it or MPI parse it, etc.

The scope is to have only one ANS.1 parser for all RSA
implementations.

Update the RSA software implementation so that it does
the MPI conversion on top.

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa.c
crypto/rsa_helper.c
include/crypto/internal/rsa.h