Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jun 14, 2012
  1. @jkivilin @herbertx

    crypto: arc4 - improve performance by using u32 for ctx and variables

    jkivilin committed with herbertx
    This patch changes u8 in struct arc4_ctx and variables to u32 (as AMD seems
    to have problem with u8 array). Below are tcrypt results of old 1-byte block
    cipher versus ecb(arc4) with u8 and ecb(arc4) with u32.
    tcrypt results, x86-64 (speed ratios: new-u32/old, new-u8/old):
                      u32    u8
    AMD Phenom II   : x3.6   x2.7
    Intel Core 2    : x2.0   x1.9
    tcrypt results, i386 (speed ratios: new-u32/old, new-u8/old):
                      u32    u8
    Intel Atom N260 : x1.5   x1.4
    Cc: Jon Oberheide <>
    Signed-off-by: Jussi Kivilinna <>
    Signed-off-by: Herbert Xu <>
  2. @jkivilin @herbertx

    crypto: arc4 - improve performance by adding ecb(arc4)

    jkivilin committed with herbertx
    Currently arc4.c provides simple one-byte blocksize cipher which is wrapped
    by ecb() module, giving function call overhead on every encrypted byte. This
    patch adds ecb(arc4) directly into arc4.c for higher performance.
    tcrypt results (speed ratios: new/old):
    AMD Phenom II, x86-64 : x2.7
    Intel Core 2, x86-64  : x1.9
    Intel Atom N260, i386 : x1.4
    Cc: Jon Oberheide <>
    Signed-off-by: Jussi Kivilinna <>
    Signed-off-by: Herbert Xu <>
Commits on Jun 29, 2011
  1. @mativait @herbertx

    crypto: arc4 - Fixed coding style issues

    mativait committed with herbertx
    Fixed coding style issues: unnecessary spaces, parentheses on wrong lines.
    Signed-off-by: Mati Vait <>
    Signed-off-by: Herbert Xu <>
Commits on Sep 21, 2006
  1. @herbertx

    [CRYPTO] api: Get rid of flags argument to setkey

    herbertx committed
    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 <>
Commits on Jun 26, 2006
  1. @herbertx

    [CRYPTO] all: Pass tfm instead of ctx to algorithms

    herbertx committed
    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
    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 <>
Commits on Apr 16, 2005
  1. Linux-2.6.12-rc2

    Linus Torvalds committed
    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!
Something went wrong with that request. Please try again.