Adding KeyGen library