mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-21 08:03:45 -04:00
crypto: cavium/nitrox - Fix cbc ciphers self test failures
Self test failures are due to wrong output IV. This patch fixes this issue by copying back output IV into skcipher request. Signed-off-by: Nagadheeraj Rottela <rnagadheeraj@marvell.com> Reviewed-by: Srikanth Jampala <jsrikanth@marvell.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
3fed9baad5
commit
ced0a170fd
@@ -10,6 +10,8 @@
|
||||
#define PENDING_SIG 0xFFFFFFFFFFFFFFFFUL
|
||||
#define PRIO 4001
|
||||
|
||||
typedef void (*sereq_completion_t)(void *req, int err);
|
||||
|
||||
/**
|
||||
* struct gphdr - General purpose Header
|
||||
* @param0: first parameter.
|
||||
@@ -203,12 +205,14 @@ struct nitrox_crypto_ctx {
|
||||
struct flexi_crypto_context *fctx;
|
||||
} u;
|
||||
struct crypto_ctx_hdr *chdr;
|
||||
sereq_completion_t callback;
|
||||
};
|
||||
|
||||
struct nitrox_kcrypt_request {
|
||||
struct se_crypto_request creq;
|
||||
u8 *src;
|
||||
u8 *dst;
|
||||
u8 *iv_out;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user