diff options
| author | Corentin Labbe <[email protected]> | 2020-02-24 14:47:41 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2020-03-06 12:28:21 +1100 |
| commit | d282eeeb112a00b05595a034ac4cae8532a4c2fc (patch) | |
| tree | 74a6449e6300e983b554984937958e7cb6eec2b1 /tools/perf/scripts/python | |
| parent | 567be3a5d2270fb1971212f704240d6235a2c060 (diff) | |
crypto: arm64/sha-ce - implement export/import
When an ahash algorithm fallback to another ahash and that fallback is
shaXXX-CE, doing export/import lead to error like this:
alg: ahash: sha1-sun8i-ce export() overran state buffer on test vector 0, cfg=\"import/export\"
This is due to the descsize of shaxxx-ce being larger than struct shaxxx_state
off by an u32.
For fixing this, let's implement export/import which rip the finalize
variant instead of using generic export/import.
Fixes: 6ba6c74dfc6b ("arm64/crypto: SHA-224/SHA-256 using ARMv8 Crypto Extensions")
Fixes: 2c98833a42cd ("arm64/crypto: SHA-1 using ARMv8 Crypto Extensions")
Signed-off-by: Corentin Labbe <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions