Re: CBC-AES

2022-05-05 Thread Niels Möller
ni...@lysator.liu.se (Niels Möller) writes: > I'm not that fond of the struct cbc_aes128_ctx though, which includes > both (constant) subkeys and iv. So I'm considering changing that to > > void > cbc_aes128_encrypt(const struct aes128_ctx *ctx, uint8_t *iv, > size_t

Re: CBC-AES (was: Re: [S390x] Optimize AES modes)

2021-09-19 Thread Maamoun TK
On Mon, Sep 13, 2021 at 5:08 PM Niels Möller wrote: > ni...@lysator.liu.se (Niels Möller) writes: > > > I've also added a cbc-aes128-encrypt.asm. > > That gives more significant speedup, almost 60%. I think main reason for > > the speedup is that we avoid reloading subkeys between blocks. > >

CBC-AES (was: Re: [S390x] Optimize AES modes)

2021-09-13 Thread Niels Möller
ni...@lysator.liu.se (Niels Möller) writes: > I've also added a cbc-aes128-encrypt.asm. > That gives more significant speedup, almost 60%. I think main reason for > the speedup is that we avoid reloading subkeys between blocks. I've continued this path, see branch aes-cbc. The aes128 variant is