1. 11 1月, 2008 2 次提交
    • S
      [CRYPTO] aes: Move common defines into a header file · 89e12654
      Sebastian Siewior 提交于
      This three defines are used in all AES related hardware.
      Signed-off-by: NSebastian Siewior <sebastian@breakpoint.cc>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      89e12654
    • H
      [CRYPTO] padlock: Fix alignment fault in aes_crypt_copy · 490fe3f0
      Herbert Xu 提交于
      The previous patch fixed spurious read faults from occuring by copying
      the data if we happen to have a single block at the end of a page.  It
      appears that gcc cannot guarantee 16-byte alignment in the kernel with
      __attribute__.  The following report from Torben Viets shows a buffer
      that's only 8-byte aligned:
      
      > eneral protection fault: 0000 [#1]
      > Modules linked in: xt_TCPMSS xt_tcpmss iptable_mangle ipt_MASQUERADE
      > xt_tcpudp xt_mark xt_state iptable_nat nf_nat nf_conntrack_ipv4
      > iptable_filter ip_tables x_tables pppoe pppox af_packet ppp_generic slhc
      > aes_i586
      > CPU:    0
      > EIP:    0060:[<c035b828>]    Not tainted VLI
      > EFLAGS: 00010292   (2.6.23.12 #7)
      > EIP is at aes_crypt_copy+0x28/0x40
      > eax: f7639ff0   ebx: f6c24050   ecx: 00000001   edx: f6c24030
      > esi: f7e89dc8   edi: f7639ff0   ebp: 00010000   esp: f7e89dc8
      
      Since the hardware must have 16-byte alignment, the following patch fixes
      this by open coding the alignment adjustment.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      490fe3f0
  2. 28 12月, 2007 1 次提交
  3. 11 10月, 2007 1 次提交
  4. 21 9月, 2006 7 次提交
  5. 15 7月, 2006 1 次提交
  6. 26 6月, 2006 2 次提交
    • H
      [CRYPTO] padlock: Rearrange context structure to reduce code size · 82062c72
      Herbert Xu 提交于
      i386 assembly has more compact instructions for accessing 7-bit offsets.
      So by moving the large members to the end of the structure we can save
      quite a bit of code size.  This patch shaves about 10% or 300 bytes off
      the padlock-aes file.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      82062c72
    • H
      [CRYPTO] all: Pass tfm instead of ctx to algorithms · 6c2bb98b
      Herbert Xu 提交于
      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
      size).
      
      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: NHerbert Xu <herbert@gondor.apana.org.au>
      6c2bb98b
  7. 21 3月, 2006 1 次提交
    • H
      [CRYPTO] api: Align tfm context as wide as possible · f10b7897
      Herbert Xu 提交于
      Since tfm contexts can contain arbitrary types we should provide at least
      natural alignment (__attribute__ ((__aligned__))) for them.  In particular,
      this is needed on the Xscale which is a 32-bit architecture with a u64 type
      that requires 64-bit alignment.  This problem was reported by Ronen Shitrit.
      
      The crypto_tfm structure's size was 44 bytes on 32-bit architectures and
      80 bytes on 64-bit architectures.  So adding this requirement only means
      that we have to add an extra 4 bytes on 32-bit architectures.
      
      On i386 the natural alignment is 16 bytes which also benefits the VIA
      Padlock as it no longer has to manually align its context structure to
      128 bits.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f10b7897
  8. 22 2月, 2006 1 次提交
  9. 10 1月, 2006 2 次提交
  10. 07 7月, 2005 4 次提交
  11. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      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!
      1da177e4