21 Sep, 2006

1 commit

  • Now that the tfm is passed directly to setkey instead of the ctx, we no
    longer need to pass the &tfm->crt_flags pointer.

    This patch also gets rid of a few unnecessary checks on the key length
    for ciphers as the cipher layer guarantees that the key length is within
    the bounds specified by the algorithm.

    Rather than testing dia_setkey every time, this patch does it only once
    during crypto_alloc_tfm. The redundant check from crypto_digest_setkey
    is also removed.

    Signed-off-by: Herbert Xu

    Herbert Xu
     

26 Jun, 2006

1 commit

  • Up until now algorithms have been happy to get a context pointer since
    they know everything that's in the tfm already (e.g., alignment, block
    size).

    However, once we have parameterised algorithms, such information will
    be specific to each tfm. So the algorithm API needs to be changed to
    pass the tfm structure instead of the context pointer.

    This patch is basically a text substitution. The only tricky bit is
    the assembly routines that need to get the context pointer offset
    through asm-offsets.h.

    Signed-off-by: Herbert Xu

    Herbert Xu
     

21 Mar, 2006

1 commit


10 Jan, 2006

2 commits


07 Jul, 2005

2 commits

  • I've made a new implementation of DES to replace the old one in the kernel.
    It provides faster encryption on all tested processors apart from the original
    Pentium, and key setup is many times faster.

    Speed relative to old kernel implementation
    Processor des_setkey des_encrypt des3_ede_setkey des3_ede_encrypt
    Pentium
    120Mhz 6.8 0.82 7.2 0.86
    Pentium III
    1.266Ghz 5.6 1.19 5.8 1.34
    Pentium M
    1.3Ghz 5.7 1.15 6.0 1.31
    Pentium 4
    2.266Ghz 5.8 1.24 6.0 1.40
    Pentium 4E
    3Ghz 5.4 1.27 5.5 1.48
    StrongARM 1110
    206Mhz 4.3 1.03 4.4 1.14
    Athlon XP
    2Ghz 7.8 1.44 8.1 1.61
    Athlon 64
    2Ghz 7.8 1.34 8.3 1.49

    Signed-off-by: Dag Arne Osvik
    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Dag Arne Osvik
     
  • The iv field in des_ctx/des3_ede_ctx/serpent_ctx has never been used.
    This was noticed by Dag Arne Osvik.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds