All of lore.kernel.org
 help / color / mirror / Atom feed
* problem with testing a CTR block cipher mode which is partially working
@ 2015-03-30 17:59 Corentin LABBE
  2015-03-30 18:08 ` AW: " Markus Stockhausen
  0 siblings, 1 reply; 8+ messages in thread
From: Corentin LABBE @ 2015-03-30 17:59 UTC (permalink / raw)
  To: linux-crypto-u79uwXL29TY76Z2rM5mHXA; +Cc: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

hello

I am trying to add the CTR (counter) block cipher mode for AES on my Security System driver.

When testing with the tcrypt module I got the following result:
[ 1256.986989] alg: skcipher: Test 1 failed on encryption for ctr-aes-sunxi-ss
[ 1256.987004] 00000000: 87 4d 61 91 b6 20 e3 26 1b ef 68 64 99 0d b6 ce
[ 1256.987013] 00000010: 40 94 25 91 d7 b4 4f 49 ab c1 9d 33 a4 4e f6 54
[ 1256.987023] 00000020: ce 58 d2 f0 01 8f 92 a2 5f 2c bb 66 13 8b 9d 76
[ 1256.987032] 00000030: 30 fa 4a 40 b1 67 2e f3 46 b7 9a 7c ba 91 0b a2

As you can see the first ciphered block is correct (according to testmgr.h), the subsequent blocks are bad.

So Could I assume that the setting of key and IV are good (at least for the first cipher pass.

The number of inputs(register) are limited and I have tested near all the possibility.
Any idea of what could be wrong.

Regards
Thanks in advance

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

end of thread, other threads:[~2015-04-02 19:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 17:59 problem with testing a CTR block cipher mode which is partially working Corentin LABBE
2015-03-30 18:08 ` AW: " Markus Stockhausen
2015-03-30 19:11   ` Stephan Mueller
     [not found]   ` <12EF8D94C6F8734FB2FF37B9FBEDD1735FC8AB40-Xnr6BND5kcg29+KCeZIpYi5l6jQMEky5@public.gmane.org>
2015-03-31 18:02     ` Corentin LABBE
2015-04-01  2:06       ` kevin.z.m.zh-Re5JQEeQqe8AvxtiuMwx3w
2015-04-01 11:16         ` [linux-sunxi] " Corentin LABBE
2015-04-02  2:10           ` kevin.z.m.zh-Re5JQEeQqe8AvxtiuMwx3w
     [not found]             ` <2015040210102714744761-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-04-02 19:02               ` Corentin LABBE

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.