24 Mar, 2015

1 commit


08 Mar, 2012

1 commit


14 Sep, 2011

1 commit


07 Aug, 2011

1 commit

  • For ChromiumOS, we use SHA-1 to verify the integrity of the root
    filesystem. The speed of the kernel sha-1 implementation has a major
    impact on our boot performance.

    To improve boot performance, we investigated using the heavily optimized
    sha-1 implementation used in git. With the git sha-1 implementation, we
    see a 11.7% improvement in boot time.

    10 reboots, remove slowest/fastest.

    Before:

    Mean: 6.58 seconds Stdev: 0.14

    After (with git sha-1, this patch):

    Mean: 5.89 seconds Stdev: 0.07

    The other cool thing about the git SHA-1 implementation is that it only
    needs 64 bytes of stack for the workspace while the original kernel
    implementation needed 320 bytes.

    Signed-off-by: Mandeep Singh Baines
    Cc: Ramsay Jones
    Cc: Nicolas Pitre
    Cc: Herbert Xu
    Cc: David S. Miller
    Cc: linux-crypto@vger.kernel.org
    Signed-off-by: Linus Torvalds

    Mandeep Singh Baines