expose generate_key function for serpent