All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with RSA test from testmgr
@ 2017-02-28 15:59 Corentin Labbe
  2017-02-28 16:08 ` Stephan Müller
  0 siblings, 1 reply; 11+ messages in thread
From: Corentin Labbe @ 2017-02-28 15:59 UTC (permalink / raw)
  To: herbert, linux-crypto; +Cc: linux-kernel

hello

I work on the sun8i-ce crypto accelerator and I have some problem with the RSA part.

The RSA register fail at the first RSA test (encrypt 512bit) with this output:
[ 8480.146843] alg: akcipher: encrypt test failed. Invalid output
[ 8480.146871] 00000000: 6e 7c 8a 75 e7 30 80 d1 5e ab 9b db a2 cf ed db
[ 8480.146897] 00000010: c9 b2 db 43 bd 9a b9 75 27 f3 73 d9 73 b7 81 8c
[ 8480.146921] 00000020: 49 e8 45 fc 43 44 f5 6d f0 f7 b8 f2 ae 6b ae 49
[ 8480.146946] 00000030: 1b 8e 50 c6 88 4e 99 09 78 14 f2 5d 99 c3 7f f9
[ 8480.146995] alg: akcipher: test 1 failed for rsa-sun8i-ce, err=-22

But with the same parameters (msg, n, e) openssl give me exactly this output.

So what I miss for made it work ?
In which format testmgr expect the output data ?

Thanks
Regards
Corentin Labbe

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-03-02 16:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28 15:59 Problem with RSA test from testmgr Corentin Labbe
2017-02-28 16:08 ` Stephan Müller
2017-02-28 16:45   ` Corentin Labbe
2017-02-28 22:35     ` Stephan Müller
2017-03-01 12:04       ` Corentin Labbe
2017-03-01 15:07         ` Stephan Müller
2017-03-02  6:21           ` Corentin Labbe
2017-03-02 16:30             ` Tadeusz Struk
2017-03-02  2:15         ` Tadeusz Struk
2017-03-02  6:08           ` Stephan Müller
2017-03-02 16:26             ` Tadeusz Struk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.