Re: Implement XTS block cipher mode

2019-03-16 Thread Simo Sorce
On Sat, 2019-03-16 at 16:26 +0300, Yuriy M. Kaminskiy wrote: > On 03/15/19 16:33 , Simo Sorce wrote: > > On Fri, 2019-03-15 at 09:27 -0400, Simo Sorce wrote: > > > > I think this is the same as block_mulx, in cmac.c. (Also same byte > > > > order, right?) > > > > > > Looks the same indeed, should

Re: Implement XTS block cipher mode

2019-03-16 Thread Yuriy M. Kaminskiy
On 03/15/19 16:33 , Simo Sorce wrote: > On Fri, 2019-03-15 at 09:27 -0400, Simo Sorce wrote: >> > I think this is the same as block_mulx, in cmac.c. (Also same byte >> > order, right?) >> >> Looks the same indeed, should I share it? Just copy it from cmac? >> Something else? > > Turns out the

[WIP] aes arm asm from libgcrypt

2019-03-16 Thread Yuriy M. Kaminskiy
On raspberry pi 3b+ (cortex-a53 @ 1.4GHz): Before: aes128 | nanosecs/byte mebibytes/sec cycles/byte ECB enc | 39.58 ns/B 24.10 MiB/s - c/B ECB dec | 39.57 ns/B 24.10 MiB/s - c/B After: ECB enc | 15.24 ns/B 62.57 MiB/s