diff options
author | Mallikarjun Kasoju <mkasoju@nvidia.com> | 2012-07-16 12:05:35 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 00:48:21 -0700 |
commit | 3a7818e08aa5474387faf6ad8534e49200682b57 (patch) | |
tree | 682f4211313d6ab16ce8f2a458829d743e0c1f95 /drivers/crypto | |
parent | 6e04c14b94aa3568ebc8f4cafc1030f2d33c51ee (diff) |
crypto: tegra-se: Program slot zero for RNG operation
RNG operation updates UIV. So program reserved
slot i.e., slot zero before every RNG operation.
Bug 1017413
Change-Id: I831b8cfd275ebecb5e6df3166a977b0cc5a26a8a
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/115992
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R975dfdbe2e66aaa5351ddc0bff39a95ec663d5d0
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/tegra-se.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/tegra-se.c b/drivers/crypto/tegra-se.c index abe153dcd347..96619154630c 100644 --- a/drivers/crypto/tegra-se.c +++ b/drivers/crypto/tegra-se.c @@ -515,7 +515,8 @@ static void tegra_se_config_crypto(struct tegra_se_dev *se_dev, case SE_AES_OP_MODE_RNG_DRBG: val = SE_CRYPTO_INPUT_SEL(INPUT_RANDOM) | SE_CRYPTO_XOR_POS(XOR_BYPASS) | - SE_CRYPTO_CORE_SEL(CORE_ENCRYPT); + SE_CRYPTO_CORE_SEL(CORE_ENCRYPT)| + SE_CRYPTO_KEY_INDEX(slot_num); break; case SE_AES_OP_MODE_ECB: if (encrypt) { |