RE: [RFC] Unaligned CTR mode tests in crypto/testmgr.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Herbert Xu [mailto:herbert@xxxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, October 29, 2013 8:54 PM
> To: Fernandes, Joel
> Cc: jussi.kivilinna@xxxxxxxx; linux-crypto@xxxxxxxxxxxxxxx
> Subject: Re: [RFC] Unaligned CTR mode tests in crypto/testmgr.h
> 
> Joel Fernandes <joelf@xxxxxx> wrote:
> > 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?
> 
> Set your alignmask correctly and the crypto API will align the input buffer for
> you.

Thanks! I'll try this today and follow up with a patch if I can get past the error.

Regards,

-Joel
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux