18 Dec, 2016

1 commit

  • Pull more documentation updates from Jonathan Corbet:
    "This converts the crypto DocBook to Sphinx"

    * tag 'docs-4.10-2' of git://git.lwn.net/linux:
    crypto: doc - optimize compilation
    crypto: doc - clarify AEAD memory structure
    crypto: doc - remove crypto_alloc_ablkcipher
    crypto: doc - add KPP documentation
    crypto: doc - fix separation of cipher / req API
    crypto: doc - fix source comments for Sphinx
    crypto: doc - remove crypto API DocBook
    crypto: doc - convert crypto API documentation to Sphinx

    Linus Torvalds
     

14 Dec, 2016

3 commits


01 Dec, 2016

1 commit


30 Nov, 2016

2 commits

  • Merge the crypto tree to pull in chelsio chcr fix.

    Herbert Xu
     
  • When using SGs, only heap memory (memory that is valid as per
    virt_addr_valid) is allowed to be referenced. The CTR DRBG used to
    reference the caller-provided memory directly in an SG. In case the
    caller provided stack memory pointers, the SG mapping is not considered
    to be valid. In some cases, this would even cause a paging fault.

    The change adds a new scratch buffer that is used unconditionally to
    catch the cases where the caller-provided buffer is not suitable for
    use in an SG. The crypto operation of the CTR DRBG produces its output
    with that scratch buffer and finally copies the content of the
    scratch buffer to the caller's buffer.

    The scratch buffer is allocated during allocation time of the CTR DRBG
    as its access is protected with the DRBG mutex.

    Signed-off-by: Stephan Mueller
    Signed-off-by: Herbert Xu

    Stephan Mueller
     

28 Nov, 2016

5 commits


17 Nov, 2016

1 commit


13 Nov, 2016

1 commit

  • This code is unlikely to be useful in the future because transforms
    don't know how often keys will be changed, new algorithms are unlikely
    to use lle representation, and tables should be replaced with
    carryless multiplication instructions when available.

    Signed-off-by: Alex Cope
    Signed-off-by: Herbert Xu

    Alex Cope
     

01 Nov, 2016

2 commits


25 Oct, 2016

3 commits

  • Add a synchronous back-end (scomp) to acomp. This allows to easily
    expose the already present compression algorithms in LKCF via acomp.

    Signed-off-by: Giovanni Cabiddu
    Signed-off-by: Herbert Xu

    Giovanni Cabiddu
     
  • Add acomp, an asynchronous compression api that uses scatterlist
    buffers.

    Signed-off-by: Giovanni Cabiddu
    Signed-off-by: Herbert Xu

    Giovanni Cabiddu
     
  • Use the new API to create and destroy the crypto engine kthread
    worker. The API hides some implementation details.

    In particular, kthread_create_worker() allocates and initializes
    struct kthread_worker. It runs the kthread the right way
    and stores task_struct into the worker structure.

    kthread_destroy_worker() flushes all pending works, stops
    the kthread and frees the structure.

    This patch does not change the existing behavior except for
    dynamically allocating struct kthread_worker and storing
    only the pointer of this structure.

    It is compile tested only because I did not find an easy
    way how to run the code. Well, it should be pretty safe
    given the nature of the change.

    Signed-off-by: Petr Mladek
    Signed-off-by: Herbert Xu

    Petr Mladek
     

21 Oct, 2016

1 commit


10 Oct, 2016

1 commit


02 Oct, 2016

1 commit


07 Sep, 2016

2 commits


28 Jul, 2016

1 commit

  • Pull random driver updates from Ted Ts'o:
    "A number of improvements for the /dev/random driver; the most
    important is the use of a ChaCha20-based CRNG for /dev/urandom, which
    is faster, more efficient, and easier to make scalable for
    silly/abusive userspace programs that want to read from /dev/urandom
    in a tight loop on NUMA systems.

    This set of patches also improves entropy gathering on VM's running on
    Microsoft Azure, and will take advantage of a hw random number
    generator (if present) to initialize the /dev/urandom pool"

    (It turns out that the random tree hadn't been in linux-next this time
    around, because it had been dropped earlier as being too quiet. Oh
    well).

    * tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random:
    random: strengthen input validation for RNDADDTOENTCNT
    random: add backtracking protection to the CRNG
    random: make /dev/urandom scalable for silly userspace programs
    random: replace non-blocking pool with a Chacha20-based CRNG
    random: properly align get_random_int_hash
    random: add interrupt callback to VMBus IRQ handler
    random: print a warning for the first ten uninitialized random users
    random: initialize the non-blocking pool via add_hwgenerator_randomness()

    Linus Torvalds
     

19 Jul, 2016

1 commit


18 Jul, 2016

10 commits


05 Jul, 2016

1 commit


03 Jul, 2016

1 commit


01 Jul, 2016

1 commit


23 Jun, 2016

1 commit