zfs icon indicating copy to clipboard operation
zfs copied to clipboard

add aegis aead support

Open calvin2021y opened this issue 6 months ago • 2 comments

Describe the feature would like to see added to OpenZFS

add aegis aead as alternative AES GCM.

How will this feature improve OpenZFS?

Will provide much fast speed compare to others options.

Additional context

https://github.com/aegis-aead/libaegis

calvin2021y avatar Jun 02 '25 08:06 calvin2021y

Overall, it is a good idea. Encryption (and HMAC) in ZFS is currently a performance bottleneck. Several pull requests are related to this issue: #17058, #16601, #14531, #14249 and #14219.

AEGIS is known for being part of the final CAESAR competition portfolio and is recommended for high-performance applications. It may be useful for encrypted pools on NVMe drives and for transferring encrypted data between pools over high-speed networks.

However, a crucial requirement for inclusion in ZFS is format stability. It should not change. Currently, AEGIS is undergoing standardization within the IETF (including for use in TLS):

On the other hand, BLAKE3 has already been added to ZFS and is widely adopted, although it is still in draft status.

If we are confident that the AEGIS format is stable enough, we can consider applying AEGIS and AEGIS-MAC in ZFS. Otherwise, we could consider using BLAKE3 for HMAC purposes for now, which would improve both speed and security.


@mcmilk can you take a look?

lzsaver avatar Jun 03 '25 06:06 lzsaver

This looks like a cool idea. I will take a look and provide maybe a PR for it. @lzsaver - thanks for the hint.

mcmilk avatar Jun 03 '25 07:06 mcmilk

Just wanted to check in: Is there any update on the progress of adding AEGIS AEAD to OpenZFS?

Also, I’d love to help test this feature if any early implementation or PR becomes available — please let me know if that’s possible.

calvin2021y avatar Jul 12 '25 06:07 calvin2021y

I would love to see that as well.

The performances are crazy good compared to HMAC and BLAKE

Image

ofalkenberg avatar Sep 12 '25 08:09 ofalkenberg