Fixed type error in octo_keygen()