1 From 55ee0ae703a68db74a492f5910937260502b9602 Mon Sep 17 00:00:00 2001
 
   2 From: Tudor Ambarus <tudor.ambarus@freescale.com>
 
   3 Date: Tue, 10 Jun 2014 08:27:59 +0300
 
   4 Subject: [PATCH 10/15] add support for composite TLS10(SHA1,3DES) algorithm
 
   7 This adds support for composite algorithm offload in a single crypto
 
   8 (cipher + hmac) operation.
 
  10 It requires either software or hardware TLS support in the Linux kernel
 
  11 and can be used with Freescale B*, P* and T* platforms that have support
 
  12 for hardware TLS acceleration.
 
  14 Change-Id: Ibce0ceb4174809c9c96b453cd3202bc5220ff084
 
  15 Signed-off-by: Tudor Ambarus <tudor.ambarus@freescale.com>
 
  16 Reviewed-on: http://git.am.freescale.net:8181/34000
 
  17 Reviewed-by: Cristian Stoica <cristian.stoica@freescale.com>
 
  18 Tested-by: Cristian Stoica <cristian.stoica@freescale.com>
 
  20  crypto/cryptodev.h | 1 +
 
  22  2 files changed, 6 insertions(+)
 
  24 diff --git a/crypto/cryptodev.h b/crypto/cryptodev.h
 
  25 index e7edd97..07f40b2 100644
 
  26 --- a/crypto/cryptodev.h
 
  27 +++ b/crypto/cryptodev.h
 
  28 @@ -55,6 +55,7 @@ enum cryptodev_crypto_op_t {
 
  31         CRYPTO_TLS10_AES_CBC_HMAC_SHA1,
 
  32 +       CRYPTO_TLS10_3DES_CBC_HMAC_SHA1,
 
  33         CRYPTO_ALGORITHM_ALL, /* Keep updated - see below */
 
  36 diff --git a/ioctl.c b/ioctl.c
 
  37 index c97320b..574e913 100644
 
  40 @@ -191,6 +191,11 @@ crypto_create_session(struct fcrypt *fcr, struct session_op *sop)
 
  44 +       case CRYPTO_TLS10_3DES_CBC_HMAC_SHA1:
 
  45 +               alg_name = "tls10(hmac(sha1),cbc(des3_ede))";
 
  50                 alg_name = "ecb(cipher_null)";