]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Oct 2016 03:19:47 +0000 (11:19 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Oct 2016 03:19:47 +0000 (11:19 +0800)
Merge the crypto tree to pull in vmx ghash fix.

1  2 
drivers/char/hw_random/Kconfig
drivers/crypto/caam/caamalg.c

Simple merge
index eb97562414d2a3d884c3385f73b8071f0b8091ec,b3044219772cd7ac57e0bf2559eb7dea8caeca08..156aad167cd6fcd44e66ea9456e253f8e3e36866
@@@ -601,12 -568,21 +604,20 @@@ skip_enc
        append_seq_fifo_load(desc, 0, FIFOLD_CLASS_CLASS2 | FIFOLD_TYPE_MSG |
                             KEY_VLF);
  
+       if (alg->caam.geniv) {
+               append_seq_load(desc, ivsize, LDST_CLASS_1_CCB |
+                               LDST_SRCDST_BYTE_CONTEXT |
+                               (ctx1_iv_off << LDST_OFFSET_SHIFT));
+               append_move(desc, MOVE_SRC_CLASS1CTX | MOVE_DEST_CLASS2INFIFO |
+                           (ctx1_iv_off << MOVE_OFFSET_SHIFT) | ivsize);
+       }
        /* Load Counter into CONTEXT1 reg */
        if (is_rfc3686)
 -              append_load_imm_u32(desc, be32_to_cpu(1), LDST_IMM |
 -                                  LDST_CLASS_1_CCB |
 -                                  LDST_SRCDST_BYTE_CONTEXT |
 -                                  ((ctx1_iv_off + CTR_RFC3686_IV_SIZE) <<
 -                                   LDST_OFFSET_SHIFT));
 +              append_load_imm_be32(desc, 1, LDST_IMM | LDST_CLASS_1_CCB |
 +                                   LDST_SRCDST_BYTE_CONTEXT |
 +                                   ((ctx1_iv_off + CTR_RFC3686_IV_SIZE) <<
 +                                    LDST_OFFSET_SHIFT));
  
        /* Choose operation */
        if (ctr_mode)