RE: [PATCH v6 RESEND 5/5] crypto: LEA block cipher x86_64 optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "'Dongsoo Lee'" <letrhee@xxxxxxxxx>, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, "Jens Axboe" <axboe@xxxxxxxxx>, Eric Biggers <ebiggers@xxxxxxxxxx>, "Theodore Y. Ts'o" <tytso@xxxxxxx>, Jaegeuk Kim <jaegeuk@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, "x86@xxxxxxxxxx" <x86@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>
- Subject: RE: [PATCH v6 RESEND 5/5] crypto: LEA block cipher x86_64 optimization
- From: David Laight <David.Laight@xxxxxxxxxx>
- Date: Fri, 12 Jan 2024 12:59:56 +0000
- Accept-language: en-GB, en-US
- In-reply-to: <20240112022859.2384-6-letrhee@nsr.re.kr>
- References: <20240112022859.2384-1-letrhee@nsr.re.kr> <20240112022859.2384-6-letrhee@nsr.re.kr>
- Thread-index: AQHaRP97Qv3M1SIfYkW1atonfzlDU7DWJB2Q
- Thread-topic: [PATCH v6 RESEND 5/5] crypto: LEA block cipher x86_64 optimization
From: Dongsoo Lee
> Sent: 12 January 2024 02:29
>
> For the x86_64 environment, we use AVX-512F/AVX2/SSE2 instructions.
> Since LEA uses 128-bit blocks of four 32-bit integers, for optimization,
> SSE2 encrypts 4 blocks, AVX2 encrypts 4/8 blocks, and AVX-512F encrypts
> 4/8/16 blocks at a time.
>
> Our submission provides a optimized implementation of ECB, CBC
> decryption, CTR, and XTS cipher operation modes on x86_64 CPUs
> supporting.
Given you say in 0/0:
The LEA algorithm is a lightweight block cipher that processes data blocks of 128-bits and has three different key lengths, each with a different number of rounds:
Just how big is it ?
Doesn't look 'lightweight' to me.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]