diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2014-12-08 20:08:49 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-12-22 12:02:42 (GMT) |
commit | 338e84f3a9740ab3582c8b6bc5a1a027794dac72 (patch) | |
tree | 9fa044b1905ba87668ae2d22886f1260d7ab324f /drivers/crypto/qat/qat_common/qat_crypto.h | |
parent | 82f82504b8f5f1013678bbc74e0882891114594a (diff) | |
download | linux-338e84f3a9740ab3582c8b6bc5a1a027794dac72.tar.xz |
crypto: qat - add support for cbc(aes) ablkcipher
Add support for cbc(aes) ablkcipher.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Acked-by: Bruce W. Allan <bruce.w.allan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_common/qat_crypto.h')
-rw-r--r-- | drivers/crypto/qat/qat_common/qat_crypto.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_crypto.h b/drivers/crypto/qat/qat_common/qat_crypto.h index fcb3231..d503007 100644 --- a/drivers/crypto/qat/qat_common/qat_crypto.h +++ b/drivers/crypto/qat/qat_common/qat_crypto.h @@ -75,10 +75,21 @@ struct qat_crypto_request_buffs { size_t sz_out; }; +struct qat_crypto_request; + struct qat_crypto_request { struct icp_qat_fw_la_bulk_req req; - struct qat_alg_session_ctx *ctx; - struct aead_request *areq; + union { + struct qat_alg_aead_ctx *aead_ctx; + struct qat_alg_ablkcipher_ctx *ablkcipher_ctx; + }; + union { + struct aead_request *aead_req; + struct ablkcipher_request *ablkcipher_req; + }; struct qat_crypto_request_buffs buf; + void (*cb)(struct icp_qat_fw_la_resp *resp, + struct qat_crypto_request *req); }; + #endif |