Re: variable iv lengths for aes-gcm

2015-06-18 Thread Herbert Xu
On Thu, Jun 18, 2015 at 12:44:06PM +0300, Ambarus Tudor-Dan-B38632 wrote: > > The reason is to cover a wide range of applications. Your question > also applies to the gcm NIST publication. > > Users may want to use a crypto module that meets the requirements of > FIPS Pub. for various applications

Re: variable iv lengths for aes-gcm

2015-06-18 Thread Ambarus Tudor-Dan-B38632
On 6/18/2015 11:07 AM, Herbert Xu wrote: On Thu, Jun 18, 2015 at 10:43:18AM +0300, Ambarus Tudor-Dan-B38632 wrote: I'm trying to find a method to pass IVs of various lengths to an algorithm. A particular case would be aes-gcm IV. It can have any number of bits between 1 and 2^64. A possible

Re: variable iv lengths for aes-gcm

2015-06-18 Thread Herbert Xu
On Thu, Jun 18, 2015 at 10:43:18AM +0300, Ambarus Tudor-Dan-B38632 wrote: > > I'm trying to find a method to pass IVs of various lengths to an > algorithm. A particular case would be aes-gcm IV. It can have any > number of bits between 1 and 2^64. > > A possible way to do this is to set the ivlen

variable iv lengths for aes-gcm

2015-06-18 Thread Ambarus Tudor-Dan-B38632
Hi Herbert, I'm trying to find a method to pass IVs of various lengths to an algorithm. A particular case would be aes-gcm IV. It can have any number of bits between 1 and 2^64. A possible way to do this is to set the ivlen per request. Are there any (better) ways to do this? Thanks, ta -