libgcrypt: POWER AES Vector Acceleration
Open, NormalPublic

Description

Use POWER8 and POWER9 ISA enhancements to improve the performance of AES. Demonstrate why achieved performance is close to optimal for the platform. Optimized implementations in the Cryptogams repository[1] may serve as useful references. Financial bounty upon completion and community acceptance of patches.

https://github.com/dot-asm/cryptogams/

Details

gcwilson created this task.Mon, May 20, 7:01 PM

Would the maintainers accept having perl in the repository? Linux does it.[1]

[1] https://github.com/torvalds/linux/blob/master/drivers/crypto/vmx/ghashp8-ppc.pl

I don't know. That would make it a relatively easy transplant. We've also used the Cryptogams code as a reference for Golang enhancements, if that helps. I'd welcome guidance on the matter from a maintainer.

I'm looking into doing a pretty epic hack of using the switch_endian syscall to speed this up.

werner renamed this task from [$] libgcrypt: POWER AES Vector Acceleration to libgcrypt: POWER AES Vector Acceleration.Tue, May 21, 7:47 AM
werner triaged this task as Normal priority.Tue, May 21, 7:51 AM
werner added a subscriber: werner.

Perl would be okay for maintainer mode but not for regular builds. The reason is that perl is already used by autotools but a build shall still be possible w/o perl.