RE: [PATCH v3] crypto: rsa - return raw integers for the ASN.1 parser

2016-06-08 Thread Tudor-Dan Ambarus
Hi Stephan, > > int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, > > const void *value, size_t vlen) > > { > > struct rsa_key *key = context; > > + const u8 *ptr = value; > > + int ret; > > > > - key->n = mpi_read_raw_data(value, vlen); > > + while (!*ptr &&

Re: [PATCH v3] crypto: rsa - return raw integers for the ASN.1 parser

2016-06-07 Thread Stephan Mueller
Am Dienstag, 7. Juni 2016, 17:21:09 schrieb Tudor Ambarus: Hi Tudor, > 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

[PATCH v3] crypto: rsa - return raw integers for the ASN.1 parser

2016-06-07 Thread Tudor Ambarus
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