Re: [PATCH] crypto: ux500/hash: Implement .export and .import

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 19, 2022 at 4:04 PM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:

> The .export and .import callbacks are just implemented as stubs
> which makes the tests fail:
>
>  alg: ahash: hmac-sha256-ux500 export() failed with err -38 on
>    test vector 0, cfg="import/export"
>  ------------[ cut here ]------------
>  WARNING: CPU: 1 PID: 92 at crypto/testmgr.c:5777
>    alg_test.part.0+0x160/0x3ec
>  alg: self-tests for hmac-sha256-ux500 (hmac(sha256)) failed (rc=-38)
>
> The driver already has code for saving and restoring the hardware
> state. Pass the tests by simply implementing the callbacks
> properly.
>
> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Forget this patch, I found some corner cases that make it fail.
I'll come up with something more elaborate.

Yours,
Linus Walleij



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux