08 May, 2020

1 commit

  • sounds very generic and important, like it's the
    header to include if you're doing cryptographic hashing in the kernel.
    But actually it only includes the library implementation of the SHA-1
    compression function (not even the full SHA-1). This should basically
    never be used anymore; SHA-1 is no longer considered secure, and there
    are much better ways to do cryptographic hashing in the kernel.

    Most files that include this header don't actually need it. So in
    preparation for removing it, remove all these unneeded includes of it.

    Signed-off-by: Eric Biggers
    Signed-off-by: Herbert Xu

    Eric Biggers
     

05 Sep, 2019

1 commit


31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

24 Aug, 2018

1 commit

  • Almost all files in the kernel are either plain text or UTF-8 encoded. A
    couple however are ISO_8859-1, usually just a few characters in a C
    comments, for historic reasons.

    This converts them all to UTF-8 for consistency.

    Link: http://lkml.kernel.org/r/20180724111600.4158975-1-arnd@arndb.de
    Signed-off-by: Arnd Bergmann
    Acked-by: Simon Horman [IPVS portion]
    Acked-by: Jonathan Cameron [IIO]
    Acked-by: Michael Ellerman [powerpc]
    Acked-by: Rob Herring
    Cc: Joe Perches
    Cc: Arnd Bergmann
    Cc: Samuel Ortiz
    Cc: "David S. Miller"
    Cc: Rob Herring
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnd Bergmann
     

09 Jul, 2018

1 commit

  • Many shash algorithms set .cra_flags = CRYPTO_ALG_TYPE_SHASH. But this
    is redundant with the C structure type ('struct shash_alg'), and
    crypto_register_shash() already sets the type flag automatically,
    clearing any type flag that was already there. Apparently the useless
    assignment has just been copy+pasted around.

    So, remove the useless assignment from all the shash algorithms.

    This patch shouldn't change any actual behavior.

    Signed-off-by: Eric Biggers
    Signed-off-by: Herbert Xu

    Eric Biggers
     

10 Apr, 2015

1 commit


03 Apr, 2015

1 commit

  • Add Andy Polyakov's optimized assembly and NEON implementations for
    SHA-256/224.

    The sha256-armv4.pl script for generating the assembly code is from
    OpenSSL commit 51f8d095562f36cdaa6893597b5c609e943b0565.

    Compared to sha256-generic these implementations have the following
    tcrypt speed improvements on Motorola Nexus 6 (Snapdragon 805):

    bs b/u sha256-neon sha256-asm
    16 16 x1.32 x1.19
    64 16 x1.27 x1.15
    64 64 x1.36 x1.20
    256 16 x1.22 x1.11
    256 64 x1.36 x1.19
    256 256 x1.59 x1.23
    1024 16 x1.21 x1.10
    1024 256 x1.65 x1.23
    1024 1024 x1.76 x1.25
    2048 16 x1.21 x1.10
    2048 256 x1.66 x1.23
    2048 1024 x1.78 x1.25
    2048 2048 x1.79 x1.25
    4096 16 x1.20 x1.09
    4096 256 x1.66 x1.23
    4096 1024 x1.79 x1.26
    4096 4096 x1.82 x1.26
    8192 16 x1.20 x1.09
    8192 256 x1.67 x1.23
    8192 1024 x1.80 x1.26
    8192 4096 x1.85 x1.28
    8192 8192 x1.85 x1.27

    Where bs refers to block size and b/u to bytes per update.

    Signed-off-by: Sami Tolvanen
    Cc: Andy Polyakov
    Signed-off-by: Herbert Xu

    Sami Tolvanen