Skip to content
  1. Jan 16, 2020
    • Jason A. Donenfeld's avatar
      crypto: x86/poly1305 - import unmodified cryptogams implementation · 0896ca2a
      Jason A. Donenfeld authored
      
      
      These x86_64 vectorized implementations come from Andy Polyakov's
      CRYPTOGAMS implementation, and are included here in raw form without
      modification, so that subsequent commits that fix these up for the
      kernel can see how it has changed.
      
      Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      0896ca2a
    • Jason A. Donenfeld's avatar
      crypto: poly1305 - add new 32 and 64-bit generic versions · 1c08a104
      Jason A. Donenfeld authored
      These two C implementations from Zinc -- a 32x32 one and a 64x64 one,
      depending on the platform -- come from Andrew Moon's public domain
      poly1305-donna portable code, modified for usage in the kernel. The
      precomputation in the 32-bit version and the use of 64x64 multiplies in
      the 64-bit version make these perform better than the code it replaces.
      Moon's code is also very widespread and has received many eyeballs of
      scrutiny.
      
      There's a bit of interference between the x86 implementation, which
      relies on internal details of the old scalar implementation. In the next
      commit, the x86 implementation will be replaced with a faster one that
      doesn't rely on this, so none of this matters much. But for now, to keep
      this passing the tests, we inline the bits of the old implementation
      that the x86 implementation relied on. Also, since we now support a
      slightly larger key space, via the union, some offsets had to be fixed
      up.
      
      Nonce calculation was folded in wi...
      1c08a104
    • Herbert Xu's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · e3419426
      Herbert Xu authored
      Merge crypto tree to pick up hisilicon patch.
      e3419426
  2. Jan 09, 2020