summaryrefslogtreecommitdiff
path: root/drivers/crypto/fsl/desc.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2020-06-27 22:58:52 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2020-07-27 14:16:29 +0530
commitb980f9e2597b52ce71247e79d534349f7d174b38 (patch)
tree87db229d42e28fd2e81472fd05212f5760bfa39f /drivers/crypto/fsl/desc.h
parentc269a970f23fabbb0d35708ff021bf2962780f9f (diff)
crypto/fsl: instantiate the RNG with prediciton resistance
If it is already instantiated tear it down first and then reinstanciate it again with prediction resistance. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'drivers/crypto/fsl/desc.h')
-rw-r--r--drivers/crypto/fsl/desc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/fsl/desc.h b/drivers/crypto/fsl/desc.h
index 11ad506829..3589e6ea02 100644
--- a/drivers/crypto/fsl/desc.h
+++ b/drivers/crypto/fsl/desc.h
@@ -520,6 +520,8 @@
#define OP_ALG_ICV_OFF (0 << OP_ALG_ICV_SHIFT)
#define OP_ALG_ICV_ON (1 << OP_ALG_ICV_SHIFT)
+#define OP_ALG_PR_ON 0x02
+
#define OP_ALG_DIR_SHIFT 0
#define OP_ALG_DIR_MASK 1
#define OP_ALG_DECRYPT 0