From: Tudor Ambarus <tudor.ambarus@microchip.com> To: <herbert@gondor.apana.org.au>, <davem@davemloft.net> Cc: <linux-crypto@vger.kernel.org>, <wsa@the-dreams.de>, <linux-i2c@vger.kernel.org>, <nicolas.ferre@microchip.com>, Tudor Ambarus <tudor.ambarus@microchip.com> Subject: [PATCH 1/3] crypto: kpp: add get/set_flags helpers Date: Wed, 5 Jul 2017 13:07:58 +0300 [thread overview] Message-ID: <1499249280-31779-2-git-send-email-tudor.ambarus@microchip.com> (raw) In-Reply-To: <1499249280-31779-1-git-send-email-tudor.ambarus@microchip.com> These helpers will be used for fallbacks to kpp software implementations. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> --- include/crypto/kpp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/crypto/kpp.h b/include/crypto/kpp.h index 2133d17..1bde0a6 100644 --- a/include/crypto/kpp.h +++ b/include/crypto/kpp.h @@ -145,6 +145,16 @@ static inline struct crypto_kpp *crypto_kpp_reqtfm(struct kpp_request *req) return __crypto_kpp_tfm(req->base.tfm); } +static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm) +{ + return crypto_tfm_get_flags(crypto_kpp_tfm(tfm)); +} + +static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) +{ + crypto_tfm_set_flags(crypto_kpp_tfm(tfm), flags); +} + /** * crypto_free_kpp() - free KPP tfm handle * -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Tudor Ambarus <tudor.ambarus@microchip.com> To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, wsa@the-dreams.de, linux-i2c@vger.kernel.org, nicolas.ferre@microchip.com, Tudor Ambarus <tudor.ambarus@microchip.com> Subject: [PATCH 1/3] crypto: kpp: add get/set_flags helpers Date: Wed, 5 Jul 2017 13:07:58 +0300 [thread overview] Message-ID: <1499249280-31779-2-git-send-email-tudor.ambarus@microchip.com> (raw) In-Reply-To: <1499249280-31779-1-git-send-email-tudor.ambarus@microchip.com> These helpers will be used for fallbacks to kpp software implementations. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> --- include/crypto/kpp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/crypto/kpp.h b/include/crypto/kpp.h index 2133d17..1bde0a6 100644 --- a/include/crypto/kpp.h +++ b/include/crypto/kpp.h @@ -145,6 +145,16 @@ static inline struct crypto_kpp *crypto_kpp_reqtfm(struct kpp_request *req) return __crypto_kpp_tfm(req->base.tfm); } +static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm) +{ + return crypto_tfm_get_flags(crypto_kpp_tfm(tfm)); +} + +static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) +{ + crypto_tfm_set_flags(crypto_kpp_tfm(tfm), flags); +} + /** * crypto_free_kpp() - free KPP tfm handle * -- 2.7.4
next prev parent reply other threads:[~2017-07-05 10:07 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-07-05 10:07 [PATCH 0/3] crypto: introduce Microchip / Atmel ECC driver Tudor Ambarus 2017-07-05 10:07 ` Tudor Ambarus 2017-07-05 10:07 ` Tudor Ambarus [this message] 2017-07-05 10:07 ` [PATCH 1/3] crypto: kpp: add get/set_flags helpers Tudor Ambarus 2017-07-05 10:07 ` [PATCH 2/3] crypto: introduce Microchip / Atmel ECC driver Tudor Ambarus 2017-07-05 10:07 ` Tudor Ambarus 2017-07-05 10:08 ` [PATCH 3/3] MAINTAINERS: add a maintainer for " Tudor Ambarus 2017-07-05 10:08 ` Tudor Ambarus 2017-07-05 10:54 ` [PATCH 0/3] crypto: introduce " Marcel Holtmann 2017-07-05 11:44 ` Tudor Ambarus 2017-07-05 11:44 ` Tudor Ambarus 2017-07-05 12:26 ` Marcel Holtmann 2017-07-18 10:38 ` Herbert Xu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1499249280-31779-2-git-send-email-tudor.ambarus@microchip.com \ --to=tudor.ambarus@microchip.com \ --cc=davem@davemloft.net \ --cc=herbert@gondor.apana.org.au \ --cc=linux-crypto@vger.kernel.org \ --cc=linux-i2c@vger.kernel.org \ --cc=nicolas.ferre@microchip.com \ --cc=wsa@the-dreams.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.