get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/41007/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 41007,
    "url": "https://patches.dpdk.org/api/patches/41007/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180612103925.34342-1-marko.kovacevic@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20180612103925.34342-1-marko.kovacevic@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180612103925.34342-1-marko.kovacevic@intel.com",
    "date": "2018-06-12T10:39:25",
    "name": "[v1] crypto/openssl: add support for 8 byte 3DES",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "30ec3eb86459a88ae7c4ec59640f391e7fe62b2a",
    "submitter": {
        "id": 853,
        "url": "https://patches.dpdk.org/api/people/853/?format=api",
        "name": "Kovacevic, Marko",
        "email": "marko.kovacevic@intel.com"
    },
    "delegate": {
        "id": 22,
        "url": "https://patches.dpdk.org/api/users/22/?format=api",
        "username": "pdelarag",
        "first_name": "Pablo",
        "last_name": "de Lara Guarch",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180612103925.34342-1-marko.kovacevic@intel.com/mbox/",
    "series": [
        {
            "id": 93,
            "url": "https://patches.dpdk.org/api/series/93/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=93",
            "date": "2018-06-12T10:39:25",
            "name": "[v1] crypto/openssl: add support for 8 byte 3DES",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/93/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/41007/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/41007/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 038E11E514;\n\tTue, 12 Jun 2018 12:39:39 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id CF17F1E3CB\n\tfor <dev@dpdk.org>; Tue, 12 Jun 2018 12:39:36 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t12 Jun 2018 03:39:34 -0700",
            "from silpixa00399502.ir.intel.com (HELO\n\tsilpixa00399502.ger.corp.intel.com) ([10.237.223.218])\n\tby fmsmga005.fm.intel.com with ESMTP; 12 Jun 2018 03:39:33 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,214,1526367600\"; d=\"scan'208\";a=\"236450888\"",
        "From": "\"Kovacevic, Marko\" <marko.kovacevic@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "pablo.de.lara.guarch@intel.com, deepak.k.jain@intel.com,\n\t\"Kovacevic, Marko\" <marko.kovacevic@intel.com>, Marko@dpdk.org",
        "Date": "Tue, 12 Jun 2018 11:39:25 +0100",
        "Message-Id": "<20180612103925.34342-1-marko.kovacevic@intel.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "Subject": "[dpdk-dev] [PATCH v1] crypto/openssl: add support for 8 byte 3DES",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Added extra case to support 8 byte key size\nfor 3DES CBC. Also changed capabilities to reflect\nthe change.\n\nSigned-off-by: Marko, Kovacevic <marko.kovacevic@intel.com>\n---\n drivers/crypto/openssl/rte_openssl_pmd.c     | 3 +++\n drivers/crypto/openssl/rte_openssl_pmd_ops.c | 2 +-\n test/test/test_cryptodev_des_test_vectors.h  | 6 ++++--\n 3 files changed, 8 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c\nindex 93c6d7e..a1b4ca4 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd.c\n@@ -137,6 +137,9 @@ get_cipher_algo(enum rte_crypto_cipher_algorithm sess_algo, size_t keylen,\n \t\tswitch (sess_algo) {\n \t\tcase RTE_CRYPTO_CIPHER_3DES_CBC:\n \t\t\tswitch (keylen) {\n+\t\t\tcase 8:\n+\t\t\t\t*algo = EVP_des_cbc();\n+\t\t\t\tbreak;\n \t\t\tcase 16:\n \t\t\t\t*algo = EVP_des_ede_cbc();\n \t\t\t\tbreak;\ndiff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\nindex 1cb87d5..e7c5a57 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n@@ -397,7 +397,7 @@ static const struct rte_cryptodev_capabilities openssl_pmd_capabilities[] = {\n \t\t\t\t.algo = RTE_CRYPTO_CIPHER_3DES_CBC,\n \t\t\t\t.block_size = 8,\n \t\t\t\t.key_size = {\n-\t\t\t\t\t.min = 16,\n+\t\t\t\t\t.min = 8,\n \t\t\t\t\t.max = 24,\n \t\t\t\t\t.increment = 8\n \t\t\t\t},\ndiff --git a/test/test/test_cryptodev_des_test_vectors.h b/test/test/test_cryptodev_des_test_vectors.h\nindex 4217b72..7479e70 100644\n--- a/test/test/test_cryptodev_des_test_vectors.h\n+++ b/test/test/test_cryptodev_des_test_vectors.h\n@@ -1232,13 +1232,15 @@ static const struct blockcipher_test_case triple_des_cipheronly_test_cases[] = {\n \t\t.test_descr = \"3DES-64-CBC Encryption\",\n \t\t.test_data = &triple_des64cbc_test_vector,\n \t\t.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,\n-\t\t.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB\n+\t\t.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |\n+\t\t\tBLOCKCIPHER_TEST_TARGET_PMD_OPENSSL\n \t},\n \t{\n \t\t.test_descr = \"3DES-64-CBC Decryption\",\n \t\t.test_data = &triple_des64cbc_test_vector,\n \t\t.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,\n-\t\t.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB\n+\t\t.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |\n+\t\t\tBLOCKCIPHER_TEST_TARGET_PMD_OPENSSL\n \t},\n \t{\n \t\t.test_descr = \"3DES-128-CBC Encryption\",\n",
    "prefixes": [
        "v1"
    ]
}