From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A77ABA04CF for ; Fri, 15 Nov 2019 18:46:26 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2010D2D13; Fri, 15 Nov 2019 18:46:26 +0100 (CET) Received: from mta-p8.oit.umn.edu (mta-p8.oit.umn.edu [134.84.196.208]) by dpdk.org (Postfix) with ESMTP id E09562C16 for ; Fri, 15 Nov 2019 18:46:23 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by mta-p8.oit.umn.edu (Postfix) with ESMTP id 30066979 for ; Fri, 15 Nov 2019 17:46:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at umn.edu Received: from mta-p8.oit.umn.edu ([127.0.0.1]) by localhost (mta-p8.oit.umn.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jjDoxvHpiZUB for ; Fri, 15 Nov 2019 11:46:23 -0600 (CST) Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mta-p8.oit.umn.edu (Postfix) with ESMTPS id 029411FE for ; Fri, 15 Nov 2019 11:46:22 -0600 (CST) Received: by mail-yb1-f198.google.com with SMTP id s7so7912798ybc.9 for ; Fri, 15 Nov 2019 09:46:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umn.edu; s=google; h=mime-version:from:date:message-id:subject:to; bh=ECqx0wp7oX5BlXrToiFOky7JlY6bte+Wu7MF57c2PoE=; b=n6RvrUeinJbmG9Mnw/sU9QKMd3l3wgwFRRC90I6YeSaMosvjYToTaZIp1ApxkAR7gz 7e4vEDm2ROHy+lrLnc0rhCX0uDa+MyKhmHkSV+P5Ti9rGykK7/BtKQug5feIlygo/yFT T6Vmjrsegc7ozkJGE3Js997n9wfcqJjyTjoXgIDmzykXVpn6R/6MCZoYHjSdxv31kuoO opqm06y8iiUIUR67tc7gJ/WtX3X9vWKvQwkdL1zu7LU6DMiWmOhCPw384rmAZMF7ynEg /50MmPeE3RGEtSMSAhAfbopaFDdGeylyKiR/ziI5aNsanISgkTQjRxspwOawRG/qtFDp e5fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ECqx0wp7oX5BlXrToiFOky7JlY6bte+Wu7MF57c2PoE=; b=Yx9hECNuNlySC/bjHFY1QthjWDCGaoSE++CGmYkq1YipqCaP09CmC/XxLMSKUfeajo Wh1Qxp7TgDpI+pc+UNXjejHAzVDFK/wCWe2WbajSGAijBQzSNcWgZO57nR9uTJNfdE5P dalbQ1IWveRmwhMOjn7jSFaA6eUYZW50i8yS0Mqr4OlcJyvf3UnQUkKI++oJ5IxP9++9 /nQ2X4gok5YMW2Z16sBz/DPzMsFZUqvm9tehCbyoimjEz6PIPVApG/UUGCzoFM3FOSQz RtioPDyrGDMWdeOkskXwmr0CqXdNj2BCsmOWy62cGJAF+kQ4BYuDMrlgGzskgbyV57oC 8vag== X-Gm-Message-State: APjAAAVVOl55ep92j+OT4h3EXogSncwDzAra3WWPNYnM1PJ+7qJyZECc 1scWuuvhgQl25zOAZ0/Hhzb5EwSxhrKgDZp/Saxhw/tEnJaQq2YOQ2HibCicZrSawc8DUdmmZvQ /trhf06Nao9LpDnTYwPNn1ZOCzQ== X-Received: by 2002:a81:3497:: with SMTP id b145mr9876150ywa.315.1573839982185; Fri, 15 Nov 2019 09:46:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxivIMM4UozGT+/VO9Bk07gJ6KOTppiZkYHWXVU37WFrI4DUeHYjSExRhhd5P2goBJVRSo4l+mK4jJmOpbjxQ8= X-Received: by 2002:a81:3497:: with SMTP id b145mr9876124ywa.315.1573839981647; Fri, 15 Nov 2019 09:46:21 -0800 (PST) MIME-Version: 1.0 From: Eric Kuha Date: Fri, 15 Nov 2019 11:46:10 -0600 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Best Practices for key storage X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hello, Using openssl encryption to generate long-term and ephemeral keys for asymmetric crypto sessions. What are the best practices for storing the keys that have not yet expired? Clearly, storing them via rte_zmalloc() is not desirable since it requires a lot of overhead, but I don't necessarily want them sitting around in my op pool (or do I?). When they are generated they are allocated in the crypto op pool. Should I just not free the op struct and leave it in the pool for future operations? Or should I copy the data to some other location for more semi-permanent use and free the op struct? Should they be allocated in a special key mempool? Or is there some other best practice that is advised by the community/devs? Many thanks, Eric