kernel: bump 5.4 to 5.4.73
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 804-crypto-0028-crypto-caam-qi-add-support-for-TLS-1.0-record.patch
index 162f89a19a8ab7fed850d844b3bfb9d226ceaaf1..967266ea4aab6a6db411ea08db8769378e2e5880 100644 (file)
@@ -485,7 +485,7 @@ Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
                           const bool is_qi);
 --- a/drivers/crypto/caam/caamalg_qi.c
 +++ b/drivers/crypto/caam/caamalg_qi.c
-@@ -290,6 +290,167 @@ static int des3_aead_setkey(struct crypt
+@@ -296,6 +296,167 @@ static int des3_aead_setkey(struct crypt
        return err;
  }
  
@@ -653,7 +653,7 @@ Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
  static int gcm_set_sh_desc(struct crypto_aead *aead)
  {
        struct caam_ctx *ctx = crypto_aead_ctx(aead);
-@@ -809,6 +970,29 @@ struct aead_edesc {
+@@ -820,6 +981,29 @@ struct aead_edesc {
  };
  
  /*
@@ -683,7 +683,7 @@ Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
   * skcipher_edesc - s/w-extended skcipher descriptor
   * @src_nents: number of segments in input scatterlist
   * @dst_nents: number of segments in output scatterlist
-@@ -900,6 +1084,18 @@ static void aead_unmap(struct device *de
+@@ -911,6 +1095,18 @@ static void aead_unmap(struct device *de
        dma_unmap_single(dev, edesc->assoclen_dma, 4, DMA_TO_DEVICE);
  }
  
@@ -702,7 +702,7 @@ Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
  static void skcipher_unmap(struct device *dev, struct skcipher_edesc *edesc,
                           struct skcipher_request *req)
  {
-@@ -1192,6 +1388,243 @@ static int aead_decrypt(struct aead_requ
+@@ -1203,6 +1399,243 @@ static int aead_decrypt(struct aead_requ
        return aead_crypt(req, false);
  }
  
@@ -946,7 +946,7 @@ Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
  static int ipsec_gcm_encrypt(struct aead_request *req)
  {
        return crypto_ipsec_check_assoclen(req->assoclen) ? : aead_crypt(req,
-@@ -2411,6 +2844,26 @@ static struct caam_aead_alg driver_aeads
+@@ -2446,6 +2879,26 @@ static struct caam_aead_alg driver_aeads
                        .geniv = true,
                }
        },
@@ -973,7 +973,7 @@ Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
  };
  
  static int caam_init_common(struct caam_ctx *ctx, struct caam_alg_entry *caam,
-@@ -2418,6 +2871,16 @@ static int caam_init_common(struct caam_
+@@ -2453,6 +2906,16 @@ static int caam_init_common(struct caam_
  {
        struct caam_drv_private *priv;
        struct device *dev;
@@ -990,7 +990,7 @@ Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
  
        /*
         * distribute tfms across job rings to ensure in-order
-@@ -2449,6 +2912,21 @@ static int caam_init_common(struct caam_
+@@ -2484,6 +2947,21 @@ static int caam_init_common(struct caam_
        ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type;
  
        ctx->qidev = dev;