diff options
| author | Eric Biggers <[email protected]> | 2019-12-30 21:19:33 -0600 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2020-01-09 11:30:52 +0800 |
| commit | b529f1983b2dcc46354f311feda92e07b6e9e2da (patch) | |
| tree | 8f2ad13aee56ee35f00ba823fd338482c7fad9cd /tools/perf/scripts/python | |
| parent | b828f905904cd76424230c69741a4cabb0174168 (diff) | |
crypto: atmel-sha - fix error handling when setting hmac key
HMAC keys can be of any length, and atmel_sha_hmac_key_set() can only
fail due to -ENOMEM. But atmel_sha_hmac_setkey() incorrectly treated
any error as a "bad key length" error. Fix it to correctly propagate
the -ENOMEM error code and not set any tfm result flags.
Fixes: 81d8750b2b59 ("crypto: atmel-sha - add support to hmac(shaX)")
Cc: Nicolas Ferre <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Ludovic Desroches <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Tudor Ambarus <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions