linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Unaligned CTR mode tests in crypto/testmgr.h
@ 2013-10-30  0:11 Joel Fernandes
  2013-10-30  1:54 ` Herbert Xu
  2013-10-30 11:09 ` Jussi Kivilinna
  0 siblings, 2 replies; 6+ messages in thread
From: Joel Fernandes @ 2013-10-30  0:11 UTC (permalink / raw)
  To: jussi.kivilinna; +Cc: Linux Crypto Mailing List

Hi,

Some tests such as test 5 in AES CTR mode in crypto/testmgr.h have a unaligned
input buffer size such as 499 which is not aligned to any > 0 power of 2.

Due to this, omap-aes driver, and I think atmel-aes too error out when
encryption is requested for these buffers.

pr_err("request size is not exact amount of AES blocks\n") or a similar message.

Is this failure considered a bug? How do we fix it?

How were the result output vectors generated, did you use 0 padding? Do we 0 pad
the inputs to align in these cases to get correct results?

thanks,

-Joel

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

end of thread, other threads:[~2013-10-31  8:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30  0:11 [RFC] Unaligned CTR mode tests in crypto/testmgr.h Joel Fernandes
2013-10-30  1:54 ` Herbert Xu
2013-10-30 18:34   ` Fernandes, Joel
2013-10-30 11:09 ` Jussi Kivilinna
2013-10-30 21:06   ` Joel Fernandes
2013-10-31  8:40     ` Jussi Kivilinna

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).