Imported from https://github.com/SDuari/sCAKE-and-LAKE