1. 22 6月, 2015 1 次提交
    • H
      crypto: eseqiv - Offer normal cipher functionality without RNG · 055906d1
      Herbert Xu 提交于
      The RNG may not be available during early boot, e.g., the relevant
      modules may not be included in the initramfs.  As the RNG Is only
      needed for IPsec, we should not let this prevent use of ciphers
      without IV generators, e.g., for disk encryption.
      
      This patch postpones the RNG allocation to the init function so
      that one failure during early boot does not make the RNG unavailable
      for all subsequent users of the same cipher.
      
      More importantly, it lets the cipher live even if RNG allocation
      fails.  Of course we no longer offer IV generation and which will
      fail with an error if invoked.  But all other cipher capabilities
      will function as usual.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      055906d1
  2. 04 6月, 2015 1 次提交
  3. 26 11月, 2014 1 次提交
  4. 01 8月, 2014 1 次提交
  5. 02 12月, 2010 1 次提交
  6. 15 4月, 2009 1 次提交
  7. 29 8月, 2008 2 次提交
  8. 01 5月, 2008 1 次提交
  9. 08 3月, 2008 1 次提交
  10. 23 2月, 2008 1 次提交
  11. 11 1月, 2008 1 次提交
    • H
      [CRYPTO] eseqiv: Add Encrypted Sequence Number IV Generator · 806d183a
      Herbert Xu 提交于
      This generator generates an IV based on a sequence number by xoring it
      with a salt and then encrypting it with the same key as used to encrypt
      the plain text.  This algorithm requires that the block size be equal
      to the IV size.  It is mainly useful for CBC.
      
      It has one noteworthy property that for IPsec the IV happens to lie
      just before the plain text so the IV generation simply increases the
      number of encrypted blocks by one.  Therefore the cost of this generator
      is entirely dependent on the speed of the underlying cipher.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      806d183a