Re: Alignment in the API, once again

2007-08-02 Thread Herbert Xu
On Thu, Aug 02, 2007 at 09:41:22AM +0200, Sebastian Siewior wrote: > > Okey this makes sense. What about crypto_ctxsize()? Isn't a bug there? > I can't specify an alignmask of 16 (what I assumed yesterday after a > part of brain switched to sleep()) because this brakes the ALIGN() > macro. Isn't s

Re: Alignment in the API, once again

2007-08-02 Thread Sebastian Siewior
* Herbert Xu | 2007-08-02 10:30:06 [+0800]: >> I noticed this, after my code did not work properly. The reason was, >> that my private ctx was not retrieved with >> crypto_ablkcipher_ctx_aligned() (attached) but with >> crypto_ablkcipher_ctx() (and it was not properly aligned anymore). >> My fault

Re: Alignment in the API, once again

2007-08-01 Thread Herbert Xu
On Thu, Aug 02, 2007 at 01:02:40AM +0200, Sebastian Siewior wrote: > > I noticed this, after my code did not work properly. The reason was, > that my private ctx was not retrieved with > crypto_ablkcipher_ctx_aligned() (attached) but with > crypto_ablkcipher_ctx() (and it was not properly aligned a