Re: [PATCH v1] crypto: ccp - Don't assume export/import areas are aligned

2016-02-05 Thread Herbert Xu
On Tue, Feb 02, 2016 at 11:38:21AM -0600, Tom Lendacky wrote: > Use a local variable for the exported and imported state so that > alignment is not an issue. On export, set a local variable from the > request context and then memcpy the contents of the local variable to > the export memory area.

[PATCH v1] crypto: ccp - Don't assume export/import areas are aligned

2016-02-02 Thread Tom Lendacky
Use a local variable for the exported and imported state so that alignment is not an issue. On export, set a local variable from the request context and then memcpy the contents of the local variable to the export memory area. On import, memcpy the import memory area into a local variable and then