DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC] cryptodev/sym: GCM IV len != 12 byte case
@ 2019-03-20 18:47 Kusztal, ArkadiuszX
  2019-03-20 18:47 ` Kusztal, ArkadiuszX
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kusztal, ArkadiuszX @ 2019-03-20 18:47 UTC (permalink / raw)
  To: dev, Trahe, Fiona, Doherty, Declan, De Lara Guarch, Pablo,
	akhil.goyal, ravi1.kumar, tdu, lironh, walan

Hi all,

There is a proposition to amend a bit API due to the following lines:

* - For GCM mode, this is either 12 (for 96-bit IVs)

 * or 16, in which case data points to J0.

...

} iv;   /**< Initialisation vector parameters */


Problem arise when driver cannot support J0 input, right now we know that OPENSSL PMD works with IV instead of J0 when iv_len != 12.
So it may be that we have to somehow support both. There are two options, and I am very curious about community opinion.


1)      Add a flag to aead_xform.iv to supports IV or J0 like this:

uint8_t IV_used;

And this could be reflected in capabilities. Of course for 96bits IV this field would not be used, so it would had to be set only for iv.length != 12

2)      Change API comments to something like:

* - For GCM mode, this is either 12 (for 96-bit IVs),

* - for IV length different than 96 bits it is or J0 or IV,

* - refer to specific driver rst or capabilities which one

* - is supported, etc. (J0 by definition is of 16 bytes len)

I cc'ing maintainers of drivers that support iv_len != 16 bytes.
Cannot check how it works as I have no hw.

Regards,
Arek

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-01 13:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 18:47 [dpdk-dev] [RFC] cryptodev/sym: GCM IV len != 12 byte case Kusztal, ArkadiuszX
2019-03-20 18:47 ` Kusztal, ArkadiuszX
2019-03-20 18:50 ` Liron Himi
2019-03-20 18:50   ` Liron Himi
2019-03-29 18:02 ` Trahe, Fiona
2019-03-29 18:02   ` Trahe, Fiona
2019-04-01 13:53   ` Kusztal, ArkadiuszX
2019-04-01 13:53     ` Kusztal, ArkadiuszX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).