diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-05-06 20:46:49 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-05-07 21:08:56 +0800 |
commit | 67412f0e78dfbbbcb36e631d9df70c6c559d60d4 (patch) | |
tree | 92975160306147eeee8ecd09b0fa13f6ab5dd6ef /sound/soc/sh | |
parent | c0a18111e571138747a98af18b3a2124df56a0d1 (diff) |
[CRYPTO] hmac: Avoid calling virt_to_page on key
When HMAC gets a key longer than the block size of the hash, it needs
to feed it as input to the hash to reduce it to a fixed length. As
it is HMAC converts the key to a scatter and gather list. However,
this doesn't work on certain platforms if the key is not allocated
via kmalloc. For example, the keys from tcrypt are stored in the
rodata section and this causes it to fail with HMAC on x86-64.
This patch fixes this by copying the key to memory obtained via
kmalloc before hashing it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'sound/soc/sh')
0 files changed, 0 insertions, 0 deletions