block-ciphers icon indicating copy to clipboard operation
block-ciphers copied to clipboard

Gift

Open Schmid7k opened this issue 3 years ago • 1 comments

This pull request contains a constant-time software fixslicing implementation of the GIFT block cipher, based on the C implementation of the original authors found here.

Gift is a PRESENT based block cipher with focus on energy efficiency and a small memory footprint making it ideal for usage in resource constrained environments. It gained some popularity as part of GIFT-COFB, which is a finalist in the current NIST lightweight cryptography competition as well as SUNDAE-GIFT.

This pull request comes with an implementation of GIFT-128, meaning Gift operating on 128-bit blocks, though I am planning on implementing GIFT-64 in the future.

It passes all test vectors and performs at ~44.5 cpb on an Intel Core i7 8700k with 3.7GHz core clock, while the C version "only" performs at ~47.1 cpb on the same machine.

Schmid7k avatar Aug 16 '22 18:08 Schmid7k

And last but not least, Gift also rebased from upstream.

Schmid7k avatar May 11 '24 20:05 Schmid7k