The art of protecting enigma foundries