[lkml]   [2009]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC PATCH crypto 4/4] AES-NI: Add support to Intel AES-NI instructions for x86_64 platform
    On Fri, Jan 09, 2009 at 08:18:14PM +1100, Herbert Xu wrote:
    > Not at all, tfms are just "shell" objects and they were designed
    > to be used in thie way. Calling setkey twice is an issue but it's
    > not a show-stopper. We have the same problem in other places to
    > so this something that we can potentially optimise.

    Here's how we can solve the double setkey problem. We can make
    a new cryptd_alloc_ablkcipher interface that returns a cryptd
    ablkcipher object. Since it's cryptd specific we can then access
    its underlying blkcipher object, which can be shared between the
    cryptd object and the user of the cryptd object. This way you
    only need to do setkey on the cryptd object and it'll get set
    on the underlying blkcipher automatically.

    Visit Openswan at
    Email: Herbert Xu ~{PmV>HI~} <>
    Home Page:
    PGP Key:

     \ /
      Last update: 2009-01-10 11:11    [W:2.646 / U:0.096 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site