diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2008-11-05 12:13:14 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-12-25 11:01:21 +1100 |
commit | 98a05d9df9daaf1c83da784a4cf391b4b6acfc45 (patch) | |
tree | 463a23f13185442a9666cd443ac89bb15b8b2aab /crypto/ccm.c | |
parent | 9e4845e60b0ae720c8cd48c4ae1dc8d8c129da1a (diff) | |
download | linux-crypto-98a05d9df9daaf1c83da784a4cf391b4b6acfc45.tar.gz linux-crypto-98a05d9df9daaf1c83da784a4cf391b4b6acfc45.zip |
crypto: ansi_cprng - Allow resetting of DT value
This is a patch that was sent to me by Jarod Wilson, marking off my
outstanding todo to allow the ansi cprng to set/reset the DT counter value in a
cprng instance. Currently crytpo_rng_reset accepts a seed byte array which is
interpreted by the ansi_cprng as a {V key} tuple. This patch extends that tuple
to now be {V key DT}, with DT an optional value during reset. This patch also
fixes a bug we noticed in which the offset of the key area of the seed is
started at DEFAULT_PRNG_KSZ rather than DEFAULT_BLK_SZ as it should be.
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ccm.c')
0 files changed, 0 insertions, 0 deletions