Re: RSA/MPI handling issues and keyctl access to public key keyrings

2016-05-11 Thread Tadeusz Struk
On 05/11/2016 06:55 AM, David Howells wrote: > Tadeusz Struk wrote: > >>> (2) rsa-pkcs1pad needs to indicate what the maximum content size is, given >>> the minimum possible padding for the specified hash type (ie. a >>> particular OID). >> >> The user needs to use crypto_akcipher_maxs

Re: RSA/MPI handling issues and keyctl access to public key keyrings

2016-05-11 Thread David Howells
Tadeusz Struk wrote: > > (2) rsa-pkcs1pad needs to indicate what the maximum content size is, given > > the minimum possible padding for the specified hash type (ie. a > > particular OID). > > The user needs to use crypto_akcipher_maxsize(tfm) to get the required buffer > size for a g

Re: RSA/MPI handling issues and keyctl access to public key keyrings

2016-05-09 Thread Tadeusz Struk
Hi David, On 05/09/2016 02:13 AM, David Howells wrote: > Hi Tadeusz, Andrzej, > > If you look here: > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/keyutils.git > > you will see a branch labelled 'pkey'. This, so far, provides query support > through keyctl: > > [root@