Re: [RFC PATCH] X.509: Parse public key parameters from x509 for akcipher

2018-12-13 Thread Herbert Xu
Vitaly Chikunov wrote: > Some public key algorithms (like ECDSA) keep in parameters field > important data such as digest and curve OIDs (possibly more for > different ECDSA variants). Thus, just setting a public key (as > for RSA) is not enough. > > Introduce set_params() callback for akcipher w

Re: [RFC PATCH] X.509: Parse public key parameters from x509 for akcipher

2018-12-10 Thread Vitaly Chikunov
On Sun, Dec 09, 2018 at 04:55:48PM +0300, Vitaly Chikunov wrote: > Some public key algorithms (like ECDSA) keep in parameters field > important data such as digest and curve OIDs (possibly more for > different ECDSA variants). Thus, just setting a public key (as > for RSA) is not enough. > > Intro

[RFC PATCH] X.509: Parse public key parameters from x509 for akcipher

2018-12-09 Thread Vitaly Chikunov
Some public key algorithms (like ECDSA) keep in parameters field important data such as digest and curve OIDs (possibly more for different ECDSA variants). Thus, just setting a public key (as for RSA) is not enough. Introduce set_params() callback for akcipher which will be used to pass BER encode